
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::locale::_Impl::~_Impl() */

void __thiscall std::locale::_Impl::~_Impl(_Impl *this)

{
  int *piVar1;
  int *piVar2;
  undefined *puVar3;
  void *pvVar4;
  uint uVar5;
  int iVar6;
  
  puVar3 = PTR___pthread_key_create_0033ef3c;
  pvVar4 = *(void **)(this + 4);
  if (pvVar4 != (void *)0x0) {
    if (*(int *)(this + 8) != 0) {
      uVar5 = 0;
      do {
        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);
        if (piVar2 != (int *)0x0) {
          if (puVar3 == (undefined *)0x0) {
            iVar6 = piVar2[1];
            piVar2[1] = iVar6 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar2 + 1;
            iVar6 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar6 == 1) {
                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */
            (**(code **)(*piVar2 + 4))(piVar2);
          }
          pvVar4 = *(void **)(this + 4);
        }
        uVar5 = uVar5 + 1;
      } while (uVar5 < *(uint *)(this + 8));
      if (pvVar4 == (void *)0x0) goto LAB_001aea63;
    }
    operator_delete__(pvVar4);
  }
LAB_001aea63:
  puVar3 = PTR___pthread_key_create_0033ef3c;
  pvVar4 = *(void **)(this + 0xc);
  if (pvVar4 != (void *)0x0) {
    if (*(int *)(this + 8) != 0) {
      uVar5 = 0;
      do {
        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);
        if (piVar2 != (int *)0x0) {
          if (puVar3 == (undefined *)0x0) {
            iVar6 = piVar2[1];
            piVar2[1] = iVar6 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar2 + 1;
            iVar6 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar6 == 1) {
                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */
            (**(code **)(*piVar2 + 4))(piVar2);
          }
          pvVar4 = *(void **)(this + 0xc);
        }
        uVar5 = uVar5 + 1;
      } while (uVar5 < *(uint *)(this + 8));
      if (pvVar4 == (void *)0x0) goto LAB_001aeae3;
    }
    operator_delete__(pvVar4);
  }
