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

void __regparm3 squangle_mop_up(work_stuff *work)

{
  char *__ptr;
  int iVar1;
  char **__ptr_00;
  
  do {
    iVar1 = work->numk;
    do {
      if (iVar1 < 1) {
        __ptr_00 = work->btypevec;
        do {
          iVar1 = work->numb;
          do {
            if (iVar1 < 1) {
              if (__ptr_00 != (char **)0x0) {
                free(__ptr_00);
                work->btypevec = (char **)0x0;
                work->bsize = 0;
              }
              if (work->ktypevec != (char **)0x0) {
                free(work->ktypevec);
                work->ktypevec = (char **)0x0;
                work->ksize = 0;
              }
              return;
            }
            iVar1 = iVar1 + -1;
            __ptr = __ptr_00[iVar1];
            work->numb = iVar1;
          } while (__ptr == (char *)0x0);
          free(__ptr);
          __ptr_00 = work->btypevec;
          __ptr_00[iVar1] = (char *)0x0;
        } while( true );
      }
      iVar1 = iVar1 + -1;
      work->numk = iVar1;
    } while (work->ktypevec[iVar1] == (char *)0x0);
    free(work->ktypevec[iVar1]);
    work->ktypevec[iVar1] = (char *)0x0;
  } while( true );
}



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

void __regparm3 FUN_001cd9e0(int param_1)

