
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void hash_free(Hash_table *table)

{
  void *pvVar1;
  hash_entry *phVar2;
  hash_entry *phVar3;
  hash_entry *phVar4;
  
  phVar4 = table->bucket;
  phVar2 = table->bucket_limit;
  if ((table->data_freer != (Hash_data_freer)0x0) && (table->n_entries != 0)) {
    if (phVar2 <= phVar4) goto LAB_0001f95d;
    do {
      while (pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0) {
        while( true ) {
          (*table->data_freer)(pvVar1);
          phVar3 = phVar3->next;
          if (phVar3 == (hash_entry *)0x0) break;
          pvVar1 = phVar3->data;
        }
        phVar2 = table->bucket_limit;
        phVar4 = phVar4 + 1;
        if (phVar2 <= phVar4) goto LAB_0001f925;
      }
      phVar4 = phVar4 + 1;
    } while (phVar4 < phVar2);
LAB_0001f925:
    phVar4 = table->bucket;
  }
  if (phVar4 < phVar2) {
    do {
      phVar2 = phVar4->next;
      while (phVar2 != (hash_entry *)0x0) {
        phVar3 = phVar2->next;
        free(phVar2);
        phVar2 = phVar3;
      }
      phVar4 = phVar4 + 1;
    } while (phVar4 < table->bucket_limit);
  }
LAB_0001f95d:
  phVar4 = table->free_entry_list;
  while (phVar4 != (hash_entry *)0x0) {
    phVar2 = phVar4->next;
    free(phVar4);
    phVar4 = phVar2;
  }
  free(table->bucket);
  free(table);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_0001f8c0(uint *param_1)

{
  void *pvVar1;
  void *pvVar2;
  int iVar3;
  int *piVar4;
  int *piVar5;
  int *piVar6;
  
  piVar6 = (int *)*param_1;
  piVar4 = (int *)param_1[1];
  if ((param_1[8] != 0) && (param_1[4] != 0)) {
    if (piVar4 <= piVar6) goto LAB_0001f95d;
    do {
      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {
        while( true ) {
          (*(code *)param_1[8])(iVar3);
          piVar5 = (int *)piVar5[1];
          if (piVar5 == (int *)0x0) break;
          iVar3 = *piVar5;
        }
        piVar4 = (int *)param_1[1];
        piVar6 = piVar6 + 2;
        if (piVar4 <= piVar6) goto LAB_0001f925;
      }
      piVar6 = piVar6 + 2;
    } while (piVar6 < piVar4);
LAB_0001f925:
    piVar6 = (int *)*param_1;
  }
  if (piVar6 < piVar4) {
    do {
      pvVar2 = (void *)piVar6[1];
      while (pvVar2 != (void *)0x0) {
        pvVar1 = *(void **)((int)pvVar2 + 4);
        free(pvVar2);
        pvVar2 = pvVar1;
      }
      piVar6 = piVar6 + 2;
    } while (piVar6 < (int *)param_1[1]);
  }
LAB_0001f95d:
  pvVar2 = (void *)param_1[9];
  while (pvVar2 != (void *)0x0) {
    pvVar1 = *(void **)((int)pvVar2 + 4);
    free(pvVar2);
    pvVar2 = pvVar1;
  }
  free((void *)*param_1);
  free(param_1);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013b20
ADD EBX,0x2d737
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [EBP + 0x20]
MOV EDI,dword ptr [EBP]
MOV EDX,dword ptr [EBP + 0x4]
TEST ECX,ECX
JZ 0x0001f928
MOV EAX,dword ptr [EBP + 0x10]
TEST EAX,EAX
JZ 0x0001f928
CMP EDI,EDX
JC 0x0001f8f7
JMP 0x0001f95d
ADD EDI,0x8
CMP EDX,EDI
JBE 0x0001f925
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x0001f8f0
MOV ESI,EDI
JMP 0x0001f90a
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EBP + 0x20]
MOV ESI,dword ptr [ESI + 0x4]
ADD ESP,0x10
TEST ESI,ESI
JNZ 0x0001f908
MOV EDX,dword ptr [EBP + 0x4]
ADD EDI,0x8
CMP EDX,EDI
JA 0x0001f8f7
MOV EDI,dword ptr [EBP]
CMP EDI,EDX
JNC 0x0001f95d
LEA ESI,[ESI]
MOV EAX,dword ptr [EDI + 0x4]
TEST EAX,EAX
JZ 0x0001f955
LEA ESI,[ESI]
NOP
SUB ESP,0xc
MOV ESI,dword ptr [EAX + 0x4]
PUSH EAX
CALL 0x00012120
MOV EAX,ESI
ADD ESP,0x10
TEST ESI,ESI
JNZ 0x0001f940
ADD EDI,0x8
CMP dword ptr [EBP + 0x4],EDI
JA 0x0001f930
MOV EAX,dword ptr [EBP + 0x24]
TEST EAX,EAX
JZ 0x0001f97d
LEA ESI,[ESI]
SUB ESP,0xc
MOV ESI,dword ptr [EAX + 0x4]
PUSH EAX
CALL 0x00012120
MOV EAX,ESI
ADD ESP,0x10
TEST ESI,ESI
JNZ 0x0001f968
SUB ESP,0xc
PUSH dword ptr [EBP]
CALL 0x00012120
MOV dword ptr [ESP],EBP
CALL 0x00012120
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001f8c0(uint *param_1)\n\n{\n  void *pvVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  int *piVar6;\n  \n  piVar6 = (int *)*param_1;\n  piVar4 = (int *)param_1[1];\n  if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }\n  if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }\nLAB_0001f95d:\n  pvVar2 = (void *)param_1[9];\n  while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }\n  free((void *)*param_1);\n  free(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_0001f8c0(uint *param_1)\n\n{\n  void *pvVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  int *piVar6;\n  \n  piVar6 = (int *)*param_1;\n  piVar4 = (int *)param_1[1];\n  if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }\n  if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }\nLAB_0001f95d:\n  pvVar2 = (void *)param_1[9];\n  while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }\n  free((void *)*param_1);\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0001f8c0(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  int *piVar6;\n  \n  piVar6 = (int *)*param_1;\n  piVar4 = (int *)param_1[1];\n  if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }\n  if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }\nLAB_0001f95d:\n  pvVar2 = (void *)param_1[9];\n  while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }\n  free((void *)*param_1);\n  free(param_1);\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "piVar6 = (int *)*param_1;" (assignment_expression "piVar6 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "piVar4 = (int *)param_1[1];" (assignment_expression "piVar4 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }" if (parenthesized_expression "((param_1[8] != 0) && (param_1[4] != 0))" ( (binary_expression "(param_1[8] != 0) && (param_1[4] != 0)" (parenthesized_expression "(param_1[8] != 0)" ( (binary_expression "param_1[8] != 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_1[4] != 0)" ( (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }" { (if_statement "if (piVar4 <= piVar6) goto LAB_0001f95d;" if (parenthesized_expression "(piVar4 <= piVar6)" ( (binary_expression "piVar4 <= piVar6" identifier <= identifier) )) (goto_statement "goto LAB_0001f95d;" goto statement_identifier ;)) (do_statement "do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);" do (compound_statement "{\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    }" { (while_statement "while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }" while (parenthesized_expression "(iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0)" ( (comma_expression "iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0" (assignment_expression "iVar3 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) , (comma_expression "piVar5 = piVar6, iVar3 != 0" (assignment_expression "piVar5 = piVar6" identifier = identifier) , (binary_expression "iVar3 != 0" identifier != number_literal))) )) (compound_statement "{\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }" { (while_statement "while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }" { (expression_statement "(*(code *)param_1[8])(iVar3);" (call_expression "(*(code *)param_1[8])(iVar3)" (parenthesized_expression "(*(code *)param_1[8])" ( (pointer_expression "*(code *)param_1[8]" * (cast_expression "(code *)param_1[8]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[8]" identifier [ number_literal ]))) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "piVar5 = (int *)piVar5[1];" (assignment_expression "piVar5 = (int *)piVar5[1]" identifier = (cast_expression "(int *)piVar5[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 == (int *)0x0) break;" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) (expression_statement "piVar4 = (int *)param_1[1];" (assignment_expression "piVar4 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) (if_statement "if (piVar4 <= piVar6) goto LAB_0001f925;" if (parenthesized_expression "(piVar4 <= piVar6)" ( (binary_expression "piVar4 <= piVar6" identifier <= identifier) )) (goto_statement "goto LAB_0001f925;" goto statement_identifier ;)) })) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar6 < piVar4)" ( (binary_expression "piVar6 < piVar4" identifier < identifier) )) ;) (labeled_statement "LAB_0001f925:\n    piVar6 = (int *)*param_1;" statement_identifier : (expression_statement "piVar6 = (int *)*param_1;" (assignment_expression "piVar6 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;)) })) (if_statement "if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }" if (parenthesized_expression "(piVar6 < piVar4)" ( (binary_expression "piVar6 < piVar4" identifier < identifier) )) (compound_statement "{\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }" { (do_statement "do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);" do (compound_statement "{\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    }" { (expression_statement "pvVar2 = (void *)piVar6[1];" (assignment_expression "pvVar2 = (void *)piVar6[1]" identifier = (cast_expression "(void *)piVar6[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ]))) ;) (while_statement "while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }" while (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }" { (expression_statement "pvVar1 = *(void **)((int)pvVar2 + 4);" (assignment_expression "pvVar1 = *(void **)((int)pvVar2 + 4)" identifier = (pointer_expression "*(void **)((int)pvVar2 + 4)" * (cast_expression "(void **)((int)pvVar2 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + 4)" ( (binary_expression "(int)pvVar2 + 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (expression_statement "pvVar2 = pvVar1;" (assignment_expression "pvVar2 = pvVar1" identifier = identifier) ;) })) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar6 < (int *)param_1[1])" ( (binary_expression "piVar6 < (int *)param_1[1]" identifier < (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) ;) })) (labeled_statement "LAB_0001f95d:\n  pvVar2 = (void *)param_1[9];" statement_identifier : (expression_statement "pvVar2 = (void *)param_1[9];" (assignment_expression "pvVar2 = (void *)param_1[9]" identifier = (cast_expression "(void *)param_1[9]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ]))) ;)) (while_statement "while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }" while (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }" { (expression_statement "pvVar1 = *(void **)((int)pvVar2 + 4);" (assignment_expression "pvVar1 = *(void **)((int)pvVar2 + 4)" identifier = (pointer_expression "*(void **)((int)pvVar2 + 4)" * (cast_expression "(void **)((int)pvVar2 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + 4)" ( (binary_expression "(int)pvVar2 + 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (expression_statement "pvVar2 = pvVar1;" (assignment_expression "pvVar2 = pvVar1" identifier = identifier) ;) })) (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" identifier (argument_list "((void *)*param_1)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid hash_free(Hash_table *table)\n\n{\n  void *pvVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  \n  phVar4 = table->bucket;\n  phVar2 = table->bucket_limit;\n  if ((table->data_freer != (Hash_data_freer)0x0) && (table->n_entries != 0)) {\n    if (phVar2 <= phVar4) goto LAB_0001f95d;\n    do {\n      while (pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0) {\n        while( true ) {\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }\n        phVar2 = table->bucket_limit;\n        phVar4 = phVar4 + 1;\n        if (phVar2 <= phVar4) goto LAB_0001f925;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < phVar2);\nLAB_0001f925:\n    phVar4 = table->bucket;\n  }\n  if (phVar4 < phVar2) {\n    do {\n      phVar2 = phVar4->next;\n      while (phVar2 != (hash_entry *)0x0) {\n        phVar3 = phVar2->next;\n        free(phVar2);\n        phVar2 = phVar3;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);\n  }\nLAB_0001f95d:\n  phVar4 = table->free_entry_list;\n  while (phVar4 != (hash_entry *)0x0) {\n    phVar2 = phVar4->next;\n    free(phVar4);\n    phVar4 = phVar2;\n  }\n  free(table->bucket);\n  free(table);\n  return;\n}\n\n" comment comment (function_definition "void hash_free(Hash_table *table)\n\n{\n  void *pvVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  \n  phVar4 = table->bucket;\n  phVar2 = table->bucket_limit;\n  if ((table->data_freer != (Hash_data_freer)0x0) && (table->n_entries != 0)) {\n    if (phVar2 <= phVar4) goto LAB_0001f95d;\n    do {\n      while (pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0) {\n        while( true ) {\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }\n        phVar2 = table->bucket_limit;\n        phVar4 = phVar4 + 1;\n        if (phVar2 <= phVar4) goto LAB_0001f925;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < phVar2);\nLAB_0001f925:\n    phVar4 = table->bucket;\n  }\n  if (phVar4 < phVar2) {\n    do {\n      phVar2 = phVar4->next;\n      while (phVar2 != (hash_entry *)0x0) {\n        phVar3 = phVar2->next;\n        free(phVar2);\n        phVar2 = phVar3;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);\n  }\nLAB_0001f95d:\n  phVar4 = table->free_entry_list;\n  while (phVar4 != (hash_entry *)0x0) {\n    phVar2 = phVar4->next;\n    free(phVar4);\n    phVar4 = phVar2;\n  }\n  free(table->bucket);\n  free(table);\n  return;\n}" primitive_type (function_declarator "hash_free(Hash_table *table)" identifier (parameter_list "(Hash_table *table)" ( (parameter_declaration "Hash_table *table" type_identifier (pointer_declarator "*table" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  \n  phVar4 = table->bucket;\n  phVar2 = table->bucket_limit;\n  if ((table->data_freer != (Hash_data_freer)0x0) && (table->n_entries != 0)) {\n    if (phVar2 <= phVar4) goto LAB_0001f95d;\n    do {\n      while (pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0) {\n        while( true ) {\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }\n        phVar2 = table->bucket_limit;\n        phVar4 = phVar4 + 1;\n        if (phVar2 <= phVar4) goto LAB_0001f925;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < phVar2);\nLAB_0001f925:\n    phVar4 = table->bucket;\n  }\n  if (phVar4 < phVar2) {\n    do {\n      phVar2 = phVar4->next;\n      while (phVar2 != (hash_entry *)0x0) {\n        phVar3 = phVar2->next;\n        free(phVar2);\n        phVar2 = phVar3;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);\n  }\nLAB_0001f95d:\n  phVar4 = table->free_entry_list;\n  while (phVar4 != (hash_entry *)0x0) {\n    phVar2 = phVar4->next;\n    free(phVar4);\n    phVar4 = phVar2;\n  }\n  free(table->bucket);\n  free(table);\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "hash_entry *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (declaration "hash_entry *phVar3;" type_identifier (pointer_declarator "*phVar3" * identifier) ;) (declaration "hash_entry *phVar4;" type_identifier (pointer_declarator "*phVar4" * identifier) ;) (expression_statement "phVar4 = table->bucket;" (assignment_expression "phVar4 = table->bucket" identifier = (field_expression "table->bucket" identifier -> field_identifier)) ;) (expression_statement "phVar2 = table->bucket_limit;" (assignment_expression "phVar2 = table->bucket_limit" identifier = (field_expression "table->bucket_limit" identifier -> field_identifier)) ;) (if_statement "if ((table->data_freer != (Hash_data_freer)0x0) && (table->n_entries != 0)) {\n    if (phVar2 <= phVar4) goto LAB_0001f95d;\n    do {\n      while (pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0) {\n        while( true ) {\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }\n        phVar2 = table->bucket_limit;\n        phVar4 = phVar4 + 1;\n        if (phVar2 <= phVar4) goto LAB_0001f925;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < phVar2);\nLAB_0001f925:\n    phVar4 = table->bucket;\n  }" if (parenthesized_expression "((table->data_freer != (Hash_data_freer)0x0) && (table->n_entries != 0))" ( (binary_expression "(table->data_freer != (Hash_data_freer)0x0) && (table->n_entries != 0)" (parenthesized_expression "(table->data_freer != (Hash_data_freer)0x0)" ( (binary_expression "table->data_freer != (Hash_data_freer)0x0" (field_expression "table->data_freer" identifier -> field_identifier) != (cast_expression "(Hash_data_freer)0x0" ( (type_descriptor "Hash_data_freer" type_identifier) ) number_literal)) )) && (parenthesized_expression "(table->n_entries != 0)" ( (binary_expression "table->n_entries != 0" (field_expression "table->n_entries" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n    if (phVar2 <= phVar4) goto LAB_0001f95d;\n    do {\n      while (pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0) {\n        while( true ) {\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }\n        phVar2 = table->bucket_limit;\n        phVar4 = phVar4 + 1;\n        if (phVar2 <= phVar4) goto LAB_0001f925;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < phVar2);\nLAB_0001f925:\n    phVar4 = table->bucket;\n  }" { (if_statement "if (phVar2 <= phVar4) goto LAB_0001f95d;" if (parenthesized_expression "(phVar2 <= phVar4)" ( (binary_expression "phVar2 <= phVar4" identifier <= identifier) )) (goto_statement "goto LAB_0001f95d;" goto statement_identifier ;)) (do_statement "do {\n      while (pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0) {\n        while( true ) {\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }\n        phVar2 = table->bucket_limit;\n        phVar4 = phVar4 + 1;\n        if (phVar2 <= phVar4) goto LAB_0001f925;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < phVar2);" do (compound_statement "{\n      while (pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0) {\n        while( true ) {\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }\n        phVar2 = table->bucket_limit;\n        phVar4 = phVar4 + 1;\n        if (phVar2 <= phVar4) goto LAB_0001f925;\n      }\n      phVar4 = phVar4 + 1;\n    }" { (while_statement "while (pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0) {\n        while( true ) {\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }\n        phVar2 = table->bucket_limit;\n        phVar4 = phVar4 + 1;\n        if (phVar2 <= phVar4) goto LAB_0001f925;\n      }" while (parenthesized_expression "(pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0)" ( (comma_expression "pvVar1 = phVar4->data, phVar3 = phVar4, pvVar1 != (void *)0x0" (assignment_expression "pvVar1 = phVar4->data" identifier = (field_expression "phVar4->data" identifier -> field_identifier)) , (comma_expression "phVar3 = phVar4, pvVar1 != (void *)0x0" (assignment_expression "phVar3 = phVar4" identifier = identifier) , (binary_expression "pvVar1 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)))) )) (compound_statement "{\n        while( true ) {\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }\n        phVar2 = table->bucket_limit;\n        phVar4 = phVar4 + 1;\n        if (phVar2 <= phVar4) goto LAB_0001f925;\n      }" { (while_statement "while( true ) {\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          (*table->data_freer)(pvVar1);\n          phVar3 = phVar3->next;\n          if (phVar3 == (hash_entry *)0x0) break;\n          pvVar1 = phVar3->data;\n        }" { (expression_statement "(*table->data_freer)(pvVar1);" (call_expression "(*table->data_freer)(pvVar1)" (parenthesized_expression "(*table->data_freer)" ( (pointer_expression "*table->data_freer" * (field_expression "table->data_freer" identifier -> field_identifier)) )) (argument_list "(pvVar1)" ( identifier ))) ;) (expression_statement "phVar3 = phVar3->next;" (assignment_expression "phVar3 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (if_statement "if (phVar3 == (hash_entry *)0x0) break;" if (parenthesized_expression "(phVar3 == (hash_entry *)0x0)" ( (binary_expression "phVar3 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pvVar1 = phVar3->data;" (assignment_expression "pvVar1 = phVar3->data" identifier = (field_expression "phVar3->data" identifier -> field_identifier)) ;) })) (expression_statement "phVar2 = table->bucket_limit;" (assignment_expression "phVar2 = table->bucket_limit" identifier = (field_expression "table->bucket_limit" identifier -> field_identifier)) ;) (expression_statement "phVar4 = phVar4 + 1;" (assignment_expression "phVar4 = phVar4 + 1" identifier = (binary_expression "phVar4 + 1" identifier + number_literal)) ;) (if_statement "if (phVar2 <= phVar4) goto LAB_0001f925;" if (parenthesized_expression "(phVar2 <= phVar4)" ( (binary_expression "phVar2 <= phVar4" identifier <= identifier) )) (goto_statement "goto LAB_0001f925;" goto statement_identifier ;)) })) (expression_statement "phVar4 = phVar4 + 1;" (assignment_expression "phVar4 = phVar4 + 1" identifier = (binary_expression "phVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(phVar4 < phVar2)" ( (binary_expression "phVar4 < phVar2" identifier < identifier) )) ;) (labeled_statement "LAB_0001f925:\n    phVar4 = table->bucket;" statement_identifier : (expression_statement "phVar4 = table->bucket;" (assignment_expression "phVar4 = table->bucket" identifier = (field_expression "table->bucket" identifier -> field_identifier)) ;)) })) (if_statement "if (phVar4 < phVar2) {\n    do {\n      phVar2 = phVar4->next;\n      while (phVar2 != (hash_entry *)0x0) {\n        phVar3 = phVar2->next;\n        free(phVar2);\n        phVar2 = phVar3;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);\n  }" if (parenthesized_expression "(phVar4 < phVar2)" ( (binary_expression "phVar4 < phVar2" identifier < identifier) )) (compound_statement "{\n    do {\n      phVar2 = phVar4->next;\n      while (phVar2 != (hash_entry *)0x0) {\n        phVar3 = phVar2->next;\n        free(phVar2);\n        phVar2 = phVar3;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);\n  }" { (do_statement "do {\n      phVar2 = phVar4->next;\n      while (phVar2 != (hash_entry *)0x0) {\n        phVar3 = phVar2->next;\n        free(phVar2);\n        phVar2 = phVar3;\n      }\n      phVar4 = phVar4 + 1;\n    } while (phVar4 < table->bucket_limit);" do (compound_statement "{\n      phVar2 = phVar4->next;\n      while (phVar2 != (hash_entry *)0x0) {\n        phVar3 = phVar2->next;\n        free(phVar2);\n        phVar2 = phVar3;\n      }\n      phVar4 = phVar4 + 1;\n    }" { (expression_statement "phVar2 = phVar4->next;" (assignment_expression "phVar2 = phVar4->next" identifier = (field_expression "phVar4->next" identifier -> field_identifier)) ;) (while_statement "while (phVar2 != (hash_entry *)0x0) {\n        phVar3 = phVar2->next;\n        free(phVar2);\n        phVar2 = phVar3;\n      }" while (parenthesized_expression "(phVar2 != (hash_entry *)0x0)" ( (binary_expression "phVar2 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        phVar3 = phVar2->next;\n        free(phVar2);\n        phVar2 = phVar3;\n      }" { (expression_statement "phVar3 = phVar2->next;" (assignment_expression "phVar3 = phVar2->next" identifier = (field_expression "phVar2->next" identifier -> field_identifier)) ;) (expression_statement "free(phVar2);" (call_expression "free(phVar2)" identifier (argument_list "(phVar2)" ( identifier ))) ;) (expression_statement "phVar2 = phVar3;" (assignment_expression "phVar2 = phVar3" identifier = identifier) ;) })) (expression_statement "phVar4 = phVar4 + 1;" (assignment_expression "phVar4 = phVar4 + 1" identifier = (binary_expression "phVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(phVar4 < table->bucket_limit)" ( (binary_expression "phVar4 < table->bucket_limit" identifier < (field_expression "table->bucket_limit" identifier -> field_identifier)) )) ;) })) (labeled_statement "LAB_0001f95d:\n  phVar4 = table->free_entry_list;" statement_identifier : (expression_statement "phVar4 = table->free_entry_list;" (assignment_expression "phVar4 = table->free_entry_list" identifier = (field_expression "table->free_entry_list" identifier -> field_identifier)) ;)) (while_statement "while (phVar4 != (hash_entry *)0x0) {\n    phVar2 = phVar4->next;\n    free(phVar4);\n    phVar4 = phVar2;\n  }" while (parenthesized_expression "(phVar4 != (hash_entry *)0x0)" ( (binary_expression "phVar4 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    phVar2 = phVar4->next;\n    free(phVar4);\n    phVar4 = phVar2;\n  }" { (expression_statement "phVar2 = phVar4->next;" (assignment_expression "phVar2 = phVar4->next" identifier = (field_expression "phVar4->next" identifier -> field_identifier)) ;) (expression_statement "free(phVar4);" (call_expression "free(phVar4)" identifier (argument_list "(phVar4)" ( identifier ))) ;) (expression_statement "phVar4 = phVar2;" (assignment_expression "phVar4 = phVar2" identifier = identifier) ;) })) (expression_statement "free(table->bucket);" (call_expression "free(table->bucket)" identifier (argument_list "(table->bucket)" ( (field_expression "table->bucket" identifier -> field_identifier) ))) ;) (expression_statement "free(table);" (call_expression "free(table)" identifier (argument_list "(table)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001f8c0(uint *param_1)\n\n{\n  void *pvVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  int *piVar6;\n  \n  piVar6 = (int *)*param_1;\n  piVar4 = (int *)param_1[1];\n  if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }\n  if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }\nLAB_0001f95d:\n  pvVar2 = (void *)param_1[9];\n  while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }\n  free((void *)*param_1);\n  free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0001f8c0(uint *param_1)\n\n{\n  void *pvVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  int *piVar6;\n  \n  piVar6 = (int *)*param_1;\n  piVar4 = (int *)param_1[1];\n  if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }\n  if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }\nLAB_0001f95d:\n  pvVar2 = (void *)param_1[9];\n  while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }\n  free((void *)*param_1);\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0001f8c0(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  void *pvVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  int *piVar6;\n  \n  piVar6 = (int *)*param_1;\n  piVar4 = (int *)param_1[1];\n  if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }\n  if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }\nLAB_0001f95d:\n  pvVar2 = (void *)param_1[9];\n  while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }\n  free((void *)*param_1);\n  free(param_1);\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "piVar6 = (int *)*param_1;" (assignment_expression "piVar6 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "piVar4 = (int *)param_1[1];" (assignment_expression "piVar4 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }" if (parenthesized_expression "((param_1[8] != 0) && (param_1[4] != 0))" ( (binary_expression "(param_1[8] != 0) && (param_1[4] != 0)" (parenthesized_expression "(param_1[8] != 0)" ( (binary_expression "param_1[8] != 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) != number_literal) )) && (parenthesized_expression "(param_1[4] != 0)" ( (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }" { (if_statement "if (piVar4 <= piVar6) goto LAB_0001f95d;" if (parenthesized_expression "(piVar4 <= piVar6)" ( (binary_expression "piVar4 <= piVar6" identifier <= identifier) )) (goto_statement "goto LAB_0001f95d;" goto statement_identifier ;)) (do_statement "do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);" do (compound_statement "{\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    }" { (while_statement "while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }" while (parenthesized_expression "(iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0)" ( (comma_expression "iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0" (assignment_expression "iVar3 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) , (comma_expression "piVar5 = piVar6, iVar3 != 0" (assignment_expression "piVar5 = piVar6" identifier = identifier) , (binary_expression "iVar3 != 0" identifier != number_literal))) )) (compound_statement "{\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }" { (while_statement "while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }" { (expression_statement "(*(code *)param_1[8])(iVar3);" (call_expression "(*(code *)param_1[8])(iVar3)" (parenthesized_expression "(*(code *)param_1[8])" ( (pointer_expression "*(code *)param_1[8]" * (cast_expression "(code *)param_1[8]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[8]" identifier [ number_literal ]))) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "piVar5 = (int *)piVar5[1];" (assignment_expression "piVar5 = (int *)piVar5[1]" identifier = (cast_expression "(int *)piVar5[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ]))) ;) (if_statement "if (piVar5 == (int *)0x0) break;" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) })) (expression_statement "piVar4 = (int *)param_1[1];" (assignment_expression "piVar4 = (int *)param_1[1]" identifier = (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) (if_statement "if (piVar4 <= piVar6) goto LAB_0001f925;" if (parenthesized_expression "(piVar4 <= piVar6)" ( (binary_expression "piVar4 <= piVar6" identifier <= identifier) )) (goto_statement "goto LAB_0001f925;" goto statement_identifier ;)) })) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar6 < piVar4)" ( (binary_expression "piVar6 < piVar4" identifier < identifier) )) ;) (labeled_statement "LAB_0001f925:\n    piVar6 = (int *)*param_1;" statement_identifier : (expression_statement "piVar6 = (int *)*param_1;" (assignment_expression "piVar6 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;)) })) (if_statement "if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }" if (parenthesized_expression "(piVar6 < piVar4)" ( (binary_expression "piVar6 < piVar4" identifier < identifier) )) (compound_statement "{\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }" { (do_statement "do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);" do (compound_statement "{\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    }" { (expression_statement "pvVar2 = (void *)piVar6[1];" (assignment_expression "pvVar2 = (void *)piVar6[1]" identifier = (cast_expression "(void *)piVar6[1]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ]))) ;) (while_statement "while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }" while (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }" { (expression_statement "pvVar1 = *(void **)((int)pvVar2 + 4);" (assignment_expression "pvVar1 = *(void **)((int)pvVar2 + 4)" identifier = (pointer_expression "*(void **)((int)pvVar2 + 4)" * (cast_expression "(void **)((int)pvVar2 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + 4)" ( (binary_expression "(int)pvVar2 + 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (expression_statement "pvVar2 = pvVar1;" (assignment_expression "pvVar2 = pvVar1" identifier = identifier) ;) })) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar6 < (int *)param_1[1])" ( (binary_expression "piVar6 < (int *)param_1[1]" identifier < (cast_expression "(int *)param_1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) )) ;) })) (labeled_statement "LAB_0001f95d:\n  pvVar2 = (void *)param_1[9];" statement_identifier : (expression_statement "pvVar2 = (void *)param_1[9];" (assignment_expression "pvVar2 = (void *)param_1[9]" identifier = (cast_expression "(void *)param_1[9]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ]))) ;)) (while_statement "while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }" while (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }" { (expression_statement "pvVar1 = *(void **)((int)pvVar2 + 4);" (assignment_expression "pvVar1 = *(void **)((int)pvVar2 + 4)" identifier = (pointer_expression "*(void **)((int)pvVar2 + 4)" * (cast_expression "(void **)((int)pvVar2 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + 4)" ( (binary_expression "(int)pvVar2 + 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (expression_statement "pvVar2 = pvVar1;" (assignment_expression "pvVar2 = pvVar1" identifier = identifier) ;) })) (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" identifier (argument_list "((void *)*param_1)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT))) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;)) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001f8c0(uint *param_1)\n\n{\n  void *pvVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  int *piVar6;\n  \n  piVar6 = (int *)*param_1;\n  piVar4 = (int *)param_1[1];\n  if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }\n  if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }\nLAB_0001f95d:\n  pvVar2 = (void *)param_1[9];\n  while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }\n  free((void *)*param_1);\n  free(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001f8c0(uint *param_1)" (identifier "FUN_0001f8c0") (parameter_list "(uint *param_1)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  void *pvVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  int *piVar6;\n  \n  piVar6 = (int *)*param_1;\n  piVar4 = (int *)param_1[1];\n  if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }\n  if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }\nLAB_0001f95d:\n  pvVar2 = (void *)param_1[9];\n  while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }\n  free((void *)*param_1);\n  free(param_1);\n  return;\n}" ({ "{") (declaration "void *pvVar1;" (primitive_type "void") (pointer_declarator "*pvVar1" (* "*") (identifier "pvVar1")) (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (expression_statement "piVar6 = (int *)*param_1;" (assignment_expression "piVar6 = (int *)*param_1" (identifier "piVar6") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "piVar4 = (int *)param_1[1];" (assignment_expression "piVar4 = (int *)param_1[1]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if ((param_1[8] != 0) && (param_1[4] != 0)) {\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }" (if "if") (parenthesized_expression "((param_1[8] != 0) && (param_1[4] != 0))" (( "(") (binary_expression "(param_1[8] != 0) && (param_1[4] != 0)" (parenthesized_expression "(param_1[8] != 0)" (( "(") (binary_expression "param_1[8] != 0" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1[4] != 0)" (( "(") (binary_expression "param_1[4] != 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    if (piVar4 <= piVar6) goto LAB_0001f95d;\n    do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);\nLAB_0001f925:\n    piVar6 = (int *)*param_1;\n  }" ({ "{") (if_statement "if (piVar4 <= piVar6) goto LAB_0001f95d;" (if "if") (parenthesized_expression "(piVar4 <= piVar6)" (( "(") (binary_expression "piVar4 <= piVar6" (identifier "piVar4") (<= "<=") (identifier "piVar6")) () ")")) (goto_statement "goto LAB_0001f95d;" (goto "goto") (statement_identifier "LAB_0001f95d") (; ";"))) (do_statement "do {\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < piVar4);" (do "do") (compound_statement "{\n      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }\n      piVar6 = piVar6 + 2;\n    }" ({ "{") (while_statement "while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }" (while "while") (parenthesized_expression "(iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0)" (( "(") (comma_expression "iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0" (assignment_expression "iVar3 = *piVar6" (identifier "iVar3") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (, ",") (comma_expression "piVar5 = piVar6, iVar3 != 0" (assignment_expression "piVar5 = piVar6" (identifier "piVar5") (= "=") (identifier "piVar6")) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")))) () ")")) (compound_statement "{\n        while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }\n        piVar4 = (int *)param_1[1];\n        piVar6 = piVar6 + 2;\n        if (piVar4 <= piVar6) goto LAB_0001f925;\n      }" ({ "{") (while_statement "while( true ) {\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          (*(code *)param_1[8])(iVar3);\n          piVar5 = (int *)piVar5[1];\n          if (piVar5 == (int *)0x0) break;\n          iVar3 = *piVar5;\n        }" ({ "{") (expression_statement "(*(code *)param_1[8])(iVar3);" (call_expression "(*(code *)param_1[8])(iVar3)" (parenthesized_expression "(*(code *)param_1[8])" (( "(") (pointer_expression "*(code *)param_1[8]" (* "*") (cast_expression "(code *)param_1[8]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "piVar5 = (int *)piVar5[1];" (assignment_expression "piVar5 = (int *)piVar5[1]" (identifier "piVar5") (= "=") (cast_expression "(int *)piVar5[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = *piVar5;" (assignment_expression "iVar3 = *piVar5" (identifier "iVar3") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)param_1[1];" (assignment_expression "piVar4 = (int *)param_1[1]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (piVar4 <= piVar6) goto LAB_0001f925;" (if "if") (parenthesized_expression "(piVar4 <= piVar6)" (( "(") (binary_expression "piVar4 <= piVar6" (identifier "piVar4") (<= "<=") (identifier "piVar6")) () ")")) (goto_statement "goto LAB_0001f925;" (goto "goto") (statement_identifier "LAB_0001f925") (; ";"))) (} "}"))) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar6 < piVar4)" (( "(") (binary_expression "piVar6 < piVar4" (identifier "piVar6") (< "<") (identifier "piVar4")) () ")")) (; ";")) (labeled_statement "LAB_0001f925:\n    piVar6 = (int *)*param_1;" (statement_identifier "LAB_0001f925") (: ":") (expression_statement "piVar6 = (int *)*param_1;" (assignment_expression "piVar6 = (int *)*param_1" (identifier "piVar6") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";"))) (} "}"))) (if_statement "if (piVar6 < piVar4) {\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }" (if "if") (parenthesized_expression "(piVar6 < piVar4)" (( "(") (binary_expression "piVar6 < piVar4" (identifier "piVar6") (< "<") (identifier "piVar4")) () ")")) (compound_statement "{\n    do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);\n  }" ({ "{") (do_statement "do {\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    } while (piVar6 < (int *)param_1[1]);" (do "do") (compound_statement "{\n      pvVar2 = (void *)piVar6[1];\n      while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }\n      piVar6 = piVar6 + 2;\n    }" ({ "{") (expression_statement "pvVar2 = (void *)piVar6[1];" (assignment_expression "pvVar2 = (void *)piVar6[1]" (identifier "pvVar2") (= "=") (cast_expression "(void *)piVar6[1]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")))) (; ";")) (while_statement "while (pvVar2 != (void *)0x0) {\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }" (while "while") (parenthesized_expression "(pvVar2 != (void *)0x0)" (( "(") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        pvVar1 = *(void **)((int)pvVar2 + 4);\n        free(pvVar2);\n        pvVar2 = pvVar1;\n      }" ({ "{") (expression_statement "pvVar1 = *(void **)((int)pvVar2 + 4);" (assignment_expression "pvVar1 = *(void **)((int)pvVar2 + 4)" (identifier "pvVar1") (= "=") (pointer_expression "*(void **)((int)pvVar2 + 4)" (* "*") (cast_expression "(void **)((int)pvVar2 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)pvVar2 + 4)" (( "(") (binary_expression "(int)pvVar2 + 4" (cast_expression "(int)pvVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar2")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" (identifier "free") (argument_list "(pvVar2)" (( "(") (identifier "pvVar2") () ")"))) (; ";")) (expression_statement "pvVar2 = pvVar1;" (assignment_expression "pvVar2 = pvVar1" (identifier "pvVar2") (= "=") (identifier "pvVar1")) (; ";")) (} "}"))) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar6 < (int *)param_1[1])" (( "(") (binary_expression "piVar6 < (int *)param_1[1]" (identifier "piVar6") (< "<") (cast_expression "(int *)param_1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_0001f95d:\n  pvVar2 = (void *)param_1[9];" (statement_identifier "LAB_0001f95d") (: ":") (expression_statement "pvVar2 = (void *)param_1[9];" (assignment_expression "pvVar2 = (void *)param_1[9]" (identifier "pvVar2") (= "=") (cast_expression "(void *)param_1[9]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")))) (; ";"))) (while_statement "while (pvVar2 != (void *)0x0) {\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }" (while "while") (parenthesized_expression "(pvVar2 != (void *)0x0)" (( "(") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pvVar1 = *(void **)((int)pvVar2 + 4);\n    free(pvVar2);\n    pvVar2 = pvVar1;\n  }" ({ "{") (expression_statement "pvVar1 = *(void **)((int)pvVar2 + 4);" (assignment_expression "pvVar1 = *(void **)((int)pvVar2 + 4)" (identifier "pvVar1") (= "=") (pointer_expression "*(void **)((int)pvVar2 + 4)" (* "*") (cast_expression "(void **)((int)pvVar2 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)pvVar2 + 4)" (( "(") (binary_expression "(int)pvVar2 + 4" (cast_expression "(int)pvVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar2")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" (identifier "free") (argument_list "(pvVar2)" (( "(") (identifier "pvVar2") () ")"))) (; ";")) (expression_statement "pvVar2 = pvVar1;" (assignment_expression "pvVar2 = pvVar1" (identifier "pvVar2") (= "=") (identifier "pvVar1")) (; ";")) (} "}"))) (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" (identifier "free") (argument_list "((void *)*param_1)" (( "(") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(type_1 *table)

{
  void *var_3;
  type_2 *var_1;
  type_2 *var_4;
  type_2 *var_2;
  
  var_2 = table->bucket;
  var_1 = table->bucket_limit;
  if ((table->data_freer != (type_3)0x0) && (table->n_entries != 0)) {
    if (var_1 <= var_2) goto LAB_0001f95d;
    do {
      while (var_3 = var_2->data, var_4 = var_2, var_3 != (void *)0x0) {
        while( true ) {
          (*table->data_freer)(var_3);
          var_4 = var_4->next;
          if (var_4 == (type_2 *)0x0) break;
          var_3 = var_4->data;
        }
        var_1 = table->bucket_limit;
        var_2 = var_2 + 1;
        if (var_1 <= var_2) goto LAB_0001f925;
      }
      var_2 = var_2 + 1;
    } while (var_2 < var_1);
LAB_0001f925:
    var_2 = table->bucket;
  }
  if (var_2 < var_1) {
    do {
      var_1 = var_2->next;
      while (var_1 != (type_2 *)0x0) {
        var_4 = var_1->next;
        var_5(var_1);
        var_1 = var_4;
      }
      var_2 = var_2 + 1;
    } while (var_2 < table->bucket_limit);
  }
LAB_0001f95d:
  var_2 = table->free_entry_list;
  while (var_2 != (type_2 *)0x0) {
    var_1 = var_2->next;
    var_5(var_2);
    var_2 = var_1;
  }
  var_5(table->bucket);
  var_5(table);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))) body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(uint *param_1)

{
  void *pvVar1;
  void *pvVar2;
  int iVar3;
  int *piVar4;
  int *piVar5;
  int *piVar6;
  
  piVar6 = (int *)*param_1;
  piVar4 = (int *)param_1[1];
  if ((param_1[8] != 0) && (param_1[4] != 0)) {
    if (piVar4 <= piVar6) goto LAB_0001f95d;
    do {
      while (iVar3 = *piVar6, piVar5 = piVar6, iVar3 != 0) {
        while( true ) {
          (*(code *)param_1[8])(iVar3);
          piVar5 = (int *)piVar5[1];
          if (piVar5 == (int *)0x0) break;
          iVar3 = *piVar5;
        }
        piVar4 = (int *)param_1[1];
        piVar6 = piVar6 + 2;
        if (piVar4 <= piVar6) goto LAB_0001f925;
      }
      piVar6 = piVar6 + 2;
    } while (piVar6 < piVar4);
LAB_0001f925:
    piVar6 = (int *)*param_1;
  }
  if (piVar6 < piVar4) {
    do {
      pvVar2 = (void *)piVar6[1];
      while (pvVar2 != (void *)0x0) {
        pvVar1 = *(void **)((int)pvVar2 + 4);
        free(pvVar2);
        pvVar2 = pvVar1;
      }
      piVar6 = piVar6 + 2;
    } while (piVar6 < (int *)param_1[1]);
  }
LAB_0001f95d:
  pvVar2 = (void *)param_1[9];
  while (pvVar2 != (void *)0x0) {
    pvVar1 = *(void **)((int)pvVar2 + 4);
    free(pvVar2);
    pvVar2 = pvVar1;
  }
  free((void *)*param_1);
  free(param_1);
  return;
}