LAB_001aeae3:
  pvVar4 = *(void **)(this + 0x10);
  iVar6 = 0;
  if (pvVar4 != (void *)0x0) {
    do {
      if (*(void **)((int)pvVar4 + iVar6) != (void *)0x0) {
        operator_delete__(*(void **)((int)pvVar4 + iVar6));
        pvVar4 = *(void **)(this + 0x10);
      }
      iVar6 = iVar6 + 4;
    } while (iVar6 != 0x30);
    if (pvVar4 != (void *)0x0) {
      operator_delete__(pvVar4);
    }
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void FUN_001ae9d0(int param_1)

{
  int *piVar1;
  int *piVar2;
  undefined *puVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  
  puVar3 = PTR___pthread_key_create_0033ef3c;
  iVar4 = *(int *)(param_1 + 4);
  if (iVar4 != 0) {
    if (*(int *)(param_1 + 8) != 0) {
      uVar5 = 0;
      do {
        piVar2 = *(int **)(iVar4 + uVar5 * 4);
        if (piVar2 != (int *)0x0) {
          if (puVar3 == (undefined *)0x0) {
            iVar4 = piVar2[1];
            piVar2[1] = iVar4 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar2 + 1;
            iVar4 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar4 == 1) {
                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */
            (**(code **)(*piVar2 + 4))(piVar2);
          }
          iVar4 = *(int *)(param_1 + 4);
        }
        uVar5 = uVar5 + 1;
      } while (uVar5 < *(uint *)(param_1 + 8));
      if (iVar4 == 0) goto LAB_001aea63;
    }
    FUN_001ac410(iVar4);
  }
LAB_001aea63:
  puVar3 = PTR___pthread_key_create_0033ef3c;
  iVar4 = *(int *)(param_1 + 0xc);
  if (iVar4 != 0) {
    if (*(int *)(param_1 + 8) != 0) {
      uVar5 = 0;
      do {
        piVar2 = *(int **)(iVar4 + uVar5 * 4);
        if (piVar2 != (int *)0x0) {
          if (puVar3 == (undefined *)0x0) {
            iVar4 = piVar2[1];
            piVar2[1] = iVar4 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar2 + 1;
            iVar4 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar4 == 1) {
                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */
            (**(code **)(*piVar2 + 4))(piVar2);
          }
          iVar4 = *(int *)(param_1 + 0xc);
        }
        uVar5 = uVar5 + 1;
      } while (uVar5 < *(uint *)(param_1 + 8));
      if (iVar4 == 0) goto LAB_001aeae3;
    }
    FUN_001ac410(iVar4);
  }
LAB_001aeae3:
  iVar4 = *(int *)(param_1 + 0x10);
  iVar6 = 0;
  if (iVar4 != 0) {
    do {
      if (*(int *)(iVar4 + iVar6) != 0) {
        FUN_001ac410(*(int *)(iVar4 + iVar6));
        iVar4 = *(int *)(param_1 + 0x10);
      }
      iVar6 = iVar6 + 4;
    } while (iVar6 != 0x30);
    if (iVar4 != 0) {
      FUN_001ac410(iVar4);
    }
  }
  return;
}


CALL 0x00058c42
ADD EAX,0x19062b
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ESI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x1c],EAX
MOV EDX,dword ptr [ESI + 0x4]
TEST EDX,EDX
JZ 0x001aea63
MOV EDI,dword ptr [ESI + 0x8]
TEST EDI,EDI
JZ 0x001aea54
MOV EAX,dword ptr [EAX + 0xffffff3c]
XOR EDI,EDI
MOV dword ptr [EBP + -0x20],EAX
JMP 0x001aea22
MOV EDX,0xffffffff
XADD.LOCK dword ptr [EAX + 0x4],EDX
CMP EDX,0x1
JZ 0x001aea3e
MOV EDX,dword ptr [ESI + 0x4]
ADD EDI,0x1
CMP dword ptr [ESI + 0x8],EDI
JBE 0x001aea50
MOV EAX,dword ptr [EDX + EDI*0x4]
TEST EAX,EAX
JZ 0x001aea1a
MOV EBX,dword ptr [EBP + -0x20]
TEST EBX,EBX
JNZ 0x001aea08
MOV EDX,dword ptr [EAX + 0x4]
LEA ECX,[EDX + -0x1]
MOV dword ptr [EAX + 0x4],ECX
CMP EDX,0x1
JNZ 0x001aea17
MOV EDX,dword ptr [EAX]
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDX + 0x4]
ADD ESP,0x10
JMP 0x001aea17
TEST EDX,EDX
JZ 0x001aea63
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EDX
CALL 0x001ac410
ADD ESP,0x10
MOV EDX,dword ptr [ESI + 0xc]
TEST EDX,EDX
JZ 0x001aeae3
MOV ECX,dword ptr [ESI + 0x8]
TEST ECX,ECX
JZ 0x001aead4
MOV EAX,dword ptr [EBP + -0x1c]
XOR EDI,EDI
MOV EAX,dword ptr [EAX + 0xffffff3c]
MOV dword ptr [EBP + -0x20],EAX
JMP 0x001aeaa2
MOV EDX,0xffffffff
XADD.LOCK dword ptr [EAX + 0x4],EDX
CMP EDX,0x1
JZ 0x001aeabe
MOV EDX,dword ptr [ESI + 0xc]
ADD EDI,0x1
CMP dword ptr [ESI + 0x8],EDI
JBE 0x001aead0
MOV EAX,dword ptr [EDX + EDI*0x4]
TEST EAX,EAX
JZ 0x001aea9a
MOV EDX,dword ptr [EBP + -0x20]
TEST EDX,EDX
JNZ 0x001aea88
MOV EDX,dword ptr [EAX + 0x4]
LEA ECX,[EDX + -0x1]
MOV dword ptr [EAX + 0x4],ECX
CMP EDX,0x1
JNZ 0x001aea97
MOV EDX,dword ptr [EAX]
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDX + 0x4]
ADD ESP,0x10
JMP 0x001aea97
TEST EDX,EDX
JZ 0x001aeae3
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EDX
CALL 0x001ac410
ADD ESP,0x10
MOV EDX,dword ptr [ESI + 0x10]
XOR EDI,EDI
TEST EDX,EDX
JZ 0x001aeb24
LEA ESI,[ESI]
MOV EAX,dword ptr [EDX + EDI*0x1]
TEST EAX,EAX
JZ 0x001aeb09
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EAX
CALL 0x001ac410
MOV EDX,dword ptr [ESI + 0x10]
ADD ESP,0x10
ADD EDI,0x4
CMP EDI,0x30
JNZ 0x001aeaf0
TEST EDX,EDX
JZ 0x001aeb24
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EDX
CALL 0x001ac410
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_001ae9d0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 4);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 0xc);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);\n  iVar6 = 0;\n  if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_001ae9d0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 4);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 0xc);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);\n  iVar6 = 0;\n  if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001ae9d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 4);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 0xc);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);\n  iVar6 = 0;\n  if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar3 = PTR___pthread_key_create_0033ef3c" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }" { (if_statement "if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));" do (compound_statement "{\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      }" { (expression_statement "piVar2 = *(int **)(iVar4 + uVar5 * 4);" (assignment_expression "piVar2 = *(int **)(iVar4 + uVar5 * 4)" identifier = (pointer_expression "*(int **)(iVar4 + uVar5 * 4)" * (cast_expression "(int **)(iVar4 + uVar5 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + uVar5 * 4)" ( (binary_expression "iVar4 + uVar5 * 4" identifier + (binary_expression "uVar5 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }" { (if_statement "if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }" { (expression_statement "iVar4 = piVar2[1];" (assignment_expression "iVar4 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar4 + -1;" (assignment_expression "piVar2[1] = iVar4 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar4 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" { comment (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(uint *)(param_1 + 8))" ( (binary_expression "uVar5 < *(uint *)(param_1 + 8)" identifier < (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) (if_statement "if (iVar4 == 0) goto LAB_001aea63;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001aea63;" goto statement_identifier ;)) })) (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) (labeled_statement "LAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;" statement_identifier : (expression_statement "puVar3 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar3 = PTR___pthread_key_create_0033ef3c" identifier = identifier) ;)) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }" { (if_statement "if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));" do (compound_statement "{\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      }" { (expression_statement "piVar2 = *(int **)(iVar4 + uVar5 * 4);" (assignment_expression "piVar2 = *(int **)(iVar4 + uVar5 * 4)" identifier = (pointer_expression "*(int **)(iVar4 + uVar5 * 4)" * (cast_expression "(int **)(iVar4 + uVar5 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + uVar5 * 4)" ( (binary_expression "iVar4 + uVar5 * 4" identifier + (binary_expression "uVar5 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }" { (if_statement "if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }" { (expression_statement "iVar4 = piVar2[1];" (assignment_expression "iVar4 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar4 + -1;" (assignment_expression "piVar2[1] = iVar4 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar4 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" { comment (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(uint *)(param_1 + 8))" ( (binary_expression "uVar5 < *(uint *)(param_1 + 8)" identifier < (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) (if_statement "if (iVar4 == 0) goto LAB_001aeae3;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001aeae3;" goto statement_identifier ;)) })) (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) (labeled_statement "LAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);" statement_identifier : (expression_statement "iVar4 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;)) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" { (do_statement "do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);" do (compound_statement "{\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    }" { (if_statement "if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }" if (parenthesized_expression "(*(int *)(iVar4 + iVar6) != 0)" ( (binary_expression "*(int *)(iVar4 + iVar6) != 0" (pointer_expression "*(int *)(iVar4 + iVar6)" * (cast_expression "(int *)(iVar4 + iVar6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6)" ( (binary_expression "iVar4 + iVar6" identifier + identifier) )))) != number_literal) )) (compound_statement "{\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }" { (expression_statement "FUN_001ac410(*(int *)(iVar4 + iVar6));" (call_expression "FUN_001ac410(*(int *)(iVar4 + iVar6))" identifier (argument_list "(*(int *)(iVar4 + iVar6))" ( (pointer_expression "*(int *)(iVar4 + iVar6)" * (cast_expression "(int *)(iVar4 + iVar6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6)" ( (binary_expression "iVar4 + iVar6" identifier + identifier) )))) ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar6 = iVar6 + 4;" (assignment_expression "iVar6 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0x30)" ( (binary_expression "iVar6 != 0x30" identifier != number_literal) )) ;) (if_statement "if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_001ac410(iVar4);\n    }" { (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* std::locale::_Impl::~_Impl() */\n\nvoid __thiscall std::locale::_Impl::~_Impl(_Impl *this)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  pvVar4 = *(void **)(this + 4);\n  if (pvVar4 != (void *)0x0) {\n    if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aea63;\n    }\n    operator_delete__(pvVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  pvVar4 = *(void **)(this + 0xc);\n  if (pvVar4 != (void *)0x0) {\n    if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aeae3;\n    }\n    operator_delete__(pvVar4);\n  }\nLAB_001aeae3:\n  pvVar4 = *(void **)(this + 0x10);\n  iVar6 = 0;\n  if (pvVar4 != (void *)0x0) {\n    do {\n      if (*(void **)((int)pvVar4 + iVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar4 + iVar6));\n        pvVar4 = *(void **)(this + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::locale::_Impl::~_Impl(_Impl *this)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  pvVar4 = *(void **)(this + 4);\n  if (pvVar4 != (void *)0x0) {\n    if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aea63;\n    }\n    operator_delete__(pvVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  pvVar4 = *(void **)(this + 0xc);\n  if (pvVar4 != (void *)0x0) {\n    if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aeae3;\n    }\n    operator_delete__(pvVar4);\n  }\nLAB_001aeae3:\n  pvVar4 = *(void **)(this + 0x10);\n  iVar6 = 0;\n  if (pvVar4 != (void *)0x0) {\n    do {\n      if (*(void **)((int)pvVar4 + iVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar4 + iVar6));\n        pvVar4 = *(void **)(this + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::locale::_Impl::~" identifier : : identifier : : identifier : : ~) (function_declarator "_Impl(_Impl *this)" identifier (parameter_list "(_Impl *this)" ( (parameter_declaration "_Impl *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  void *pvVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  pvVar4 = *(void **)(this + 4);\n  if (pvVar4 != (void *)0x0) {\n    if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aea63;\n    }\n    operator_delete__(pvVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  pvVar4 = *(void **)(this + 0xc);\n  if (pvVar4 != (void *)0x0) {\n    if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aeae3;\n    }\n    operator_delete__(pvVar4);\n  }\nLAB_001aeae3:\n  pvVar4 = *(void **)(this + 0x10);\n  iVar6 = 0;\n  if (pvVar4 != (void *)0x0) {\n    do {\n      if (*(void **)((int)pvVar4 + iVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar4 + iVar6));\n        pvVar4 = *(void **)(this + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar3 = PTR___pthread_key_create_0033ef3c" identifier = identifier) ;) (expression_statement "pvVar4 = *(void **)(this + 4);" (assignment_expression "pvVar4 = *(void **)(this + 4)" identifier = (pointer_expression "*(void **)(this + 4)" * (cast_expression "(void **)(this + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n    if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aea63;\n    }\n    operator_delete__(pvVar4);\n  }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aea63;\n    }\n    operator_delete__(pvVar4);\n  }" { (if_statement "if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aea63;\n    }" if (parenthesized_expression "(*(int *)(this + 8) != 0)" ( (binary_expression "*(int *)(this + 8) != 0" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aea63;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));" do (compound_statement "{\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }\n        uVar5 = uVar5 + 1;\n      }" { (expression_statement "piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);" (assignment_expression "piVar2 = *(int **)((int)pvVar4 + uVar5 * 4)" identifier = (pointer_expression "*(int **)((int)pvVar4 + uVar5 * 4)" * (cast_expression "(int **)((int)pvVar4 + uVar5 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar4 + uVar5 * 4)" ( (binary_expression "(int)pvVar4 + uVar5 * 4" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar5 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 4);\n        }" { (if_statement "if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }" { (expression_statement "iVar6 = piVar2[1];" (assignment_expression "iVar6 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar6 + -1;" (assignment_expression "piVar2[1] = iVar6 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = *piVar1;" (assignment_expression "iVar6 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar6 == 1) {\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" if (parenthesized_expression "(iVar6 == 1)" ( (binary_expression "iVar6 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" { comment (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "pvVar4 = *(void **)(this + 4);" (assignment_expression "pvVar4 = *(void **)(this + 4)" identifier = (pointer_expression "*(void **)(this + 4)" * (cast_expression "(void **)(this + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(uint *)(this + 8))" ( (binary_expression "uVar5 < *(uint *)(this + 8)" identifier < (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) ;) (if_statement "if (pvVar4 == (void *)0x0) goto LAB_001aea63;" if (parenthesized_expression "(pvVar4 == (void *)0x0)" ( (binary_expression "pvVar4 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001aea63;" goto statement_identifier ;)) })) (expression_statement "operator_delete__(pvVar4);" (call_expression "operator_delete__(pvVar4)" identifier (argument_list "(pvVar4)" ( identifier ))) ;) })) (labeled_statement "LAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;" statement_identifier : (expression_statement "puVar3 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar3 = PTR___pthread_key_create_0033ef3c" identifier = identifier) ;)) (expression_statement "pvVar4 = *(void **)(this + 0xc);" (assignment_expression "pvVar4 = *(void **)(this + 0xc)" identifier = (pointer_expression "*(void **)(this + 0xc)" * (cast_expression "(void **)(this + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n    if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aeae3;\n    }\n    operator_delete__(pvVar4);\n  }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aeae3;\n    }\n    operator_delete__(pvVar4);\n  }" { (if_statement "if (*(int *)(this + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aeae3;\n    }" if (parenthesized_expression "(*(int *)(this + 8) != 0)" ( (binary_expression "*(int *)(this + 8) != 0" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));\n      if (pvVar4 == (void *)0x0) goto LAB_001aeae3;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(this + 8));" do (compound_statement "{\n        piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      }" { (expression_statement "piVar2 = *(int **)((int)pvVar4 + uVar5 * 4);" (assignment_expression "piVar2 = *(int **)((int)pvVar4 + uVar5 * 4)" identifier = (pointer_expression "*(int **)((int)pvVar4 + uVar5 * 4)" * (cast_expression "(int **)((int)pvVar4 + uVar5 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar4 + uVar5 * 4)" ( (binary_expression "(int)pvVar4 + uVar5 * 4" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "uVar5 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          pvVar4 = *(void **)(this + 0xc);\n        }" { (if_statement "if (puVar3 == (undefined *)0x0) {\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar6 = piVar2[1];\n            piVar2[1] = iVar6 + -1;\n          }" { (expression_statement "iVar6 = piVar2[1];" (assignment_expression "iVar6 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar6 + -1;" (assignment_expression "piVar2[1] = iVar6 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar6 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar6 = *piVar1;" (assignment_expression "iVar6 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar6 == 1) {\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" if (parenthesized_expression "(iVar6 == 1)" ( (binary_expression "iVar6 == 1" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */\n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" { comment (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "pvVar4 = *(void **)(this + 0xc);" (assignment_expression "pvVar4 = *(void **)(this + 0xc)" identifier = (pointer_expression "*(void **)(this + 0xc)" * (cast_expression "(void **)(this + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(uint *)(this + 8))" ( (binary_expression "uVar5 < *(uint *)(this + 8)" identifier < (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) )) ;) (if_statement "if (pvVar4 == (void *)0x0) goto LAB_001aeae3;" if (parenthesized_expression "(pvVar4 == (void *)0x0)" ( (binary_expression "pvVar4 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_001aeae3;" goto statement_identifier ;)) })) (expression_statement "operator_delete__(pvVar4);" (call_expression "operator_delete__(pvVar4)" identifier (argument_list "(pvVar4)" ( identifier ))) ;) })) (labeled_statement "LAB_001aeae3:\n  pvVar4 = *(void **)(this + 0x10);" statement_identifier : (expression_statement "pvVar4 = *(void **)(this + 0x10);" (assignment_expression "pvVar4 = *(void **)(this + 0x10)" identifier = (pointer_expression "*(void **)(this + 0x10)" * (cast_expression "(void **)(this + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;)) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n    do {\n      if (*(void **)((int)pvVar4 + iVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar4 + iVar6));\n        pvVar4 = *(void **)(this + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }\n  }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (*(void **)((int)pvVar4 + iVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar4 + iVar6));\n        pvVar4 = *(void **)(this + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }\n  }" { (do_statement "do {\n      if (*(void **)((int)pvVar4 + iVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar4 + iVar6));\n        pvVar4 = *(void **)(this + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);" do (compound_statement "{\n      if (*(void **)((int)pvVar4 + iVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar4 + iVar6));\n        pvVar4 = *(void **)(this + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    }" { (if_statement "if (*(void **)((int)pvVar4 + iVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((int)pvVar4 + iVar6));\n        pvVar4 = *(void **)(this + 0x10);\n      }" if (parenthesized_expression "(*(void **)((int)pvVar4 + iVar6) != (void *)0x0)" ( (binary_expression "*(void **)((int)pvVar4 + iVar6) != (void *)0x0" (pointer_expression "*(void **)((int)pvVar4 + iVar6)" * (cast_expression "(void **)((int)pvVar4 + iVar6)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar4 + iVar6)" ( (binary_expression "(int)pvVar4 + iVar6" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        operator_delete__(*(void **)((int)pvVar4 + iVar6));\n        pvVar4 = *(void **)(this + 0x10);\n      }" { (expression_statement "operator_delete__(*(void **)((int)pvVar4 + iVar6));" (call_expression "operator_delete__(*(void **)((int)pvVar4 + iVar6))" identifier (argument_list "(*(void **)((int)pvVar4 + iVar6))" ( (pointer_expression "*(void **)((int)pvVar4 + iVar6)" * (cast_expression "(void **)((int)pvVar4 + iVar6)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)pvVar4 + iVar6)" ( (binary_expression "(int)pvVar4 + iVar6" (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ))) ;) (expression_statement "pvVar4 = *(void **)(this + 0x10);" (assignment_expression "pvVar4 = *(void **)(this + 0x10)" identifier = (pointer_expression "*(void **)(this + 0x10)" * (cast_expression "(void **)(this + 0x10)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar6 = iVar6 + 4;" (assignment_expression "iVar6 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0x30)" ( (binary_expression "iVar6 != 0x30" identifier != number_literal) )) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n    }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      operator_delete__(pvVar4);\n    }" { (expression_statement "operator_delete__(pvVar4);" (call_expression "operator_delete__(pvVar4)" identifier (argument_list "(pvVar4)" ( identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001ae9d0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 4);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 0xc);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);\n  iVar6 = 0;\n  if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_001ae9d0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 4);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 0xc);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);\n  iVar6 = 0;\n  if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001ae9d0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 4);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 0xc);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);\n  iVar6 = 0;\n  if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar3 = PTR___pthread_key_create_0033ef3c" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }" { (if_statement "if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));" do (compound_statement "{\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      }" { (expression_statement "piVar2 = *(int **)(iVar4 + uVar5 * 4);" (assignment_expression "piVar2 = *(int **)(iVar4 + uVar5 * 4)" identifier = (pointer_expression "*(int **)(iVar4 + uVar5 * 4)" * (cast_expression "(int **)(iVar4 + uVar5 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + uVar5 * 4)" ( (binary_expression "iVar4 + uVar5 * 4" identifier + (binary_expression "uVar5 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }" { (if_statement "if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }" { (expression_statement "iVar4 = piVar2[1];" (assignment_expression "iVar4 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar4 + -1;" (assignment_expression "piVar2[1] = iVar4 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(uint *)(param_1 + 8))" ( (binary_expression "uVar5 < *(uint *)(param_1 + 8)" identifier < (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) (if_statement "if (iVar4 == 0) goto LAB_001aea63;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001aea63;" goto statement_identifier ;)) })) (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) (labeled_statement "LAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;" statement_identifier : (expression_statement "puVar3 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar3 = PTR___pthread_key_create_0033ef3c" identifier = identifier) ;)) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }" { (if_statement "if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" ( (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));" do (compound_statement "{\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      }" { (expression_statement "piVar2 = *(int **)(iVar4 + uVar5 * 4);" (assignment_expression "piVar2 = *(int **)(iVar4 + uVar5 * 4)" identifier = (pointer_expression "*(int **)(iVar4 + uVar5 * 4)" * (cast_expression "(int **)(iVar4 + uVar5 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + uVar5 * 4)" ( (binary_expression "iVar4 + uVar5 * 4" identifier + (binary_expression "uVar5 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }" { (if_statement "if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }" { (expression_statement "iVar4 = piVar2[1];" (assignment_expression "iVar4 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar4 + -1;" (assignment_expression "piVar2[1] = iVar4 + -1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" identifier = (binary_expression "piVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" { (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" ( (pointer_expression "**(code **)(*piVar2 + 4)" * (pointer_expression "*(code **)(*piVar2 + 4)" * (cast_expression "(code **)(*piVar2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 4)" ( (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(piVar2)" ( identifier ))) ;) })) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(uint *)(param_1 + 8))" ( (binary_expression "uVar5 < *(uint *)(param_1 + 8)" identifier < (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) )) ;) (if_statement "if (iVar4 == 0) goto LAB_001aeae3;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_001aeae3;" goto statement_identifier ;)) })) (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) (labeled_statement "LAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);" statement_identifier : (expression_statement "iVar4 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;)) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" { (do_statement "do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);" do (compound_statement "{\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    }" { (if_statement "if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }" if (parenthesized_expression "(*(int *)(iVar4 + iVar6) != 0)" ( (binary_expression "*(int *)(iVar4 + iVar6) != 0" (pointer_expression "*(int *)(iVar4 + iVar6)" * (cast_expression "(int *)(iVar4 + iVar6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6)" ( (binary_expression "iVar4 + iVar6" identifier + identifier) )))) != number_literal) )) (compound_statement "{\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }" { (expression_statement "FUN_001ac410(*(int *)(iVar4 + iVar6));" (call_expression "FUN_001ac410(*(int *)(iVar4 + iVar6))" identifier (argument_list "(*(int *)(iVar4 + iVar6))" ( (pointer_expression "*(int *)(iVar4 + iVar6)" * (cast_expression "(int *)(iVar4 + iVar6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6)" ( (binary_expression "iVar4 + iVar6" identifier + identifier) )))) ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) })) (expression_statement "iVar6 = iVar6 + 4;" (assignment_expression "iVar6 = iVar6 + 4" identifier = (binary_expression "iVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0x30)" ( (binary_expression "iVar6 != 0x30" identifier != number_literal) )) ;) (if_statement "if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_001ac410(iVar4);\n    }" { (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_001ae9d0(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 4);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 0xc);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);\n  iVar6 = 0;\n  if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001ae9d0(int param_1)" (identifier "FUN_001ae9d0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  uint uVar5;\n  int iVar6;\n  \n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 4);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;\n  iVar4 = *(int *)(param_1 + 0xc);\n  if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }\nLAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);\n  iVar6 = 0;\n  if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "puVar3 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar3 = PTR___pthread_key_create_0033ef3c" (identifier "puVar3") (= "=") (identifier "PTR___pthread_key_create_0033ef3c")) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }\n    FUN_001ac410(iVar4);\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aea63;\n    }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));" (do "do") (compound_statement "{\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }\n        uVar5 = uVar5 + 1;\n      }" ({ "{") (expression_statement "piVar2 = *(int **)(iVar4 + uVar5 * 4);" (assignment_expression "piVar2 = *(int **)(iVar4 + uVar5 * 4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(iVar4 + uVar5 * 4)" (* "*") (cast_expression "(int **)(iVar4 + uVar5 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + uVar5 * 4)" (( "(") (binary_expression "iVar4 + uVar5 * 4" (identifier "iVar4") (+ "+") (binary_expression "uVar5 * 4" (identifier "uVar5") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 4);\n        }" ({ "{") (if_statement "if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" (if "if") (parenthesized_expression "(puVar3 == (undefined *)0x0)" (( "(") (binary_expression "puVar3 == (undefined *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }" ({ "{") (expression_statement "iVar4 = piVar2[1];" (assignment_expression "iVar4 = piVar2[1]" (identifier "iVar4") (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar2[1] = iVar4 + -1;" (assignment_expression "piVar2[1] = iVar4 + -1" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" (else "else") (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" (if "if") (parenthesized_expression "(iVar4 == 1)" (( "(") (binary_expression "iVar4 == 1" (identifier "iVar4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" ({ "{") (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" (( "(") (pointer_expression "**(code **)(*piVar2 + 4)" (* "*") (pointer_expression "*(code **)(*piVar2 + 4)" (* "*") (cast_expression "(code **)(*piVar2 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 4)" (( "(") (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 < *(uint *)(param_1 + 8))" (( "(") (binary_expression "uVar5 < *(uint *)(param_1 + 8)" (identifier "uVar5") (< "<") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_001aea63;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001aea63;" (goto "goto") (statement_identifier "LAB_001aea63") (; ";"))) (} "}"))) (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" (identifier "FUN_001ac410") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_001aea63:\n  puVar3 = PTR___pthread_key_create_0033ef3c;" (statement_identifier "LAB_001aea63") (: ":") (expression_statement "puVar3 = PTR___pthread_key_create_0033ef3c;" (assignment_expression "puVar3 = PTR___pthread_key_create_0033ef3c" (identifier "puVar3") (= "=") (identifier "PTR___pthread_key_create_0033ef3c")) (; ";"))) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar4 != 0) {\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }\n    FUN_001ac410(iVar4);\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 8) != 0) {\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = 0;\n      do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));\n      if (iVar4 == 0) goto LAB_001aeae3;\n    }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(uint *)(param_1 + 8));" (do "do") (compound_statement "{\n        piVar2 = *(int **)(iVar4 + uVar5 * 4);\n        if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }\n        uVar5 = uVar5 + 1;\n      }" ({ "{") (expression_statement "piVar2 = *(int **)(iVar4 + uVar5 * 4);" (assignment_expression "piVar2 = *(int **)(iVar4 + uVar5 * 4)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(iVar4 + uVar5 * 4)" (* "*") (cast_expression "(int **)(iVar4 + uVar5 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + uVar5 * 4)" (( "(") (binary_expression "iVar4 + uVar5 * 4" (identifier "iVar4") (+ "+") (binary_expression "uVar5 * 4" (identifier "uVar5") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }\n          iVar4 = *(int *)(param_1 + 0xc);\n        }" ({ "{") (if_statement "if (puVar3 == (undefined *)0x0) {\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }\n          else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" (if "if") (parenthesized_expression "(puVar3 == (undefined *)0x0)" (( "(") (binary_expression "puVar3 == (undefined *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            iVar4 = piVar2[1];\n            piVar2[1] = iVar4 + -1;\n          }" ({ "{") (expression_statement "iVar4 = piVar2[1];" (assignment_expression "iVar4 = piVar2[1]" (identifier "iVar4") (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar2[1] = iVar4 + -1;" (assignment_expression "piVar2[1] = iVar4 + -1" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" (else "else") (compound_statement "{\n            LOCK();\n            piVar1 = piVar2 + 1;\n            iVar4 = *piVar1;\n            *piVar1 = *piVar1 + -1;\n            UNLOCK();\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = piVar2 + 1;" (assignment_expression "piVar1 = piVar2 + 1" (identifier "piVar1") (= "=") (binary_expression "piVar2 + 1" (identifier "piVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar4 == 1) {\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" (if "if") (parenthesized_expression "(iVar4 == 1)" (( "(") (binary_expression "iVar4 == 1" (identifier "iVar4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n                    \n            (**(code **)(*piVar2 + 4))(piVar2);\n          }" ({ "{") (expression_statement "(**(code **)(*piVar2 + 4))(piVar2);" (call_expression "(**(code **)(*piVar2 + 4))(piVar2)" (parenthesized_expression "(**(code **)(*piVar2 + 4))" (( "(") (pointer_expression "**(code **)(*piVar2 + 4)" (* "*") (pointer_expression "*(code **)(*piVar2 + 4)" (* "*") (cast_expression "(code **)(*piVar2 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 4)" (( "(") (binary_expression "*piVar2 + 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 < *(uint *)(param_1 + 8))" (( "(") (binary_expression "uVar5 < *(uint *)(param_1 + 8)" (identifier "uVar5") (< "<") (pointer_expression "*(uint *)(param_1 + 8)" (* "*") (cast_expression "(uint *)(param_1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_001aeae3;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001aeae3;" (goto "goto") (statement_identifier "LAB_001aeae3") (; ";"))) (} "}"))) (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" (identifier "FUN_001ac410") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_001aeae3:\n  iVar4 = *(int *)(param_1 + 0x10);" (statement_identifier "LAB_001aeae3") (: ":") (expression_statement "iVar4 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x10)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";"))) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar4 != 0) {\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);\n    if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }\n  }" ({ "{") (do_statement "do {\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    } while (iVar6 != 0x30);" (do "do") (compound_statement "{\n      if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }\n      iVar6 = iVar6 + 4;\n    }" ({ "{") (if_statement "if (*(int *)(iVar4 + iVar6) != 0) {\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar4 + iVar6) != 0)" (( "(") (binary_expression "*(int *)(iVar4 + iVar6) != 0" (pointer_expression "*(int *)(iVar4 + iVar6)" (* "*") (cast_expression "(int *)(iVar4 + iVar6)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar6)" (( "(") (binary_expression "iVar4 + iVar6" (identifier "iVar4") (+ "+") (identifier "iVar6")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_001ac410(*(int *)(iVar4 + iVar6));\n        iVar4 = *(int *)(param_1 + 0x10);\n      }" ({ "{") (expression_statement "FUN_001ac410(*(int *)(iVar4 + iVar6));" (call_expression "FUN_001ac410(*(int *)(iVar4 + iVar6))" (identifier "FUN_001ac410") (argument_list "(*(int *)(iVar4 + iVar6))" (( "(") (pointer_expression "*(int *)(iVar4 + iVar6)" (* "*") (cast_expression "(int *)(iVar4 + iVar6)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar6)" (( "(") (binary_expression "iVar4 + iVar6" (identifier "iVar4") (+ "+") (identifier "iVar6")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x10)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar6 = iVar6 + 4;" (assignment_expression "iVar6 = iVar6 + 4" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != 0x30)" (( "(") (binary_expression "iVar6 != 0x30" (identifier "iVar6") (!= "!=") (number_literal "0x30")) () ")")) (; ";")) (if_statement "if (iVar4 != 0) {\n      FUN_001ac410(iVar4);\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_001ac410(iVar4);\n    }" ({ "{") (expression_statement "FUN_001ac410(iVar4);" (call_expression "FUN_001ac410(iVar4)" (identifier "FUN_001ac410") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::locale::_Impl::~_Impl() */

void __thiscall std::locale::function_1::~function_1(function_1 *var_1)

{
  int *piVar1;
  int *var_4;
  type_1 *var_5;
  void *var_2;
  type_2 var_3;
  int var_6;
  
  var_5 = PTR___pthread_key_create_0033ef3c;
  var_2 = *(void **)(var_1 + 4);
  if (var_2 != (void *)0x0) {
    if (*(int *)(var_1 + 8) != 0) {
      var_3 = 0;
      do {
        var_4 = *(int **)((int)var_2 + var_3 * 4);
        if (var_4 != (int *)0x0) {
          if (var_5 == (type_1 *)0x0) {
            var_6 = var_4[1];
            var_4[1] = var_6 + -1;
          }
          else {
            var_7();
            piVar1 = var_4 + 1;
            var_6 = *piVar1;
            *piVar1 = *piVar1 + -1;
            var_8();
          }
          if (var_6 == 1) {
                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */
            (**(type_3 **)(*var_4 + 4))(var_4);
          }
          var_2 = *(void **)(var_1 + 4);
        }
        var_3 = var_3 + 1;
      } while (var_3 < *(type_2 *)(var_1 + 8));
      if (var_2 == (void *)0x0) goto LAB_001aea63;
    }
    var_9(var_2);
  }
LAB_001aea63:
  var_5 = PTR___pthread_key_create_0033ef3c;
  var_2 = *(void **)(var_1 + 0xc);
  if (var_2 != (void *)0x0) {
    if (*(int *)(var_1 + 8) != 0) {
      var_3 = 0;
      do {
        var_4 = *(int **)((int)var_2 + var_3 * 4);
        if (var_4 != (int *)0x0) {
          if (var_5 == (type_1 *)0x0) {
            var_6 = var_4[1];
            var_4[1] = var_6 + -1;
          }
          else {
            var_7();
            piVar1 = var_4 + 1;
            var_6 = *piVar1;
            *piVar1 = *piVar1 + -1;
            var_8();
          }
          if (var_6 == 1) {
                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */
            (**(type_3 **)(*var_4 + 4))(var_4);
          }
          var_2 = *(void **)(var_1 + 0xc);
        }
        var_3 = var_3 + 1;
      } while (var_3 < *(type_2 *)(var_1 + 8));
      if (var_2 == (void *)0x0) goto LAB_001aeae3;
    }
    var_9(var_2);
  }
LAB_001aeae3:
  var_2 = *(void **)(var_1 + 0x10);
  var_6 = 0;
  if (var_2 != (void *)0x0) {
    do {
      if (*(void **)((int)var_2 + var_6) != (void *)0x0) {
        var_9(*(void **)((int)var_2 + var_6));
        var_2 = *(void **)(var_1 + 0x10);
      }
      var_6 = var_6 + 4;
    } while (var_6 != 0x30);
    if (var_2 != (void *)0x0) {
      var_9(var_2);
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) 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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) 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)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int param_1)

{
  int *piVar1;
  int *piVar2;
  undefined *puVar3;
  int iVar4;
  uint uVar5;
  int iVar6;
  
  puVar3 = PTR___pthread_key_create_0033ef3c;
  iVar4 = *(int *)(param_1 + 4);
  if (iVar4 != 0) {
    if (*(int *)(param_1 + 8) != 0) {
      uVar5 = 0;
      do {
        piVar2 = *(int **)(iVar4 + uVar5 * 4);
        if (piVar2 != (int *)0x0) {
          if (puVar3 == (undefined *)0x0) {
            iVar4 = piVar2[1];
            piVar2[1] = iVar4 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar2 + 1;
            iVar4 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar4 == 1) {
                    /* try { // try from 001aea44 to 001aea46 has its CatchHandler @ 001aeb2c */
            (**(code **)(*piVar2 + 4))(piVar2);
          }
          iVar4 = *(int *)(param_1 + 4);
        }
        uVar5 = uVar5 + 1;
      } while (uVar5 < *(uint *)(param_1 + 8));
      if (iVar4 == 0) goto LAB_001aea63;
    }
    FUN_001ac410(iVar4);
  }
LAB_001aea63:
  puVar3 = PTR___pthread_key_create_0033ef3c;
  iVar4 = *(int *)(param_1 + 0xc);
  if (iVar4 != 0) {
    if (*(int *)(param_1 + 8) != 0) {
      uVar5 = 0;
      do {
        piVar2 = *(int **)(iVar4 + uVar5 * 4);
        if (piVar2 != (int *)0x0) {
          if (puVar3 == (undefined *)0x0) {
            iVar4 = piVar2[1];
            piVar2[1] = iVar4 + -1;
          }
          else {
            LOCK();
            piVar1 = piVar2 + 1;
            iVar4 = *piVar1;
            *piVar1 = *piVar1 + -1;
            UNLOCK();
          }
          if (iVar4 == 1) {
                    /* try { // try from 001aeac4 to 001aeac6 has its CatchHandler @ 001aeb31 */
            (**(code **)(*piVar2 + 4))(piVar2);
          }
          iVar4 = *(int *)(param_1 + 0xc);
        }
        uVar5 = uVar5 + 1;
      } while (uVar5 < *(uint *)(param_1 + 8));
      if (iVar4 == 0) goto LAB_001aeae3;
    }
    FUN_001ac410(iVar4);
  }
LAB_001aeae3:
  iVar4 = *(int *)(param_1 + 0x10);
  iVar6 = 0;
  if (iVar4 != 0) {
    do {
      if (*(int *)(iVar4 + iVar6) != 0) {
        FUN_001ac410(*(int *)(iVar4 + iVar6));
        iVar4 = *(int *)(param_1 + 0x10);
      }
      iVar6 = iVar6 + 4;
    } while (iVar6 != 0x30);
    if (iVar4 != 0) {
      FUN_001ac410(iVar4);
    }
  }
  return;
}

