
void squangle_mop_up(work_stuff *work)

{
  void *pvVar1;
  uint uVar2;
  ulong uVar3;
  char **__ptr;
  long lVar4;
  
  do {
    uVar3 = (ulong)work->numk;
    lVar4 = uVar3 * 8;
    do {
      lVar4 = lVar4 + -8;
      if ((int)uVar3 < 1) {
        __ptr = work->btypevec;
        do {
          uVar3 = (ulong)work->numb;
          lVar4 = uVar3 * 8;
          do {
            lVar4 = lVar4 + -8;
            if ((int)uVar3 < 1) {
              if (__ptr != (char **)0x0) {
                free(__ptr);
                work->btypevec = (char **)0x0;
                work->bsize = 0;
              }
              if (work->ktypevec != (char **)0x0) {
                free(work->ktypevec);
                work->ktypevec = (char **)0x0;
                work->ksize = 0;
              }
              return;
            }
            uVar2 = (int)uVar3 - 1;
            uVar3 = (ulong)uVar2;
            pvVar1 = *(void **)((long)__ptr + lVar4);
            work->numb = uVar2;
          } while (pvVar1 == (void *)0x0);
          free(pvVar1);
          __ptr = work->btypevec;
          *(undefined8 *)((long)__ptr + lVar4) = 0;
        } while( true );
      }
      uVar2 = (int)uVar3 - 1;
      uVar3 = (ulong)uVar2;
      work->numk = uVar2;
      pvVar1 = *(void **)((long)work->ktypevec + lVar4);
    } while (pvVar1 == (void *)0x0);
    free(pvVar1);
    *(undefined8 *)((long)work->ktypevec + lVar4) = 0;
  } while( true );
}



void FUN_0028a3e0(long param_1)

{
  void *__ptr;
  uint uVar1;
  ulong uVar2;
  void *pvVar3;
  long lVar4;
  
  do {
    uVar2 = (ulong)*(int *)(param_1 + 0x20);
    lVar4 = uVar2 * 8;
    do {
      lVar4 = lVar4 + -8;
      if ((int)uVar2 < 1) {
        pvVar3 = *(void **)(param_1 + 0x18);
        do {
          uVar2 = (ulong)*(int *)(param_1 + 0x24);
          lVar4 = uVar2 * 8;
          do {
            lVar4 = lVar4 + -8;
            if ((int)uVar2 < 1) {
              if (pvVar3 != (void *)0x0) {
                free(pvVar3);
                *(undefined8 *)(param_1 + 0x18) = 0;
                *(undefined4 *)(param_1 + 0x2c) = 0;
              }
              if (*(void **)(param_1 + 0x10) != (void *)0x0) {
                free(*(void **)(param_1 + 0x10));
                *(undefined8 *)(param_1 + 0x10) = 0;
                *(undefined4 *)(param_1 + 0x28) = 0;
              }
              return;
            }
            uVar1 = (int)uVar2 - 1;
            uVar2 = (ulong)uVar1;
            __ptr = *(void **)((long)pvVar3 + lVar4);
            *(uint *)(param_1 + 0x24) = uVar1;
          } while (__ptr == (void *)0x0);
          free(__ptr);
          pvVar3 = *(void **)(param_1 + 0x18);
          *(undefined8 *)((long)pvVar3 + lVar4) = 0;
        } while( true );
      }
      uVar1 = (int)uVar2 - 1;
      uVar2 = (ulong)uVar1;
      *(uint *)(param_1 + 0x20) = uVar1;
      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);
    } while (pvVar3 == (void *)0x0);
    free(pvVar3);
    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;
  } while( true );
}


