
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* void std::__facet_shims::__numpunct_fill_cache<wchar_t>(std::integral_constant<bool, false>,
   std::locale::facet const*, std::__numpunct_cache<wchar_t>*) */

void std::__facet_shims::__numpunct_fill_cache<wchar_t>(undefined4 param_1,int *param_2,int param_3)

{
  int *piVar1;
  uint uVar2;
  undefined4 uVar3;
  char *pcVar4;
  wchar_t *pwVar5;
  int iVar6;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x23ee6b;
  uVar3 = (**(code **)(*param_2 + 8))(param_2);
  *(undefined4 *)(param_3 + 0x24) = uVar3;
  uVar3 = (**(code **)(*param_2 + 0xc))(param_2);
  *(undefined4 *)(param_3 + 0x28) = uVar3;
  *(undefined4 *)(param_3 + 8) = 0;
  *(undefined4 *)(param_3 + 0x14) = 0;
  *(undefined4 *)(param_3 + 0x1c) = 0;
  *(undefined1 *)(param_3 + 0x124) = 1;
  (**(code **)(*param_2 + 0x10))((string *)local_20,param_2);
  uVar2 = *(uint *)(local_20[0] + -0xc);
                    /* try { // try from 0023eece to 0023eee7 has its CatchHandler @ 0023f102 */
  pcVar4 = (char *)operator_new__(uVar2 + 1);
  std::string::copy((string *)local_20,pcVar4,uVar2,0);
  *(char **)(param_3 + 8) = pcVar4;
  pcVar4[uVar2] = '\0';
  *(uint *)(param_3 + 0xc) = uVar2;
  if ((allocator *)(local_20[0] + -0xc) != (allocator *)PTR__S_empty_rep_storage_003a9cf8) {
    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {
      iVar6 = *(int *)(local_20[0] + -4);
      *(int *)(local_20[0] + -4) = iVar6 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(local_20[0] + -4);
      iVar6 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar6 < 1) {
      std::string::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));
    }
  }
  (**(code **)(*param_2 + 0x14))((string *)local_20,param_2);
  uVar2 = *(uint *)(local_20[0] + -0xc);
  if (0x1fffffff < uVar2 + 1) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */
    __cxa_throw_bad_array_new_length();
  }
                    /* try { // try from 0023ef48 to 0023ef62 has its CatchHandler @ 0023f106 */
  pwVar5 = (wchar_t *)operator_new__((uVar2 + 1) * 4);
  std::wstring::copy((wstring *)local_20,pwVar5,uVar2,0);
  *(uint *)(param_3 + 0x18) = uVar2;
  pwVar5[uVar2] = L'\0';
  *(wchar_t **)(param_3 + 0x14) = pwVar5;
  if ((allocator *)(local_20[0] + -0xc) != (allocator *)&std::wstring::_Rep::_S_empty_rep_storage) {
    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {
      iVar6 = *(int *)(local_20[0] + -4);
      *(int *)(local_20[0] + -4) = iVar6 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(local_20[0] + -4);
      iVar6 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar6 < 1) {
      std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));
    }
  }
  (**(code **)(*param_2 + 0x18))((string *)local_20,param_2);
  uVar2 = *(uint *)(local_20[0] + -0xc);
  if (uVar2 + 1 < 0x20000000) {
                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */
    pwVar5 = (wchar_t *)operator_new__((uVar2 + 1) * 4);
    std::wstring::copy((wstring *)local_20,pwVar5,uVar2,0);
    pwVar5[uVar2] = L'\0';
    *(wchar_t **)(param_3 + 0x1c) = pwVar5;
    *(uint *)(param_3 + 0x20) = uVar2;
    if ((allocator *)(local_20[0] + -0xc) != (allocator *)&std::wstring::_Rep::_S_empty_rep_storage)
    {
      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {
        iVar6 = *(int *)(local_20[0] + -4);
        *(int *)(local_20[0] + -4) = iVar6 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(local_20[0] + -4);
        iVar6 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar6 < 1) {
        std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));
      }
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  __cxa_throw_bad_array_new_length();
}



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

void FUN_0023ee60(undefined4 param_1,int *param_2,int param_3)

