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

void __regparm3 match_ctx_clean(re_match_context_t *mctx)

{
  re_sub_match_top_t *__ptr;
  re_sub_match_last_t *__ptr_00;
  int iVar1;
  int local_24;
  
  if (0 < mctx->nsub_tops) {
    local_24 = 0;
    do {
      __ptr = mctx->sub_tops[local_24];
      if (0 < __ptr->nlasts) {
        iVar1 = 0;
        do {
          __ptr_00 = __ptr->lasts[iVar1];
          iVar1 = iVar1 + 1;
          free((__ptr_00->path).array);
          free(__ptr_00);
        } while (iVar1 < __ptr->nlasts);
      }
      free(__ptr->lasts);
      if (__ptr->path != (state_array_t *)0x0) {
        free(__ptr->path->array);
        free(__ptr->path);
      }
      free(__ptr);
      local_24 = local_24 + 1;
    } while (local_24 < mctx->nsub_tops);
  }
  mctx->nsub_tops = 0;
  mctx->nbkref_ents = 0;
  return;
}



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

void __regparm3 FUN_00017d40(int param_1)

{
  void *__ptr;
  void *__ptr_00;
  int iVar1;
  undefined4 local_24;
  
  if (0 < *(int *)(param_1 + 0x7c)) {
    local_24 = 0;
    do {
      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);
      if (0 < *(int *)((int)__ptr + 0x10)) {
        iVar1 = 0;
        do {
          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);
          iVar1 = iVar1 + 1;
          free(*(void **)((int)__ptr_00 + 0x10));
          free(__ptr_00);
        } while (iVar1 < *(int *)((int)__ptr + 0x10));
      }
      free(*(void **)((int)__ptr + 0x14));
      if (*(int *)((int)__ptr + 8) != 0) {
        free(*(void **)(*(int *)((int)__ptr + 8) + 8));
        free(*(void **)((int)__ptr + 8));
      }
      free(__ptr);
      local_24 = local_24 + 1;
    } while (local_24 < *(int *)(param_1 + 0x7c));
  }
  *(undefined4 *)(param_1 + 0x7c) = 0;
  *(undefined4 *)(param_1 + 0x6c) = 0;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00011ce0