PUSH RBP
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOVSXD RDX,dword ptr [RBX + 0x20]
MOV RAX,RDX
LEA RBP,[-0x8 + RDX*0x8]
JMP 0x0028a41e
MOV RDX,qword ptr [RBX + 0x10]
SUB EAX,0x1
MOV dword ptr [RBX + 0x20],EAX
MOV RDI,qword ptr [RDX + RBP*0x1]
LEA RDX,[RBP + -0x8]
TEST RDI,RDI
JNZ 0x0028a4a0
MOV RBP,RDX
TEST EAX,EAX
JG 0x0028a400
MOV RDX,qword ptr [RBX + 0x18]
MOVSXD RCX,dword ptr [RBX + 0x24]
MOV RAX,RCX
LEA RBP,[-0x8 + RCX*0x8]
JMP 0x0028a457
LEA RCX,[RBP + -0x8]
SUB EAX,0x1
MOV RDI,qword ptr [RDX + RCX*0x1 + 0x8]
MOV dword ptr [RBX + 0x24],EAX
TEST RDI,RDI
JNZ 0x0028a4c0
MOV RBP,RCX
TEST EAX,EAX
JG 0x0028a440
TEST RDX,RDX
JZ 0x0028a477
MOV RDI,RDX
CALL 0x00144470
MOV qword ptr [RBX + 0x18],0x0
MOV dword ptr [RBX + 0x2c],0x0
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x0028a494
CALL 0x00144470
MOV qword ptr [RBX + 0x10],0x0
MOV dword ptr [RBX + 0x28],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
CALL 0x00144470
MOV RAX,qword ptr [RBX + 0x10]
MOV qword ptr [RAX + RBP*0x1],0x0
JMP 0x0028a3e9
CALL 0x00144470
MOV RDX,qword ptr [RBX + 0x18]
MOV qword ptr [RDX + RBP*0x1],0x0
JMP 0x0028a426
(translation_unit "void FUN_0028a3e0(long param_1)\n\n{\n  void *__ptr;\n  uint uVar1;\n  ulong uVar2;\n  void *pvVar3;\n  long lVar4;\n  \n  do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );\n}\n\n" (function_definition "void FUN_0028a3e0(long param_1)\n\n{\n  void *__ptr;\n  uint uVar1;\n  ulong uVar2;\n  void *pvVar3;\n  long lVar4;\n  \n  do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );\n}" primitive_type (function_declarator "FUN_0028a3e0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  void *__ptr;\n  uint uVar1;\n  ulong uVar2;\n  void *pvVar3;\n  long lVar4;\n  \n  do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (do_statement "do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );" do (compound_statement "{\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  }" { (expression_statement "uVar2 = (ulong)*(int *)(param_1 + 0x20);" (assignment_expression "uVar2 = (ulong)*(int *)(param_1 + 0x20)" identifier = (binary_expression "(ulong)*(int *)(param_1 + 0x20)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = uVar2 * 8;" (assignment_expression "lVar4 = uVar2 * 8" identifier = (binary_expression "uVar2 * 8" identifier * number_literal)) ;) (do_statement "do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);" do (compound_statement "{\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    }" { (expression_statement "lVar4 = lVar4 + -8;" (assignment_expression "lVar4 = lVar4 + -8" identifier = (binary_expression "lVar4 + -8" identifier + number_literal)) ;) (if_statement "if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }" if (parenthesized_expression "((int)uVar2 < 1)" ( (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }" { (expression_statement "pvVar3 = *(void **)(param_1 + 0x18);" (assignment_expression "pvVar3 = *(void **)(param_1 + 0x18)" identifier = (pointer_expression "*(void **)(param_1 + 0x18)" * (cast_expression "(void **)(param_1 + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (do_statement "do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );" do (compound_statement "{\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        }" { (expression_statement "uVar2 = (ulong)*(int *)(param_1 + 0x24);" (assignment_expression "uVar2 = (ulong)*(int *)(param_1 + 0x24)" identifier = (binary_expression "(ulong)*(int *)(param_1 + 0x24)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = uVar2 * 8;" (assignment_expression "lVar4 = uVar2 * 8" identifier = (binary_expression "uVar2 * 8" identifier * number_literal)) ;) (do_statement "do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);" do (compound_statement "{\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          }" { (expression_statement "lVar4 = lVar4 + -8;" (assignment_expression "lVar4 = lVar4 + -8" identifier = (binary_expression "lVar4 + -8" identifier + number_literal)) ;) (if_statement "if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }" if (parenthesized_expression "((int)uVar2 < 1)" ( (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }" { (if_statement "if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }" { (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x2c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x2c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" * (cast_expression "(undefined4 *)(param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }" if (parenthesized_expression "(*(void **)(param_1 + 0x10) != (void *)0x0)" ( (binary_expression "*(void **)(param_1 + 0x10) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }" { (expression_statement "free(*(void **)(param_1 + 0x10));" (call_expression "free(*(void **)(param_1 + 0x10))" identifier (argument_list "(*(void **)(param_1 + 0x10))" ( (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return;" return ;) })) (expression_statement "uVar1 = (int)uVar2 - 1;" (assignment_expression "uVar1 = (int)uVar2 - 1" identifier = (binary_expression "(int)uVar2 - 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal)) ;) (expression_statement "uVar2 = (ulong)uVar1;" (assignment_expression "uVar2 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "__ptr = *(void **)((long)pvVar3 + lVar4);" (assignment_expression "__ptr = *(void **)((long)pvVar3 + lVar4)" identifier = (pointer_expression "*(void **)((long)pvVar3 + lVar4)" * (cast_expression "(void **)((long)pvVar3 + lVar4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar3 + lVar4)" ( (binary_expression "(long)pvVar3 + lVar4" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))))) ;) (expression_statement "*(uint *)(param_1 + 0x24) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x24) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" 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 "pvVar3 = *(void **)(param_1 + 0x18);" (assignment_expression "pvVar3 = *(void **)(param_1 + 0x18)" identifier = (pointer_expression "*(void **)(param_1 + 0x18)" * (cast_expression "(void **)(param_1 + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)pvVar3 + lVar4) = 0;" (assignment_expression "*(undefined8 *)((long)pvVar3 + lVar4) = 0" (pointer_expression "*(undefined8 *)((long)pvVar3 + lVar4)" * (cast_expression "(undefined8 *)((long)pvVar3 + lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + lVar4)" ( (binary_expression "(long)pvVar3 + lVar4" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "uVar1 = (int)uVar2 - 1;" (assignment_expression "uVar1 = (int)uVar2 - 1" identifier = (binary_expression "(int)uVar2 - 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal)) ;) (expression_statement "uVar2 = (ulong)uVar1;" (assignment_expression "uVar2 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "*(uint *)(param_1 + 0x20) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x20) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x20)" * (cast_expression "(uint *)(param_1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);" (assignment_expression "pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4)" identifier = (pointer_expression "*(void **)(*(long *)(param_1 + 0x10) + lVar4)" * (cast_expression "(void **)(*(long *)(param_1 + 0x10) + lVar4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 0x10) + lVar4)" ( (binary_expression "*(long *)(param_1 + 0x10) + lVar4" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + identifier) ))))) ;) }) while (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) (expression_statement "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;" (assignment_expression "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0" (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x10) + lVar4)" ( (binary_expression "*(long *)(param_1 + 0x10) + lVar4" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void squangle_mop_up(work_stuff *work)\n\n{\n  void *pvVar1;\n  uint uVar2;\n  ulong uVar3;\n  char **__ptr;\n  long lVar4;\n  \n  do {\n    uVar3 = (ulong)work->numk;\n    lVar4 = uVar3 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar3 < 1) {\n        __ptr = work->btypevec;\n        do {\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        } while( true );\n      }\n      uVar2 = (int)uVar3 - 1;\n      uVar3 = (ulong)uVar2;\n      work->numk = uVar2;\n      pvVar1 = *(void **)((long)work->ktypevec + lVar4);\n    } while (pvVar1 == (void *)0x0);\n    free(pvVar1);\n    *(undefined8 *)((long)work->ktypevec + lVar4) = 0;\n  } while( true );\n}\n\n" (function_definition "void squangle_mop_up(work_stuff *work)\n\n{\n  void *pvVar1;\n  uint uVar2;\n  ulong uVar3;\n  char **__ptr;\n  long lVar4;\n  \n  do {\n    uVar3 = (ulong)work->numk;\n    lVar4 = uVar3 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar3 < 1) {\n        __ptr = work->btypevec;\n        do {\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        } while( true );\n      }\n      uVar2 = (int)uVar3 - 1;\n      uVar3 = (ulong)uVar2;\n      work->numk = uVar2;\n      pvVar1 = *(void **)((long)work->ktypevec + lVar4);\n    } while (pvVar1 == (void *)0x0);\n    free(pvVar1);\n    *(undefined8 *)((long)work->ktypevec + lVar4) = 0;\n  } while( true );\n}" primitive_type (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  void *pvVar1;\n  uint uVar2;\n  ulong uVar3;\n  char **__ptr;\n  long lVar4;\n  \n  do {\n    uVar3 = (ulong)work->numk;\n    lVar4 = uVar3 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar3 < 1) {\n        __ptr = work->btypevec;\n        do {\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        } while( true );\n      }\n      uVar2 = (int)uVar3 - 1;\n      uVar3 = (ulong)uVar2;\n      work->numk = uVar2;\n      pvVar1 = *(void **)((long)work->ktypevec + lVar4);\n    } while (pvVar1 == (void *)0x0);\n    free(pvVar1);\n    *(undefined8 *)((long)work->ktypevec + lVar4) = 0;\n  } while( true );\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "char **__ptr;" primitive_type (pointer_declarator "**__ptr" * (pointer_declarator "*__ptr" * identifier)) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (do_statement "do {\n    uVar3 = (ulong)work->numk;\n    lVar4 = uVar3 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar3 < 1) {\n        __ptr = work->btypevec;\n        do {\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        } while( true );\n      }\n      uVar2 = (int)uVar3 - 1;\n      uVar3 = (ulong)uVar2;\n      work->numk = uVar2;\n      pvVar1 = *(void **)((long)work->ktypevec + lVar4);\n    } while (pvVar1 == (void *)0x0);\n    free(pvVar1);\n    *(undefined8 *)((long)work->ktypevec + lVar4) = 0;\n  } while( true );" do (compound_statement "{\n    uVar3 = (ulong)work->numk;\n    lVar4 = uVar3 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar3 < 1) {\n        __ptr = work->btypevec;\n        do {\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        } while( true );\n      }\n      uVar2 = (int)uVar3 - 1;\n      uVar3 = (ulong)uVar2;\n      work->numk = uVar2;\n      pvVar1 = *(void **)((long)work->ktypevec + lVar4);\n    } while (pvVar1 == (void *)0x0);\n    free(pvVar1);\n    *(undefined8 *)((long)work->ktypevec + lVar4) = 0;\n  }" { (expression_statement "uVar3 = (ulong)work->numk;" (assignment_expression "uVar3 = (ulong)work->numk" identifier = (cast_expression "(ulong)work->numk" ( (type_descriptor "ulong" type_identifier) ) (field_expression "work->numk" identifier -> field_identifier))) ;) (expression_statement "lVar4 = uVar3 * 8;" (assignment_expression "lVar4 = uVar3 * 8" identifier = (binary_expression "uVar3 * 8" identifier * number_literal)) ;) (do_statement "do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar3 < 1) {\n        __ptr = work->btypevec;\n        do {\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        } while( true );\n      }\n      uVar2 = (int)uVar3 - 1;\n      uVar3 = (ulong)uVar2;\n      work->numk = uVar2;\n      pvVar1 = *(void **)((long)work->ktypevec + lVar4);\n    } while (pvVar1 == (void *)0x0);" do (compound_statement "{\n      lVar4 = lVar4 + -8;\n      if ((int)uVar3 < 1) {\n        __ptr = work->btypevec;\n        do {\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        } while( true );\n      }\n      uVar2 = (int)uVar3 - 1;\n      uVar3 = (ulong)uVar2;\n      work->numk = uVar2;\n      pvVar1 = *(void **)((long)work->ktypevec + lVar4);\n    }" { (expression_statement "lVar4 = lVar4 + -8;" (assignment_expression "lVar4 = lVar4 + -8" identifier = (binary_expression "lVar4 + -8" identifier + number_literal)) ;) (if_statement "if ((int)uVar3 < 1) {\n        __ptr = work->btypevec;\n        do {\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        } while( true );\n      }" if (parenthesized_expression "((int)uVar3 < 1)" ( (binary_expression "(int)uVar3 < 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        __ptr = work->btypevec;\n        do {\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        } while( true );\n      }" { (expression_statement "__ptr = work->btypevec;" (assignment_expression "__ptr = work->btypevec" identifier = (field_expression "work->btypevec" identifier -> field_identifier)) ;) (do_statement "do {\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        } while( true );" do (compound_statement "{\n          uVar3 = (ulong)work->numb;\n          lVar4 = uVar3 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);\n          free(pvVar1);\n          __ptr = work->btypevec;\n          *(undefined8 *)((long)__ptr + lVar4) = 0;\n        }" { (expression_statement "uVar3 = (ulong)work->numb;" (assignment_expression "uVar3 = (ulong)work->numb" identifier = (cast_expression "(ulong)work->numb" ( (type_descriptor "ulong" type_identifier) ) (field_expression "work->numb" identifier -> field_identifier))) ;) (expression_statement "lVar4 = uVar3 * 8;" (assignment_expression "lVar4 = uVar3 * 8" identifier = (binary_expression "uVar3 * 8" identifier * number_literal)) ;) (do_statement "do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          } while (pvVar1 == (void *)0x0);" do (compound_statement "{\n            lVar4 = lVar4 + -8;\n            if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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            uVar2 = (int)uVar3 - 1;\n            uVar3 = (ulong)uVar2;\n            pvVar1 = *(void **)((long)__ptr + lVar4);\n            work->numb = uVar2;\n          }" { (expression_statement "lVar4 = lVar4 + -8;" (assignment_expression "lVar4 = lVar4 + -8" identifier = (binary_expression "lVar4 + -8" identifier + number_literal)) ;) (if_statement "if ((int)uVar3 < 1) {\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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 "((int)uVar3 < 1)" ( (binary_expression "(int)uVar3 < 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n              if (__ptr != (char **)0x0) {\n                free(__ptr);\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 != (char **)0x0) {\n                free(__ptr);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }" if (parenthesized_expression "(__ptr != (char **)0x0)" ( (binary_expression "__ptr != (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);\n                work->btypevec = (char **)0x0;\n                work->bsize = 0;\n              }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( 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 "uVar2 = (int)uVar3 - 1;" (assignment_expression "uVar2 = (int)uVar3 - 1" identifier = (binary_expression "(int)uVar3 - 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal)) ;) (expression_statement "uVar3 = (ulong)uVar2;" (assignment_expression "uVar3 = (ulong)uVar2" identifier = (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "pvVar1 = *(void **)((long)__ptr + lVar4);" (assignment_expression "pvVar1 = *(void **)((long)__ptr + lVar4)" identifier = (pointer_expression "*(void **)((long)__ptr + lVar4)" * (cast_expression "(void **)((long)__ptr + lVar4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)__ptr + lVar4)" ( (binary_expression "(long)__ptr + lVar4" (cast_expression "(long)__ptr" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))))) ;) (expression_statement "work->numb = uVar2;" (assignment_expression "work->numb = uVar2" (field_expression "work->numb" identifier -> field_identifier) = identifier) ;) }) while (parenthesized_expression "(pvVar1 == (void *)0x0)" ( (binary_expression "pvVar1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(pvVar1);" (call_expression "free(pvVar1)" identifier (argument_list "(pvVar1)" ( identifier ))) ;) (expression_statement "__ptr = work->btypevec;" (assignment_expression "__ptr = work->btypevec" identifier = (field_expression "work->btypevec" identifier -> field_identifier)) ;) (expression_statement "*(undefined8 *)((long)__ptr + lVar4) = 0;" (assignment_expression "*(undefined8 *)((long)__ptr + lVar4) = 0" (pointer_expression "*(undefined8 *)((long)__ptr + lVar4)" * (cast_expression "(undefined8 *)((long)__ptr + lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)__ptr + lVar4)" ( (binary_expression "(long)__ptr + lVar4" (cast_expression "(long)__ptr" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "uVar2 = (int)uVar3 - 1;" (assignment_expression "uVar2 = (int)uVar3 - 1" identifier = (binary_expression "(int)uVar3 - 1" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal)) ;) (expression_statement "uVar3 = (ulong)uVar2;" (assignment_expression "uVar3 = (ulong)uVar2" identifier = (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "work->numk = uVar2;" (assignment_expression "work->numk = uVar2" (field_expression "work->numk" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar1 = *(void **)((long)work->ktypevec + lVar4);" (assignment_expression "pvVar1 = *(void **)((long)work->ktypevec + lVar4)" identifier = (pointer_expression "*(void **)((long)work->ktypevec + lVar4)" * (cast_expression "(void **)((long)work->ktypevec + lVar4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)work->ktypevec + lVar4)" ( (binary_expression "(long)work->ktypevec + lVar4" (cast_expression "(long)work->ktypevec" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "work->ktypevec" identifier -> field_identifier)) + identifier) ))))) ;) }) while (parenthesized_expression "(pvVar1 == (void *)0x0)" ( (binary_expression "pvVar1 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(pvVar1);" (call_expression "free(pvVar1)" identifier (argument_list "(pvVar1)" ( identifier ))) ;) (expression_statement "*(undefined8 *)((long)work->ktypevec + lVar4) = 0;" (assignment_expression "*(undefined8 *)((long)work->ktypevec + lVar4) = 0" (pointer_expression "*(undefined8 *)((long)work->ktypevec + lVar4)" * (cast_expression "(undefined8 *)((long)work->ktypevec + lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)work->ktypevec + lVar4)" ( (binary_expression "(long)work->ktypevec + lVar4" (cast_expression "(long)work->ktypevec" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "work->ktypevec" identifier -> field_identifier)) + identifier) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_0028a3e0(long param_1)\n\n{\n  void *__ptr;\n  uint uVar1;\n  ulong uVar2;\n  void *pvVar3;\n  long lVar4;\n  \n  do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );\n}\n\n" (function_definition "void FUN_0028a3e0(long param_1)\n\n{\n  void *__ptr;\n  uint uVar1;\n  ulong uVar2;\n  void *pvVar3;\n  long lVar4;\n  \n  do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );\n}" primitive_type (function_declarator "FUN_0028a3e0(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  void *__ptr;\n  uint uVar1;\n  ulong uVar2;\n  void *pvVar3;\n  long lVar4;\n  \n  do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );\n}" { (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (do_statement "do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );" do (compound_statement "{\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  }" { (expression_statement "uVar2 = (ulong)*(int *)(param_1 + 0x20);" (assignment_expression "uVar2 = (ulong)*(int *)(param_1 + 0x20)" identifier = (binary_expression "(ulong)*(int *)(param_1 + 0x20)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = uVar2 * 8;" (assignment_expression "lVar4 = uVar2 * 8" identifier = (binary_expression "uVar2 * 8" identifier * number_literal)) ;) (do_statement "do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);" do (compound_statement "{\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    }" { (expression_statement "lVar4 = lVar4 + -8;" (assignment_expression "lVar4 = lVar4 + -8" identifier = (binary_expression "lVar4 + -8" identifier + number_literal)) ;) (if_statement "if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }" if (parenthesized_expression "((int)uVar2 < 1)" ( (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }" { (expression_statement "pvVar3 = *(void **)(param_1 + 0x18);" (assignment_expression "pvVar3 = *(void **)(param_1 + 0x18)" identifier = (pointer_expression "*(void **)(param_1 + 0x18)" * (cast_expression "(void **)(param_1 + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (do_statement "do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );" do (compound_statement "{\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        }" { (expression_statement "uVar2 = (ulong)*(int *)(param_1 + 0x24);" (assignment_expression "uVar2 = (ulong)*(int *)(param_1 + 0x24)" identifier = (binary_expression "(ulong)*(int *)(param_1 + 0x24)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = uVar2 * 8;" (assignment_expression "lVar4 = uVar2 * 8" identifier = (binary_expression "uVar2 * 8" identifier * number_literal)) ;) (do_statement "do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);" do (compound_statement "{\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          }" { (expression_statement "lVar4 = lVar4 + -8;" (assignment_expression "lVar4 = lVar4 + -8" identifier = (binary_expression "lVar4 + -8" identifier + number_literal)) ;) (if_statement "if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }" if (parenthesized_expression "((int)uVar2 < 1)" ( (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }" { (if_statement "if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }" if (parenthesized_expression "(pvVar3 != (void *)0x0)" ( (binary_expression "pvVar3 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }" { (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x2c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x2c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" * (cast_expression "(undefined4 *)(param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }" if (parenthesized_expression "(*(void **)(param_1 + 0x10) != (void *)0x0)" ( (binary_expression "*(void **)(param_1 + 0x10) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }" { (expression_statement "free(*(void **)(param_1 + 0x10));" (call_expression "free(*(void **)(param_1 + 0x10))" identifier (argument_list "(*(void **)(param_1 + 0x10))" ( (pointer_expression "*(void **)(param_1 + 0x10)" * (cast_expression "(void **)(param_1 + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) ))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return;" return ;) })) (expression_statement "uVar1 = (int)uVar2 - 1;" (assignment_expression "uVar1 = (int)uVar2 - 1" identifier = (binary_expression "(int)uVar2 - 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal)) ;) (expression_statement "uVar2 = (ulong)uVar1;" (assignment_expression "uVar2 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "__ptr = *(void **)((long)pvVar3 + lVar4);" (assignment_expression "__ptr = *(void **)((long)pvVar3 + lVar4)" identifier = (pointer_expression "*(void **)((long)pvVar3 + lVar4)" * (cast_expression "(void **)((long)pvVar3 + lVar4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar3 + lVar4)" ( (binary_expression "(long)pvVar3 + lVar4" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) ))))) ;) (expression_statement "*(uint *)(param_1 + 0x24) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x24) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" 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 "pvVar3 = *(void **)(param_1 + 0x18);" (assignment_expression "pvVar3 = *(void **)(param_1 + 0x18)" identifier = (pointer_expression "*(void **)(param_1 + 0x18)" * (cast_expression "(void **)(param_1 + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)pvVar3 + lVar4) = 0;" (assignment_expression "*(undefined8 *)((long)pvVar3 + lVar4) = 0" (pointer_expression "*(undefined8 *)((long)pvVar3 + lVar4)" * (cast_expression "(undefined8 *)((long)pvVar3 + lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + lVar4)" ( (binary_expression "(long)pvVar3 + lVar4" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "uVar1 = (int)uVar2 - 1;" (assignment_expression "uVar1 = (int)uVar2 - 1" identifier = (binary_expression "(int)uVar2 - 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal)) ;) (expression_statement "uVar2 = (ulong)uVar1;" (assignment_expression "uVar2 = (ulong)uVar1" identifier = (cast_expression "(ulong)uVar1" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "*(uint *)(param_1 + 0x20) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x20) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x20)" * (cast_expression "(uint *)(param_1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);" (assignment_expression "pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4)" identifier = (pointer_expression "*(void **)(*(long *)(param_1 + 0x10) + lVar4)" * (cast_expression "(void **)(*(long *)(param_1 + 0x10) + lVar4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 0x10) + lVar4)" ( (binary_expression "*(long *)(param_1 + 0x10) + lVar4" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + identifier) ))))) ;) }) while (parenthesized_expression "(pvVar3 == (void *)0x0)" ( (binary_expression "pvVar3 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" identifier (argument_list "(pvVar3)" ( identifier ))) ;) (expression_statement "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;" (assignment_expression "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0" (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x10) + lVar4)" ( (binary_expression "*(long *)(param_1 + 0x10) + lVar4" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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 = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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 (cast_expression ( (type_descriptor TYPE) ) IDENT) - LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (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 (sized_type_specifier long)) ) IDENT) + IDENT) ))))) ;) (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 (sized_type_specifier long)) ) IDENT) + IDENT) )))) = LIT) ;) }) while (parenthesized_expression ( BOOL )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (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 (sized_type_specifier long) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = LIT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_0028a3e0(long param_1)\n\n{\n  void *__ptr;\n  uint uVar1;\n  ulong uVar2;\n  void *pvVar3;\n  long lVar4;\n  \n  do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_0028a3e0(long param_1)" (identifier "FUN_0028a3e0") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  void *__ptr;\n  uint uVar1;\n  ulong uVar2;\n  void *pvVar3;\n  long lVar4;\n  \n  do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );\n}" ({ "{") (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "void *pvVar3;" (primitive_type "void") (pointer_declarator "*pvVar3" (* "*") (identifier "pvVar3")) (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (do_statement "do {\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  } while( true );" (do "do") (compound_statement "{\n    uVar2 = (ulong)*(int *)(param_1 + 0x20);\n    lVar4 = uVar2 * 8;\n    do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);\n    free(pvVar3);\n    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;\n  }" ({ "{") (expression_statement "uVar2 = (ulong)*(int *)(param_1 + 0x20);" (assignment_expression "uVar2 = (ulong)*(int *)(param_1 + 0x20)" (identifier "uVar2") (= "=") (binary_expression "(ulong)*(int *)(param_1 + 0x20)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "lVar4 = uVar2 * 8;" (assignment_expression "lVar4 = uVar2 * 8" (identifier "lVar4") (= "=") (binary_expression "uVar2 * 8" (identifier "uVar2") (* "*") (number_literal "8"))) (; ";")) (do_statement "do {\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    } while (pvVar3 == (void *)0x0);" (do "do") (compound_statement "{\n      lVar4 = lVar4 + -8;\n      if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }\n      uVar1 = (int)uVar2 - 1;\n      uVar2 = (ulong)uVar1;\n      *(uint *)(param_1 + 0x20) = uVar1;\n      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);\n    }" ({ "{") (expression_statement "lVar4 = lVar4 + -8;" (assignment_expression "lVar4 = lVar4 + -8" (identifier "lVar4") (= "=") (binary_expression "lVar4 + -8" (identifier "lVar4") (+ "+") (number_literal "-8"))) (; ";")) (if_statement "if ((int)uVar2 < 1) {\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }" (if "if") (parenthesized_expression "((int)uVar2 < 1)" (( "(") (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        pvVar3 = *(void **)(param_1 + 0x18);\n        do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );\n      }" ({ "{") (expression_statement "pvVar3 = *(void **)(param_1 + 0x18);" (assignment_expression "pvVar3 = *(void **)(param_1 + 0x18)" (identifier "pvVar3") (= "=") (pointer_expression "*(void **)(param_1 + 0x18)" (* "*") (cast_expression "(void **)(param_1 + 0x18)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (do_statement "do {\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        } while( true );" (do "do") (compound_statement "{\n          uVar2 = (ulong)*(int *)(param_1 + 0x24);\n          lVar4 = uVar2 * 8;\n          do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);\n          free(__ptr);\n          pvVar3 = *(void **)(param_1 + 0x18);\n          *(undefined8 *)((long)pvVar3 + lVar4) = 0;\n        }" ({ "{") (expression_statement "uVar2 = (ulong)*(int *)(param_1 + 0x24);" (assignment_expression "uVar2 = (ulong)*(int *)(param_1 + 0x24)" (identifier "uVar2") (= "=") (binary_expression "(ulong)*(int *)(param_1 + 0x24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "lVar4 = uVar2 * 8;" (assignment_expression "lVar4 = uVar2 * 8" (identifier "lVar4") (= "=") (binary_expression "uVar2 * 8" (identifier "uVar2") (* "*") (number_literal "8"))) (; ";")) (do_statement "do {\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          } while (__ptr == (void *)0x0);" (do "do") (compound_statement "{\n            lVar4 = lVar4 + -8;\n            if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }\n            uVar1 = (int)uVar2 - 1;\n            uVar2 = (ulong)uVar1;\n            __ptr = *(void **)((long)pvVar3 + lVar4);\n            *(uint *)(param_1 + 0x24) = uVar1;\n          }" ({ "{") (expression_statement "lVar4 = lVar4 + -8;" (assignment_expression "lVar4 = lVar4 + -8" (identifier "lVar4") (= "=") (binary_expression "lVar4 + -8" (identifier "lVar4") (+ "+") (number_literal "-8"))) (; ";")) (if_statement "if ((int)uVar2 < 1) {\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }" (if "if") (parenthesized_expression "((int)uVar2 < 1)" (( "(") (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n              if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }\n              if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }\n              return;\n            }" ({ "{") (if_statement "if (pvVar3 != (void *)0x0) {\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }" (if "if") (parenthesized_expression "(pvVar3 != (void *)0x0)" (( "(") (binary_expression "pvVar3 != (void *)0x0" (identifier "pvVar3") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                free(pvVar3);\n                *(undefined8 *)(param_1 + 0x18) = 0;\n                *(undefined4 *)(param_1 + 0x2c) = 0;\n              }" ({ "{") (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" (identifier "free") (argument_list "(pvVar3)" (( "(") (identifier "pvVar3") () ")"))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x2c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x2c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (*(void **)(param_1 + 0x10) != (void *)0x0) {\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }" (if "if") (parenthesized_expression "(*(void **)(param_1 + 0x10) != (void *)0x0)" (( "(") (binary_expression "*(void **)(param_1 + 0x10) != (void *)0x0" (pointer_expression "*(void **)(param_1 + 0x10)" (* "*") (cast_expression "(void **)(param_1 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                free(*(void **)(param_1 + 0x10));\n                *(undefined8 *)(param_1 + 0x10) = 0;\n                *(undefined4 *)(param_1 + 0x28) = 0;\n              }" ({ "{") (expression_statement "free(*(void **)(param_1 + 0x10));" (call_expression "free(*(void **)(param_1 + 0x10))" (identifier "free") (argument_list "(*(void **)(param_1 + 0x10))" (( "(") (pointer_expression "*(void **)(param_1 + 0x10)" (* "*") (cast_expression "(void **)(param_1 + 0x10)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) () ")"))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x10) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar1 = (int)uVar2 - 1;" (assignment_expression "uVar1 = (int)uVar2 - 1" (identifier "uVar1") (= "=") (binary_expression "(int)uVar2 - 1" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = (ulong)uVar1;" (assignment_expression "uVar2 = (ulong)uVar1" (identifier "uVar2") (= "=") (cast_expression "(ulong)uVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar1"))) (; ";")) (expression_statement "__ptr = *(void **)((long)pvVar3 + lVar4);" (assignment_expression "__ptr = *(void **)((long)pvVar3 + lVar4)" (identifier "__ptr") (= "=") (pointer_expression "*(void **)((long)pvVar3 + lVar4)" (* "*") (cast_expression "(void **)((long)pvVar3 + lVar4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)pvVar3 + lVar4)" (( "(") (binary_expression "(long)pvVar3 + lVar4" (cast_expression "(long)pvVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar3")) (+ "+") (identifier "lVar4")) () ")"))))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x24) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x24) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x24)" (* "*") (cast_expression "(uint *)(param_1 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}")) (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 "pvVar3 = *(void **)(param_1 + 0x18);" (assignment_expression "pvVar3 = *(void **)(param_1 + 0x18)" (identifier "pvVar3") (= "=") (pointer_expression "*(void **)(param_1 + 0x18)" (* "*") (cast_expression "(void **)(param_1 + 0x18)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)((long)pvVar3 + lVar4) = 0;" (assignment_expression "*(undefined8 *)((long)pvVar3 + lVar4) = 0" (pointer_expression "*(undefined8 *)((long)pvVar3 + lVar4)" (* "*") (cast_expression "(undefined8 *)((long)pvVar3 + lVar4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)pvVar3 + lVar4)" (( "(") (binary_expression "(long)pvVar3 + lVar4" (cast_expression "(long)pvVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pvVar3")) (+ "+") (identifier "lVar4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (expression_statement "uVar1 = (int)uVar2 - 1;" (assignment_expression "uVar1 = (int)uVar2 - 1" (identifier "uVar1") (= "=") (binary_expression "(int)uVar2 - 1" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = (ulong)uVar1;" (assignment_expression "uVar2 = (ulong)uVar1" (identifier "uVar2") (= "=") (cast_expression "(ulong)uVar1" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x20) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x20) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x20)" (* "*") (cast_expression "(uint *)(param_1 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);" (assignment_expression "pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4)" (identifier "pvVar3") (= "=") (pointer_expression "*(void **)(*(long *)(param_1 + 0x10) + lVar4)" (* "*") (cast_expression "(void **)(*(long *)(param_1 + 0x10) + lVar4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x10) + lVar4)" (( "(") (binary_expression "*(long *)(param_1 + 0x10) + lVar4" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "lVar4")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pvVar3 == (void *)0x0)" (( "(") (binary_expression "pvVar3 == (void *)0x0" (identifier "pvVar3") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "free(pvVar3);" (call_expression "free(pvVar3)" (identifier "free") (argument_list "(pvVar3)" (( "(") (identifier "pvVar3") () ")"))) (; ";")) (expression_statement "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;" (assignment_expression "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0" (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4)" (* "*") (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x10) + lVar4)" (( "(") (binary_expression "*(long *)(param_1 + 0x10) + lVar4" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "lVar4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

void function_1(type_1 *work)

{
  void *var_5;
  type_2 uVar2;
  type_3 var_1;
  char **var_3;
  long var_2;
  
  do {
    var_1 = (type_3)work->numk;
    var_2 = var_1 * 8;
    do {
      var_2 = var_2 + -8;
      if ((int)var_1 < 1) {
        var_3 = work->btypevec;
        do {
          var_1 = (type_3)work->numb;
          var_2 = var_1 * 8;
          do {
            var_2 = var_2 + -8;
            if ((int)var_1 < 1) {
              if (var_3 != (char **)0x0) {
                var_4(var_3);
                work->btypevec = (char **)0x0;
                work->bsize = 0;
              }
              if (work->ktypevec != (char **)0x0) {
                var_4(work->ktypevec);
                work->ktypevec = (char **)0x0;
                work->ksize = 0;
              }
              return;
            }
            uVar2 = (int)var_1 - 1;
            var_1 = (type_3)uVar2;
            var_5 = *(void **)((long)var_3 + var_2);
            work->numb = uVar2;
          } while (var_5 == (void *)0x0);
          var_4(var_5);
          var_3 = work->btypevec;
          *(type_4 *)((long)var_3 + var_2) = 0;
        } while( true );
      }
      uVar2 = (int)var_1 - 1;
      var_1 = (type_3)uVar2;
      work->numk = uVar2;
      var_5 = *(void **)((long)work->ktypevec + var_2);
    } while (var_5 == (void *)0x0);
    var_4(var_5);
    *(type_4 *)((long)work->ktypevec + var_2) = 0;
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (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: (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: (sized_type_specifier)) value: (identifier)) right: (identifier))))) right: (number_literal)))) condition: (parenthesized_expression (true))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (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: (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: (sized_type_specifier) 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: (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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) right: (number_literal)))) condition: (parenthesized_expression (true))))))

void MASKED(long param_1)

{
  void *__ptr;
  uint uVar1;
  ulong uVar2;
  void *pvVar3;
  long lVar4;
  
  do {
    uVar2 = (ulong)*(int *)(param_1 + 0x20);
    lVar4 = uVar2 * 8;
    do {
      lVar4 = lVar4 + -8;
      if ((int)uVar2 < 1) {
        pvVar3 = *(void **)(param_1 + 0x18);
        do {
          uVar2 = (ulong)*(int *)(param_1 + 0x24);
          lVar4 = uVar2 * 8;
          do {
            lVar4 = lVar4 + -8;
            if ((int)uVar2 < 1) {
              if (pvVar3 != (void *)0x0) {
                free(pvVar3);
                *(undefined8 *)(param_1 + 0x18) = 0;
                *(undefined4 *)(param_1 + 0x2c) = 0;
              }
              if (*(void **)(param_1 + 0x10) != (void *)0x0) {
                free(*(void **)(param_1 + 0x10));
                *(undefined8 *)(param_1 + 0x10) = 0;
                *(undefined4 *)(param_1 + 0x28) = 0;
              }
              return;
            }
            uVar1 = (int)uVar2 - 1;
            uVar2 = (ulong)uVar1;
            __ptr = *(void **)((long)pvVar3 + lVar4);
            *(uint *)(param_1 + 0x24) = uVar1;
          } while (__ptr == (void *)0x0);
          free(__ptr);
          pvVar3 = *(void **)(param_1 + 0x18);
          *(undefined8 *)((long)pvVar3 + lVar4) = 0;
        } while( true );
      }
      uVar1 = (int)uVar2 - 1;
      uVar2 = (ulong)uVar1;
      *(uint *)(param_1 + 0x20) = uVar1;
      pvVar3 = *(void **)(*(long *)(param_1 + 0x10) + lVar4);
    } while (pvVar3 == (void *)0x0);
    free(pvVar3);
    *(undefined8 *)(*(long *)(param_1 + 0x10) + lVar4) = 0;
  } while( true );
}