{
  void *__ptr;
  int iVar1;
  void *pvVar2;
  
  do {
    iVar1 = *(int *)(param_1 + 0x10);
    do {
      if (iVar1 < 1) {
        pvVar2 = *(void **)(param_1 + 0xc);
        do {
          iVar1 = *(int *)(param_1 + 0x14);
          do {
            if (iVar1 < 1) {
              if (pvVar2 != (void *)0x0) {
                free(pvVar2);
                *(undefined4 *)(param_1 + 0xc) = 0;
                *(undefined4 *)(param_1 + 0x1c) = 0;
              }
              if (*(void **)(param_1 + 8) != (void *)0x0) {
                free(*(void **)(param_1 + 8));
                *(undefined4 *)(param_1 + 8) = 0;
                *(undefined4 *)(param_1 + 0x18) = 0;
              }
              return;
            }
            iVar1 = iVar1 + -1;
            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);
            *(int *)(param_1 + 0x14) = iVar1;
          } while (__ptr == (void *)0x0);
          free(__ptr);
          pvVar2 = *(void **)(param_1 + 0xc);
          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;
        } while( true );
      }
      iVar1 = iVar1 + -1;
      *(int *)(param_1 + 0x10) = iVar1;
      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);
    } while (pvVar2 == (void *)0x0);
    free(pvVar2);
    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;
  } while( true );
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00035840
ADD EBX,0x1c1616
MOV EAX,dword ptr [ESI + 0x10]
JMP 0x001cda0f
MOV EDX,dword ptr [ESI + 0x8]
SUB EAX,0x1
MOV dword ptr [ESI + 0x10],EAX
LEA EDI,[EAX*0x4 + 0x0]
MOV EDX,dword ptr [EDX + EAX*0x4]
TEST EDX,EDX
JNZ 0x001cda80
TEST EAX,EAX
JG 0x001cd9f8
MOV EDX,dword ptr [ESI + 0xc]
MOV EAX,dword ptr [ESI + 0x14]
JMP 0x001cda34
SUB EAX,0x1
MOV ECX,dword ptr [EDX + EAX*0x4]
MOV dword ptr [ESI + 0x14],EAX
LEA EDI,[EAX*0x4 + 0x0]
TEST ECX,ECX
JNZ 0x001cdaa0
TEST EAX,EAX
JG 0x001cda20
TEST EDX,EDX
JZ 0x001cda56
SUB ESP,0xc
PUSH EDX
CALL 0x00029410
MOV dword ptr [ESI + 0xc],0x0
ADD ESP,0x10
MOV dword ptr [ESI + 0x1c],0x0
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x001cda77
SUB ESP,0xc
PUSH EAX
CALL 0x00029410
MOV dword ptr [ESI + 0x8],0x0
ADD ESP,0x10
MOV dword ptr [ESI + 0x18],0x0
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH EDX
CALL 0x00029410
MOV EAX,dword ptr [ESI + 0x8]
ADD ESP,0x10
MOV dword ptr [EAX + EDI*0x1],0x0
JMP 0x001cd9f0
SUB ESP,0xc
PUSH ECX
CALL 0x00029410
MOV EDX,dword ptr [ESI + 0xc]
ADD ESP,0x10
MOV dword ptr [EDX + EDI*0x1],0x0
JMP 0x001cda16
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_001cd9e0(int param_1)\n\n{\n  void *__ptr;\n  int iVar1;\n  void *pvVar2;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 FUN_001cd9e0(int param_1)\n\n{\n  void *__ptr;\n  int iVar1;\n  void *pvVar2;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001cd9e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  void *__ptr;\n  int iVar1;\n  void *pvVar2;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (do_statement "do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );" do (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (do_statement "do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);" do (compound_statement "{\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    }" { (if_statement "if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }" { (expression_statement "pvVar2 = *(void **)(param_1 + 0xc);" (assignment_expression "pvVar2 = *(void **)(param_1 + 0xc)" identifier = (pointer_expression "*(void **)(param_1 + 0xc)" * (cast_expression "(void **)(param_1 + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (do_statement "do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );" do (compound_statement "{\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (do_statement "do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);" do (compound_statement "{\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          }" { (if_statement "if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }" { (if_statement "if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }" if (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                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }" { (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }" if (parenthesized_expression "(*(void **)(param_1 + 8) != (void *)0x0)" ( (binary_expression "*(void **)(param_1 + 8) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 8)" * (cast_expression "(void **)(param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }" { (expression_statement "free(*(void **)(param_1 + 8));" (call_expression "free(*(void **)(param_1 + 8))" identifier (argument_list "(*(void **)(param_1 + 8))" ( (pointer_expression "*(void **)(param_1 + 8)" * (cast_expression "(void **)(param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return;" return ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "__ptr = *(void **)((int)pvVar2 + iVar1 * 4);" (assignment_expression "__ptr = *(void **)((int)pvVar2 + iVar1 * 4)" identifier = (pointer_expression "*(void **)((int)pvVar2 + iVar1 * 4)" * (cast_expression "(void **)((int)pvVar2 + iVar1 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + iVar1 * 4)" ( (binary_expression "(int)pvVar2 + iVar1 * 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "pvVar2 = *(void **)(param_1 + 0xc);" (assignment_expression "pvVar2 = *(void **)(param_1 + 0xc)" identifier = (pointer_expression "*(void **)(param_1 + 0xc)" * (cast_expression "(void **)(param_1 + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0" (pointer_expression "*(undefined4 *)((int)pvVar2 + iVar1 * 4)" * (cast_expression "(undefined4 *)((int)pvVar2 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + iVar1 * 4)" ( (binary_expression "(int)pvVar2 + iVar1 * 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x10) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar1" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);" (assignment_expression "pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4)" identifier = (pointer_expression "*(void **)(*(int *)(param_1 + 8) + iVar1 * 4)" * (cast_expression "(void **)(*(int *)(param_1 + 8) + iVar1 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 8) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 8) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) }) 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)) )) ;) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 8) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 squangle_mop_up(work_stuff *work)\n\n{\n  char *__ptr;\n  int iVar1;\n  char **__ptr_00;\n  \n  do {\n    iVar1 = work->numk;\n    do {\n      if (iVar1 < 1) {\n        __ptr_00 = work->btypevec;\n        do {\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      work->numk = iVar1;\n    } while (work->ktypevec[iVar1] == (char *)0x0);\n    free(work->ktypevec[iVar1]);\n    work->ktypevec[iVar1] = (char *)0x0;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 squangle_mop_up(work_stuff *work)\n\n{\n  char *__ptr;\n  int iVar1;\n  char **__ptr_00;\n  \n  do {\n    iVar1 = work->numk;\n    do {\n      if (iVar1 < 1) {\n        __ptr_00 = work->btypevec;\n        do {\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      work->numk = iVar1;\n    } while (work->ktypevec[iVar1] == (char *)0x0);\n    free(work->ktypevec[iVar1]);\n    work->ktypevec[iVar1] = (char *)0x0;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "squangle_mop_up(work_stuff *work)" identifier (parameter_list "(work_stuff *work)" ( (parameter_declaration "work_stuff *work" type_identifier (pointer_declarator "*work" * identifier)) ))) (compound_statement "{\n  char *__ptr;\n  int iVar1;\n  char **__ptr_00;\n  \n  do {\n    iVar1 = work->numk;\n    do {\n      if (iVar1 < 1) {\n        __ptr_00 = work->btypevec;\n        do {\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      work->numk = iVar1;\n    } while (work->ktypevec[iVar1] == (char *)0x0);\n    free(work->ktypevec[iVar1]);\n    work->ktypevec[iVar1] = (char *)0x0;\n  } while( true );\n}" { (declaration "char *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "char **__ptr_00;" primitive_type (pointer_declarator "**__ptr_00" * (pointer_declarator "*__ptr_00" * identifier)) ;) (do_statement "do {\n    iVar1 = work->numk;\n    do {\n      if (iVar1 < 1) {\n        __ptr_00 = work->btypevec;\n        do {\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      work->numk = iVar1;\n    } while (work->ktypevec[iVar1] == (char *)0x0);\n    free(work->ktypevec[iVar1]);\n    work->ktypevec[iVar1] = (char *)0x0;\n  } while( true );" do (compound_statement "{\n    iVar1 = work->numk;\n    do {\n      if (iVar1 < 1) {\n        __ptr_00 = work->btypevec;\n        do {\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      work->numk = iVar1;\n    } while (work->ktypevec[iVar1] == (char *)0x0);\n    free(work->ktypevec[iVar1]);\n    work->ktypevec[iVar1] = (char *)0x0;\n  }" { (expression_statement "iVar1 = work->numk;" (assignment_expression "iVar1 = work->numk" identifier = (field_expression "work->numk" identifier -> field_identifier)) ;) (do_statement "do {\n      if (iVar1 < 1) {\n        __ptr_00 = work->btypevec;\n        do {\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      work->numk = iVar1;\n    } while (work->ktypevec[iVar1] == (char *)0x0);" do (compound_statement "{\n      if (iVar1 < 1) {\n        __ptr_00 = work->btypevec;\n        do {\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      work->numk = iVar1;\n    }" { (if_statement "if (iVar1 < 1) {\n        __ptr_00 = work->btypevec;\n        do {\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        } while( true );\n      }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n        __ptr_00 = work->btypevec;\n        do {\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        } while( true );\n      }" { (expression_statement "__ptr_00 = work->btypevec;" (assignment_expression "__ptr_00 = work->btypevec" identifier = (field_expression "work->btypevec" identifier -> field_identifier)) ;) (do_statement "do {\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        } while( true );" do (compound_statement "{\n          iVar1 = work->numb;\n          do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);\n          free(__ptr);\n          __ptr_00 = work->btypevec;\n          __ptr_00[iVar1] = (char *)0x0;\n        }" { (expression_statement "iVar1 = work->numb;" (assignment_expression "iVar1 = work->numb" identifier = (field_expression "work->numb" identifier -> field_identifier)) ;) (do_statement "do {\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          } while (__ptr == (char *)0x0);" do (compound_statement "{\n            if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = __ptr_00[iVar1];\n            work->numb = iVar1;\n          }" { (if_statement "if (iVar1 < 1) {\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n              if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }\n              if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }\n              return;\n            }" { (if_statement "if (__ptr_00 != (char **)0x0) {\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }" if (parenthesized_expression "(__ptr_00 != (char **)0x0)" ( (binary_expression "__ptr_00 != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n                free(__ptr_00);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }" { (expression_statement "free(__ptr_00);" (call_expression "free(__ptr_00)" identifier (argument_list "(__ptr_00)" ( identifier ))) ;) (expression_statement "work->btypevec = (char **)0x0;" (assignment_expression "work->btypevec = (char **)0x0" (field_expression "work->btypevec" identifier -> field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "work->bsize = 0;" (assignment_expression "work->bsize = 0" (field_expression "work->bsize" identifier -> field_identifier) = number_literal) ;) })) (if_statement "if (work->ktypevec != (char **)0x0) {\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }" if (parenthesized_expression "(work->ktypevec != (char **)0x0)" ( (binary_expression "work->ktypevec != (char **)0x0" (field_expression "work->ktypevec" identifier -> field_identifier) != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n                free(work->ktypevec);\n                work->ktypevec = (char **)0x0;\n                work->ksize = 0;\n              }" { (expression_statement "free(work->ktypevec);" (call_expression "free(work->ktypevec)" identifier (argument_list "(work->ktypevec)" ( (field_expression "work->ktypevec" identifier -> field_identifier) ))) ;) (expression_statement "work->ktypevec = (char **)0x0;" (assignment_expression "work->ktypevec = (char **)0x0" (field_expression "work->ktypevec" identifier -> field_identifier) = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) (expression_statement "work->ksize = 0;" (assignment_expression "work->ksize = 0" (field_expression "work->ksize" identifier -> field_identifier) = number_literal) ;) })) (return_statement "return;" return ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "__ptr = __ptr_00[iVar1];" (assignment_expression "__ptr = __ptr_00[iVar1]" identifier = (subscript_expression "__ptr_00[iVar1]" identifier [ identifier ])) ;) (expression_statement "work->numb = iVar1;" (assignment_expression "work->numb = iVar1" (field_expression "work->numb" identifier -> field_identifier) = identifier) ;) }) while (parenthesized_expression "(__ptr == (char *)0x0)" ( (binary_expression "__ptr == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "__ptr_00 = work->btypevec;" (assignment_expression "__ptr_00 = work->btypevec" identifier = (field_expression "work->btypevec" identifier -> field_identifier)) ;) (expression_statement "__ptr_00[iVar1] = (char *)0x0;" (assignment_expression "__ptr_00[iVar1] = (char *)0x0" (subscript_expression "__ptr_00[iVar1]" identifier [ identifier ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "work->numk = iVar1;" (assignment_expression "work->numk = iVar1" (field_expression "work->numk" identifier -> field_identifier) = identifier) ;) }) while (parenthesized_expression "(work->ktypevec[iVar1] == (char *)0x0)" ( (binary_expression "work->ktypevec[iVar1] == (char *)0x0" (subscript_expression "work->ktypevec[iVar1]" (field_expression "work->ktypevec" identifier -> field_identifier) [ identifier ]) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(work->ktypevec[iVar1]);" (call_expression "free(work->ktypevec[iVar1])" identifier (argument_list "(work->ktypevec[iVar1])" ( (subscript_expression "work->ktypevec[iVar1]" (field_expression "work->ktypevec" identifier -> field_identifier) [ identifier ]) ))) ;) (expression_statement "work->ktypevec[iVar1] = (char *)0x0;" (assignment_expression "work->ktypevec[iVar1] = (char *)0x0" (subscript_expression "work->ktypevec[iVar1]" (field_expression "work->ktypevec" identifier -> field_identifier) [ identifier ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void __regparm3 FUN_001cd9e0(int param_1)\n\n{\n  void *__ptr;\n  int iVar1;\n  void *pvVar2;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );\n}\n\n" (function_definition "void __regparm3 FUN_001cd9e0(int param_1)\n\n{\n  void *__ptr;\n  int iVar1;\n  void *pvVar2;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_001cd9e0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  void *__ptr;\n  int iVar1;\n  void *pvVar2;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (do_statement "do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );" do (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (do_statement "do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);" do (compound_statement "{\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    }" { (if_statement "if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }" { (expression_statement "pvVar2 = *(void **)(param_1 + 0xc);" (assignment_expression "pvVar2 = *(void **)(param_1 + 0xc)" identifier = (pointer_expression "*(void **)(param_1 + 0xc)" * (cast_expression "(void **)(param_1 + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (do_statement "do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );" do (compound_statement "{\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" identifier = (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (do_statement "do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);" do (compound_statement "{\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          }" { (if_statement "if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }" { (if_statement "if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }" if (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                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }" { (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }" if (parenthesized_expression "(*(void **)(param_1 + 8) != (void *)0x0)" ( (binary_expression "*(void **)(param_1 + 8) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 8)" * (cast_expression "(void **)(param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }" { (expression_statement "free(*(void **)(param_1 + 8));" (call_expression "free(*(void **)(param_1 + 8))" identifier (argument_list "(*(void **)(param_1 + 8))" ( (pointer_expression "*(void **)(param_1 + 8)" * (cast_expression "(void **)(param_1 + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return;" return ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "__ptr = *(void **)((int)pvVar2 + iVar1 * 4);" (assignment_expression "__ptr = *(void **)((int)pvVar2 + iVar1 * 4)" identifier = (pointer_expression "*(void **)((int)pvVar2 + iVar1 * 4)" * (cast_expression "(void **)((int)pvVar2 + iVar1 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar2 + iVar1 * 4)" ( (binary_expression "(int)pvVar2 + iVar1 * 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) }) while (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "pvVar2 = *(void **)(param_1 + 0xc);" (assignment_expression "pvVar2 = *(void **)(param_1 + 0xc)" identifier = (pointer_expression "*(void **)(param_1 + 0xc)" * (cast_expression "(void **)(param_1 + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0" (pointer_expression "*(undefined4 *)((int)pvVar2 + iVar1 * 4)" * (cast_expression "(undefined4 *)((int)pvVar2 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + iVar1 * 4)" ( (binary_expression "(int)pvVar2 + iVar1 * 4" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x10) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar1" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);" (assignment_expression "pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4)" identifier = (pointer_expression "*(void **)(*(int *)(param_1 + 8) + iVar1 * 4)" * (cast_expression "(void **)(*(int *)(param_1 + 8) + iVar1 * 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 8) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 8) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) ))))) ;) }) 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)) )) ;) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" identifier (argument_list "(pvVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + iVar1 * 4)" ( (binary_expression "*(int *)(param_1 + 8) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < 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 IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 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 ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) = LIT) ;) }) while (parenthesized_expression ( BOOL )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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)) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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)) )))) = LIT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void __regparm3 FUN_001cd9e0(int param_1)\n\n{\n  void *__ptr;\n  int iVar1;\n  void *pvVar2;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_001cd9e0(int param_1)" (identifier "FUN_001cd9e0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  void *__ptr;\n  int iVar1;\n  void *pvVar2;\n  \n  do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );\n}" ({ "{") (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (do_statement "do {\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  } while( true );" (do "do") (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x10);\n    do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);\n    free(pvVar2);\n    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x10)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (do_statement "do {\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    } while (pvVar2 == (void *)0x0);" (do "do") (compound_statement "{\n      if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }\n      iVar1 = iVar1 + -1;\n      *(int *)(param_1 + 0x10) = iVar1;\n      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);\n    }" ({ "{") (if_statement "if (iVar1 < 1) {\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        pvVar2 = *(void **)(param_1 + 0xc);\n        do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );\n      }" ({ "{") (expression_statement "pvVar2 = *(void **)(param_1 + 0xc);" (assignment_expression "pvVar2 = *(void **)(param_1 + 0xc)" (identifier "pvVar2") (= "=") (pointer_expression "*(void **)(param_1 + 0xc)" (* "*") (cast_expression "(void **)(param_1 + 0xc)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (do_statement "do {\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        } while( true );" (do "do") (compound_statement "{\n          iVar1 = *(int *)(param_1 + 0x14);\n          do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar2 = *(void **)(param_1 + 0xc);\n          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;\n        }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x14);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (do_statement "do {\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          } while (__ptr == (void *)0x0);" (do "do") (compound_statement "{\n            if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }\n            iVar1 = iVar1 + -1;\n            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);\n            *(int *)(param_1 + 0x14) = iVar1;\n          }" ({ "{") (if_statement "if (iVar1 < 1) {\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n              if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }\n              if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }\n              return;\n            }" ({ "{") (if_statement "if (pvVar2 != (void *)0x0) {\n                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }" (if "if") (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                free(pvVar2);\n                *(undefined4 *)(param_1 + 0xc) = 0;\n                *(undefined4 *)(param_1 + 0x1c) = 0;\n              }" ({ "{") (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" (identifier "free") (argument_list "(pvVar2)" (( "(") (identifier "pvVar2") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(void **)(param_1 + 8) != (void *)0x0) {\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }" (if "if") (parenthesized_expression "(*(void **)(param_1 + 8) != (void *)0x0)" (( "(") (binary_expression "*(void **)(param_1 + 8) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 8)" (* "*") (cast_expression "(void **)(param_1 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                free(*(void **)(param_1 + 8));\n                *(undefined4 *)(param_1 + 8) = 0;\n                *(undefined4 *)(param_1 + 0x18) = 0;\n              }" ({ "{") (expression_statement "free(*(void **)(param_1 + 8));" (call_expression "free(*(void **)(param_1 + 8))" (identifier "free") (argument_list "(*(void **)(param_1 + 8))" (( "(") (pointer_expression "*(void **)(param_1 + 8)" (* "*") (cast_expression "(void **)(param_1 + 8)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "__ptr = *(void **)((int)pvVar2 + iVar1 * 4);" (assignment_expression "__ptr = *(void **)((int)pvVar2 + iVar1 * 4)" (identifier "__ptr") (= "=") (pointer_expression "*(void **)((int)pvVar2 + iVar1 * 4)" (* "*") (cast_expression "(void **)((int)pvVar2 + iVar1 * 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)pvVar2 + iVar1 * 4)" (( "(") (binary_expression "(int)pvVar2 + iVar1 * 4" (cast_expression "(int)pvVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar2")) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x14) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x14) = iVar1" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(__ptr == (void *)0x0)" (( "(") (binary_expression "__ptr == (void *)0x0" (identifier "__ptr") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "pvVar2 = *(void **)(param_1 + 0xc);" (assignment_expression "pvVar2 = *(void **)(param_1 + 0xc)" (identifier "pvVar2") (= "=") (pointer_expression "*(void **)(param_1 + 0xc)" (* "*") (cast_expression "(void **)(param_1 + 0xc)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0" (pointer_expression "*(undefined4 *)((int)pvVar2 + iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)((int)pvVar2 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)pvVar2 + iVar1 * 4)" (( "(") (binary_expression "(int)pvVar2 + iVar1 * 4" (cast_expression "(int)pvVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pvVar2")) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x10) = iVar1;" (assignment_expression "*(int *)(param_1 + 0x10) = iVar1" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);" (assignment_expression "pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4)" (identifier "pvVar2") (= "=") (pointer_expression "*(void **)(*(int *)(param_1 + 8) + iVar1 * 4)" (* "*") (cast_expression "(void **)(*(int *)(param_1 + 8) + iVar1 * 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + iVar1 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 8) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (} "}")) (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"))) () ")")) (; ";")) (expression_statement "free(pvVar2);" (call_expression "free(pvVar2)" (identifier "free") (argument_list "(pvVar2)" (( "(") (identifier "pvVar2") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0" (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + iVar1 * 4)" (( "(") (binary_expression "*(int *)(param_1 + 8) + iVar1 * 4" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *work)

{
  char *var_4;
  int var_1;
  char **var_2;
  
  do {
    var_1 = work->numk;
    do {
      if (var_1 < 1) {
        var_2 = work->btypevec;
        do {
          var_1 = work->numb;
          do {
            if (var_1 < 1) {
              if (var_2 != (char **)0x0) {
                var_3(var_2);
                work->btypevec = (char **)0x0;
                work->bsize = 0;
              }
              if (work->ktypevec != (char **)0x0) {
                var_3(work->ktypevec);
                work->ktypevec = (char **)0x0;
                work->ksize = 0;
              }
              return;
            }
            var_1 = var_1 + -1;
            var_4 = var_2[var_1];
            work->numb = var_1;
          } while (var_4 == (char *)0x0);
          var_3(var_4);
          var_2 = work->btypevec;
          var_2[var_1] = (char *)0x0;
        } while( true );
      }
      var_1 = var_1 + -1;
      work->numk = var_1;
    } while (work->ktypevec[var_1] == (char *)0x0);
    var_3(work->ktypevec[var_1]);
    work->ktypevec[var_1] = (char *)0x0;
  } while( true );
}


(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: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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: (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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (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))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_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: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))) condition: (parenthesized_expression (true))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_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: (identifier))) (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))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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: (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)))))) right: (number_literal)))) condition: (parenthesized_expression (true))))))

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

void __regparm3 MASKED(int param_1)

{
  void *__ptr;
  int iVar1;
  void *pvVar2;
  
  do {
    iVar1 = *(int *)(param_1 + 0x10);
    do {
      if (iVar1 < 1) {
        pvVar2 = *(void **)(param_1 + 0xc);
        do {
          iVar1 = *(int *)(param_1 + 0x14);
          do {
            if (iVar1 < 1) {
              if (pvVar2 != (void *)0x0) {
                free(pvVar2);
                *(undefined4 *)(param_1 + 0xc) = 0;
                *(undefined4 *)(param_1 + 0x1c) = 0;
              }
              if (*(void **)(param_1 + 8) != (void *)0x0) {
                free(*(void **)(param_1 + 8));
                *(undefined4 *)(param_1 + 8) = 0;
                *(undefined4 *)(param_1 + 0x18) = 0;
              }
              return;
            }
            iVar1 = iVar1 + -1;
            __ptr = *(void **)((int)pvVar2 + iVar1 * 4);
            *(int *)(param_1 + 0x14) = iVar1;
          } while (__ptr == (void *)0x0);
          free(__ptr);
          pvVar2 = *(void **)(param_1 + 0xc);
          *(undefined4 *)((int)pvVar2 + iVar1 * 4) = 0;
        } while( true );
      }
      iVar1 = iVar1 + -1;
      *(int *)(param_1 + 0x10) = iVar1;
      pvVar2 = *(void **)(*(int *)(param_1 + 8) + iVar1 * 4);
    } while (pvVar2 == (void *)0x0);
    free(pvVar2);
    *(undefined4 *)(*(int *)(param_1 + 8) + iVar1 * 4) = 0;
  } while( true );
}