{
  int *piVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined1 local_21;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x23ee6b;
  uVar2 = (**(code **)(*param_2 + 8))(param_2);
  *(undefined4 *)(param_3 + 0x24) = uVar2;
  uVar2 = (**(code **)(*param_2 + 0xc))(param_2);
  *(undefined4 *)(param_3 + 0x28) = uVar2;
  *(undefined4 *)(param_3 + 8) = 0;
  *(undefined4 *)(param_3 + 0x14) = 0;
  *(undefined4 *)(param_3 + 0x1c) = 0;
  *(undefined1 *)(param_3 + 0x124) = 1;
  (**(code **)(*param_2 + 0x10))(local_20,param_2);
  iVar5 = *(int *)(local_20[0] + -0xc);
                    /* try { // try from 0023eece to 0023eee7 has its CatchHandler @ 0023f102 */
  iVar3 = FUN_001fb3f0(iVar5 + 1);
  FUN_00233dc0(local_20,iVar3,iVar5,0);
  *(int *)(param_3 + 8) = iVar3;
  *(undefined1 *)(iVar3 + iVar5) = 0;
  *(int *)(param_3 + 0xc) = iVar5;
  if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {
    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {
      iVar5 = *(int *)(local_20[0] + -4);
      *(int *)(local_20[0] + -4) = iVar5 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(local_20[0] + -4);
      iVar5 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar5 < 1) {
      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);
    }
  }
  (**(code **)(*param_2 + 0x14))(local_20,param_2);
  iVar5 = *(int *)(local_20[0] + -0xc);
  if (0x1fffffff < iVar5 + 1U) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */
    FUN_001fc9b0();
  }
  iVar3 = (iVar5 + 1U) * 4;
                    /* try { // try from 0023ef48 to 0023ef62 has its CatchHandler @ 0023f106 */
  iVar4 = FUN_001fb3f0(iVar3);
  FUN_0027f0c0(local_20,iVar4,iVar5,0);
  *(int *)(param_3 + 0x18) = iVar5;
  *(undefined4 *)(iVar4 + -4 + iVar3) = 0;
  *(int *)(param_3 + 0x14) = iVar4;
  if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {
    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {
      iVar5 = *(int *)(local_20[0] + -4);
      *(int *)(local_20[0] + -4) = iVar5 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(local_20[0] + -4);
      iVar5 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar5 < 1) {
      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);
    }
  }
  (**(code **)(*param_2 + 0x18))(local_20,param_2);
  iVar5 = *(int *)(local_20[0] + -0xc);
  if (iVar5 + 1U < 0x20000000) {
    iVar4 = (iVar5 + 1U) * 4;
                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */
    iVar3 = FUN_001fb3f0(iVar4);
    FUN_0027f0c0(local_20,iVar3,iVar5,0);
    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;
    *(int *)(param_3 + 0x1c) = iVar3;
    *(int *)(param_3 + 0x20) = iVar5;
    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {
      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {
        iVar5 = *(int *)(local_20[0] + -4);
        *(int *)(local_20[0] + -4) = iVar5 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(local_20[0] + -4);
        iVar5 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar5 < 1) {
        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);
      }
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001fc9b0();
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00036db0
ADD EBX,0x16b195
SUB ESP,0x38
MOV ESI,dword ptr [EBP + 0xc]
MOV EAX,dword ptr [ESI]
PUSH ESI
MOV dword ptr [EBP + -0x2c],EBX
CALL dword ptr [EAX + 0x8]
MOV EDX,dword ptr [EBP + 0x10]
MOV dword ptr [EDX + 0x24],EAX
MOV EAX,dword ptr [ESI]
MOV dword ptr [ESP],ESI
CALL dword ptr [EAX + 0xc]
MOV EDX,dword ptr [EBP + 0x10]
MOV dword ptr [EDX + 0x28],EAX
LEA EAX,[EBP + -0x1c]
MOV dword ptr [EDX + 0x8],0x0
MOV dword ptr [EDX + 0x14],0x0
MOV dword ptr [EDX + 0x1c],0x0
MOV byte ptr [EDX + 0x124],0x1
MOV EDX,EAX
POP EAX
MOV EAX,dword ptr [ESI]
POP ECX
MOV dword ptr [EBP + -0x30],EDX
PUSH ESI
PUSH EDX
CALL dword ptr [EAX + 0x10]
MOV EAX,dword ptr [EBP + -0x1c]
MOV dword ptr [EBP + -0x2c],EBX
MOV EDI,dword ptr [EAX + -0xc]
LEA EAX,[EDI + 0x1]
PUSH EAX
CALL 0x001fb3f0
ADD ESP,0x10
MOV EBX,dword ptr [EBP + -0x2c]
MOV dword ptr [EBP + -0x34],EAX
PUSH 0x0
PUSH EDI
PUSH EAX
PUSH dword ptr [EBP + -0x30]
CALL 0x00233dc0
MOV EAX,dword ptr [EBP + -0x34]
MOV EDX,dword ptr [EBP + 0x10]
ADD ESP,0x10
MOV EBX,dword ptr [EBP + -0x2c]
MOV dword ptr [EDX + 0x8],EAX
MOV byte ptr [EAX + EDI*0x1],0x0
MOV EAX,dword ptr [EBP + -0x1c]
MOV dword ptr [EDX + 0xc],EDI
LEA EDX,[EAX + -0xc]
CMP EDX,dword ptr [EBX + 0xfffffcf8]
JNZ 0x0023f010
MOV EAX,dword ptr [ESI]
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBP + -0x30]
CALL dword ptr [EAX + 0x14]
MOV EAX,dword ptr [EBP + -0x1c]
ADD ESP,0xc
MOV EAX,dword ptr [EAX + -0xc]
LEA EDI,[EAX + 0x1]
MOV dword ptr [EBP + -0x34],EAX
CMP EDI,0x1fffffff
JA 0x0023f112
LEA ECX,[EDI*0x4 + 0x0]
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x2c]
PUSH ECX
MOV dword ptr [EBP + -0x38],ECX
CALL 0x001fb3f0
ADD ESP,0x10
MOV EBX,dword ptr [EBP + -0x2c]
MOV EDI,EAX
PUSH 0x0
PUSH dword ptr [EBP + -0x34]
PUSH EAX
PUSH dword ptr [EBP + -0x30]
CALL 0x0027f0c0
MOV EBX,dword ptr [EBP + 0x10]
MOV EAX,dword ptr [EBP + -0x34]
ADD ESP,0x10
MOV ECX,dword ptr [EBP + -0x2c]
MOV EDX,dword ptr [EBP + -0x38]
MOV dword ptr [EBX + 0x18],EAX
MOV EAX,dword ptr [EBP + -0x1c]
LEA ECX,[ECX + 0x9080]
MOV dword ptr [EDI + EDX*0x1 + -0x4],0x0
LEA EDX,[EAX + -0xc]
MOV dword ptr [EBX + 0x14],EDI
MOV dword ptr [EBP + -0x38],ECX
CMP EDX,ECX
JNZ 0x0023f050
MOV EAX,dword ptr [ESI]
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBP + -0x30]
CALL dword ptr [EAX + 0x18]
MOV EAX,dword ptr [EBP + -0x1c]
ADD ESP,0xc
MOV EDI,dword ptr [EAX + -0xc]
LEA ESI,[EDI + 0x1]
CMP ESI,0x1fffffff
JA 0x0023f10a
SHL ESI,0x2
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x2c]
PUSH ESI
CALL 0x001fb3f0
ADD ESP,0x10
MOV EBX,dword ptr [EBP + -0x2c]
MOV dword ptr [EBP + -0x34],EAX
PUSH 0x0
PUSH EDI
PUSH EAX
PUSH dword ptr [EBP + -0x30]
CALL 0x0027f0c0
MOV EAX,dword ptr [EBP + -0x34]
MOV EBX,dword ptr [EBP + 0x10]
ADD ESP,0x10
MOV dword ptr [EAX + ESI*0x1 + -0x4],0x0
MOV dword ptr [EBX + 0x1c],EAX
MOV EAX,dword ptr [EBP + -0x1c]
MOV dword ptr [EBX + 0x20],EDI
LEA EDX,[EAX + -0xc]
CMP EDX,dword ptr [EBP + -0x38]
JNZ 0x0023f090
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [EBX + 0xffffff3c]
TEST EDI,EDI
JZ 0x0023f0f0
MOV ECX,0xffffffff
XADD.LOCK dword ptr [EAX + -0x4],ECX
TEST ECX,ECX
JG 0x0023ef10
SUB ESP,0x8
LEA EAX,[EBP + -0x1d]
MOV EBX,dword ptr [EBP + -0x2c]
PUSH EAX
PUSH EDX
CALL 0x00234c20
ADD ESP,0x10
JMP 0x0023ef10
MOV EBX,dword ptr [EBP + -0x2c]
MOV EBX,dword ptr [EBX + 0xffffff3c]
TEST EBX,EBX
JZ 0x0023f0e0
MOV ECX,0xffffffff
XADD.LOCK dword ptr [EAX + -0x4],ECX
TEST ECX,ECX
JG 0x0023ef97
SUB ESP,0x8
LEA EAX,[EBP + -0x1d]
MOV EBX,dword ptr [EBP + -0x2c]
PUSH EAX
PUSH EDX
CALL 0x0027ff70
ADD ESP,0x10
JMP 0x0023ef97
MOV ESI,dword ptr [EBP + -0x2c]
MOV ECX,dword ptr [ESI + 0xffffff3c]
TEST ECX,ECX
JZ 0x0023f0d0
MOV ECX,0xffffffff
XADD.LOCK dword ptr [EAX + -0x4],ECX
TEST ECX,ECX
JG 0x0023f005
SUB ESP,0x8
LEA EAX,[EBP + -0x1d]
MOV EBX,dword ptr [EBP + -0x2c]
PUSH EAX
PUSH EDX
CALL 0x0027ff70
ADD ESP,0x10
JMP 0x0023f005
MOV ECX,dword ptr [EAX + -0x4]
LEA ESI,[ECX + -0x1]
MOV dword ptr [EAX + -0x4],ESI
JMP 0x0023f0a7
MOV ECX,dword ptr [EAX + -0x4]
LEA EDI,[ECX + -0x1]
MOV dword ptr [EAX + -0x4],EDI
JMP 0x0023f06b
MOV ECX,dword ptr [EAX + -0x4]
LEA EDI,[ECX + -0x1]
MOV dword ptr [EAX + -0x4],EDI
JMP 0x0023f028
MOV EBX,dword ptr [EBP + -0x2c]
CALL 0x001fc9b0
MOV EBX,dword ptr [EBP + -0x2c]
CALL 0x001fc9b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0023ee60(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_21;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x23ee6b;\n  uVar2 = (**(code **)(*param_2 + 8))(param_2);\n  *(undefined4 *)(param_3 + 0x24) = uVar2;\n  uVar2 = (**(code **)(*param_2 + 0xc))(param_2);\n  *(undefined4 *)(param_3 + 0x28) = uVar2;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0x14) = 0;\n  *(undefined4 *)(param_3 + 0x1c) = 0;\n  *(undefined1 *)(param_3 + 0x124) = 1;\n  (**(code **)(*param_2 + 0x10))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n                    /* try { // try from 0023eece to 0023eee7 has its CatchHandler @ 0023f102 */\n  iVar3 = FUN_001fb3f0(iVar5 + 1);\n  FUN_00233dc0(local_20,iVar3,iVar5,0);\n  *(int *)(param_3 + 8) = iVar3;\n  *(undefined1 *)(iVar3 + iVar5) = 0;\n  *(int *)(param_3 + 0xc) = iVar5;\n  if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x14))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (0x1fffffff < iVar5 + 1U) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */\n    FUN_001fc9b0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0023ef48 to 0023ef62 has its CatchHandler @ 0023f106 */\n  iVar4 = FUN_001fb3f0(iVar3);\n  FUN_0027f0c0(local_20,iVar4,iVar5,0);\n  *(int *)(param_3 + 0x18) = iVar5;\n  *(undefined4 *)(iVar4 + -4 + iVar3) = 0;\n  *(int *)(param_3 + 0x14) = iVar4;\n  if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x18))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */\n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001fc9b0();\n}\n\n" comment (function_definition "void FUN_0023ee60(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_21;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x23ee6b;\n  uVar2 = (**(code **)(*param_2 + 8))(param_2);\n  *(undefined4 *)(param_3 + 0x24) = uVar2;\n  uVar2 = (**(code **)(*param_2 + 0xc))(param_2);\n  *(undefined4 *)(param_3 + 0x28) = uVar2;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0x14) = 0;\n  *(undefined4 *)(param_3 + 0x1c) = 0;\n  *(undefined1 *)(param_3 + 0x124) = 1;\n  (**(code **)(*param_2 + 0x10))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n                    /* try { // try from 0023eece to 0023eee7 has its CatchHandler @ 0023f102 */\n  iVar3 = FUN_001fb3f0(iVar5 + 1);\n  FUN_00233dc0(local_20,iVar3,iVar5,0);\n  *(int *)(param_3 + 8) = iVar3;\n  *(undefined1 *)(iVar3 + iVar5) = 0;\n  *(int *)(param_3 + 0xc) = iVar5;\n  if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x14))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (0x1fffffff < iVar5 + 1U) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */\n    FUN_001fc9b0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0023ef48 to 0023ef62 has its CatchHandler @ 0023f106 */\n  iVar4 = FUN_001fb3f0(iVar3);\n  FUN_0027f0c0(local_20,iVar4,iVar5,0);\n  *(int *)(param_3 + 0x18) = iVar5;\n  *(undefined4 *)(iVar4 + -4 + iVar3) = 0;\n  *(int *)(param_3 + 0x14) = iVar4;\n  if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x18))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */\n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001fc9b0();\n}" primitive_type (function_declarator "FUN_0023ee60(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_21;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x23ee6b;\n  uVar2 = (**(code **)(*param_2 + 8))(param_2);\n  *(undefined4 *)(param_3 + 0x24) = uVar2;\n  uVar2 = (**(code **)(*param_2 + 0xc))(param_2);\n  *(undefined4 *)(param_3 + 0x28) = uVar2;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0x14) = 0;\n  *(undefined4 *)(param_3 + 0x1c) = 0;\n  *(undefined1 *)(param_3 + 0x124) = 1;\n  (**(code **)(*param_2 + 0x10))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n                    /* try { // try from 0023eece to 0023eee7 has its CatchHandler @ 0023f102 */\n  iVar3 = FUN_001fb3f0(iVar5 + 1);\n  FUN_00233dc0(local_20,iVar3,iVar5,0);\n  *(int *)(param_3 + 8) = iVar3;\n  *(undefined1 *)(iVar3 + iVar5) = 0;\n  *(int *)(param_3 + 0xc) = iVar5;\n  if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x14))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (0x1fffffff < iVar5 + 1U) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */\n    FUN_001fc9b0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0023ef48 to 0023ef62 has its CatchHandler @ 0023f106 */\n  iVar4 = FUN_001fb3f0(iVar3);\n  FUN_0027f0c0(local_20,iVar4,iVar5,0);\n  *(int *)(param_3 + 0x18) = iVar5;\n  *(undefined4 *)(iVar4 + -4 + iVar3) = 0;\n  *(int *)(param_3 + 0x14) = iVar4;\n  if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x18))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */\n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_001fc9b0();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x23ee6b;" (assignment_expression "uStack_14 = 0x23ee6b" identifier = number_literal) ;) (expression_statement "uVar2 = (**(code **)(*param_2 + 8))(param_2);" (assignment_expression "uVar2 = (**(code **)(*param_2 + 8))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 8))" ( (pointer_expression "**(code **)(*param_2 + 8)" * (pointer_expression "*(code **)(*param_2 + 8)" * (cast_expression "(code **)(*param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x24) = uVar2;" (assignment_expression "*(undefined4 *)(param_3 + 0x24) = uVar2" (pointer_expression "*(undefined4 *)(param_3 + 0x24)" * (cast_expression "(undefined4 *)(param_3 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = (**(code **)(*param_2 + 0xc))(param_2);" (assignment_expression "uVar2 = (**(code **)(*param_2 + 0xc))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 0xc))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" ( (pointer_expression "**(code **)(*param_2 + 0xc)" * (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x28) = uVar2;" (assignment_expression "*(undefined4 *)(param_3 + 0x28) = uVar2" (pointer_expression "*(undefined4 *)(param_3 + 0x28)" * (cast_expression "(undefined4 *)(param_3 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_3 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 0" (pointer_expression "*(undefined4 *)(param_3 + 8)" * (cast_expression "(undefined4 *)(param_3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x14)" * (cast_expression "(undefined4 *)(param_3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x1c)" * (cast_expression "(undefined4 *)(param_3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_3 + 0x124) = 1;" (assignment_expression "*(undefined1 *)(param_3 + 0x124) = 1" (pointer_expression "*(undefined1 *)(param_3 + 0x124)" * (cast_expression "(undefined1 *)(param_3 + 0x124)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x124)" ( (binary_expression "param_3 + 0x124" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(**(code **)(*param_2 + 0x10))(local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x10))(local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" ( (pointer_expression "**(code **)(*param_2 + 0x10)" * (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(local_20,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar5 = *(int *)(local_20[0] + -0xc);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -0xc)" identifier = (pointer_expression "*(int *)(local_20[0] + -0xc)" * (cast_expression "(int *)(local_20[0] + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) comment (expression_statement "iVar3 = FUN_001fb3f0(iVar5 + 1);" (assignment_expression "iVar3 = FUN_001fb3f0(iVar5 + 1)" identifier = (call_expression "FUN_001fb3f0(iVar5 + 1)" identifier (argument_list "(iVar5 + 1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "FUN_00233dc0(local_20,iVar3,iVar5,0);" (call_expression "FUN_00233dc0(local_20,iVar3,iVar5,0)" identifier (argument_list "(local_20,iVar3,iVar5,0)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "*(int *)(param_3 + 8) = iVar3;" (assignment_expression "*(int *)(param_3 + 8) = iVar3" (pointer_expression "*(int *)(param_3 + 8)" * (cast_expression "(int *)(param_3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(iVar3 + iVar5) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar5) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar5)" * (cast_expression "(undefined1 *)(iVar3 + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(param_3 + 0xc) = iVar5;" (assignment_expression "*(int *)(param_3 + 0xc) = iVar5" (pointer_expression "*(int *)(param_3 + 0xc)" * (cast_expression "(int *)(param_3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" if (parenthesized_expression "((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8)" ( (binary_expression "(undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8" (cast_expression "(undefined *)(local_20[0] + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) != identifier) )) (compound_statement "{\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }" { (expression_statement "iVar5 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -4)" identifier = (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)(local_20[0] + -4) = iVar5 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar5 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" identifier = (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *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 (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" { (expression_statement "FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21)" identifier (argument_list "((undefined *)(local_20[0] + -0xc),&local_21)" ( (cast_expression "(undefined *)(local_20[0] + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) , (pointer_expression "&local_21" & identifier) ))) ;) })) })) (expression_statement "(**(code **)(*param_2 + 0x14))(local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x14))(local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x14))" ( (pointer_expression "**(code **)(*param_2 + 0x14)" * (pointer_expression "*(code **)(*param_2 + 0x14)" * (cast_expression "(code **)(*param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x14)" ( (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(local_20,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar5 = *(int *)(local_20[0] + -0xc);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -0xc)" identifier = (pointer_expression "*(int *)(local_20[0] + -0xc)" * (cast_expression "(int *)(local_20[0] + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (0x1fffffff < iVar5 + 1U) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */\n    FUN_001fc9b0();\n  }" if (parenthesized_expression "(0x1fffffff < iVar5 + 1U)" ( (binary_expression "0x1fffffff < iVar5 + 1U" number_literal < (binary_expression "iVar5 + 1U" identifier + number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */\n    FUN_001fc9b0();\n  }" { comment comment (expression_statement "FUN_001fc9b0();" (call_expression "FUN_001fc9b0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar3 = (iVar5 + 1U) * 4;" (assignment_expression "iVar3 = (iVar5 + 1U) * 4" identifier = (binary_expression "(iVar5 + 1U) * 4" (parenthesized_expression "(iVar5 + 1U)" ( (binary_expression "iVar5 + 1U" identifier + number_literal) )) * number_literal)) ;) comment (expression_statement "iVar4 = FUN_001fb3f0(iVar3);" (assignment_expression "iVar4 = FUN_001fb3f0(iVar3)" identifier = (call_expression "FUN_001fb3f0(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "FUN_0027f0c0(local_20,iVar4,iVar5,0);" (call_expression "FUN_0027f0c0(local_20,iVar4,iVar5,0)" identifier (argument_list "(local_20,iVar4,iVar5,0)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "*(int *)(param_3 + 0x18) = iVar5;" (assignment_expression "*(int *)(param_3 + 0x18) = iVar5" (pointer_expression "*(int *)(param_3 + 0x18)" * (cast_expression "(int *)(param_3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + -4 + iVar3) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + -4 + iVar3) = 0" (pointer_expression "*(undefined4 *)(iVar4 + -4 + iVar3)" * (cast_expression "(undefined4 *)(iVar4 + -4 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4 + iVar3)" ( (binary_expression "iVar4 + -4 + iVar3" (binary_expression "iVar4 + -4" identifier + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(param_3 + 0x14) = iVar4;" (assignment_expression "*(int *)(param_3 + 0x14) = iVar4" (pointer_expression "*(int *)(param_3 + 0x14)" * (cast_expression "(int *)(param_3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" if (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080)" ( (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080" (cast_expression "(undefined4 *)(local_20[0] + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) != (pointer_expression "&DAT_003b3080" & identifier)) )) (compound_statement "{\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }" { (expression_statement "iVar5 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -4)" identifier = (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)(local_20[0] + -4) = iVar5 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar5 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" identifier = (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *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 (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" { (expression_statement "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21)" identifier (argument_list "((undefined4 *)(local_20[0] + -0xc),&local_21)" ( (cast_expression "(undefined4 *)(local_20[0] + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) , (pointer_expression "&local_21" & identifier) ))) ;) })) })) (expression_statement "(**(code **)(*param_2 + 0x18))(local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x18))(local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x18))" ( (pointer_expression "**(code **)(*param_2 + 0x18)" * (pointer_expression "*(code **)(*param_2 + 0x18)" * (cast_expression "(code **)(*param_2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x18)" ( (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(local_20,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar5 = *(int *)(local_20[0] + -0xc);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -0xc)" identifier = (pointer_expression "*(int *)(local_20[0] + -0xc)" * (cast_expression "(int *)(local_20[0] + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */\n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(iVar5 + 1U < 0x20000000)" ( (binary_expression "iVar5 + 1U < 0x20000000" (binary_expression "iVar5 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n    iVar4 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */\n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }" { (expression_statement "iVar4 = (iVar5 + 1U) * 4;" (assignment_expression "iVar4 = (iVar5 + 1U) * 4" identifier = (binary_expression "(iVar5 + 1U) * 4" (parenthesized_expression "(iVar5 + 1U)" ( (binary_expression "iVar5 + 1U" identifier + number_literal) )) * number_literal)) ;) comment (expression_statement "iVar3 = FUN_001fb3f0(iVar4);" (assignment_expression "iVar3 = FUN_001fb3f0(iVar4)" identifier = (call_expression "FUN_001fb3f0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "FUN_0027f0c0(local_20,iVar3,iVar5,0);" (call_expression "FUN_0027f0c0(local_20,iVar3,iVar5,0)" identifier (argument_list "(local_20,iVar3,iVar5,0)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "*(undefined4 *)(iVar3 + -4 + iVar4) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + -4 + iVar4) = 0" (pointer_expression "*(undefined4 *)(iVar3 + -4 + iVar4)" * (cast_expression "(undefined4 *)(iVar3 + -4 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4 + iVar4)" ( (binary_expression "iVar3 + -4 + iVar4" (binary_expression "iVar3 + -4" identifier + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(param_3 + 0x1c) = iVar3;" (assignment_expression "*(int *)(param_3 + 0x1c) = iVar3" (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_3 + 0x20) = iVar5;" (assignment_expression "*(int *)(param_3 + 0x20) = iVar5" (pointer_expression "*(int *)(param_3 + 0x20)" * (cast_expression "(int *)(param_3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" if (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080)" ( (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080" (cast_expression "(undefined4 *)(local_20[0] + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) != (pointer_expression "&DAT_003b3080" & identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }" { (expression_statement "iVar5 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -4)" identifier = (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)(local_20[0] + -4) = iVar5 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar5 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" identifier = (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *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 (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" { (expression_statement "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21)" identifier (argument_list "((undefined4 *)(local_20[0] + -0xc),&local_21)" ( (cast_expression "(undefined4 *)(local_20[0] + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) , (pointer_expression "&local_21" & identifier) ))) ;) })) })) (return_statement "return;" return ;) })) comment (expression_statement "FUN_001fc9b0();" (call_expression "FUN_001fc9b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* void std::__facet_shims::__numpunct_fill_cache<wchar_t>(std::integral_constant<bool, false>,\n   std::locale::facet const*, std::__numpunct_cache<wchar_t>*) */\n\nvoid std::__facet_shims::__numpunct_fill_cache<wchar_t>(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  wchar_t *pwVar5;\n  int iVar6;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x23ee6b;\n  uVar3 = (**(code **)(*param_2 + 8))(param_2);\n  *(undefined4 *)(param_3 + 0x24) = uVar3;\n  uVar3 = (**(code **)(*param_2 + 0xc))(param_2);\n  *(undefined4 *)(param_3 + 0x28) = uVar3;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0x14) = 0;\n  *(undefined4 *)(param_3 + 0x1c) = 0;\n  *(undefined1 *)(param_3 + 0x124) = 1;\n  (**(code **)(*param_2 + 0x10))((string *)local_20,param_2);\n  uVar2 = *(uint *)(local_20[0] + -0xc);\n                    /* try { // try from 0023eece to 0023eee7 has its CatchHandler @ 0023f102 */\n  pcVar4 = (char *)operator_new__(uVar2 + 1);\n  std::string::copy((string *)local_20,pcVar4,uVar2,0);\n  *(char **)(param_3 + 8) = pcVar4;\n  pcVar4[uVar2] = '\0';\n  *(uint *)(param_3 + 0xc) = uVar2;\n  if ((allocator *)(local_20[0] + -0xc) != (allocator *)PTR__S_empty_rep_storage_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar6 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar6 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar6 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n    }\n  }\n  (**(code **)(*param_2 + 0x14))((string *)local_20,param_2);\n  uVar2 = *(uint *)(local_20[0] + -0xc);\n  if (0x1fffffff < uVar2 + 1) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */\n    __cxa_throw_bad_array_new_length();\n  }\n                    /* try { // try from 0023ef48 to 0023ef62 has its CatchHandler @ 0023f106 */\n  pwVar5 = (wchar_t *)operator_new__((uVar2 + 1) * 4);\n  std::wstring::copy((wstring *)local_20,pwVar5,uVar2,0);\n  *(uint *)(param_3 + 0x18) = uVar2;\n  pwVar5[uVar2] = L'\0';\n  *(wchar_t **)(param_3 + 0x14) = pwVar5;\n  if ((allocator *)(local_20[0] + -0xc) != (allocator *)&std::wstring::_Rep::_S_empty_rep_storage) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar6 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar6 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar6 < 1) {\n      std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n    }\n  }\n  (**(code **)(*param_2 + 0x18))((string *)local_20,param_2);\n  uVar2 = *(uint *)(local_20[0] + -0xc);\n  if (uVar2 + 1 < 0x20000000) {\n                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */\n    pwVar5 = (wchar_t *)operator_new__((uVar2 + 1) * 4);\n    std::wstring::copy((wstring *)local_20,pwVar5,uVar2,0);\n    pwVar5[uVar2] = L'\0';\n    *(wchar_t **)(param_3 + 0x1c) = pwVar5;\n    *(uint *)(param_3 + 0x20) = uVar2;\n    if ((allocator *)(local_20[0] + -0xc) != (allocator *)&std::wstring::_Rep::_S_empty_rep_storage)\n    {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar6 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n      }\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __cxa_throw_bad_array_new_length();\n}\n\n" comment comment (declaration "void std::__facet_shims::__numpunct_fill_cache<wchar_t>(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;" primitive_type (ERROR "std::__facet_shims::__numpunct_fill_cache<wchar_t>(undefined4" identifier : : identifier : : identifier < identifier > ( identifier) identifier , (ERROR "int" identifier) (pointer_declarator "*param_2" * identifier) , (ERROR "int param_3)\n\n{\n  int" identifier identifier ) { primitive_type) (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "wchar_t *pwVar5;" type_identifier (pointer_declarator "*pwVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x23ee6b;" (assignment_expression "uStack_14 = 0x23ee6b" identifier = number_literal) ;) (expression_statement "uVar3 = (**(code **)(*param_2 + 8))(param_2);" (assignment_expression "uVar3 = (**(code **)(*param_2 + 8))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 8))" ( (pointer_expression "**(code **)(*param_2 + 8)" * (pointer_expression "*(code **)(*param_2 + 8)" * (cast_expression "(code **)(*param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x24) = uVar3;" (assignment_expression "*(undefined4 *)(param_3 + 0x24) = uVar3" (pointer_expression "*(undefined4 *)(param_3 + 0x24)" * (cast_expression "(undefined4 *)(param_3 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = (**(code **)(*param_2 + 0xc))(param_2);" (assignment_expression "uVar3 = (**(code **)(*param_2 + 0xc))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 0xc))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" ( (pointer_expression "**(code **)(*param_2 + 0xc)" * (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x28) = uVar3;" (assignment_expression "*(undefined4 *)(param_3 + 0x28) = uVar3" (pointer_expression "*(undefined4 *)(param_3 + 0x28)" * (cast_expression "(undefined4 *)(param_3 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_3 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 0" (pointer_expression "*(undefined4 *)(param_3 + 8)" * (cast_expression "(undefined4 *)(param_3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x14)" * (cast_expression "(undefined4 *)(param_3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x1c)" * (cast_expression "(undefined4 *)(param_3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_3 + 0x124) = 1;" (assignment_expression "*(undefined1 *)(param_3 + 0x124) = 1" (pointer_expression "*(undefined1 *)(param_3 + 0x124)" * (cast_expression "(undefined1 *)(param_3 + 0x124)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x124)" ( (binary_expression "param_3 + 0x124" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(**(code **)(*param_2 + 0x10))((string *)local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x10))((string *)local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" ( (pointer_expression "**(code **)(*param_2 + 0x10)" * (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "((string *)local_20,param_2)" ( (cast_expression "(string *)local_20" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "uVar2 = *(uint *)(local_20[0] + -0xc);" (assignment_expression "uVar2 = *(uint *)(local_20[0] + -0xc)" identifier = (pointer_expression "*(uint *)(local_20[0] + -0xc)" * (cast_expression "(uint *)(local_20[0] + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) comment (expression_statement "pcVar4 = (char *)operator_new__(uVar2 + 1);" (assignment_expression "pcVar4 = (char *)operator_new__(uVar2 + 1)" identifier = (cast_expression "(char *)operator_new__(uVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(uVar2 + 1)" identifier (argument_list "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) ))))) ;) (labeled_statement "std::string::copy((string *)local_20,pcVar4,uVar2,0);" statement_identifier : (ERROR ":" :) (labeled_statement "string::copy((string *)local_20,pcVar4,uVar2,0);" statement_identifier : (ERROR ":" :) (expression_statement "copy((string *)local_20,pcVar4,uVar2,0);" (call_expression "copy((string *)local_20,pcVar4,uVar2,0)" identifier (argument_list "((string *)local_20,pcVar4,uVar2,0)" ( (cast_expression "(string *)local_20" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , number_literal ))) ;))) (expression_statement "*(char **)(param_3 + 8) = pcVar4;" (assignment_expression "*(char **)(param_3 + 8) = pcVar4" (pointer_expression "*(char **)(param_3 + 8)" * (cast_expression "(char **)(param_3 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "pcVar4[uVar2] = '\0';" (assignment_expression "pcVar4[uVar2] = '\0'" (subscript_expression "pcVar4[uVar2]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "*(uint *)(param_3 + 0xc) = uVar2;" (assignment_expression "*(uint *)(param_3 + 0xc) = uVar2" (pointer_expression "*(uint *)(param_3 + 0xc)" * (cast_expression "(uint *)(param_3 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((allocator *)(local_20[0] + -0xc) != (allocator *)PTR__S_empty_rep_storage_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar6 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar6 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar6 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n    }\n  }" if (parenthesized_expression "((allocator *)(local_20[0] + -0xc) != (allocator *)PTR__S_empty_rep_storage_003a9cf8)" ( (binary_expression "(allocator *)(local_20[0] + -0xc) != (allocator *)PTR__S_empty_rep_storage_003a9cf8" (cast_expression "(allocator *)(local_20[0] + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_003a9cf8" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar6 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar6 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar6 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar6 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar6 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar6 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar6 + -1;\n    }" { (expression_statement "iVar6 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar6 = *(int *)(local_20[0] + -4)" identifier = (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)(local_20[0] + -4) = iVar6 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar6 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" identifier = (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + 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      std::string::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n    }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n      std::string::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n    }" { (labeled_statement "std::string::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(local_20[0] + -0xc));" (call_expression "_M_destroy((allocator *)(local_20[0] + -0xc))" identifier (argument_list "((allocator *)(local_20[0] + -0xc))" ( (cast_expression "(allocator *)(local_20[0] + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) ))) ;)))) })) })) (expression_statement "(**(code **)(*param_2 + 0x14))((string *)local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x14))((string *)local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x14))" ( (pointer_expression "**(code **)(*param_2 + 0x14)" * (pointer_expression "*(code **)(*param_2 + 0x14)" * (cast_expression "(code **)(*param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x14)" ( (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "((string *)local_20,param_2)" ( (cast_expression "(string *)local_20" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "uVar2 = *(uint *)(local_20[0] + -0xc);" (assignment_expression "uVar2 = *(uint *)(local_20[0] + -0xc)" identifier = (pointer_expression "*(uint *)(local_20[0] + -0xc)" * (cast_expression "(uint *)(local_20[0] + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (0x1fffffff < uVar2 + 1) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */\n    __cxa_throw_bad_array_new_length();\n  }" if (parenthesized_expression "(0x1fffffff < uVar2 + 1)" ( (binary_expression "0x1fffffff < uVar2 + 1" number_literal < (binary_expression "uVar2 + 1" identifier + number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */\n    __cxa_throw_bad_array_new_length();\n  }" { comment comment (expression_statement "__cxa_throw_bad_array_new_length();" (call_expression "__cxa_throw_bad_array_new_length()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "pwVar5 = (wchar_t *)operator_new__((uVar2 + 1) * 4);" (assignment_expression "pwVar5 = (wchar_t *)operator_new__((uVar2 + 1) * 4)" identifier = (cast_expression "(wchar_t *)operator_new__((uVar2 + 1) * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__((uVar2 + 1) * 4)" identifier (argument_list "((uVar2 + 1) * 4)" ( (binary_expression "(uVar2 + 1) * 4" (parenthesized_expression "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) )) * number_literal) ))))) ;) (labeled_statement "std::wstring::copy((wstring *)local_20,pwVar5,uVar2,0);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::copy((wstring *)local_20,pwVar5,uVar2,0);" statement_identifier : (ERROR ":" :) (expression_statement "copy((wstring *)local_20,pwVar5,uVar2,0);" (call_expression "copy((wstring *)local_20,pwVar5,uVar2,0)" identifier (argument_list "((wstring *)local_20,pwVar5,uVar2,0)" ( (cast_expression "(wstring *)local_20" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , number_literal ))) ;))) (expression_statement "*(uint *)(param_3 + 0x18) = uVar2;" (assignment_expression "*(uint *)(param_3 + 0x18) = uVar2" (pointer_expression "*(uint *)(param_3 + 0x18)" * (cast_expression "(uint *)(param_3 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "pwVar5[uVar2] = L'\0';" (assignment_expression "pwVar5[uVar2] = L'\0'" (subscript_expression "pwVar5[uVar2]" identifier [ identifier ]) = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "*(wchar_t **)(param_3 + 0x14) = pwVar5;" (assignment_expression "*(wchar_t **)(param_3 + 0x14) = pwVar5" (pointer_expression "*(wchar_t **)(param_3 + 0x14)" * (cast_expression "(wchar_t **)(param_3 + 0x14)" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((allocator *)(local_20[0] + -0xc) != (allocator *)&std::wstring::_Rep::_S_empty_rep_storage) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar6 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar6 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar6 < 1) {\n      std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n    }\n  }" if (parenthesized_expression "((allocator *)(local_20[0] + -0xc) != (allocator *)&std::wstring::_Rep::_S_empty_rep_storage)" ( (binary_expression "(allocator *)(local_20[0] + -0xc) != (allocator *)&std" (cast_expression "(allocator *)(local_20[0] + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) != (cast_expression "(allocator *)&std" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&std" & identifier))) (ERROR "::wstring::_Rep::_S_empty_rep_storage" : : identifier : : identifier : : identifier) )) (compound_statement "{\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar6 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar6 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar6 < 1) {\n      std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar6 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar6 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar6 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar6 + -1;\n    }" { (expression_statement "iVar6 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar6 = *(int *)(local_20[0] + -4)" identifier = (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)(local_20[0] + -4) = iVar6 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar6 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar6 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" identifier = (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + 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      std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n    }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n      std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n    }" { (labeled_statement "std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(local_20[0] + -0xc));" (call_expression "_M_destroy((allocator *)(local_20[0] + -0xc))" identifier (argument_list "((allocator *)(local_20[0] + -0xc))" ( (cast_expression "(allocator *)(local_20[0] + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) ))) ;)))) })) })) (expression_statement "(**(code **)(*param_2 + 0x18))((string *)local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x18))((string *)local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x18))" ( (pointer_expression "**(code **)(*param_2 + 0x18)" * (pointer_expression "*(code **)(*param_2 + 0x18)" * (cast_expression "(code **)(*param_2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x18)" ( (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "((string *)local_20,param_2)" ( (cast_expression "(string *)local_20" ( (type_descriptor "string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "uVar2 = *(uint *)(local_20[0] + -0xc);" (assignment_expression "uVar2 = *(uint *)(local_20[0] + -0xc)" identifier = (pointer_expression "*(uint *)(local_20[0] + -0xc)" * (cast_expression "(uint *)(local_20[0] + -0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (uVar2 + 1 < 0x20000000) {\n                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */\n    pwVar5 = (wchar_t *)operator_new__((uVar2 + 1) * 4);\n    std::wstring::copy((wstring *)local_20,pwVar5,uVar2,0);\n    pwVar5[uVar2] = L'\0';\n    *(wchar_t **)(param_3 + 0x1c) = pwVar5;\n    *(uint *)(param_3 + 0x20) = uVar2;\n    if ((allocator *)(local_20[0] + -0xc) != (allocator *)&std::wstring::_Rep::_S_empty_rep_storage)\n    {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar6 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(uVar2 + 1 < 0x20000000)" ( (binary_expression "uVar2 + 1 < 0x20000000" (binary_expression "uVar2 + 1" identifier + number_literal) < number_literal) )) (compound_statement "{\n                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */\n    pwVar5 = (wchar_t *)operator_new__((uVar2 + 1) * 4);\n    std::wstring::copy((wstring *)local_20,pwVar5,uVar2,0);\n    pwVar5[uVar2] = L'\0';\n    *(wchar_t **)(param_3 + 0x1c) = pwVar5;\n    *(uint *)(param_3 + 0x20) = uVar2;\n    if ((allocator *)(local_20[0] + -0xc) != (allocator *)&std::wstring::_Rep::_S_empty_rep_storage)\n    {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar6 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n      }\n    }\n    return;\n  }" { comment (expression_statement "pwVar5 = (wchar_t *)operator_new__((uVar2 + 1) * 4);" (assignment_expression "pwVar5 = (wchar_t *)operator_new__((uVar2 + 1) * 4)" identifier = (cast_expression "(wchar_t *)operator_new__((uVar2 + 1) * 4)" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__((uVar2 + 1) * 4)" identifier (argument_list "((uVar2 + 1) * 4)" ( (binary_expression "(uVar2 + 1) * 4" (parenthesized_expression "(uVar2 + 1)" ( (binary_expression "uVar2 + 1" identifier + number_literal) )) * number_literal) ))))) ;) (labeled_statement "std::wstring::copy((wstring *)local_20,pwVar5,uVar2,0);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::copy((wstring *)local_20,pwVar5,uVar2,0);" statement_identifier : (ERROR ":" :) (expression_statement "copy((wstring *)local_20,pwVar5,uVar2,0);" (call_expression "copy((wstring *)local_20,pwVar5,uVar2,0)" identifier (argument_list "((wstring *)local_20,pwVar5,uVar2,0)" ( (cast_expression "(wstring *)local_20" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , number_literal ))) ;))) (expression_statement "pwVar5[uVar2] = L'\0';" (assignment_expression "pwVar5[uVar2] = L'\0'" (subscript_expression "pwVar5[uVar2]" identifier [ identifier ]) = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "*(wchar_t **)(param_3 + 0x1c) = pwVar5;" (assignment_expression "*(wchar_t **)(param_3 + 0x1c) = pwVar5" (pointer_expression "*(wchar_t **)(param_3 + 0x1c)" * (cast_expression "(wchar_t **)(param_3 + 0x1c)" ( (type_descriptor "wchar_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(param_3 + 0x20) = uVar2;" (assignment_expression "*(uint *)(param_3 + 0x20) = uVar2" (pointer_expression "*(uint *)(param_3 + 0x20)" * (cast_expression "(uint *)(param_3 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((allocator *)(local_20[0] + -0xc) != (allocator *)&std::wstring::_Rep::_S_empty_rep_storage)\n    {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar6 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n      }\n    }" if (parenthesized_expression "((allocator *)(local_20[0] + -0xc) != (allocator *)&std::wstring::_Rep::_S_empty_rep_storage)" ( (binary_expression "(allocator *)(local_20[0] + -0xc) != (allocator *)&std" (cast_expression "(allocator *)(local_20[0] + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) != (cast_expression "(allocator *)&std" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&std" & identifier))) (ERROR "::wstring::_Rep::_S_empty_rep_storage" : : identifier : : identifier : : identifier) )) (compound_statement "{\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar6 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar6 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar6 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar6 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar6 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar6 + -1;\n      }" { (expression_statement "iVar6 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar6 = *(int *)(local_20[0] + -4)" identifier = (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)(local_20[0] + -4) = iVar6 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar6 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar6 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" identifier = (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + 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        std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n      }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n        std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));\n      }" { (labeled_statement "std::wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(local_20[0] + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(local_20[0] + -0xc));" (call_expression "_M_destroy((allocator *)(local_20[0] + -0xc))" identifier (argument_list "((allocator *)(local_20[0] + -0xc))" ( (cast_expression "(allocator *)(local_20[0] + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) ))) ;)))) })) })) (return_statement "return;" return ;) })) comment (expression_statement "__cxa_throw_bad_array_new_length();" (call_expression "__cxa_throw_bad_array_new_length()" identifier (argument_list "()" ( ))) ;) (ERROR "}" }))
(translation_unit "void FUN_0023ee60(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_21;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x23ee6b;\n  uVar2 = (**(code **)(*param_2 + 8))(param_2);\n  *(undefined4 *)(param_3 + 0x24) = uVar2;\n  uVar2 = (**(code **)(*param_2 + 0xc))(param_2);\n  *(undefined4 *)(param_3 + 0x28) = uVar2;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0x14) = 0;\n  *(undefined4 *)(param_3 + 0x1c) = 0;\n  *(undefined1 *)(param_3 + 0x124) = 1;\n  (**(code **)(*param_2 + 0x10))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n                    \n  iVar3 = FUN_001fb3f0(iVar5 + 1);\n  FUN_00233dc0(local_20,iVar3,iVar5,0);\n  *(int *)(param_3 + 8) = iVar3;\n  *(undefined1 *)(iVar3 + iVar5) = 0;\n  *(int *)(param_3 + 0xc) = iVar5;\n  if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x14))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (0x1fffffff < iVar5 + 1U) {\n                    \n                    \n    FUN_001fc9b0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    \n  iVar4 = FUN_001fb3f0(iVar3);\n  FUN_0027f0c0(local_20,iVar4,iVar5,0);\n  *(int *)(param_3 + 0x18) = iVar5;\n  *(undefined4 *)(iVar4 + -4 + iVar3) = 0;\n  *(int *)(param_3 + 0x14) = iVar4;\n  if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x18))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    \n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    \n  FUN_001fc9b0();\n}\n\n" (function_definition "void FUN_0023ee60(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_21;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x23ee6b;\n  uVar2 = (**(code **)(*param_2 + 8))(param_2);\n  *(undefined4 *)(param_3 + 0x24) = uVar2;\n  uVar2 = (**(code **)(*param_2 + 0xc))(param_2);\n  *(undefined4 *)(param_3 + 0x28) = uVar2;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0x14) = 0;\n  *(undefined4 *)(param_3 + 0x1c) = 0;\n  *(undefined1 *)(param_3 + 0x124) = 1;\n  (**(code **)(*param_2 + 0x10))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n                    \n  iVar3 = FUN_001fb3f0(iVar5 + 1);\n  FUN_00233dc0(local_20,iVar3,iVar5,0);\n  *(int *)(param_3 + 8) = iVar3;\n  *(undefined1 *)(iVar3 + iVar5) = 0;\n  *(int *)(param_3 + 0xc) = iVar5;\n  if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x14))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (0x1fffffff < iVar5 + 1U) {\n                    \n                    \n    FUN_001fc9b0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    \n  iVar4 = FUN_001fb3f0(iVar3);\n  FUN_0027f0c0(local_20,iVar4,iVar5,0);\n  *(int *)(param_3 + 0x18) = iVar5;\n  *(undefined4 *)(iVar4 + -4 + iVar3) = 0;\n  *(int *)(param_3 + 0x14) = iVar4;\n  if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x18))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    \n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    \n  FUN_001fc9b0();\n}" primitive_type (function_declarator "FUN_0023ee60(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_21;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x23ee6b;\n  uVar2 = (**(code **)(*param_2 + 8))(param_2);\n  *(undefined4 *)(param_3 + 0x24) = uVar2;\n  uVar2 = (**(code **)(*param_2 + 0xc))(param_2);\n  *(undefined4 *)(param_3 + 0x28) = uVar2;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0x14) = 0;\n  *(undefined4 *)(param_3 + 0x1c) = 0;\n  *(undefined1 *)(param_3 + 0x124) = 1;\n  (**(code **)(*param_2 + 0x10))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n                    \n  iVar3 = FUN_001fb3f0(iVar5 + 1);\n  FUN_00233dc0(local_20,iVar3,iVar5,0);\n  *(int *)(param_3 + 8) = iVar3;\n  *(undefined1 *)(iVar3 + iVar5) = 0;\n  *(int *)(param_3 + 0xc) = iVar5;\n  if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x14))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (0x1fffffff < iVar5 + 1U) {\n                    \n                    \n    FUN_001fc9b0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    \n  iVar4 = FUN_001fb3f0(iVar3);\n  FUN_0027f0c0(local_20,iVar4,iVar5,0);\n  *(int *)(param_3 + 0x18) = iVar5;\n  *(undefined4 *)(iVar4 + -4 + iVar3) = 0;\n  *(int *)(param_3 + 0x14) = iVar4;\n  if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x18))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    \n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    \n  FUN_001fc9b0();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 local_21;" type_identifier identifier ;) (declaration "int local_20 [3];" primitive_type (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x23ee6b;" (assignment_expression "uStack_14 = 0x23ee6b" identifier = number_literal) ;) (expression_statement "uVar2 = (**(code **)(*param_2 + 8))(param_2);" (assignment_expression "uVar2 = (**(code **)(*param_2 + 8))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 8))" ( (pointer_expression "**(code **)(*param_2 + 8)" * (pointer_expression "*(code **)(*param_2 + 8)" * (cast_expression "(code **)(*param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x24) = uVar2;" (assignment_expression "*(undefined4 *)(param_3 + 0x24) = uVar2" (pointer_expression "*(undefined4 *)(param_3 + 0x24)" * (cast_expression "(undefined4 *)(param_3 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x24)" ( (binary_expression "param_3 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = (**(code **)(*param_2 + 0xc))(param_2);" (assignment_expression "uVar2 = (**(code **)(*param_2 + 0xc))(param_2)" identifier = (call_expression "(**(code **)(*param_2 + 0xc))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" ( (pointer_expression "**(code **)(*param_2 + 0xc)" * (pointer_expression "*(code **)(*param_2 + 0xc)" * (cast_expression "(code **)(*param_2 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0xc)" ( (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_3 + 0x28) = uVar2;" (assignment_expression "*(undefined4 *)(param_3 + 0x28) = uVar2" (pointer_expression "*(undefined4 *)(param_3 + 0x28)" * (cast_expression "(undefined4 *)(param_3 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x28)" ( (binary_expression "param_3 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_3 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 0" (pointer_expression "*(undefined4 *)(param_3 + 8)" * (cast_expression "(undefined4 *)(param_3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x14)" * (cast_expression "(undefined4 *)(param_3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_3 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x1c)" * (cast_expression "(undefined4 *)(param_3 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_3 + 0x124) = 1;" (assignment_expression "*(undefined1 *)(param_3 + 0x124) = 1" (pointer_expression "*(undefined1 *)(param_3 + 0x124)" * (cast_expression "(undefined1 *)(param_3 + 0x124)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x124)" ( (binary_expression "param_3 + 0x124" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(**(code **)(*param_2 + 0x10))(local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x10))(local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" ( (pointer_expression "**(code **)(*param_2 + 0x10)" * (pointer_expression "*(code **)(*param_2 + 0x10)" * (cast_expression "(code **)(*param_2 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x10)" ( (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(local_20,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar5 = *(int *)(local_20[0] + -0xc);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -0xc)" identifier = (pointer_expression "*(int *)(local_20[0] + -0xc)" * (cast_expression "(int *)(local_20[0] + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "iVar3 = FUN_001fb3f0(iVar5 + 1);" (assignment_expression "iVar3 = FUN_001fb3f0(iVar5 + 1)" identifier = (call_expression "FUN_001fb3f0(iVar5 + 1)" identifier (argument_list "(iVar5 + 1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "FUN_00233dc0(local_20,iVar3,iVar5,0);" (call_expression "FUN_00233dc0(local_20,iVar3,iVar5,0)" identifier (argument_list "(local_20,iVar3,iVar5,0)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "*(int *)(param_3 + 8) = iVar3;" (assignment_expression "*(int *)(param_3 + 8) = iVar3" (pointer_expression "*(int *)(param_3 + 8)" * (cast_expression "(int *)(param_3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(iVar3 + iVar5) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar5) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar5)" * (cast_expression "(undefined1 *)(iVar3 + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(param_3 + 0xc) = iVar5;" (assignment_expression "*(int *)(param_3 + 0xc) = iVar5" (pointer_expression "*(int *)(param_3 + 0xc)" * (cast_expression "(int *)(param_3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" if (parenthesized_expression "((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8)" ( (binary_expression "(undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8" (cast_expression "(undefined *)(local_20[0] + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) != identifier) )) (compound_statement "{\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }" { (expression_statement "iVar5 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -4)" identifier = (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)(local_20[0] + -4) = iVar5 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar5 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" identifier = (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *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 (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" { (expression_statement "FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21)" identifier (argument_list "((undefined *)(local_20[0] + -0xc),&local_21)" ( (cast_expression "(undefined *)(local_20[0] + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) , (pointer_expression "&local_21" & identifier) ))) ;) })) })) (expression_statement "(**(code **)(*param_2 + 0x14))(local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x14))(local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x14))" ( (pointer_expression "**(code **)(*param_2 + 0x14)" * (pointer_expression "*(code **)(*param_2 + 0x14)" * (cast_expression "(code **)(*param_2 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x14)" ( (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(local_20,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar5 = *(int *)(local_20[0] + -0xc);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -0xc)" identifier = (pointer_expression "*(int *)(local_20[0] + -0xc)" * (cast_expression "(int *)(local_20[0] + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (0x1fffffff < iVar5 + 1U) {\n                    \n                    \n    FUN_001fc9b0();\n  }" if (parenthesized_expression "(0x1fffffff < iVar5 + 1U)" ( (binary_expression "0x1fffffff < iVar5 + 1U" number_literal < (binary_expression "iVar5 + 1U" identifier + number_literal)) )) (compound_statement "{\n                    \n                    \n    FUN_001fc9b0();\n  }" { (expression_statement "FUN_001fc9b0();" (call_expression "FUN_001fc9b0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar3 = (iVar5 + 1U) * 4;" (assignment_expression "iVar3 = (iVar5 + 1U) * 4" identifier = (binary_expression "(iVar5 + 1U) * 4" (parenthesized_expression "(iVar5 + 1U)" ( (binary_expression "iVar5 + 1U" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar4 = FUN_001fb3f0(iVar3);" (assignment_expression "iVar4 = FUN_001fb3f0(iVar3)" identifier = (call_expression "FUN_001fb3f0(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "FUN_0027f0c0(local_20,iVar4,iVar5,0);" (call_expression "FUN_0027f0c0(local_20,iVar4,iVar5,0)" identifier (argument_list "(local_20,iVar4,iVar5,0)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "*(int *)(param_3 + 0x18) = iVar5;" (assignment_expression "*(int *)(param_3 + 0x18) = iVar5" (pointer_expression "*(int *)(param_3 + 0x18)" * (cast_expression "(int *)(param_3 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x18)" ( (binary_expression "param_3 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar4 + -4 + iVar3) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + -4 + iVar3) = 0" (pointer_expression "*(undefined4 *)(iVar4 + -4 + iVar3)" * (cast_expression "(undefined4 *)(iVar4 + -4 + iVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -4 + iVar3)" ( (binary_expression "iVar4 + -4 + iVar3" (binary_expression "iVar4 + -4" identifier + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(param_3 + 0x14) = iVar4;" (assignment_expression "*(int *)(param_3 + 0x14) = iVar4" (pointer_expression "*(int *)(param_3 + 0x14)" * (cast_expression "(int *)(param_3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" if (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080)" ( (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080" (cast_expression "(undefined4 *)(local_20[0] + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) != (pointer_expression "&DAT_003b3080" & identifier)) )) (compound_statement "{\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }" { (expression_statement "iVar5 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -4)" identifier = (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)(local_20[0] + -4) = iVar5 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar5 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" identifier = (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *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 (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" { (expression_statement "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21)" identifier (argument_list "((undefined4 *)(local_20[0] + -0xc),&local_21)" ( (cast_expression "(undefined4 *)(local_20[0] + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) , (pointer_expression "&local_21" & identifier) ))) ;) })) })) (expression_statement "(**(code **)(*param_2 + 0x18))(local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x18))(local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x18))" ( (pointer_expression "**(code **)(*param_2 + 0x18)" * (pointer_expression "*(code **)(*param_2 + 0x18)" * (cast_expression "(code **)(*param_2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x18)" ( (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(local_20,param_2)" ( identifier , identifier ))) ;) (expression_statement "iVar5 = *(int *)(local_20[0] + -0xc);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -0xc)" identifier = (pointer_expression "*(int *)(local_20[0] + -0xc)" * (cast_expression "(int *)(local_20[0] + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (if_statement "if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    \n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }" if (parenthesized_expression "(iVar5 + 1U < 0x20000000)" ( (binary_expression "iVar5 + 1U < 0x20000000" (binary_expression "iVar5 + 1U" identifier + number_literal) < number_literal) )) (compound_statement "{\n    iVar4 = (iVar5 + 1U) * 4;\n                    \n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }" { (expression_statement "iVar4 = (iVar5 + 1U) * 4;" (assignment_expression "iVar4 = (iVar5 + 1U) * 4" identifier = (binary_expression "(iVar5 + 1U) * 4" (parenthesized_expression "(iVar5 + 1U)" ( (binary_expression "iVar5 + 1U" identifier + number_literal) )) * number_literal)) ;) (expression_statement "iVar3 = FUN_001fb3f0(iVar4);" (assignment_expression "iVar3 = FUN_001fb3f0(iVar4)" identifier = (call_expression "FUN_001fb3f0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "FUN_0027f0c0(local_20,iVar3,iVar5,0);" (call_expression "FUN_0027f0c0(local_20,iVar3,iVar5,0)" identifier (argument_list "(local_20,iVar3,iVar5,0)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "*(undefined4 *)(iVar3 + -4 + iVar4) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + -4 + iVar4) = 0" (pointer_expression "*(undefined4 *)(iVar3 + -4 + iVar4)" * (cast_expression "(undefined4 *)(iVar3 + -4 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4 + iVar4)" ( (binary_expression "iVar3 + -4 + iVar4" (binary_expression "iVar3 + -4" identifier + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "*(int *)(param_3 + 0x1c) = iVar3;" (assignment_expression "*(int *)(param_3 + 0x1c) = iVar3" (pointer_expression "*(int *)(param_3 + 0x1c)" * (cast_expression "(int *)(param_3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x1c)" ( (binary_expression "param_3 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_3 + 0x20) = iVar5;" (assignment_expression "*(int *)(param_3 + 0x20) = iVar5" (pointer_expression "*(int *)(param_3 + 0x20)" * (cast_expression "(int *)(param_3 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" if (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080)" ( (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080" (cast_expression "(undefined4 *)(local_20[0] + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) != (pointer_expression "&DAT_003b3080" & identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }" { (expression_statement "iVar5 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -4)" identifier = (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)(local_20[0] + -4) = iVar5 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar5 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" * (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" identifier = (cast_expression "(int *)(local_20[0] + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -4)" ( (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *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 (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" { (expression_statement "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21)" identifier (argument_list "((undefined4 *)(local_20[0] + -0xc),&local_21)" ( (cast_expression "(undefined4 *)(local_20[0] + -0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_20[0] + -0xc)" ( (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" identifier [ number_literal ]) + number_literal) ))) , (pointer_expression "&local_21" & identifier) ))) ;) })) })) (return_statement "return;" return ;) })) (expression_statement "FUN_001fc9b0();" (call_expression "FUN_001fc9b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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 , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))) != IDENT) )) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + 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 IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))) , (pointer_expression & IDENT) ))) ;) })) })) (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 , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))) != (pointer_expression & IDENT)) )) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + 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 IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))) , (pointer_expression & IDENT) ))) ;) })) })) (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 , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))) != (pointer_expression & IDENT)) )) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + 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 IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))) , (pointer_expression & IDENT) ))) ;) })) })) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_0023ee60(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_21;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x23ee6b;\n  uVar2 = (**(code **)(*param_2 + 8))(param_2);\n  *(undefined4 *)(param_3 + 0x24) = uVar2;\n  uVar2 = (**(code **)(*param_2 + 0xc))(param_2);\n  *(undefined4 *)(param_3 + 0x28) = uVar2;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0x14) = 0;\n  *(undefined4 *)(param_3 + 0x1c) = 0;\n  *(undefined1 *)(param_3 + 0x124) = 1;\n  (**(code **)(*param_2 + 0x10))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n                    \n  iVar3 = FUN_001fb3f0(iVar5 + 1);\n  FUN_00233dc0(local_20,iVar3,iVar5,0);\n  *(int *)(param_3 + 8) = iVar3;\n  *(undefined1 *)(iVar3 + iVar5) = 0;\n  *(int *)(param_3 + 0xc) = iVar5;\n  if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x14))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (0x1fffffff < iVar5 + 1U) {\n                    \n                    \n    FUN_001fc9b0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    \n  iVar4 = FUN_001fb3f0(iVar3);\n  FUN_0027f0c0(local_20,iVar4,iVar5,0);\n  *(int *)(param_3 + 0x18) = iVar5;\n  *(undefined4 *)(iVar4 + -4 + iVar3) = 0;\n  *(int *)(param_3 + 0x14) = iVar4;\n  if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x18))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    \n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    \n  FUN_001fc9b0();\n}" (primitive_type "void") (function_declarator "FUN_0023ee60(undefined4 param_1,int *param_2,int param_3)" (identifier "FUN_0023ee60") (parameter_list "(undefined4 param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 local_21;\n  int local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x23ee6b;\n  uVar2 = (**(code **)(*param_2 + 8))(param_2);\n  *(undefined4 *)(param_3 + 0x24) = uVar2;\n  uVar2 = (**(code **)(*param_2 + 0xc))(param_2);\n  *(undefined4 *)(param_3 + 0x28) = uVar2;\n  *(undefined4 *)(param_3 + 8) = 0;\n  *(undefined4 *)(param_3 + 0x14) = 0;\n  *(undefined4 *)(param_3 + 0x1c) = 0;\n  *(undefined1 *)(param_3 + 0x124) = 1;\n  (**(code **)(*param_2 + 0x10))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n                    \n  iVar3 = FUN_001fb3f0(iVar5 + 1);\n  FUN_00233dc0(local_20,iVar3,iVar5,0);\n  *(int *)(param_3 + 8) = iVar3;\n  *(undefined1 *)(iVar3 + iVar5) = 0;\n  *(int *)(param_3 + 0xc) = iVar5;\n  if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x14))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (0x1fffffff < iVar5 + 1U) {\n                    \n                    \n    FUN_001fc9b0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    \n  iVar4 = FUN_001fb3f0(iVar3);\n  FUN_0027f0c0(local_20,iVar4,iVar5,0);\n  *(int *)(param_3 + 0x18) = iVar5;\n  *(undefined4 *)(iVar4 + -4 + iVar3) = 0;\n  *(int *)(param_3 + 0x14) = iVar4;\n  if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }\n  (**(code **)(*param_2 + 0x18))(local_20,param_2);\n  iVar5 = *(int *)(local_20[0] + -0xc);\n  if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    \n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    \n  FUN_001fc9b0();\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined1 local_21;" (type_identifier "undefined1") (identifier "local_21") (; ";")) (declaration "int local_20 [3];" (primitive_type "int") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x23ee6b;" (assignment_expression "uStack_14 = 0x23ee6b" (identifier "uStack_14") (= "=") (number_literal "0x23ee6b")) (; ";")) (expression_statement "uVar2 = (**(code **)(*param_2 + 8))(param_2);" (assignment_expression "uVar2 = (**(code **)(*param_2 + 8))(param_2)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 8))" (( "(") (pointer_expression "**(code **)(*param_2 + 8)" (* "*") (pointer_expression "*(code **)(*param_2 + 8)" (* "*") (cast_expression "(code **)(*param_2 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 8)" (( "(") (binary_expression "*param_2 + 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0x24) = uVar2;" (assignment_expression "*(undefined4 *)(param_3 + 0x24) = uVar2" (pointer_expression "*(undefined4 *)(param_3 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x24)" (( "(") (binary_expression "param_3 + 0x24" (identifier "param_3") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = (**(code **)(*param_2 + 0xc))(param_2);" (assignment_expression "uVar2 = (**(code **)(*param_2 + 0xc))(param_2)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*param_2 + 0xc))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0xc))" (( "(") (pointer_expression "**(code **)(*param_2 + 0xc)" (* "*") (pointer_expression "*(code **)(*param_2 + 0xc)" (* "*") (cast_expression "(code **)(*param_2 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0xc)" (( "(") (binary_expression "*param_2 + 0xc" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0x28) = uVar2;" (assignment_expression "*(undefined4 *)(param_3 + 0x28) = uVar2" (pointer_expression "*(undefined4 *)(param_3 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x28)" (( "(") (binary_expression "param_3 + 0x28" (identifier "param_3") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 8) = 0" (pointer_expression "*(undefined4 *)(param_3 + 8)" (* "*") (cast_expression "(undefined4 *)(param_3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x14)" (( "(") (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_3 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_3 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_3 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_3 + 0x124) = 1;" (assignment_expression "*(undefined1 *)(param_3 + 0x124) = 1" (pointer_expression "*(undefined1 *)(param_3 + 0x124)" (* "*") (cast_expression "(undefined1 *)(param_3 + 0x124)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x124)" (( "(") (binary_expression "param_3 + 0x124" (identifier "param_3") (+ "+") (number_literal "0x124")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "(**(code **)(*param_2 + 0x10))(local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x10))(local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x10))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x10)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x10)" (* "*") (cast_expression "(code **)(*param_2 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x10)" (( "(") (binary_expression "*param_2 + 0x10" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(local_20,param_2)" (( "(") (identifier "local_20") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(local_20[0] + -0xc);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -0xc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(local_20[0] + -0xc)" (* "*") (cast_expression "(int *)(local_20[0] + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -0xc)" (( "(") (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (expression_statement "iVar3 = FUN_001fb3f0(iVar5 + 1);" (assignment_expression "iVar3 = FUN_001fb3f0(iVar5 + 1)" (identifier "iVar3") (= "=") (call_expression "FUN_001fb3f0(iVar5 + 1)" (identifier "FUN_001fb3f0") (argument_list "(iVar5 + 1)" (( "(") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "FUN_00233dc0(local_20,iVar3,iVar5,0);" (call_expression "FUN_00233dc0(local_20,iVar3,iVar5,0)" (identifier "FUN_00233dc0") (argument_list "(local_20,iVar3,iVar5,0)" (( "(") (identifier "local_20") (, ",") (identifier "iVar3") (, ",") (identifier "iVar5") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(int *)(param_3 + 8) = iVar3;" (assignment_expression "*(int *)(param_3 + 8) = iVar3" (pointer_expression "*(int *)(param_3 + 8)" (* "*") (cast_expression "(int *)(param_3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(undefined1 *)(iVar3 + iVar5) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar5) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar5)" (* "*") (cast_expression "(undefined1 *)(iVar3 + iVar5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5)" (( "(") (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_3 + 0xc) = iVar5;" (assignment_expression "*(int *)(param_3 + 0xc) = iVar5" (pointer_expression "*(int *)(param_3 + 0xc)" (* "*") (cast_expression "(int *)(param_3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xc)" (( "(") (binary_expression "param_3 + 0xc" (identifier "param_3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" (if "if") (parenthesized_expression "((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8)" (( "(") (binary_expression "(undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8" (cast_expression "(undefined *)(local_20[0] + -0xc)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -0xc)" (( "(") (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (identifier "PTR_DAT_003a9cf8")) () ")")) (compound_statement "{\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" ({ "{") (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" (identifier "PTR___pthread_key_create_003a9f3c") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -4)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(local_20[0] + -4)" (* "*") (cast_expression "(int *)(local_20[0] + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -4)" (( "(") (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(local_20[0] + -4) = iVar5 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar5 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" (* "*") (cast_expression "(int *)(local_20[0] + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -4)" (( "(") (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (else "else") (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(local_20[0] + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -4)" (( "(") (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-4")) () ")")))) (; ";")) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" (identifier "iVar5") (= "=") (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 (iVar5 < 1) {\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" (if "if") (parenthesized_expression "(iVar5 < 1)" (( "(") (binary_expression "iVar5 < 1" (identifier "iVar5") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" ({ "{") (expression_statement "FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21)" (identifier "FUN_00234c20") (argument_list "((undefined *)(local_20[0] + -0xc),&local_21)" (( "(") (cast_expression "(undefined *)(local_20[0] + -0xc)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -0xc)" (( "(") (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0xc")) () ")"))) (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "(**(code **)(*param_2 + 0x14))(local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x14))(local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x14))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x14)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x14)" (* "*") (cast_expression "(code **)(*param_2 + 0x14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x14)" (( "(") (binary_expression "*param_2 + 0x14" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (argument_list "(local_20,param_2)" (( "(") (identifier "local_20") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(local_20[0] + -0xc);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -0xc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(local_20[0] + -0xc)" (* "*") (cast_expression "(int *)(local_20[0] + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -0xc)" (( "(") (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (if_statement "if (0x1fffffff < iVar5 + 1U) {\n                    \n                    \n    FUN_001fc9b0();\n  }" (if "if") (parenthesized_expression "(0x1fffffff < iVar5 + 1U)" (( "(") (binary_expression "0x1fffffff < iVar5 + 1U" (number_literal "0x1fffffff") (< "<") (binary_expression "iVar5 + 1U" (identifier "iVar5") (+ "+") (number_literal "1U"))) () ")")) (compound_statement "{\n                    \n                    \n    FUN_001fc9b0();\n  }" ({ "{") (expression_statement "FUN_001fc9b0();" (call_expression "FUN_001fc9b0()" (identifier "FUN_001fc9b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = (iVar5 + 1U) * 4;" (assignment_expression "iVar3 = (iVar5 + 1U) * 4" (identifier "iVar3") (= "=") (binary_expression "(iVar5 + 1U) * 4" (parenthesized_expression "(iVar5 + 1U)" (( "(") (binary_expression "iVar5 + 1U" (identifier "iVar5") (+ "+") (number_literal "1U")) () ")")) (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar4 = FUN_001fb3f0(iVar3);" (assignment_expression "iVar4 = FUN_001fb3f0(iVar3)" (identifier "iVar4") (= "=") (call_expression "FUN_001fb3f0(iVar3)" (identifier "FUN_001fb3f0") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "FUN_0027f0c0(local_20,iVar4,iVar5,0);" (call_expression "FUN_0027f0c0(local_20,iVar4,iVar5,0)" (identifier "FUN_0027f0c0") (argument_list "(local_20,iVar4,iVar5,0)" (( "(") (identifier "local_20") (, ",") (identifier "iVar4") (, ",") (identifier "iVar5") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(int *)(param_3 + 0x18) = iVar5;" (assignment_expression "*(int *)(param_3 + 0x18) = iVar5" (pointer_expression "*(int *)(param_3 + 0x18)" (* "*") (cast_expression "(int *)(param_3 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x18)" (( "(") (binary_expression "param_3 + 0x18" (identifier "param_3") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(undefined4 *)(iVar4 + -4 + iVar3) = 0;" (assignment_expression "*(undefined4 *)(iVar4 + -4 + iVar3) = 0" (pointer_expression "*(undefined4 *)(iVar4 + -4 + iVar3)" (* "*") (cast_expression "(undefined4 *)(iVar4 + -4 + iVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -4 + iVar3)" (( "(") (binary_expression "iVar4 + -4 + iVar3" (binary_expression "iVar4 + -4" (identifier "iVar4") (+ "+") (number_literal "-4")) (+ "+") (identifier "iVar3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_3 + 0x14) = iVar4;" (assignment_expression "*(int *)(param_3 + 0x14) = iVar4" (pointer_expression "*(int *)(param_3 + 0x14)" (* "*") (cast_expression "(int *)(param_3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x14)" (( "(") (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" (if "if") (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080)" (( "(") (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080" (cast_expression "(undefined4 *)(local_20[0] + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -0xc)" (( "(") (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (pointer_expression "&DAT_003b3080" (& "&") (identifier "DAT_003b3080"))) () ")")) (compound_statement "{\n    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" ({ "{") (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" (identifier "PTR___pthread_key_create_003a9f3c") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar5 = *(int *)(local_20[0] + -4);\n      *(int *)(local_20[0] + -4) = iVar5 + -1;\n    }" ({ "{") (expression_statement "iVar5 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -4)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(local_20[0] + -4)" (* "*") (cast_expression "(int *)(local_20[0] + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -4)" (( "(") (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(local_20[0] + -4) = iVar5 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar5 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" (* "*") (cast_expression "(int *)(local_20[0] + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -4)" (( "(") (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (else "else") (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_20[0] + -4);\n      iVar5 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(local_20[0] + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -4)" (( "(") (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-4")) () ")")))) (; ";")) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" (identifier "iVar5") (= "=") (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 (iVar5 < 1) {\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" (if "if") (parenthesized_expression "(iVar5 < 1)" (( "(") (binary_expression "iVar5 < 1" (identifier "iVar5") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" ({ "{") (expression_statement "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21)" (identifier "FUN_0027ff70") (argument_list "((undefined4 *)(local_20[0] + -0xc),&local_21)" (( "(") (cast_expression "(undefined4 *)(local_20[0] + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -0xc)" (( "(") (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0xc")) () ")"))) (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "(**(code **)(*param_2 + 0x18))(local_20,param_2);" (call_expression "(**(code **)(*param_2 + 0x18))(local_20,param_2)" (parenthesized_expression "(**(code **)(*param_2 + 0x18))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x18)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x18)" (* "*") (cast_expression "(code **)(*param_2 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x18)" (( "(") (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(local_20,param_2)" (( "(") (identifier "local_20") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(local_20[0] + -0xc);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -0xc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(local_20[0] + -0xc)" (* "*") (cast_expression "(int *)(local_20[0] + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -0xc)" (( "(") (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (if_statement "if (iVar5 + 1U < 0x20000000) {\n    iVar4 = (iVar5 + 1U) * 4;\n                    \n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(iVar5 + 1U < 0x20000000)" (( "(") (binary_expression "iVar5 + 1U < 0x20000000" (binary_expression "iVar5 + 1U" (identifier "iVar5") (+ "+") (number_literal "1U")) (< "<") (number_literal "0x20000000")) () ")")) (compound_statement "{\n    iVar4 = (iVar5 + 1U) * 4;\n                    \n    iVar3 = FUN_001fb3f0(iVar4);\n    FUN_0027f0c0(local_20,iVar3,iVar5,0);\n    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;\n    *(int *)(param_3 + 0x1c) = iVar3;\n    *(int *)(param_3 + 0x20) = iVar5;\n    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }" ({ "{") (expression_statement "iVar4 = (iVar5 + 1U) * 4;" (assignment_expression "iVar4 = (iVar5 + 1U) * 4" (identifier "iVar4") (= "=") (binary_expression "(iVar5 + 1U) * 4" (parenthesized_expression "(iVar5 + 1U)" (( "(") (binary_expression "iVar5 + 1U" (identifier "iVar5") (+ "+") (number_literal "1U")) () ")")) (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar3 = FUN_001fb3f0(iVar4);" (assignment_expression "iVar3 = FUN_001fb3f0(iVar4)" (identifier "iVar3") (= "=") (call_expression "FUN_001fb3f0(iVar4)" (identifier "FUN_001fb3f0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "FUN_0027f0c0(local_20,iVar3,iVar5,0);" (call_expression "FUN_0027f0c0(local_20,iVar3,iVar5,0)" (identifier "FUN_0027f0c0") (argument_list "(local_20,iVar3,iVar5,0)" (( "(") (identifier "local_20") (, ",") (identifier "iVar3") (, ",") (identifier "iVar5") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + -4 + iVar4) = 0;" (assignment_expression "*(undefined4 *)(iVar3 + -4 + iVar4) = 0" (pointer_expression "*(undefined4 *)(iVar3 + -4 + iVar4)" (* "*") (cast_expression "(undefined4 *)(iVar3 + -4 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -4 + iVar4)" (( "(") (binary_expression "iVar3 + -4 + iVar4" (binary_expression "iVar3 + -4" (identifier "iVar3") (+ "+") (number_literal "-4")) (+ "+") (identifier "iVar4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(param_3 + 0x1c) = iVar3;" (assignment_expression "*(int *)(param_3 + 0x1c) = iVar3" (pointer_expression "*(int *)(param_3 + 0x1c)" (* "*") (cast_expression "(int *)(param_3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x1c)" (( "(") (binary_expression "param_3 + 0x1c" (identifier "param_3") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(int *)(param_3 + 0x20) = iVar5;" (assignment_expression "*(int *)(param_3 + 0x20) = iVar5" (pointer_expression "*(int *)(param_3 + 0x20)" (* "*") (cast_expression "(int *)(param_3 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x20)" (( "(") (binary_expression "param_3 + 0x20" (identifier "param_3") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" (if "if") (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080)" (( "(") (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080" (cast_expression "(undefined4 *)(local_20[0] + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -0xc)" (( "(") (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (pointer_expression "&DAT_003b3080" (& "&") (identifier "DAT_003b3080"))) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_003a9f3c == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_003a9f3c == (undefined *)0x0" (identifier "PTR___pthread_key_create_003a9f3c") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar5 = *(int *)(local_20[0] + -4);\n        *(int *)(local_20[0] + -4) = iVar5 + -1;\n      }" ({ "{") (expression_statement "iVar5 = *(int *)(local_20[0] + -4);" (assignment_expression "iVar5 = *(int *)(local_20[0] + -4)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(local_20[0] + -4)" (* "*") (cast_expression "(int *)(local_20[0] + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -4)" (( "(") (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(local_20[0] + -4) = iVar5 + -1;" (assignment_expression "*(int *)(local_20[0] + -4) = iVar5 + -1" (pointer_expression "*(int *)(local_20[0] + -4)" (* "*") (cast_expression "(int *)(local_20[0] + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -4)" (( "(") (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (else "else") (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_20[0] + -4);\n        iVar5 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(local_20[0] + -4);" (assignment_expression "piVar1 = (int *)(local_20[0] + -4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(local_20[0] + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -4)" (( "(") (binary_expression "local_20[0] + -4" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-4")) () ")")))) (; ";")) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" (identifier "iVar5") (= "=") (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 (iVar5 < 1) {\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" (if "if") (parenthesized_expression "(iVar5 < 1)" (( "(") (binary_expression "iVar5 < 1" (identifier "iVar5") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" ({ "{") (expression_statement "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21)" (identifier "FUN_0027ff70") (argument_list "((undefined4 *)(local_20[0] + -0xc),&local_21)" (( "(") (cast_expression "(undefined4 *)(local_20[0] + -0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_20[0] + -0xc)" (( "(") (binary_expression "local_20[0] + -0xc" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0xc")) () ")"))) (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_001fc9b0();" (call_expression "FUN_001fc9b0()" (identifier "FUN_001fc9b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* void std::__facet_shims::__numpunct_fill_cache<wchar_t>(std::integral_constant<bool, false>,
   std::locale::facet const*, std::__numpunct_cache<wchar_t>*) */

void std::__facet_shims::__numpunct_fill_cache<type_3>(type_2 param_1,int *param_2,int var_1)

{
  int *piVar1;
  type_1 var_3;
  type_2 uVar3;
  char *pcVar4;
  type_3 *pwVar5;
  int var_6;
  int local_20 [3];
  type_2 uStack_14;
  
  uStack_14 = 0x23ee6b;
  uVar3 = (**(type_4 **)(*param_2 + 8))(param_2);
  *(type_2 *)(var_1 + 0x24) = uVar3;
  uVar3 = (**(type_4 **)(*param_2 + 0xc))(param_2);
  *(type_2 *)(var_1 + 0x28) = uVar3;
  *(type_2 *)(var_1 + 8) = 0;
  *(type_2 *)(var_1 + 0x14) = 0;
  *(type_2 *)(var_1 + 0x1c) = 0;
  *(type_5 *)(var_1 + 0x124) = 1;
  (**(type_4 **)(*param_2 + 0x10))((type_6 *)local_20,param_2);
  var_3 = *(type_1 *)(local_20[0] + -0xc);
                    /* try { // try from 0023eece to 0023eee7 has its CatchHandler @ 0023f102 */
  pcVar4 = (char *)var_2(var_3 + 1);
  std::string::var_4((type_6 *)local_20,pcVar4,var_3,0);
  *(char **)(var_1 + 8) = pcVar4;
  pcVar4[var_3] = '\0';
  *(type_1 *)(var_1 + 0xc) = var_3;
  if ((type_7 *)(local_20[0] + -0xc) != (type_7 *)PTR__S_empty_rep_storage_003a9cf8) {
    if (var_5 == (type_8 *)0x0) {
      var_6 = *(int *)(local_20[0] + -4);
      *(int *)(local_20[0] + -4) = var_6 + -1;
    }
    else {
      var_7();
      piVar1 = (int *)(local_20[0] + -4);
      var_6 = *piVar1;
      *piVar1 = *piVar1 + -1;
      var_8();
    }
    if (var_6 < 1) {
      std::string::_Rep::var_9((type_7 *)(local_20[0] + -0xc));
    }
  }
  (**(type_4 **)(*param_2 + 0x14))((type_6 *)local_20,param_2);
  var_3 = *(type_1 *)(local_20[0] + -0xc);
  if (0x1fffffff < var_3 + 1) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */
    var_10();
  }
                    /* try { // try from 0023ef48 to 0023ef62 has its CatchHandler @ 0023f106 */
  pwVar5 = (type_3 *)var_2((var_3 + 1) * 4);
  std::wstring::var_4((type_9 *)local_20,pwVar5,var_3,0);
  *(type_1 *)(var_1 + 0x18) = var_3;
  pwVar5[var_3] = L'\0';
  *(type_3 **)(var_1 + 0x14) = pwVar5;
  if ((type_7 *)(local_20[0] + -0xc) != (type_7 *)&std::type_9::_Rep::_S_empty_rep_storage) {
    if (var_5 == (type_8 *)0x0) {
      var_6 = *(int *)(local_20[0] + -4);
      *(int *)(local_20[0] + -4) = var_6 + -1;
    }
    else {
      var_7();
      piVar1 = (int *)(local_20[0] + -4);
      var_6 = *piVar1;
      *piVar1 = *piVar1 + -1;
      var_8();
    }
    if (var_6 < 1) {
      std::wstring::_Rep::var_9((type_7 *)(local_20[0] + -0xc));
    }
  }
  (**(type_4 **)(*param_2 + 0x18))((type_6 *)local_20,param_2);
  var_3 = *(type_1 *)(local_20[0] + -0xc);
  if (var_3 + 1 < 0x20000000) {
                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */
    pwVar5 = (type_3 *)var_2((var_3 + 1) * 4);
    std::wstring::var_4((type_9 *)local_20,pwVar5,var_3,0);
    pwVar5[var_3] = L'\0';
    *(type_3 **)(var_1 + 0x1c) = pwVar5;
    *(type_1 *)(var_1 + 0x20) = var_3;
    if ((type_7 *)(local_20[0] + -0xc) != (type_7 *)&std::type_9::_Rep::_S_empty_rep_storage)
    {
      if (var_5 == (type_8 *)0x0) {
        var_6 = *(int *)(local_20[0] + -4);
        *(int *)(local_20[0] + -4) = var_6 + -1;
      }
      else {
        var_7();
        piVar1 = (int *)(local_20[0] + -4);
        var_6 = *piVar1;
        *piVar1 = *piVar1 + -1;
        var_8();
      }
      if (var_6 < 1) {
        std::wstring::_Rep::var_9((type_7 *)(local_20[0] + -0xc));
      }
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


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

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

void MASKED(undefined4 param_1,int *param_2,int param_3)

{
  int *piVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined1 local_21;
  int local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x23ee6b;
  uVar2 = (**(code **)(*param_2 + 8))(param_2);
  *(undefined4 *)(param_3 + 0x24) = uVar2;
  uVar2 = (**(code **)(*param_2 + 0xc))(param_2);
  *(undefined4 *)(param_3 + 0x28) = uVar2;
  *(undefined4 *)(param_3 + 8) = 0;
  *(undefined4 *)(param_3 + 0x14) = 0;
  *(undefined4 *)(param_3 + 0x1c) = 0;
  *(undefined1 *)(param_3 + 0x124) = 1;
  (**(code **)(*param_2 + 0x10))(local_20,param_2);
  iVar5 = *(int *)(local_20[0] + -0xc);
                    /* try { // try from 0023eece to 0023eee7 has its CatchHandler @ 0023f102 */
  iVar3 = FUN_001fb3f0(iVar5 + 1);
  FUN_00233dc0(local_20,iVar3,iVar5,0);
  *(int *)(param_3 + 8) = iVar3;
  *(undefined1 *)(iVar3 + iVar5) = 0;
  *(int *)(param_3 + 0xc) = iVar5;
  if ((undefined *)(local_20[0] + -0xc) != PTR_DAT_003a9cf8) {
    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {
      iVar5 = *(int *)(local_20[0] + -4);
      *(int *)(local_20[0] + -4) = iVar5 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(local_20[0] + -4);
      iVar5 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar5 < 1) {
      FUN_00234c20((undefined *)(local_20[0] + -0xc),&local_21);
    }
  }
  (**(code **)(*param_2 + 0x14))(local_20,param_2);
  iVar5 = *(int *)(local_20[0] + -0xc);
  if (0x1fffffff < iVar5 + 1U) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 0023f115 to 0023f119 has its CatchHandler @ 0023f106 */
    FUN_001fc9b0();
  }
  iVar3 = (iVar5 + 1U) * 4;
                    /* try { // try from 0023ef48 to 0023ef62 has its CatchHandler @ 0023f106 */
  iVar4 = FUN_001fb3f0(iVar3);
  FUN_0027f0c0(local_20,iVar4,iVar5,0);
  *(int *)(param_3 + 0x18) = iVar5;
  *(undefined4 *)(iVar4 + -4 + iVar3) = 0;
  *(int *)(param_3 + 0x14) = iVar4;
  if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {
    if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {
      iVar5 = *(int *)(local_20[0] + -4);
      *(int *)(local_20[0] + -4) = iVar5 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(local_20[0] + -4);
      iVar5 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar5 < 1) {
      FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);
    }
  }
  (**(code **)(*param_2 + 0x18))(local_20,param_2);
  iVar5 = *(int *)(local_20[0] + -0xc);
  if (iVar5 + 1U < 0x20000000) {
    iVar4 = (iVar5 + 1U) * 4;
                    /* try { // try from 0023efc5 to 0023f111 has its CatchHandler @ 0023f0fe */
    iVar3 = FUN_001fb3f0(iVar4);
    FUN_0027f0c0(local_20,iVar3,iVar5,0);
    *(undefined4 *)(iVar3 + -4 + iVar4) = 0;
    *(int *)(param_3 + 0x1c) = iVar3;
    *(int *)(param_3 + 0x20) = iVar5;
    if ((undefined4 *)(local_20[0] + -0xc) != &DAT_003b3080) {
      if (PTR___pthread_key_create_003a9f3c == (undefined *)0x0) {
        iVar5 = *(int *)(local_20[0] + -4);
        *(int *)(local_20[0] + -4) = iVar5 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(local_20[0] + -4);
        iVar5 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar5 < 1) {
        FUN_0027ff70((undefined4 *)(local_20[0] + -0xc),&local_21);
      }
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_001fc9b0();
}

