
/* 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>(void)

{
}



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

void FUN_0028a060(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 = 0x28a06b;
  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 0028a0ce to 0028a0e7 has its CatchHandler @ 0028a302 */
  iVar3 = FUN_002465f0(iVar5 + 1);
  FUN_0027efc0(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_00413ffc) {
    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((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 0028a315 to 0028a319 has its CatchHandler @ 0028a306 */
    FUN_00247bb0();
  }
  iVar3 = (iVar5 + 1U) * 4;
                    /* try { // try from 0028a148 to 0028a162 has its CatchHandler @ 0028a306 */
  iVar4 = FUN_002465f0(iVar3);
  FUN_002ca2c0(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_0041d200) {
    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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 0028a1c5 to 0028a311 has its CatchHandler @ 0028a2fe */
    iVar3 = FUN_002465f0(iVar4);
    FUN_002ca2c0(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_0041d200) {
      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);
      }
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00247bb0();
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0003a210
ADD EBX,0x189f95
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 0x002465f0
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 0x0027efc0
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 + 0xfffffffc]
JNZ 0x0028a210
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 0x0028a312
LEA ECX,[EDI*0x4 + 0x0]
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x2c]
PUSH ECX
MOV dword ptr [EBP + -0x38],ECX
CALL 0x002465f0
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 0x002ca2c0
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 + 0x9200]
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 0x0028a250
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 0x0028a30a
SHL ESI,0x2
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x2c]
PUSH ESI
CALL 0x002465f0
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 0x002ca2c0
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 0x0028a290
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [EBX + 0xfffffff8]
TEST EDI,EDI
JZ 0x0028a2f0
MOV ECX,0xffffffff
XADD.LOCK dword ptr [EAX + -0x4],ECX
TEST ECX,ECX
JG 0x0028a110
SUB ESP,0x8
LEA EAX,[EBP + -0x1d]
MOV EBX,dword ptr [EBP + -0x2c]
PUSH EAX
PUSH EDX
CALL 0x0027fe20
ADD ESP,0x10
JMP 0x0028a110
MOV EBX,dword ptr [EBP + -0x2c]
MOV EBX,dword ptr [EBX + 0xfffffff8]
TEST EBX,EBX
JZ 0x0028a2e0
MOV ECX,0xffffffff
XADD.LOCK dword ptr [EAX + -0x4],ECX
TEST ECX,ECX
JG 0x0028a197
SUB ESP,0x8
LEA EAX,[EBP + -0x1d]
MOV EBX,dword ptr [EBP + -0x2c]
PUSH EAX
PUSH EDX
CALL 0x002cb170
ADD ESP,0x10
JMP 0x0028a197
MOV ESI,dword ptr [EBP + -0x2c]
MOV ECX,dword ptr [ESI + 0xfffffff8]
TEST ECX,ECX
JZ 0x0028a2d0
MOV ECX,0xffffffff
XADD.LOCK dword ptr [EAX + -0x4],ECX
TEST ECX,ECX
JG 0x0028a205
SUB ESP,0x8
LEA EAX,[EBP + -0x1d]
MOV EBX,dword ptr [EBP + -0x2c]
PUSH EAX
PUSH EDX
CALL 0x002cb170
ADD ESP,0x10
JMP 0x0028a205
MOV ECX,dword ptr [EAX + -0x4]
LEA ESI,[ECX + -0x1]
MOV dword ptr [EAX + -0x4],ESI
JMP 0x0028a2a7
MOV ECX,dword ptr [EAX + -0x4]
LEA EDI,[ECX + -0x1]
MOV dword ptr [EAX + -0x4],EDI
JMP 0x0028a26b
MOV ECX,dword ptr [EAX + -0x4]
LEA EDI,[ECX + -0x1]
MOV dword ptr [EAX + -0x4],EDI
JMP 0x0028a228
MOV EBX,dword ptr [EBP + -0x2c]
CALL 0x00247bb0
MOV EBX,dword ptr [EBP + -0x2c]
CALL 0x00247bb0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0028a060(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 = 0x28a06b;\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 0028a0ce to 0028a0e7 has its CatchHandler @ 0028a302 */\n  iVar3 = FUN_002465f0(iVar5 + 1);\n  FUN_0027efc0(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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((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 0028a315 to 0028a319 has its CatchHandler @ 0028a306 */\n    FUN_00247bb0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0028a148 to 0028a162 has its CatchHandler @ 0028a306 */\n  iVar4 = FUN_002465f0(iVar3);\n  FUN_002ca2c0(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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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 0028a1c5 to 0028a311 has its CatchHandler @ 0028a2fe */\n    iVar3 = FUN_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00247bb0();\n}\n\n" comment (function_definition "void FUN_0028a060(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 = 0x28a06b;\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 0028a0ce to 0028a0e7 has its CatchHandler @ 0028a302 */\n  iVar3 = FUN_002465f0(iVar5 + 1);\n  FUN_0027efc0(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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((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 0028a315 to 0028a319 has its CatchHandler @ 0028a306 */\n    FUN_00247bb0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0028a148 to 0028a162 has its CatchHandler @ 0028a306 */\n  iVar4 = FUN_002465f0(iVar3);\n  FUN_002ca2c0(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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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 0028a1c5 to 0028a311 has its CatchHandler @ 0028a2fe */\n    iVar3 = FUN_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00247bb0();\n}" primitive_type (function_declarator "FUN_0028a060(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 = 0x28a06b;\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 0028a0ce to 0028a0e7 has its CatchHandler @ 0028a302 */\n  iVar3 = FUN_002465f0(iVar5 + 1);\n  FUN_0027efc0(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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((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 0028a315 to 0028a319 has its CatchHandler @ 0028a306 */\n    FUN_00247bb0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    /* try { // try from 0028a148 to 0028a162 has its CatchHandler @ 0028a306 */\n  iVar4 = FUN_002465f0(iVar3);\n  FUN_002ca2c0(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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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 0028a1c5 to 0028a311 has its CatchHandler @ 0028a2fe */\n    iVar3 = FUN_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00247bb0();\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 = 0x28a06b;" (assignment_expression "uStack_14 = 0x28a06b" 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_002465f0(iVar5 + 1);" (assignment_expression "iVar3 = FUN_002465f0(iVar5 + 1)" identifier = (call_expression "FUN_002465f0(iVar5 + 1)" identifier (argument_list "(iVar5 + 1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "FUN_0027efc0(local_20,iVar3,iVar5,0);" (call_expression "FUN_0027efc0(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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" if (parenthesized_expression "((undefined *)(local_20[0] + -0xc) != PTR_DAT_00413ffc)" ( (binary_expression "(undefined *)(local_20[0] + -0xc) != PTR_DAT_00413ffc" (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_00413ff8 == (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_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_00413ff8 == (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_00413ff8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 == (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_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" { (expression_statement "FUN_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_0027fe20((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 0028a315 to 0028a319 has its CatchHandler @ 0028a306 */\n    FUN_00247bb0();\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 0028a315 to 0028a319 has its CatchHandler @ 0028a306 */\n    FUN_00247bb0();\n  }" { comment comment (expression_statement "FUN_00247bb0();" (call_expression "FUN_00247bb0()" 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_002465f0(iVar3);" (assignment_expression "iVar4 = FUN_002465f0(iVar3)" identifier = (call_expression "FUN_002465f0(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "FUN_002ca2c0(local_20,iVar4,iVar5,0);" (call_expression "FUN_002ca2c0(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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" if (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200)" ( (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200" (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_0041d200" & identifier)) )) (compound_statement "{\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_00413ff8 == (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_00413ff8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" { (expression_statement "FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_002cb170((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 0028a1c5 to 0028a311 has its CatchHandler @ 0028a2fe */\n    iVar3 = FUN_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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 0028a1c5 to 0028a311 has its CatchHandler @ 0028a2fe */\n    iVar3 = FUN_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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_002465f0(iVar4);" (assignment_expression "iVar3 = FUN_002465f0(iVar4)" identifier = (call_expression "FUN_002465f0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "FUN_002ca2c0(local_20,iVar3,iVar5,0);" (call_expression "FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" if (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200)" ( (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200" (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_0041d200" & identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_00413ff8 == (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_00413ff8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n        FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" { (expression_statement "FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_002cb170((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_00247bb0();" (call_expression "FUN_00247bb0()" 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>(void)\n\n{\n}\n\n" comment comment (function_definition "void std::__facet_shims::__numpunct_fill_cache<wchar_t>(void)\n\n{\n}" primitive_type (ERROR "std::__facet_shims::__numpunct_fill_cache<" identifier : : identifier : : identifier <) identifier (ERROR ">(void)" > ( primitive_type )) (compound_statement "{\n}" { })))
(translation_unit "void FUN_0028a060(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 = 0x28a06b;\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_002465f0(iVar5 + 1);\n  FUN_0027efc0(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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((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_00247bb0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    \n  iVar4 = FUN_002465f0(iVar3);\n  FUN_002ca2c0(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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    \n  FUN_00247bb0();\n}\n\n" (function_definition "void FUN_0028a060(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 = 0x28a06b;\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_002465f0(iVar5 + 1);\n  FUN_0027efc0(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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((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_00247bb0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    \n  iVar4 = FUN_002465f0(iVar3);\n  FUN_002ca2c0(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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    \n  FUN_00247bb0();\n}" primitive_type (function_declarator "FUN_0028a060(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 = 0x28a06b;\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_002465f0(iVar5 + 1);\n  FUN_0027efc0(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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((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_00247bb0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    \n  iVar4 = FUN_002465f0(iVar3);\n  FUN_002ca2c0(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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    \n  FUN_00247bb0();\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 = 0x28a06b;" (assignment_expression "uStack_14 = 0x28a06b" 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_002465f0(iVar5 + 1);" (assignment_expression "iVar3 = FUN_002465f0(iVar5 + 1)" identifier = (call_expression "FUN_002465f0(iVar5 + 1)" identifier (argument_list "(iVar5 + 1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "FUN_0027efc0(local_20,iVar3,iVar5,0);" (call_expression "FUN_0027efc0(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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" if (parenthesized_expression "((undefined *)(local_20[0] + -0xc) != PTR_DAT_00413ffc)" ( (binary_expression "(undefined *)(local_20[0] + -0xc) != PTR_DAT_00413ffc" (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_00413ff8 == (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_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_00413ff8 == (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_00413ff8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 == (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_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" { (expression_statement "FUN_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_0027fe20((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_00247bb0();\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_00247bb0();\n  }" { (expression_statement "FUN_00247bb0();" (call_expression "FUN_00247bb0()" 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_002465f0(iVar3);" (assignment_expression "iVar4 = FUN_002465f0(iVar3)" identifier = (call_expression "FUN_002465f0(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "FUN_002ca2c0(local_20,iVar4,iVar5,0);" (call_expression "FUN_002ca2c0(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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" if (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200)" ( (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200" (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_0041d200" & identifier)) )) (compound_statement "{\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_00413ff8 == (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_00413ff8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n      FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" { (expression_statement "FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_002cb170((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_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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_002465f0(iVar4);" (assignment_expression "iVar3 = FUN_002465f0(iVar4)" identifier = (call_expression "FUN_002465f0(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "FUN_002ca2c0(local_20,iVar3,iVar5,0);" (call_expression "FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" if (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200)" ( (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200" (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_0041d200" & identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_00413ff8 == (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_00413ff8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" if (parenthesized_expression "(iVar5 < 1)" ( (binary_expression "iVar5 < 1" identifier < number_literal) )) (compound_statement "{\n        FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" { (expression_statement "FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_002cb170((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_00247bb0();" (call_expression "FUN_00247bb0()" 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_0028a060(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 = 0x28a06b;\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_002465f0(iVar5 + 1);\n  FUN_0027efc0(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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((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_00247bb0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    \n  iVar4 = FUN_002465f0(iVar3);\n  FUN_002ca2c0(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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    \n  FUN_00247bb0();\n}" (primitive_type "void") (function_declarator "FUN_0028a060(undefined4 param_1,int *param_2,int param_3)" (identifier "FUN_0028a060") (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 = 0x28a06b;\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_002465f0(iVar5 + 1);\n  FUN_0027efc0(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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((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_00247bb0();\n  }\n  iVar3 = (iVar5 + 1U) * 4;\n                    \n  iVar4 = FUN_002465f0(iVar3);\n  FUN_002ca2c0(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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }\n    return;\n  }\n                    \n  FUN_00247bb0();\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 = 0x28a06b;" (assignment_expression "uStack_14 = 0x28a06b" (identifier "uStack_14") (= "=") (number_literal "0x28a06b")) (; ";")) (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_002465f0(iVar5 + 1);" (assignment_expression "iVar3 = FUN_002465f0(iVar5 + 1)" (identifier "iVar3") (= "=") (call_expression "FUN_002465f0(iVar5 + 1)" (identifier "FUN_002465f0") (argument_list "(iVar5 + 1)" (( "(") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "FUN_0027efc0(local_20,iVar3,iVar5,0);" (call_expression "FUN_0027efc0(local_20,iVar3,iVar5,0)" (identifier "FUN_0027efc0") (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_00413ffc) {\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" (if "if") (parenthesized_expression "((undefined *)(local_20[0] + -0xc) != PTR_DAT_00413ffc)" (( "(") (binary_expression "(undefined *)(local_20[0] + -0xc) != PTR_DAT_00413ffc" (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_00413ffc")) () ")")) (compound_statement "{\n    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }\n  }" ({ "{") (if_statement "if (PTR___pthread_key_create_00413ff8 == (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_00413ff8 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_00413ff8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_00413ff8") (== "==") (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_0027fe20((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_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);\n    }" ({ "{") (expression_statement "FUN_0027fe20((undefined *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_0027fe20((undefined *)(local_20[0] + -0xc),&local_21)" (identifier "FUN_0027fe20") (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_00247bb0();\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_00247bb0();\n  }" ({ "{") (expression_statement "FUN_00247bb0();" (call_expression "FUN_00247bb0()" (identifier "FUN_00247bb0") (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_002465f0(iVar3);" (assignment_expression "iVar4 = FUN_002465f0(iVar3)" (identifier "iVar4") (= "=") (call_expression "FUN_002465f0(iVar3)" (identifier "FUN_002465f0") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "FUN_002ca2c0(local_20,iVar4,iVar5,0);" (call_expression "FUN_002ca2c0(local_20,iVar4,iVar5,0)" (identifier "FUN_002ca2c0") (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_0041d200) {\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" (if "if") (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200)" (( "(") (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200" (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_0041d200" (& "&") (identifier "DAT_0041d200"))) () ")")) (compound_statement "{\n    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }\n  }" ({ "{") (if_statement "if (PTR___pthread_key_create_00413ff8 == (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_00413ff8 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_00413ff8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_00413ff8") (== "==") (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_002cb170((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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n    }" ({ "{") (expression_statement "FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21)" (identifier "FUN_002cb170") (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_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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_002465f0(iVar4);\n    FUN_002ca2c0(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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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_002465f0(iVar4);" (assignment_expression "iVar3 = FUN_002465f0(iVar4)" (identifier "iVar3") (= "=") (call_expression "FUN_002465f0(iVar4)" (identifier "FUN_002465f0") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "FUN_002ca2c0(local_20,iVar3,iVar5,0);" (call_expression "FUN_002ca2c0(local_20,iVar3,iVar5,0)" (identifier "FUN_002ca2c0") (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_0041d200) {\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" (if "if") (parenthesized_expression "((undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200)" (( "(") (binary_expression "(undefined4 *)(local_20[0] + -0xc) != &DAT_0041d200" (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_0041d200" (& "&") (identifier "DAT_0041d200"))) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_00413ff8 == (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_00413ff8 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_00413ff8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_00413ff8") (== "==") (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_002cb170((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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);\n      }" ({ "{") (expression_statement "FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);" (call_expression "FUN_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21)" (identifier "FUN_002cb170") (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_00247bb0();" (call_expression "FUN_00247bb0()" (identifier "FUN_00247bb0") (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<function_1>(void)

{
}


(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 = 0x28a06b;
  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 0028a0ce to 0028a0e7 has its CatchHandler @ 0028a302 */
  iVar3 = FUN_002465f0(iVar5 + 1);
  FUN_0027efc0(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_00413ffc) {
    if (PTR___pthread_key_create_00413ff8 == (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_0027fe20((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 0028a315 to 0028a319 has its CatchHandler @ 0028a306 */
    FUN_00247bb0();
  }
  iVar3 = (iVar5 + 1U) * 4;
                    /* try { // try from 0028a148 to 0028a162 has its CatchHandler @ 0028a306 */
  iVar4 = FUN_002465f0(iVar3);
  FUN_002ca2c0(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_0041d200) {
    if (PTR___pthread_key_create_00413ff8 == (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_002cb170((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 0028a1c5 to 0028a311 has its CatchHandler @ 0028a2fe */
    iVar3 = FUN_002465f0(iVar4);
    FUN_002ca2c0(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_0041d200) {
      if (PTR___pthread_key_create_00413ff8 == (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_002cb170((undefined4 *)(local_20[0] + -0xc),&local_21);
      }
    }
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00247bb0();
}