ADD EBX,0x152b7
SUB ESP,0x1c
MOV ECX,dword ptr [EAX + 0x7c]
MOV dword ptr [ESP + 0xc],EAX
TEST ECX,ECX
JLE 0x00017e02
MOV dword ptr [ESP + 0x8],0x0
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX + 0x84]
MOV EBP,dword ptr [EAX + EDX*0x4]
MOV EDX,dword ptr [EBP + 0x10]
TEST EDX,EDX
JLE 0x00017db4
XOR ESI,ESI
LEA ESI,[ESI]
MOV EAX,dword ptr [EBP + 0x14]
SUB ESP,0xc
MOV EDI,dword ptr [EAX + ESI*0x4]
ADD ESI,0x1
PUSH dword ptr [EDI + 0x10]
CALL 0x000110c0
MOV dword ptr [ESP],EDI
CALL 0x000110c0
ADD ESP,0x10
CMP dword ptr [EBP + 0x10],ESI
JG 0x00017d90
SUB ESP,0xc
PUSH dword ptr [EBP + 0x14]
CALL 0x000110c0
MOV EAX,dword ptr [EBP + 0x8]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00017de0
SUB ESP,0xc
PUSH dword ptr [EAX + 0x8]
CALL 0x000110c0
POP EAX
PUSH dword ptr [EBP + 0x8]
CALL 0x000110c0
ADD ESP,0x10
SUB ESP,0xc
PUSH EBP
CALL 0x000110c0
ADD dword ptr [ESP + 0x18],0x1
MOV EAX,dword ptr [ESP + 0x18]
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
CMP dword ptr [ECX + 0x7c],EAX
JG 0x00017d70
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX + 0x7c],0x0
MOV dword ptr [EAX + 0x6c],0x0
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 __regparm3 FUN_00017d40(int param_1)\n\n{\n  void *__ptr;\n  void *__ptr_00;\n  int iVar1;\n  undefined4 local_24;\n  \n  if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00017d40(int param_1)\n\n{\n  void *__ptr;\n  void *__ptr_00;\n  int iVar1;\n  undefined4 local_24;\n  \n  if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00017d40(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  void *__ptr;\n  void *__ptr_00;\n  int iVar1;\n  undefined4 local_24;\n  \n  if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  return;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (if_statement "if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x7c))" ( (binary_expression "0 < *(int *)(param_1 + 0x7c)" number_literal < (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) )) (compound_statement "{\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (do_statement "do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));" do (compound_statement "{\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    }" { (expression_statement "__ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);" (assignment_expression "__ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4)" identifier = (pointer_expression "*(void **)(*(int *)(param_1 + 0x84) + local_24 * 4)" * (cast_expression "(void **)(*(int *)(param_1 + 0x84) + local_24 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x84) + local_24 * 4)" ( (binary_expression "*(int *)(param_1 + 0x84) + local_24 * 4" (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) + (binary_expression "local_24 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }" if (parenthesized_expression "(0 < *(int *)((int)__ptr + 0x10))" ( (binary_expression "0 < *(int *)((int)__ptr + 0x10)" number_literal < (pointer_expression "*(int *)((int)__ptr + 0x10)" * (cast_expression "(int *)((int)__ptr + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 0x10)" ( (binary_expression "(int)__ptr + 0x10" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));" do (compound_statement "{\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        }" { (expression_statement "__ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);" (assignment_expression "__ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" identifier = (pointer_expression "*(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" * (cast_expression "(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" ( (binary_expression "*(int *)((int)__ptr + 0x14) + iVar1 * 4" (pointer_expression "*(int *)((int)__ptr + 0x14)" * (cast_expression "(int *)((int)__ptr + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 0x14)" ( (binary_expression "(int)__ptr + 0x14" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "free(*(void **)((int)__ptr_00 + 0x10));" (call_expression "free(*(void **)((int)__ptr_00 + 0x10))" identifier (argument_list "(*(void **)((int)__ptr_00 + 0x10))" ( (pointer_expression "*(void **)((int)__ptr_00 + 0x10)" * (cast_expression "(void **)((int)__ptr_00 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr_00 + 0x10)" ( (binary_expression "(int)__ptr_00 + 0x10" (cast_expression "(int)__ptr_00" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) }) while (parenthesized_expression "(iVar1 < *(int *)((int)__ptr + 0x10))" ( (binary_expression "iVar1 < *(int *)((int)__ptr + 0x10)" identifier < (pointer_expression "*(int *)((int)__ptr + 0x10)" * (cast_expression "(int *)((int)__ptr + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 0x10)" ( (binary_expression "(int)__ptr + 0x10" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) ;) })) (expression_statement "free(*(void **)((int)__ptr + 0x14));" (call_expression "free(*(void **)((int)__ptr + 0x14))" identifier (argument_list "(*(void **)((int)__ptr + 0x14))" ( (pointer_expression "*(void **)((int)__ptr + 0x14)" * (cast_expression "(void **)((int)__ptr + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 0x14)" ( (binary_expression "(int)__ptr + 0x14" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (if_statement "if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }" if (parenthesized_expression "(*(int *)((int)__ptr + 8) != 0)" ( (binary_expression "*(int *)((int)__ptr + 8) != 0" (pointer_expression "*(int *)((int)__ptr + 8)" * (cast_expression "(int *)((int)__ptr + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }" { (expression_statement "free(*(void **)(*(int *)((int)__ptr + 8) + 8));" (call_expression "free(*(void **)(*(int *)((int)__ptr + 8) + 8))" identifier (argument_list "(*(void **)(*(int *)((int)__ptr + 8) + 8))" ( (pointer_expression "*(void **)(*(int *)((int)__ptr + 8) + 8)" * (cast_expression "(void **)(*(int *)((int)__ptr + 8) + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)__ptr + 8) + 8)" ( (binary_expression "*(int *)((int)__ptr + 8) + 8" (pointer_expression "*(int *)((int)__ptr + 8)" * (cast_expression "(int *)((int)__ptr + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "free(*(void **)((int)__ptr + 8));" (call_expression "free(*(void **)((int)__ptr + 8))" identifier (argument_list "(*(void **)((int)__ptr + 8))" ( (pointer_expression "*(void **)((int)__ptr + 8)" * (cast_expression "(void **)((int)__ptr + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "local_24 = local_24 + 1;" (assignment_expression "local_24 = local_24 + 1" identifier = (binary_expression "local_24 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_24 < *(int *)(param_1 + 0x7c))" ( (binary_expression "local_24 < *(int *)(param_1 + 0x7c)" identifier < (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) )) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 match_ctx_clean(re_match_context_t *mctx)\n\n{\n  re_sub_match_top_t *__ptr;\n  re_sub_match_last_t *__ptr_00;\n  int iVar1;\n  int local_24;\n  \n  if (0 < mctx->nsub_tops) {\n    local_24 = 0;\n    do {\n      __ptr = mctx->sub_tops[local_24];\n      if (0 < __ptr->nlasts) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        } while (iVar1 < __ptr->nlasts);\n      }\n      free(__ptr->lasts);\n      if (__ptr->path != (state_array_t *)0x0) {\n        free(__ptr->path->array);\n        free(__ptr->path);\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < mctx->nsub_tops);\n  }\n  mctx->nsub_tops = 0;\n  mctx->nbkref_ents = 0;\n  return;\n}\n\n" comment (function_definition "void __regparm3 match_ctx_clean(re_match_context_t *mctx)\n\n{\n  re_sub_match_top_t *__ptr;\n  re_sub_match_last_t *__ptr_00;\n  int iVar1;\n  int local_24;\n  \n  if (0 < mctx->nsub_tops) {\n    local_24 = 0;\n    do {\n      __ptr = mctx->sub_tops[local_24];\n      if (0 < __ptr->nlasts) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        } while (iVar1 < __ptr->nlasts);\n      }\n      free(__ptr->lasts);\n      if (__ptr->path != (state_array_t *)0x0) {\n        free(__ptr->path->array);\n        free(__ptr->path);\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < mctx->nsub_tops);\n  }\n  mctx->nsub_tops = 0;\n  mctx->nbkref_ents = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "match_ctx_clean(re_match_context_t *mctx)" identifier (parameter_list "(re_match_context_t *mctx)" ( (parameter_declaration "re_match_context_t *mctx" type_identifier (pointer_declarator "*mctx" * identifier)) ))) (compound_statement "{\n  re_sub_match_top_t *__ptr;\n  re_sub_match_last_t *__ptr_00;\n  int iVar1;\n  int local_24;\n  \n  if (0 < mctx->nsub_tops) {\n    local_24 = 0;\n    do {\n      __ptr = mctx->sub_tops[local_24];\n      if (0 < __ptr->nlasts) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        } while (iVar1 < __ptr->nlasts);\n      }\n      free(__ptr->lasts);\n      if (__ptr->path != (state_array_t *)0x0) {\n        free(__ptr->path->array);\n        free(__ptr->path);\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < mctx->nsub_tops);\n  }\n  mctx->nsub_tops = 0;\n  mctx->nbkref_ents = 0;\n  return;\n}" { (declaration "re_sub_match_top_t *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "re_sub_match_last_t *__ptr_00;" type_identifier (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (if_statement "if (0 < mctx->nsub_tops) {\n    local_24 = 0;\n    do {\n      __ptr = mctx->sub_tops[local_24];\n      if (0 < __ptr->nlasts) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        } while (iVar1 < __ptr->nlasts);\n      }\n      free(__ptr->lasts);\n      if (__ptr->path != (state_array_t *)0x0) {\n        free(__ptr->path->array);\n        free(__ptr->path);\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < mctx->nsub_tops);\n  }" if (parenthesized_expression "(0 < mctx->nsub_tops)" ( (binary_expression "0 < mctx->nsub_tops" number_literal < (field_expression "mctx->nsub_tops" identifier -> field_identifier)) )) (compound_statement "{\n    local_24 = 0;\n    do {\n      __ptr = mctx->sub_tops[local_24];\n      if (0 < __ptr->nlasts) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        } while (iVar1 < __ptr->nlasts);\n      }\n      free(__ptr->lasts);\n      if (__ptr->path != (state_array_t *)0x0) {\n        free(__ptr->path->array);\n        free(__ptr->path);\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < mctx->nsub_tops);\n  }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (do_statement "do {\n      __ptr = mctx->sub_tops[local_24];\n      if (0 < __ptr->nlasts) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        } while (iVar1 < __ptr->nlasts);\n      }\n      free(__ptr->lasts);\n      if (__ptr->path != (state_array_t *)0x0) {\n        free(__ptr->path->array);\n        free(__ptr->path);\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < mctx->nsub_tops);" do (compound_statement "{\n      __ptr = mctx->sub_tops[local_24];\n      if (0 < __ptr->nlasts) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        } while (iVar1 < __ptr->nlasts);\n      }\n      free(__ptr->lasts);\n      if (__ptr->path != (state_array_t *)0x0) {\n        free(__ptr->path->array);\n        free(__ptr->path);\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    }" { (expression_statement "__ptr = mctx->sub_tops[local_24];" (assignment_expression "__ptr = mctx->sub_tops[local_24]" identifier = (subscript_expression "mctx->sub_tops[local_24]" (field_expression "mctx->sub_tops" identifier -> field_identifier) [ identifier ])) ;) (if_statement "if (0 < __ptr->nlasts) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        } while (iVar1 < __ptr->nlasts);\n      }" if (parenthesized_expression "(0 < __ptr->nlasts)" ( (binary_expression "0 < __ptr->nlasts" number_literal < (field_expression "__ptr->nlasts" identifier -> field_identifier)) )) (compound_statement "{\n        iVar1 = 0;\n        do {\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        } while (iVar1 < __ptr->nlasts);\n      }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        } while (iVar1 < __ptr->nlasts);" do (compound_statement "{\n          __ptr_00 = __ptr->lasts[iVar1];\n          iVar1 = iVar1 + 1;\n          free((__ptr_00->path).array);\n          free(__ptr_00);\n        }" { (expression_statement "__ptr_00 = __ptr->lasts[iVar1];" (assignment_expression "__ptr_00 = __ptr->lasts[iVar1]" identifier = (subscript_expression "__ptr->lasts[iVar1]" (field_expression "__ptr->lasts" identifier -> field_identifier) [ identifier ])) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "free((__ptr_00->path).array);" (call_expression "free((__ptr_00->path).array)" identifier (argument_list "((__ptr_00->path).array)" ( (field_expression "(__ptr_00->path).array" (parenthesized_expression "(__ptr_00->path)" ( (field_expression "__ptr_00->path" identifier -> field_identifier) )) . field_identifier) ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) }) while (parenthesized_expression "(iVar1 < __ptr->nlasts)" ( (binary_expression "iVar1 < __ptr->nlasts" identifier < (field_expression "__ptr->nlasts" identifier -> field_identifier)) )) ;) })) (expression_statement "free(__ptr->lasts);" (call_expression "free(__ptr->lasts)" identifier (argument_list "(__ptr->lasts)" ( (field_expression "__ptr->lasts" identifier -> field_identifier) ))) ;) (if_statement "if (__ptr->path != (state_array_t *)0x0) {\n        free(__ptr->path->array);\n        free(__ptr->path);\n      }" if (parenthesized_expression "(__ptr->path != (state_array_t *)0x0)" ( (binary_expression "__ptr->path != (state_array_t *)0x0" (field_expression "__ptr->path" identifier -> field_identifier) != (cast_expression "(state_array_t *)0x0" ( (type_descriptor "state_array_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(__ptr->path->array);\n        free(__ptr->path);\n      }" { (expression_statement "free(__ptr->path->array);" (call_expression "free(__ptr->path->array)" identifier (argument_list "(__ptr->path->array)" ( (field_expression "__ptr->path->array" (field_expression "__ptr->path" identifier -> field_identifier) -> field_identifier) ))) ;) (expression_statement "free(__ptr->path);" (call_expression "free(__ptr->path)" identifier (argument_list "(__ptr->path)" ( (field_expression "__ptr->path" identifier -> field_identifier) ))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "local_24 = local_24 + 1;" (assignment_expression "local_24 = local_24 + 1" identifier = (binary_expression "local_24 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_24 < mctx->nsub_tops)" ( (binary_expression "local_24 < mctx->nsub_tops" identifier < (field_expression "mctx->nsub_tops" identifier -> field_identifier)) )) ;) })) (expression_statement "mctx->nsub_tops = 0;" (assignment_expression "mctx->nsub_tops = 0" (field_expression "mctx->nsub_tops" identifier -> field_identifier) = number_literal) ;) (expression_statement "mctx->nbkref_ents = 0;" (assignment_expression "mctx->nbkref_ents = 0" (field_expression "mctx->nbkref_ents" identifier -> field_identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00017d40(int param_1)\n\n{\n  void *__ptr;\n  void *__ptr_00;\n  int iVar1;\n  undefined4 local_24;\n  \n  if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00017d40(int param_1)\n\n{\n  void *__ptr;\n  void *__ptr_00;\n  int iVar1;\n  undefined4 local_24;\n  \n  if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00017d40(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  void *__ptr;\n  void *__ptr_00;\n  int iVar1;\n  undefined4 local_24;\n  \n  if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  return;\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "void *__ptr_00;" primitive_type (pointer_declarator "*__ptr_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (if_statement "if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }" if (parenthesized_expression "(0 < *(int *)(param_1 + 0x7c))" ( (binary_expression "0 < *(int *)(param_1 + 0x7c)" number_literal < (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) )) (compound_statement "{\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (do_statement "do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));" do (compound_statement "{\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    }" { (expression_statement "__ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);" (assignment_expression "__ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4)" identifier = (pointer_expression "*(void **)(*(int *)(param_1 + 0x84) + local_24 * 4)" * (cast_expression "(void **)(*(int *)(param_1 + 0x84) + local_24 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x84) + local_24 * 4)" ( (binary_expression "*(int *)(param_1 + 0x84) + local_24 * 4" (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) + (binary_expression "local_24 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }" if (parenthesized_expression "(0 < *(int *)((int)__ptr + 0x10))" ( (binary_expression "0 < *(int *)((int)__ptr + 0x10)" number_literal < (pointer_expression "*(int *)((int)__ptr + 0x10)" * (cast_expression "(int *)((int)__ptr + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 0x10)" ( (binary_expression "(int)__ptr + 0x10" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) (compound_statement "{\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));" do (compound_statement "{\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        }" { (expression_statement "__ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);" (assignment_expression "__ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" identifier = (pointer_expression "*(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" * (cast_expression "(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" ( (binary_expression "*(int *)((int)__ptr + 0x14) + iVar1 * 4" (pointer_expression "*(int *)((int)__ptr + 0x14)" * (cast_expression "(int *)((int)__ptr + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 0x14)" ( (binary_expression "(int)__ptr + 0x14" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "free(*(void **)((int)__ptr_00 + 0x10));" (call_expression "free(*(void **)((int)__ptr_00 + 0x10))" identifier (argument_list "(*(void **)((int)__ptr_00 + 0x10))" ( (pointer_expression "*(void **)((int)__ptr_00 + 0x10)" * (cast_expression "(void **)((int)__ptr_00 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr_00 + 0x10)" ( (binary_expression "(int)__ptr_00 + 0x10" (cast_expression "(int)__ptr_00" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) }) while (parenthesized_expression "(iVar1 < *(int *)((int)__ptr + 0x10))" ( (binary_expression "iVar1 < *(int *)((int)__ptr + 0x10)" identifier < (pointer_expression "*(int *)((int)__ptr + 0x10)" * (cast_expression "(int *)((int)__ptr + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 0x10)" ( (binary_expression "(int)__ptr + 0x10" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) ;) })) (expression_statement "free(*(void **)((int)__ptr + 0x14));" (call_expression "free(*(void **)((int)__ptr + 0x14))" identifier (argument_list "(*(void **)((int)__ptr + 0x14))" ( (pointer_expression "*(void **)((int)__ptr + 0x14)" * (cast_expression "(void **)((int)__ptr + 0x14)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 0x14)" ( (binary_expression "(int)__ptr + 0x14" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (if_statement "if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }" if (parenthesized_expression "(*(int *)((int)__ptr + 8) != 0)" ( (binary_expression "*(int *)((int)__ptr + 8) != 0" (pointer_expression "*(int *)((int)__ptr + 8)" * (cast_expression "(int *)((int)__ptr + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }" { (expression_statement "free(*(void **)(*(int *)((int)__ptr + 8) + 8));" (call_expression "free(*(void **)(*(int *)((int)__ptr + 8) + 8))" identifier (argument_list "(*(void **)(*(int *)((int)__ptr + 8) + 8))" ( (pointer_expression "*(void **)(*(int *)((int)__ptr + 8) + 8)" * (cast_expression "(void **)(*(int *)((int)__ptr + 8) + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)__ptr + 8) + 8)" ( (binary_expression "*(int *)((int)__ptr + 8) + 8" (pointer_expression "*(int *)((int)__ptr + 8)" * (cast_expression "(int *)((int)__ptr + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) ))) ;) (expression_statement "free(*(void **)((int)__ptr + 8));" (call_expression "free(*(void **)((int)__ptr + 8))" identifier (argument_list "(*(void **)((int)__ptr + 8))" ( (pointer_expression "*(void **)((int)__ptr + 8)" * (cast_expression "(void **)((int)__ptr + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)__ptr + 8)" ( (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "local_24 = local_24 + 1;" (assignment_expression "local_24 = local_24 + 1" identifier = (binary_expression "local_24 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(local_24 < *(int *)(param_1 + 0x7c))" ( (binary_expression "local_24 < *(int *)(param_1 + 0x7c)" identifier < (pointer_expression "*(int *)(param_1 + 0x7c)" * (cast_expression "(int *)(param_1 + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) )) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (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 ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (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 = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00017d40(int param_1)\n\n{\n  void *__ptr;\n  void *__ptr_00;\n  int iVar1;\n  undefined4 local_24;\n  \n  if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00017d40(int param_1)" (identifier "FUN_00017d40") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  void *__ptr;\n  void *__ptr_00;\n  int iVar1;\n  undefined4 local_24;\n  \n  if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }\n  *(undefined4 *)(param_1 + 0x7c) = 0;\n  *(undefined4 *)(param_1 + 0x6c) = 0;\n  return;\n}" ({ "{") (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "void *__ptr_00;" (primitive_type "void") (pointer_declarator "*__ptr_00" (* "*") (identifier "__ptr_00")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (if_statement "if (0 < *(int *)(param_1 + 0x7c)) {\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }" (if "if") (parenthesized_expression "(0 < *(int *)(param_1 + 0x7c))" (( "(") (binary_expression "0 < *(int *)(param_1 + 0x7c)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_1 + 0x7c)" (* "*") (cast_expression "(int *)(param_1 + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) () ")")) (compound_statement "{\n    local_24 = 0;\n    do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));\n  }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    } while (local_24 < *(int *)(param_1 + 0x7c));" (do "do") (compound_statement "{\n      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);\n      if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }\n      free(*(void **)((int)__ptr + 0x14));\n      if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }\n      free(__ptr);\n      local_24 = local_24 + 1;\n    }" ({ "{") (expression_statement "__ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);" (assignment_expression "__ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4)" (identifier "__ptr") (= "=") (pointer_expression "*(void **)(*(int *)(param_1 + 0x84) + local_24 * 4)" (* "*") (cast_expression "(void **)(*(int *)(param_1 + 0x84) + local_24 * 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x84) + local_24 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x84) + local_24 * 4" (pointer_expression "*(int *)(param_1 + 0x84)" (* "*") (cast_expression "(int *)(param_1 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")")))) (+ "+") (binary_expression "local_24 * 4" (identifier "local_24") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (0 < *(int *)((int)__ptr + 0x10)) {\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }" (if "if") (parenthesized_expression "(0 < *(int *)((int)__ptr + 0x10))" (( "(") (binary_expression "0 < *(int *)((int)__ptr + 0x10)" (number_literal "0") (< "<") (pointer_expression "*(int *)((int)__ptr + 0x10)" (* "*") (cast_expression "(int *)((int)__ptr + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__ptr + 0x10)" (( "(") (binary_expression "(int)__ptr + 0x10" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n        iVar1 = 0;\n        do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));\n      }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        } while (iVar1 < *(int *)((int)__ptr + 0x10));" (do "do") (compound_statement "{\n          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);\n          iVar1 = iVar1 + 1;\n          free(*(void **)((int)__ptr_00 + 0x10));\n          free(__ptr_00);\n        }" ({ "{") (expression_statement "__ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);" (assignment_expression "__ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" (identifier "__ptr_00") (= "=") (pointer_expression "*(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" (* "*") (cast_expression "(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)((int)__ptr + 0x14) + iVar1 * 4)" (( "(") (binary_expression "*(int *)((int)__ptr + 0x14) + iVar1 * 4" (pointer_expression "*(int *)((int)__ptr + 0x14)" (* "*") (cast_expression "(int *)((int)__ptr + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__ptr + 0x14)" (( "(") (binary_expression "(int)__ptr + 0x14" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "free(*(void **)((int)__ptr_00 + 0x10));" (call_expression "free(*(void **)((int)__ptr_00 + 0x10))" (identifier "free") (argument_list "(*(void **)((int)__ptr_00 + 0x10))" (( "(") (pointer_expression "*(void **)((int)__ptr_00 + 0x10)" (* "*") (cast_expression "(void **)((int)__ptr_00 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)__ptr_00 + 0x10)" (( "(") (binary_expression "(int)__ptr_00 + 0x10" (cast_expression "(int)__ptr_00" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr_00")) (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" (identifier "free") (argument_list "(__ptr_00)" (( "(") (identifier "__ptr_00") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 < *(int *)((int)__ptr + 0x10))" (( "(") (binary_expression "iVar1 < *(int *)((int)__ptr + 0x10)" (identifier "iVar1") (< "<") (pointer_expression "*(int *)((int)__ptr + 0x10)" (* "*") (cast_expression "(int *)((int)__ptr + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__ptr + 0x10)" (( "(") (binary_expression "(int)__ptr + 0x10" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "free(*(void **)((int)__ptr + 0x14));" (call_expression "free(*(void **)((int)__ptr + 0x14))" (identifier "free") (argument_list "(*(void **)((int)__ptr + 0x14))" (( "(") (pointer_expression "*(void **)((int)__ptr + 0x14)" (* "*") (cast_expression "(void **)((int)__ptr + 0x14)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)__ptr + 0x14)" (( "(") (binary_expression "(int)__ptr + 0x14" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (if_statement "if (*(int *)((int)__ptr + 8) != 0) {\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }" (if "if") (parenthesized_expression "(*(int *)((int)__ptr + 8) != 0)" (( "(") (binary_expression "*(int *)((int)__ptr + 8) != 0" (pointer_expression "*(int *)((int)__ptr + 8)" (* "*") (cast_expression "(int *)((int)__ptr + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__ptr + 8)" (( "(") (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        free(*(void **)(*(int *)((int)__ptr + 8) + 8));\n        free(*(void **)((int)__ptr + 8));\n      }" ({ "{") (expression_statement "free(*(void **)(*(int *)((int)__ptr + 8) + 8));" (call_expression "free(*(void **)(*(int *)((int)__ptr + 8) + 8))" (identifier "free") (argument_list "(*(void **)(*(int *)((int)__ptr + 8) + 8))" (( "(") (pointer_expression "*(void **)(*(int *)((int)__ptr + 8) + 8)" (* "*") (cast_expression "(void **)(*(int *)((int)__ptr + 8) + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)((int)__ptr + 8) + 8)" (( "(") (binary_expression "*(int *)((int)__ptr + 8) + 8" (pointer_expression "*(int *)((int)__ptr + 8)" (* "*") (cast_expression "(int *)((int)__ptr + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__ptr + 8)" (( "(") (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "free(*(void **)((int)__ptr + 8));" (call_expression "free(*(void **)((int)__ptr + 8))" (identifier "free") (argument_list "(*(void **)((int)__ptr + 8))" (( "(") (pointer_expression "*(void **)((int)__ptr + 8)" (* "*") (cast_expression "(void **)((int)__ptr + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)__ptr + 8)" (( "(") (binary_expression "(int)__ptr + 8" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "local_24 = local_24 + 1;" (assignment_expression "local_24 = local_24 + 1" (identifier "local_24") (= "=") (binary_expression "local_24 + 1" (identifier "local_24") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_24 < *(int *)(param_1 + 0x7c))" (( "(") (binary_expression "local_24 < *(int *)(param_1 + 0x7c)" (identifier "local_24") (< "<") (pointer_expression "*(int *)(param_1 + 0x7c)" (* "*") (cast_expression "(int *)(param_1 + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x7c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x7c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x7c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x6c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x6c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *mctx)

{
  type_2 *__ptr;
  type_3 *__ptr_00;
  int var_1;
  int var_3;
  
  if (0 < mctx->nsub_tops) {
    var_3 = 0;
    do {
      __ptr = mctx->sub_tops[var_3];
      if (0 < __ptr->nlasts) {
        var_1 = 0;
        do {
          __ptr_00 = __ptr->lasts[var_1];
          var_1 = var_1 + 1;
          var_2((__ptr_00->path).array);
          var_2(__ptr_00);
        } while (var_1 < __ptr->nlasts);
      }
      var_2(__ptr->lasts);
      if (__ptr->path != (type_4 *)0x0) {
        var_2(__ptr->path->array);
        var_2(__ptr->path);
      }
      var_2(__ptr);
      var_3 = var_3 + 1;
    } while (var_3 < mctx->nsub_tops);
  }
  mctx->nsub_tops = 0;
  mctx->nbkref_ents = 0;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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 (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))))

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

void __regparm3 MASKED(int param_1)

{
  void *__ptr;
  void *__ptr_00;
  int iVar1;
  undefined4 local_24;
  
  if (0 < *(int *)(param_1 + 0x7c)) {
    local_24 = 0;
    do {
      __ptr = *(void **)(*(int *)(param_1 + 0x84) + local_24 * 4);
      if (0 < *(int *)((int)__ptr + 0x10)) {
        iVar1 = 0;
        do {
          __ptr_00 = *(void **)(*(int *)((int)__ptr + 0x14) + iVar1 * 4);
          iVar1 = iVar1 + 1;
          free(*(void **)((int)__ptr_00 + 0x10));
          free(__ptr_00);
        } while (iVar1 < *(int *)((int)__ptr + 0x10));
      }
      free(*(void **)((int)__ptr + 0x14));
      if (*(int *)((int)__ptr + 8) != 0) {
        free(*(void **)(*(int *)((int)__ptr + 8) + 8));
        free(*(void **)((int)__ptr + 8));
      }
      free(__ptr);
      local_24 = local_24 + 1;
    } while (local_24 < *(int *)(param_1 + 0x7c));
  }
  *(undefined4 *)(param_1 + 0x7c) = 0;
  *(undefined4 *)(param_1 + 0x6c) = 0;
  return;
}

