
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::locale::_Impl::_Impl(std::locale::_Impl const&, unsigned int) */

void __thiscall std::locale::_Impl::_Impl(_Impl *this,_Impl *param_1,uint param_2)

{
  undefined4 *puVar1;
  int iVar2;
  int iVar3;
  undefined *puVar4;
  uint uVar5;
  void *pvVar6;
  undefined4 *puVar7;
  size_t sVar8;
  int iVar9;
  uint uVar10;
  
  uVar10 = *(uint *)(param_1 + 8);
  *(undefined4 *)(this + 4) = 0;
  *(uint *)this = param_2;
  *(uint *)(this + 8) = uVar10;
  uVar5 = uVar10 * 4;
  if (0x1fffffff < uVar10) {
    uVar5 = 0xffffffff;
  }
  *(undefined4 *)(this + 0xc) = 0;
  *(undefined4 *)(this + 0x10) = 0;
                    /* try { // try from 001e95c3 to 001e9701 has its CatchHandler @ 001e9739 */
  pvVar6 = operator_new__(uVar5);
  *(void **)(this + 4) = pvVar6;
  puVar4 = PTR___pthread_key_create_0038ef24;
  uVar5 = *(uint *)(this + 8);
  if (uVar5 != 0) {
    iVar9 = 0;
    uVar10 = uVar5;
    do {
      iVar2 = *(int *)(*(int *)(param_1 + 4) + iVar9 * 4);
      *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;
      if (iVar2 == 0) {
LAB_001e95fb:
        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;
      }
      else {
        if (puVar4 != (undefined *)0x0) {
          LOCK();
          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
          UNLOCK();
          uVar10 = *(uint *)(this + 8);
          goto LAB_001e95fb;
        }
        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
        uVar10 = *(uint *)(this + 8);
        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;
      }
      iVar9 = iVar9 + 1;
      pvVar6 = *(void **)(this + 4);
    } while( true );
  }
LAB_001e9642:
  pvVar6 = operator_new__(uVar5);
  *(void **)(this + 0xc) = pvVar6;
  puVar4 = PTR___pthread_key_create_0038ef24;
  if (*(int *)(this + 8) == 0) {
LAB_001e96a3:
    puVar7 = (undefined4 *)operator_new__(0x30);
    puVar1 = puVar7 + 0xc;
    *(undefined4 **)(this + 0x10) = puVar7;
    do {
      *puVar7 = 0;
      puVar7 = puVar7 + 1;
    } while (puVar1 != puVar7);
    iVar9 = 0;
    do {
      if (*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0) {
        return;
      }
      sVar8 = strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9));
      iVar2 = *(int *)(this + 0x10);
      pvVar6 = operator_new__(sVar8 + 1);
      iVar3 = *(int *)(param_1 + 0x10);
      *(void **)(iVar2 + iVar9) = pvVar6;
      puVar1 = (undefined4 *)(iVar3 + iVar9);
      puVar7 = (undefined4 *)(*(int *)(this + 0x10) + iVar9);
      iVar9 = iVar9 + 4;
      memcpy((void *)*puVar7,(void *)*puVar1,sVar8 + 1);
    } while (iVar9 != 0x30);
    return;
  }
  iVar9 = 0;
  do {
    iVar2 = *(int *)(*(int *)(param_1 + 0xc) + iVar9 * 4);
    *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;
    if (iVar2 == 0) {
LAB_001e9675:
      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;
    }
    else {
      if (puVar4 != (undefined *)0x0) {
        LOCK();
        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
        UNLOCK();
        goto LAB_001e9675;
      }
      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;
    }
    iVar9 = iVar9 + 1;
    pvVar6 = *(void **)(this + 0xc);
  } while( true );
LAB_001e962d:
  uVar5 = uVar10 * 4;
  if (0x1fffffff < uVar10) {
    uVar5 = 0xffffffff;
  }
  goto LAB_001e9642;
}



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

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

{
  undefined4 *puVar1;
  int iVar2;
  char *__s;
  undefined *puVar3;
  int iVar4;
  undefined4 *puVar5;
  size_t sVar6;
  undefined4 uVar7;
  int iVar8;
  uint uVar9;
  uint uVar10;
  
  uVar9 = *(uint *)(param_2 + 8);
  param_1[1] = 0;
  *param_1 = param_3;
  param_1[2] = uVar9;
  iVar4 = uVar9 * 4;
  if (0x1fffffff < uVar9) {
    iVar4 = -1;
  }
  param_1[3] = 0;
  param_1[4] = 0;
                    /* try { // try from 001e95c3 to 001e9701 has its CatchHandler @ 001e9739 */
  iVar4 = FUN_001e5180(iVar4);
  param_1[1] = iVar4;
  puVar3 = PTR___pthread_key_create_0038ef24;
  uVar9 = param_1[2];
  if (uVar9 != 0) {
    iVar8 = 0;
    uVar10 = uVar9;
    do {
      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);
      *(int *)(iVar4 + iVar8 * 4) = iVar2;
      if (iVar2 == 0) {
LAB_001e95fb:
        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;
      }
      else {
        if (puVar3 != (undefined *)0x0) {
          LOCK();
          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
          UNLOCK();
          uVar10 = param_1[2];
          goto LAB_001e95fb;
        }
        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
        uVar10 = param_1[2];
        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;
      }
      iVar8 = iVar8 + 1;
      iVar4 = param_1[1];
    } while( true );
  }
LAB_001e9642:
  iVar4 = FUN_001e5180(uVar9);
  param_1[3] = iVar4;
  puVar3 = PTR___pthread_key_create_0038ef24;
  if (param_1[2] == 0) {
LAB_001e96a3:
    puVar5 = (undefined4 *)FUN_001e5180(0x30);
    puVar1 = puVar5 + 0xc;
    param_1[4] = puVar5;
    do {
      *puVar5 = 0;
      puVar5 = puVar5 + 1;
    } while (puVar1 != puVar5);
    iVar4 = 0;
    do {
      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);
      if (__s == (char *)0x0) {
        return;
      }
      sVar6 = strlen(__s);
      iVar8 = param_1[4];
      uVar7 = FUN_001e5180(sVar6 + 1);
      iVar2 = *(int *)(param_2 + 0x10);
      *(undefined4 *)(iVar8 + iVar4) = uVar7;
      puVar1 = (undefined4 *)(iVar2 + iVar4);
      puVar5 = (undefined4 *)(param_1[4] + iVar4);
      iVar4 = iVar4 + 4;
      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);
    } while (iVar4 != 0x30);
    return;
  }
  iVar8 = 0;
  do {
    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);
    *(int *)(iVar4 + iVar8 * 4) = iVar2;
    if (iVar2 == 0) {
LAB_001e9675:
      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;
    }
    else {
      if (puVar3 != (undefined *)0x0) {
        LOCK();
        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
        UNLOCK();
        goto LAB_001e9675;
      }
      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;
    }
    iVar8 = iVar8 + 1;
    iVar4 = param_1[3];
  } while( true );
LAB_001e962d:
  uVar9 = uVar10 * 4;
  if (0x1fffffff < uVar10) {
    uVar9 = 0xffffffff;
  }
  goto LAB_001e9642;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1a5a85
SUB ESP,0x28
MOV EDI,dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EBP + 0x10]
MOV EDX,dword ptr [EDI + 0x8]
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI],EAX
MOV dword ptr [ESI + 0x8],EDX
LEA EAX,[EDX*0x4 + 0x0]
CMP EDX,0x20000000
MOV EDX,0xffffffff
CMOVNC EAX,EDX
MOV dword ptr [ESI + 0xc],0x0
MOV dword ptr [ESI + 0x10],0x0
PUSH EAX
MOV dword ptr [EBP + -0x1c],EBX
CALL 0x001e5180
MOV ESI,dword ptr [EBP + 0x8]
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
MOV ESI,dword ptr [ESI + 0x8]
MOV EDX,ESI
TEST ESI,ESI
JZ 0x001e9642
MOV EBX,dword ptr [EBP + -0x1c]
XOR EDX,EDX
MOV EBX,dword ptr [EBX + 0xffffff24]
JMP 0x001e9608
ADD.LOCK dword ptr [ECX + 0x4],0x1
MOV EAX,dword ptr [EBP + 0x8]
MOV ESI,dword ptr [EAX + 0x8]
ADD EDX,0x1
MOV EAX,dword ptr [EBP + 0x8]
CMP ESI,EDX
JBE 0x001e962d
MOV EAX,dword ptr [EAX + 0x4]
MOV ECX,dword ptr [EDI + 0x4]
MOV ECX,dword ptr [ECX + EDX*0x4]
MOV dword ptr [EAX + EDX*0x4],ECX
TEST ECX,ECX
JZ 0x001e95fb
TEST EBX,EBX
JNZ 0x001e95f0
MOV EAX,dword ptr [EBP + 0x8]
ADD dword ptr [ECX + 0x4],0x1
ADD EDX,0x1
MOV ESI,dword ptr [EAX + 0x8]
MOV EAX,dword ptr [EBP + 0x8]
CMP ESI,EDX
JA 0x001e9605
LEA EDX,[ESI*0x4 + 0x0]
CMP ESI,0x20000000
MOV EAX,0xffffffff
CMOVNC EDX,EAX
SUB ESP,0xc
MOV ESI,dword ptr [EBP + -0x1c]
PUSH EDX
MOV EBX,ESI
CALL 0x001e5180
MOV EBX,dword ptr [EBP + 0x8]
ADD ESP,0x10
MOV EDX,dword ptr [EBX + 0x8]
MOV dword ptr [EBX + 0xc],EAX
TEST EDX,EDX
JZ 0x001e96a3
XOR EDX,EDX
MOV ESI,dword ptr [ESI + 0xffffff24]
JMP 0x001e9683
ADD.LOCK dword ptr [ECX + 0x4],0x1
MOV EAX,dword ptr [EBP + 0x8]
ADD EDX,0x1
CMP dword ptr [EAX + 0x8],EDX
JBE 0x001e96a3
MOV EAX,dword ptr [EAX + 0xc]
MOV ECX,dword ptr [EDI + 0xc]
MOV ECX,dword ptr [ECX + EDX*0x4]
MOV dword ptr [EAX + EDX*0x4],ECX
TEST ECX,ECX
JZ 0x001e9675
TEST ESI,ESI
JNZ 0x001e9670
MOV EAX,dword ptr [EBP + 0x8]
ADD dword ptr [ECX + 0x4],0x1
ADD EDX,0x1
CMP dword ptr [EAX + 0x8],EDX
JA 0x001e9680
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH 0x30
CALL 0x001e5180
MOV EBX,dword ptr [EBP + 0x8]
ADD ESP,0x10
LEA EDX,[EAX + 0x30]
MOV dword ptr [EBX + 0x10],EAX
LEA ESI,[ESI]
MOV dword ptr [EAX],0x0
ADD EAX,0x4
CMP EDX,EAX
JNZ 0x001e96c0
XOR ESI,ESI
NOP
MOV EAX,dword ptr [EDI + 0x10]
MOV EAX,dword ptr [EAX + ESI*0x1]
TEST EAX,EAX
JZ 0x001e9731
SUB ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH EAX
CALL 0x000295f0
MOV ECX,dword ptr [EBP + 0x8]
ADD EAX,0x1
MOV EBX,dword ptr [ECX + 0x10]
MOV dword ptr [EBP + -0x20],EAX
MOV dword ptr [ESP],EAX
ADD EBX,ESI
MOV dword ptr [EBP + -0x24],EBX
MOV EBX,dword ptr [EBP + -0x1c]
CALL 0x001e5180
MOV ECX,dword ptr [EBP + -0x24]
MOV EDX,dword ptr [EDI + 0x10]
ADD ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
MOV dword ptr [ECX],EAX
MOV ECX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EDX + ESI*0x1]
MOV EAX,dword ptr [ECX + 0x10]
MOV EAX,dword ptr [EAX + ESI*0x1]
PUSH dword ptr [EBP + -0x20]
ADD ESI,0x4
PUSH EDX
PUSH EAX
CALL 0x000295c0
ADD ESP,0x10
CMP ESI,0x30
JNZ 0x001e96d0
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001e9570(undefined4 *param_1,int param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  \n  uVar9 = *(uint *)(param_2 + 8);\n  param_1[1] = 0;\n  *param_1 = param_3;\n  param_1[2] = uVar9;\n  iVar4 = uVar9 * 4;\n  if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }\n  param_1[3] = 0;\n  param_1[4] = 0;\n                    /* try { // try from 001e95c3 to 001e9701 has its CatchHandler @ 001e9739 */\n  iVar4 = FUN_001e5180(iVar4);\n  param_1[1] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  uVar9 = param_1[2];\n  if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }\nLAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);\n  param_1[3] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }\n  iVar8 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );\nLAB_001e962d:\n  uVar9 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}\n\n" comment (function_definition "void FUN_001e9570(undefined4 *param_1,int param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  \n  uVar9 = *(uint *)(param_2 + 8);\n  param_1[1] = 0;\n  *param_1 = param_3;\n  param_1[2] = uVar9;\n  iVar4 = uVar9 * 4;\n  if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }\n  param_1[3] = 0;\n  param_1[4] = 0;\n                    /* try { // try from 001e95c3 to 001e9701 has its CatchHandler @ 001e9739 */\n  iVar4 = FUN_001e5180(iVar4);\n  param_1[1] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  uVar9 = param_1[2];\n  if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }\nLAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);\n  param_1[3] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }\n  iVar8 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );\nLAB_001e962d:\n  uVar9 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}" primitive_type (function_declarator "FUN_001e9570(undefined4 *param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  \n  uVar9 = *(uint *)(param_2 + 8);\n  param_1[1] = 0;\n  *param_1 = param_3;\n  param_1[2] = uVar9;\n  iVar4 = uVar9 * 4;\n  if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }\n  param_1[3] = 0;\n  param_1[4] = 0;\n                    /* try { // try from 001e95c3 to 001e9701 has its CatchHandler @ 001e9739 */\n  iVar4 = FUN_001e5180(iVar4);\n  param_1[1] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  uVar9 = param_1[2];\n  if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }\nLAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);\n  param_1[3] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }\n  iVar8 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );\nLAB_001e962d:\n  uVar9 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (expression_statement "uVar9 = *(uint *)(param_2 + 8);" (assignment_expression "uVar9 = *(uint *)(param_2 + 8)" identifier = (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[2] = uVar9;" (assignment_expression "param_1[2] = uVar9" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar4 = uVar9 * 4;" (assignment_expression "iVar4 = uVar9 * 4" identifier = (binary_expression "uVar9 * 4" identifier * number_literal)) ;) (if_statement "if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }" if (parenthesized_expression "(0x1fffffff < uVar9)" ( (binary_expression "0x1fffffff < uVar9" number_literal < identifier) )) (compound_statement "{\n    iVar4 = -1;\n  }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) })) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) comment (expression_statement "iVar4 = FUN_001e5180(iVar4);" (assignment_expression "iVar4 = FUN_001e5180(iVar4)" identifier = (call_expression "FUN_001e5180(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "param_1[1] = iVar4;" (assignment_expression "param_1[1] = iVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = PTR___pthread_key_create_0038ef24;" (assignment_expression "puVar3 = PTR___pthread_key_create_0038ef24" identifier = identifier) ;) (expression_statement "uVar9 = param_1[2];" (assignment_expression "uVar9 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }" if (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "uVar10 = uVar9;" (assignment_expression "uVar10 = uVar9" identifier = identifier) ;) (do_statement "do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );" do (compound_statement "{\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    }" { (expression_statement "iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 4) + iVar8 * 4)" * (cast_expression "(int *)(*(int *)(param_2 + 4) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + iVar8 * 4)" ( (binary_expression "*(int *)(param_2 + 4) + iVar8 * 4" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(int *)(iVar4 + iVar8 * 4) = iVar2;" (assignment_expression "*(int *)(iVar4 + iVar8 * 4) = iVar2" (pointer_expression "*(int *)(iVar4 + iVar8 * 4)" * (cast_expression "(int *)(iVar4 + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar8 * 4)" ( (binary_expression "iVar4 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" { (labeled_statement "LAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;" statement_identifier : (if_statement "if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;" if (parenthesized_expression "(uVar10 <= iVar8 + 1U)" ( (binary_expression "uVar10 <= iVar8 + 1U" identifier <= (binary_expression "iVar8 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e962d;" goto statement_identifier ;))) }) (else_clause "else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" else (compound_statement "{\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" { (if_statement "if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }" if (parenthesized_expression "(puVar3 != (undefined *)0x0)" ( (binary_expression "puVar3 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar10 = param_1[2];" (assignment_expression "uVar10 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_001e95fb;" goto statement_identifier ;) })) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar10 = param_1[2];" (assignment_expression "uVar10 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;" if (parenthesized_expression "(uVar10 <= iVar8 + 1U)" ( (binary_expression "uVar10 <= iVar8 + 1U" identifier <= (binary_expression "iVar8 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e962d;" goto statement_identifier ;)) }))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);" statement_identifier : (expression_statement "iVar4 = FUN_001e5180(uVar9);" (assignment_expression "iVar4 = FUN_001e5180(uVar9)" identifier = (call_expression "FUN_001e5180(uVar9)" identifier (argument_list "(uVar9)" ( identifier )))) ;)) (expression_statement "param_1[3] = iVar4;" (assignment_expression "param_1[3] = iVar4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = PTR___pthread_key_create_0038ef24;" (assignment_expression "puVar3 = PTR___pthread_key_create_0038ef24" identifier = identifier) ;) (if_statement "if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }" { (labeled_statement "LAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);" statement_identifier : (expression_statement "puVar5 = (undefined4 *)FUN_001e5180(0x30);" (assignment_expression "puVar5 = (undefined4 *)FUN_001e5180(0x30)" identifier = (cast_expression "(undefined4 *)FUN_001e5180(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5180(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;)) (expression_statement "puVar1 = puVar5 + 0xc;" (assignment_expression "puVar1 = puVar5 + 0xc" identifier = (binary_expression "puVar5 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[4] = puVar5;" (assignment_expression "param_1[4] = puVar5" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);" do (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != puVar5)" ( (binary_expression "puVar1 != puVar5" identifier != identifier) )) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);" do (compound_statement "{\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    }" { (expression_statement "__s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);" (assignment_expression "__s = *(char **)(*(int *)(param_2 + 0x10) + iVar4)" identifier = (pointer_expression "*(char **)(*(int *)(param_2 + 0x10) + iVar4)" * (cast_expression "(char **)(*(int *)(param_2 + 0x10) + iVar4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_2 + 0x10) + iVar4)" ( (binary_expression "*(int *)(param_2 + 0x10) + iVar4" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + identifier) ))))) ;) (if_statement "if (__s == (char *)0x0) {\n        return;\n      }" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "sVar6 = strlen(__s);" (assignment_expression "sVar6 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar8 = param_1[4];" (assignment_expression "iVar8 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = FUN_001e5180(sVar6 + 1);" (assignment_expression "uVar7 = FUN_001e5180(sVar6 + 1)" identifier = (call_expression "FUN_001e5180(sVar6 + 1)" identifier (argument_list "(sVar6 + 1)" ( (binary_expression "sVar6 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar8 + iVar4) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + iVar4) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + iVar4)" * (cast_expression "(undefined4 *)(iVar8 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + iVar4)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) )))) = identifier) ;) (expression_statement "puVar1 = (undefined4 *)(iVar2 + iVar4);" (assignment_expression "puVar1 = (undefined4 *)(iVar2 + iVar4)" identifier = (cast_expression "(undefined4 *)(iVar2 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) )))) ;) (expression_statement "puVar5 = (undefined4 *)(param_1[4] + iVar4);" (assignment_expression "puVar5 = (undefined4 *)(param_1[4] + iVar4)" identifier = (cast_expression "(undefined4 *)(param_1[4] + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[4] + iVar4)" ( (binary_expression "param_1[4] + iVar4" (subscript_expression "param_1[4]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 4;" (assignment_expression "iVar4 = iVar4 + 4" identifier = (binary_expression "iVar4 + 4" identifier + number_literal)) ;) (expression_statement "memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);" (call_expression "memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1)" identifier (argument_list "((void *)*puVar5,(void *)*puVar1,sVar6 + 1)" ( (cast_expression "(void *)*puVar5" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier)) , (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , (binary_expression "sVar6 + 1" identifier + number_literal) ))) ;) }) while (parenthesized_expression "(iVar4 != 0x30)" ( (binary_expression "iVar4 != 0x30" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );" do (compound_statement "{\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  }" { (expression_statement "iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4)" * (cast_expression "(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xc) + iVar8 * 4)" ( (binary_expression "*(int *)(param_2 + 0xc) + iVar8 * 4" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(int *)(iVar4 + iVar8 * 4) = iVar2;" (assignment_expression "*(int *)(iVar4 + iVar8 * 4) = iVar2" (pointer_expression "*(int *)(iVar4 + iVar8 * 4)" * (cast_expression "(int *)(iVar4 + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar8 * 4)" ( (binary_expression "iVar4 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" { (labeled_statement "LAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;" statement_identifier : (if_statement "if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;" if (parenthesized_expression "((uint)param_1[2] <= iVar8 + 1U)" ( (binary_expression "(uint)param_1[2] <= iVar8 + 1U" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) <= (binary_expression "iVar8 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e96a3;" goto statement_identifier ;))) }) (else_clause "else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" else (compound_statement "{\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" { (if_statement "if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }" if (parenthesized_expression "(puVar3 != (undefined *)0x0)" ( (binary_expression "puVar3 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_001e9675;" goto statement_identifier ;) })) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;" if (parenthesized_expression "((uint)param_1[2] <= iVar8 + 1U)" ( (binary_expression "(uint)param_1[2] <= iVar8 + 1U" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) <= (binary_expression "iVar8 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e96a3;" goto statement_identifier ;)) }))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (labeled_statement "LAB_001e962d:\n  uVar9 = uVar10 * 4;" statement_identifier : (expression_statement "uVar9 = uVar10 * 4;" (assignment_expression "uVar9 = uVar10 * 4" identifier = (binary_expression "uVar10 * 4" identifier * number_literal)) ;)) (if_statement "if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }" if (parenthesized_expression "(0x1fffffff < uVar10)" ( (binary_expression "0x1fffffff < uVar10" number_literal < identifier) )) (compound_statement "{\n    uVar9 = 0xffffffff;\n  }" { (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" identifier = number_literal) ;) })) (goto_statement "goto LAB_001e9642;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::locale::_Impl::_Impl(std::locale::_Impl const&, unsigned int) */\n\nvoid __thiscall std::locale::_Impl::_Impl(_Impl *this,_Impl *param_1,uint param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  uint uVar5;\n  void *pvVar6;\n  undefined4 *puVar7;\n  size_t sVar8;\n  int iVar9;\n  uint uVar10;\n  \n  uVar10 = *(uint *)(param_1 + 8);\n  *(undefined4 *)(this + 4) = 0;\n  *(uint *)this = param_2;\n  *(uint *)(this + 8) = uVar10;\n  uVar5 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar5 = 0xffffffff;\n  }\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined4 *)(this + 0x10) = 0;\n                    /* try { // try from 001e95c3 to 001e9701 has its CatchHandler @ 001e9739 */\n  pvVar6 = operator_new__(uVar5);\n  *(void **)(this + 4) = pvVar6;\n  puVar4 = PTR___pthread_key_create_0038ef24;\n  uVar5 = *(uint *)(this + 8);\n  if (uVar5 != 0) {\n    iVar9 = 0;\n    uVar10 = uVar5;\n    do {\n      iVar2 = *(int *)(*(int *)(param_1 + 4) + iVar9 * 4);\n      *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = *(uint *)(this + 8);\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      iVar9 = iVar9 + 1;\n      pvVar6 = *(void **)(this + 4);\n    } while( true );\n  }\nLAB_001e9642:\n  pvVar6 = operator_new__(uVar5);\n  *(void **)(this + 0xc) = pvVar6;\n  puVar4 = PTR___pthread_key_create_0038ef24;\n  if (*(int *)(this + 8) == 0) {\nLAB_001e96a3:\n    puVar7 = (undefined4 *)operator_new__(0x30);\n    puVar1 = puVar7 + 0xc;\n    *(undefined4 **)(this + 0x10) = puVar7;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar1 != puVar7);\n    iVar9 = 0;\n    do {\n      if (*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0) {\n        return;\n      }\n      sVar8 = strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9));\n      iVar2 = *(int *)(this + 0x10);\n      pvVar6 = operator_new__(sVar8 + 1);\n      iVar3 = *(int *)(param_1 + 0x10);\n      *(void **)(iVar2 + iVar9) = pvVar6;\n      puVar1 = (undefined4 *)(iVar3 + iVar9);\n      puVar7 = (undefined4 *)(*(int *)(this + 0x10) + iVar9);\n      iVar9 = iVar9 + 4;\n      memcpy((void *)*puVar7,(void *)*puVar1,sVar8 + 1);\n    } while (iVar9 != 0x30);\n    return;\n  }\n  iVar9 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_1 + 0xc) + iVar9 * 4);\n    *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar4 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    iVar9 = iVar9 + 1;\n    pvVar6 = *(void **)(this + 0xc);\n  } while( true );\nLAB_001e962d:\n  uVar5 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar5 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}\n\n" comment comment (function_definition "void __thiscall std::locale::_Impl::_Impl(_Impl *this,_Impl *param_1,uint param_2)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  uint uVar5;\n  void *pvVar6;\n  undefined4 *puVar7;\n  size_t sVar8;\n  int iVar9;\n  uint uVar10;\n  \n  uVar10 = *(uint *)(param_1 + 8);\n  *(undefined4 *)(this + 4) = 0;\n  *(uint *)this = param_2;\n  *(uint *)(this + 8) = uVar10;\n  uVar5 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar5 = 0xffffffff;\n  }\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined4 *)(this + 0x10) = 0;\n                    /* try { // try from 001e95c3 to 001e9701 has its CatchHandler @ 001e9739 */\n  pvVar6 = operator_new__(uVar5);\n  *(void **)(this + 4) = pvVar6;\n  puVar4 = PTR___pthread_key_create_0038ef24;\n  uVar5 = *(uint *)(this + 8);\n  if (uVar5 != 0) {\n    iVar9 = 0;\n    uVar10 = uVar5;\n    do {\n      iVar2 = *(int *)(*(int *)(param_1 + 4) + iVar9 * 4);\n      *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = *(uint *)(this + 8);\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      iVar9 = iVar9 + 1;\n      pvVar6 = *(void **)(this + 4);\n    } while( true );\n  }\nLAB_001e9642:\n  pvVar6 = operator_new__(uVar5);\n  *(void **)(this + 0xc) = pvVar6;\n  puVar4 = PTR___pthread_key_create_0038ef24;\n  if (*(int *)(this + 8) == 0) {\nLAB_001e96a3:\n    puVar7 = (undefined4 *)operator_new__(0x30);\n    puVar1 = puVar7 + 0xc;\n    *(undefined4 **)(this + 0x10) = puVar7;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar1 != puVar7);\n    iVar9 = 0;\n    do {\n      if (*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0) {\n        return;\n      }\n      sVar8 = strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9));\n      iVar2 = *(int *)(this + 0x10);\n      pvVar6 = operator_new__(sVar8 + 1);\n      iVar3 = *(int *)(param_1 + 0x10);\n      *(void **)(iVar2 + iVar9) = pvVar6;\n      puVar1 = (undefined4 *)(iVar3 + iVar9);\n      puVar7 = (undefined4 *)(*(int *)(this + 0x10) + iVar9);\n      iVar9 = iVar9 + 4;\n      memcpy((void *)*puVar7,(void *)*puVar1,sVar8 + 1);\n    } while (iVar9 != 0x30);\n    return;\n  }\n  iVar9 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_1 + 0xc) + iVar9 * 4);\n    *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar4 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    iVar9 = iVar9 + 1;\n    pvVar6 = *(void **)(this + 0xc);\n  } while( true );\nLAB_001e962d:\n  uVar5 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar5 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::locale::_Impl::" identifier : : identifier : : identifier : :) (function_declarator "_Impl(_Impl *this,_Impl *param_1,uint param_2)" identifier (parameter_list "(_Impl *this,_Impl *param_1,uint param_2)" ( (parameter_declaration "_Impl *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "_Impl *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  uint uVar5;\n  void *pvVar6;\n  undefined4 *puVar7;\n  size_t sVar8;\n  int iVar9;\n  uint uVar10;\n  \n  uVar10 = *(uint *)(param_1 + 8);\n  *(undefined4 *)(this + 4) = 0;\n  *(uint *)this = param_2;\n  *(uint *)(this + 8) = uVar10;\n  uVar5 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar5 = 0xffffffff;\n  }\n  *(undefined4 *)(this + 0xc) = 0;\n  *(undefined4 *)(this + 0x10) = 0;\n                    /* try { // try from 001e95c3 to 001e9701 has its CatchHandler @ 001e9739 */\n  pvVar6 = operator_new__(uVar5);\n  *(void **)(this + 4) = pvVar6;\n  puVar4 = PTR___pthread_key_create_0038ef24;\n  uVar5 = *(uint *)(this + 8);\n  if (uVar5 != 0) {\n    iVar9 = 0;\n    uVar10 = uVar5;\n    do {\n      iVar2 = *(int *)(*(int *)(param_1 + 4) + iVar9 * 4);\n      *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = *(uint *)(this + 8);\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      iVar9 = iVar9 + 1;\n      pvVar6 = *(void **)(this + 4);\n    } while( true );\n  }\nLAB_001e9642:\n  pvVar6 = operator_new__(uVar5);\n  *(void **)(this + 0xc) = pvVar6;\n  puVar4 = PTR___pthread_key_create_0038ef24;\n  if (*(int *)(this + 8) == 0) {\nLAB_001e96a3:\n    puVar7 = (undefined4 *)operator_new__(0x30);\n    puVar1 = puVar7 + 0xc;\n    *(undefined4 **)(this + 0x10) = puVar7;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar1 != puVar7);\n    iVar9 = 0;\n    do {\n      if (*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0) {\n        return;\n      }\n      sVar8 = strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9));\n      iVar2 = *(int *)(this + 0x10);\n      pvVar6 = operator_new__(sVar8 + 1);\n      iVar3 = *(int *)(param_1 + 0x10);\n      *(void **)(iVar2 + iVar9) = pvVar6;\n      puVar1 = (undefined4 *)(iVar3 + iVar9);\n      puVar7 = (undefined4 *)(*(int *)(this + 0x10) + iVar9);\n      iVar9 = iVar9 + 4;\n      memcpy((void *)*puVar7,(void *)*puVar1,sVar8 + 1);\n    } while (iVar9 != 0x30);\n    return;\n  }\n  iVar9 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_1 + 0xc) + iVar9 * 4);\n    *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar4 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    iVar9 = iVar9 + 1;\n    pvVar6 = *(void **)(this + 0xc);\n  } while( true );\nLAB_001e962d:\n  uVar5 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar5 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "void *pvVar6;" primitive_type (pointer_declarator "*pvVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (expression_statement "uVar10 = *(uint *)(param_1 + 8);" (assignment_expression "uVar10 = *(uint *)(param_1 + 8)" identifier = (pointer_expression "*(uint *)(param_1 + 8)" * (cast_expression "(uint *)(param_1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)this = param_2;" (assignment_expression "*(uint *)this = param_2" (pointer_expression "*(uint *)this" * (cast_expression "(uint *)this" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(uint *)(this + 8) = uVar10;" (assignment_expression "*(uint *)(this + 8) = uVar10" (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar5 = uVar10 * 4;" (assignment_expression "uVar5 = uVar10 * 4" identifier = (binary_expression "uVar10 * 4" identifier * number_literal)) ;) (if_statement "if (0x1fffffff < uVar10) {\n    uVar5 = 0xffffffff;\n  }" if (parenthesized_expression "(0x1fffffff < uVar10)" ( (binary_expression "0x1fffffff < uVar10" number_literal < identifier) )) (compound_statement "{\n    uVar5 = 0xffffffff;\n  }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(this + 0xc) = 0;" (assignment_expression "*(undefined4 *)(this + 0xc) = 0" (pointer_expression "*(undefined4 *)(this + 0xc)" * (cast_expression "(undefined4 *)(this + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x10) = 0;" (assignment_expression "*(undefined4 *)(this + 0x10) = 0" (pointer_expression "*(undefined4 *)(this + 0x10)" * (cast_expression "(undefined4 *)(this + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = number_literal) ;) comment (expression_statement "pvVar6 = operator_new__(uVar5);" (assignment_expression "pvVar6 = operator_new__(uVar5)" identifier = (call_expression "operator_new__(uVar5)" identifier (argument_list "(uVar5)" ( identifier )))) ;) (expression_statement "*(void **)(this + 4) = pvVar6;" (assignment_expression "*(void **)(this + 4) = pvVar6" (pointer_expression "*(void **)(this + 4)" * (cast_expression "(void **)(this + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = PTR___pthread_key_create_0038ef24;" (assignment_expression "puVar4 = PTR___pthread_key_create_0038ef24" identifier = identifier) ;) (expression_statement "uVar5 = *(uint *)(this + 8);" (assignment_expression "uVar5 = *(uint *)(this + 8)" identifier = (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar5 != 0) {\n    iVar9 = 0;\n    uVar10 = uVar5;\n    do {\n      iVar2 = *(int *)(*(int *)(param_1 + 4) + iVar9 * 4);\n      *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = *(uint *)(this + 8);\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      iVar9 = iVar9 + 1;\n      pvVar6 = *(void **)(this + 4);\n    } while( true );\n  }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar9 = 0;\n    uVar10 = uVar5;\n    do {\n      iVar2 = *(int *)(*(int *)(param_1 + 4) + iVar9 * 4);\n      *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = *(uint *)(this + 8);\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      iVar9 = iVar9 + 1;\n      pvVar6 = *(void **)(this + 4);\n    } while( true );\n  }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar10 = uVar5;" (assignment_expression "uVar10 = uVar5" identifier = identifier) ;) (do_statement "do {\n      iVar2 = *(int *)(*(int *)(param_1 + 4) + iVar9 * 4);\n      *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = *(uint *)(this + 8);\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      iVar9 = iVar9 + 1;\n      pvVar6 = *(void **)(this + 4);\n    } while( true );" do (compound_statement "{\n      iVar2 = *(int *)(*(int *)(param_1 + 4) + iVar9 * 4);\n      *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = *(uint *)(this + 8);\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      iVar9 = iVar9 + 1;\n      pvVar6 = *(void **)(this + 4);\n    }" { (expression_statement "iVar2 = *(int *)(*(int *)(param_1 + 4) + iVar9 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 4) + iVar9 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 4) + iVar9 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 4) + iVar9 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + iVar9 * 4)" ( (binary_expression "*(int *)(param_1 + 4) + iVar9 * 4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + (binary_expression "iVar9 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(int *)((int)pvVar6 + iVar9 * 4) = iVar2;" (assignment_expression "*(int *)((int)pvVar6 + iVar9 * 4) = iVar2" (pointer_expression "*(int *)((int)pvVar6 + iVar9 * 4)" * (cast_expression "(int *)((int)pvVar6 + iVar9 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + iVar9 * 4)" ( (binary_expression "(int)pvVar6 + iVar9 * 4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = *(uint *)(this + 8);\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_001e95fb:\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }" { (labeled_statement "LAB_001e95fb:\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;" statement_identifier : (if_statement "if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;" if (parenthesized_expression "(uVar10 <= iVar9 + 1U)" ( (binary_expression "uVar10 <= iVar9 + 1U" identifier <= (binary_expression "iVar9 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e962d;" goto statement_identifier ;))) }) (else_clause "else {\n        if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = *(uint *)(this + 8);\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }" else (compound_statement "{\n        if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = *(uint *)(this + 8);\n        if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;\n      }" { (if_statement "if (puVar4 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }" if (parenthesized_expression "(puVar4 != (undefined *)0x0)" ( (binary_expression "puVar4 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = *(uint *)(this + 8);\n          goto LAB_001e95fb;\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar10 = *(uint *)(this + 8);" (assignment_expression "uVar10 = *(uint *)(this + 8)" identifier = (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_001e95fb;" goto statement_identifier ;) })) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar10 = *(uint *)(this + 8);" (assignment_expression "uVar10 = *(uint *)(this + 8)" identifier = (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar10 <= iVar9 + 1U) goto LAB_001e962d;" if (parenthesized_expression "(uVar10 <= iVar9 + 1U)" ( (binary_expression "uVar10 <= iVar9 + 1U" identifier <= (binary_expression "iVar9 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e962d;" goto statement_identifier ;)) }))) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pvVar6 = *(void **)(this + 4);" (assignment_expression "pvVar6 = *(void **)(this + 4)" identifier = (pointer_expression "*(void **)(this + 4)" * (cast_expression "(void **)(this + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_001e9642:\n  pvVar6 = operator_new__(uVar5);" statement_identifier : (expression_statement "pvVar6 = operator_new__(uVar5);" (assignment_expression "pvVar6 = operator_new__(uVar5)" identifier = (call_expression "operator_new__(uVar5)" identifier (argument_list "(uVar5)" ( identifier )))) ;)) (expression_statement "*(void **)(this + 0xc) = pvVar6;" (assignment_expression "*(void **)(this + 0xc) = pvVar6" (pointer_expression "*(void **)(this + 0xc)" * (cast_expression "(void **)(this + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = PTR___pthread_key_create_0038ef24;" (assignment_expression "puVar4 = PTR___pthread_key_create_0038ef24" identifier = identifier) ;) (if_statement "if (*(int *)(this + 8) == 0) {\nLAB_001e96a3:\n    puVar7 = (undefined4 *)operator_new__(0x30);\n    puVar1 = puVar7 + 0xc;\n    *(undefined4 **)(this + 0x10) = puVar7;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar1 != puVar7);\n    iVar9 = 0;\n    do {\n      if (*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0) {\n        return;\n      }\n      sVar8 = strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9));\n      iVar2 = *(int *)(this + 0x10);\n      pvVar6 = operator_new__(sVar8 + 1);\n      iVar3 = *(int *)(param_1 + 0x10);\n      *(void **)(iVar2 + iVar9) = pvVar6;\n      puVar1 = (undefined4 *)(iVar3 + iVar9);\n      puVar7 = (undefined4 *)(*(int *)(this + 0x10) + iVar9);\n      iVar9 = iVar9 + 4;\n      memcpy((void *)*puVar7,(void *)*puVar1,sVar8 + 1);\n    } while (iVar9 != 0x30);\n    return;\n  }" if (parenthesized_expression "(*(int *)(this + 8) == 0)" ( (binary_expression "*(int *)(this + 8) == 0" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_001e96a3:\n    puVar7 = (undefined4 *)operator_new__(0x30);\n    puVar1 = puVar7 + 0xc;\n    *(undefined4 **)(this + 0x10) = puVar7;\n    do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar1 != puVar7);\n    iVar9 = 0;\n    do {\n      if (*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0) {\n        return;\n      }\n      sVar8 = strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9));\n      iVar2 = *(int *)(this + 0x10);\n      pvVar6 = operator_new__(sVar8 + 1);\n      iVar3 = *(int *)(param_1 + 0x10);\n      *(void **)(iVar2 + iVar9) = pvVar6;\n      puVar1 = (undefined4 *)(iVar3 + iVar9);\n      puVar7 = (undefined4 *)(*(int *)(this + 0x10) + iVar9);\n      iVar9 = iVar9 + 4;\n      memcpy((void *)*puVar7,(void *)*puVar1,sVar8 + 1);\n    } while (iVar9 != 0x30);\n    return;\n  }" { (labeled_statement "LAB_001e96a3:\n    puVar7 = (undefined4 *)operator_new__(0x30);" statement_identifier : (expression_statement "puVar7 = (undefined4 *)operator_new__(0x30);" (assignment_expression "puVar7 = (undefined4 *)operator_new__(0x30)" identifier = (cast_expression "(undefined4 *)operator_new__(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;)) (expression_statement "puVar1 = puVar7 + 0xc;" (assignment_expression "puVar1 = puVar7 + 0xc" identifier = (binary_expression "puVar7 + 0xc" identifier + number_literal)) ;) (expression_statement "*(undefined4 **)(this + 0x10) = puVar7;" (assignment_expression "*(undefined4 **)(this + 0x10) = puVar7" (pointer_expression "*(undefined4 **)(this + 0x10)" * (cast_expression "(undefined4 **)(this + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (do_statement "do {\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    } while (puVar1 != puVar7);" do (compound_statement "{\n      *puVar7 = 0;\n      puVar7 = puVar7 + 1;\n    }" { (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != puVar7)" ( (binary_expression "puVar1 != puVar7" identifier != identifier) )) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0) {\n        return;\n      }\n      sVar8 = strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9));\n      iVar2 = *(int *)(this + 0x10);\n      pvVar6 = operator_new__(sVar8 + 1);\n      iVar3 = *(int *)(param_1 + 0x10);\n      *(void **)(iVar2 + iVar9) = pvVar6;\n      puVar1 = (undefined4 *)(iVar3 + iVar9);\n      puVar7 = (undefined4 *)(*(int *)(this + 0x10) + iVar9);\n      iVar9 = iVar9 + 4;\n      memcpy((void *)*puVar7,(void *)*puVar1,sVar8 + 1);\n    } while (iVar9 != 0x30);" do (compound_statement "{\n      if (*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0) {\n        return;\n      }\n      sVar8 = strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9));\n      iVar2 = *(int *)(this + 0x10);\n      pvVar6 = operator_new__(sVar8 + 1);\n      iVar3 = *(int *)(param_1 + 0x10);\n      *(void **)(iVar2 + iVar9) = pvVar6;\n      puVar1 = (undefined4 *)(iVar3 + iVar9);\n      puVar7 = (undefined4 *)(*(int *)(this + 0x10) + iVar9);\n      iVar9 = iVar9 + 4;\n      memcpy((void *)*puVar7,(void *)*puVar1,sVar8 + 1);\n    }" { (if_statement "if (*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0) {\n        return;\n      }" if (parenthesized_expression "(*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0)" ( (binary_expression "*(char **)(*(int *)(param_1 + 0x10) + iVar9) == (char *)0x0" (pointer_expression "*(char **)(*(int *)(param_1 + 0x10) + iVar9)" * (cast_expression "(char **)(*(int *)(param_1 + 0x10) + iVar9)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar9)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar9" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + identifier) )))) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "sVar8 = strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9));" (assignment_expression "sVar8 = strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9))" identifier = (call_expression "strlen(*(char **)(*(int *)(param_1 + 0x10) + iVar9))" identifier (argument_list "(*(char **)(*(int *)(param_1 + 0x10) + iVar9))" ( (pointer_expression "*(char **)(*(int *)(param_1 + 0x10) + iVar9)" * (cast_expression "(char **)(*(int *)(param_1 + 0x10) + iVar9)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar9)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar9" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + identifier) )))) )))) ;) (expression_statement "iVar2 = *(int *)(this + 0x10);" (assignment_expression "iVar2 = *(int *)(this + 0x10)" identifier = (pointer_expression "*(int *)(this + 0x10)" * (cast_expression "(int *)(this + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (expression_statement "pvVar6 = operator_new__(sVar8 + 1);" (assignment_expression "pvVar6 = operator_new__(sVar8 + 1)" identifier = (call_expression "operator_new__(sVar8 + 1)" identifier (argument_list "(sVar8 + 1)" ( (binary_expression "sVar8 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(void **)(iVar2 + iVar9) = pvVar6;" (assignment_expression "*(void **)(iVar2 + iVar9) = pvVar6" (pointer_expression "*(void **)(iVar2 + iVar9)" * (cast_expression "(void **)(iVar2 + iVar9)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + iVar9)" ( (binary_expression "iVar2 + iVar9" identifier + identifier) )))) = identifier) ;) (expression_statement "puVar1 = (undefined4 *)(iVar3 + iVar9);" (assignment_expression "puVar1 = (undefined4 *)(iVar3 + iVar9)" identifier = (cast_expression "(undefined4 *)(iVar3 + iVar9)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar9)" ( (binary_expression "iVar3 + iVar9" identifier + identifier) )))) ;) (expression_statement "puVar7 = (undefined4 *)(*(int *)(this + 0x10) + iVar9);" (assignment_expression "puVar7 = (undefined4 *)(*(int *)(this + 0x10) + iVar9)" identifier = (cast_expression "(undefined4 *)(*(int *)(this + 0x10) + iVar9)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(this + 0x10) + iVar9)" ( (binary_expression "*(int *)(this + 0x10) + iVar9" (pointer_expression "*(int *)(this + 0x10)" * (cast_expression "(int *)(this + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "iVar9 = iVar9 + 4;" (assignment_expression "iVar9 = iVar9 + 4" identifier = (binary_expression "iVar9 + 4" identifier + number_literal)) ;) (expression_statement "memcpy((void *)*puVar7,(void *)*puVar1,sVar8 + 1);" (call_expression "memcpy((void *)*puVar7,(void *)*puVar1,sVar8 + 1)" identifier (argument_list "((void *)*puVar7,(void *)*puVar1,sVar8 + 1)" ( (cast_expression "(void *)*puVar7" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier)) , (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , (binary_expression "sVar8 + 1" identifier + number_literal) ))) ;) }) while (parenthesized_expression "(iVar9 != 0x30)" ( (binary_expression "iVar9 != 0x30" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar2 = *(int *)(*(int *)(param_1 + 0xc) + iVar9 * 4);\n    *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar4 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    iVar9 = iVar9 + 1;\n    pvVar6 = *(void **)(this + 0xc);\n  } while( true );" do (compound_statement "{\n    iVar2 = *(int *)(*(int *)(param_1 + 0xc) + iVar9 * 4);\n    *(int *)((int)pvVar6 + iVar9 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar4 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    iVar9 = iVar9 + 1;\n    pvVar6 = *(void **)(this + 0xc);\n  }" { (expression_statement "iVar2 = *(int *)(*(int *)(param_1 + 0xc) + iVar9 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_1 + 0xc) + iVar9 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0xc) + iVar9 * 4)" * (cast_expression "(int *)(*(int *)(param_1 + 0xc) + iVar9 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0xc) + iVar9 * 4)" ( (binary_expression "*(int *)(param_1 + 0xc) + iVar9 * 4" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + (binary_expression "iVar9 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(int *)((int)pvVar6 + iVar9 * 4) = iVar2;" (assignment_expression "*(int *)((int)pvVar6 + iVar9 * 4) = iVar2" (pointer_expression "*(int *)((int)pvVar6 + iVar9 * 4)" * (cast_expression "(int *)((int)pvVar6 + iVar9 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar6 + iVar9 * 4)" ( (binary_expression "(int)pvVar6 + iVar9 * 4" (cast_expression "(int)pvVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\nLAB_001e9675:\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar4 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_001e9675:\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }" { (labeled_statement "LAB_001e9675:\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;" statement_identifier : (if_statement "if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;" if (parenthesized_expression "(*(uint *)(this + 8) <= iVar9 + 1U)" ( (binary_expression "*(uint *)(this + 8) <= iVar9 + 1U" (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) <= (binary_expression "iVar9 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e96a3;" goto statement_identifier ;))) }) (else_clause "else {\n      if (puVar4 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }" else (compound_statement "{\n      if (puVar4 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;\n    }" { (if_statement "if (puVar4 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }" if (parenthesized_expression "(puVar4 != (undefined *)0x0)" ( (binary_expression "puVar4 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_001e9675;" goto statement_identifier ;) })) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*(uint *)(this + 8) <= iVar9 + 1U) goto LAB_001e96a3;" if (parenthesized_expression "(*(uint *)(this + 8) <= iVar9 + 1U)" ( (binary_expression "*(uint *)(this + 8) <= iVar9 + 1U" (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) <= (binary_expression "iVar9 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e96a3;" goto statement_identifier ;)) }))) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pvVar6 = *(void **)(this + 0xc);" (assignment_expression "pvVar6 = *(void **)(this + 0xc)" identifier = (pointer_expression "*(void **)(this + 0xc)" * (cast_expression "(void **)(this + 0xc)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (labeled_statement "LAB_001e962d:\n  uVar5 = uVar10 * 4;" statement_identifier : (expression_statement "uVar5 = uVar10 * 4;" (assignment_expression "uVar5 = uVar10 * 4" identifier = (binary_expression "uVar10 * 4" identifier * number_literal)) ;)) (if_statement "if (0x1fffffff < uVar10) {\n    uVar5 = 0xffffffff;\n  }" if (parenthesized_expression "(0x1fffffff < uVar10)" ( (binary_expression "0x1fffffff < uVar10" number_literal < identifier) )) (compound_statement "{\n    uVar5 = 0xffffffff;\n  }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) })) (goto_statement "goto LAB_001e9642;" goto statement_identifier ;) })))
(translation_unit "void FUN_001e9570(undefined4 *param_1,int param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  \n  uVar9 = *(uint *)(param_2 + 8);\n  param_1[1] = 0;\n  *param_1 = param_3;\n  param_1[2] = uVar9;\n  iVar4 = uVar9 * 4;\n  if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }\n  param_1[3] = 0;\n  param_1[4] = 0;\n                    \n  iVar4 = FUN_001e5180(iVar4);\n  param_1[1] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  uVar9 = param_1[2];\n  if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }\nLAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);\n  param_1[3] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }\n  iVar8 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );\nLAB_001e962d:\n  uVar9 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}\n\n" (function_definition "void FUN_001e9570(undefined4 *param_1,int param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  \n  uVar9 = *(uint *)(param_2 + 8);\n  param_1[1] = 0;\n  *param_1 = param_3;\n  param_1[2] = uVar9;\n  iVar4 = uVar9 * 4;\n  if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }\n  param_1[3] = 0;\n  param_1[4] = 0;\n                    \n  iVar4 = FUN_001e5180(iVar4);\n  param_1[1] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  uVar9 = param_1[2];\n  if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }\nLAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);\n  param_1[3] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }\n  iVar8 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );\nLAB_001e962d:\n  uVar9 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}" primitive_type (function_declarator "FUN_001e9570(undefined4 *param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  \n  uVar9 = *(uint *)(param_2 + 8);\n  param_1[1] = 0;\n  *param_1 = param_3;\n  param_1[2] = uVar9;\n  iVar4 = uVar9 * 4;\n  if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }\n  param_1[3] = 0;\n  param_1[4] = 0;\n                    \n  iVar4 = FUN_001e5180(iVar4);\n  param_1[1] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  uVar9 = param_1[2];\n  if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }\nLAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);\n  param_1[3] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }\n  iVar8 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );\nLAB_001e962d:\n  uVar9 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (expression_statement "uVar9 = *(uint *)(param_2 + 8);" (assignment_expression "uVar9 = *(uint *)(param_2 + 8)" identifier = (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[2] = uVar9;" (assignment_expression "param_1[2] = uVar9" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar4 = uVar9 * 4;" (assignment_expression "iVar4 = uVar9 * 4" identifier = (binary_expression "uVar9 * 4" identifier * number_literal)) ;) (if_statement "if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }" if (parenthesized_expression "(0x1fffffff < uVar9)" ( (binary_expression "0x1fffffff < uVar9" number_literal < identifier) )) (compound_statement "{\n    iVar4 = -1;\n  }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) })) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = FUN_001e5180(iVar4);" (assignment_expression "iVar4 = FUN_001e5180(iVar4)" identifier = (call_expression "FUN_001e5180(iVar4)" identifier (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "param_1[1] = iVar4;" (assignment_expression "param_1[1] = iVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = PTR___pthread_key_create_0038ef24;" (assignment_expression "puVar3 = PTR___pthread_key_create_0038ef24" identifier = identifier) ;) (expression_statement "uVar9 = param_1[2];" (assignment_expression "uVar9 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }" if (parenthesized_expression "(uVar9 != 0)" ( (binary_expression "uVar9 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "uVar10 = uVar9;" (assignment_expression "uVar10 = uVar9" identifier = identifier) ;) (do_statement "do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );" do (compound_statement "{\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    }" { (expression_statement "iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 4) + iVar8 * 4)" * (cast_expression "(int *)(*(int *)(param_2 + 4) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + iVar8 * 4)" ( (binary_expression "*(int *)(param_2 + 4) + iVar8 * 4" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(int *)(iVar4 + iVar8 * 4) = iVar2;" (assignment_expression "*(int *)(iVar4 + iVar8 * 4) = iVar2" (pointer_expression "*(int *)(iVar4 + iVar8 * 4)" * (cast_expression "(int *)(iVar4 + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar8 * 4)" ( (binary_expression "iVar4 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" { (labeled_statement "LAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;" statement_identifier : (if_statement "if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;" if (parenthesized_expression "(uVar10 <= iVar8 + 1U)" ( (binary_expression "uVar10 <= iVar8 + 1U" identifier <= (binary_expression "iVar8 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e962d;" goto statement_identifier ;))) }) (else_clause "else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" else (compound_statement "{\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" { (if_statement "if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }" if (parenthesized_expression "(puVar3 != (undefined *)0x0)" ( (binary_expression "puVar3 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar10 = param_1[2];" (assignment_expression "uVar10 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (goto_statement "goto LAB_001e95fb;" goto statement_identifier ;) })) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar10 = param_1[2];" (assignment_expression "uVar10 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;" if (parenthesized_expression "(uVar10 <= iVar8 + 1U)" ( (binary_expression "uVar10 <= iVar8 + 1U" identifier <= (binary_expression "iVar8 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e962d;" goto statement_identifier ;)) }))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);" statement_identifier : (expression_statement "iVar4 = FUN_001e5180(uVar9);" (assignment_expression "iVar4 = FUN_001e5180(uVar9)" identifier = (call_expression "FUN_001e5180(uVar9)" identifier (argument_list "(uVar9)" ( identifier )))) ;)) (expression_statement "param_1[3] = iVar4;" (assignment_expression "param_1[3] = iVar4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = PTR___pthread_key_create_0038ef24;" (assignment_expression "puVar3 = PTR___pthread_key_create_0038ef24" identifier = identifier) ;) (if_statement "if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }" if (parenthesized_expression "(param_1[2] == 0)" ( (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }" { (labeled_statement "LAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);" statement_identifier : (expression_statement "puVar5 = (undefined4 *)FUN_001e5180(0x30);" (assignment_expression "puVar5 = (undefined4 *)FUN_001e5180(0x30)" identifier = (cast_expression "(undefined4 *)FUN_001e5180(0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5180(0x30)" identifier (argument_list "(0x30)" ( number_literal ))))) ;)) (expression_statement "puVar1 = puVar5 + 0xc;" (assignment_expression "puVar1 = puVar5 + 0xc" identifier = (binary_expression "puVar5 + 0xc" identifier + number_literal)) ;) (expression_statement "param_1[4] = puVar5;" (assignment_expression "param_1[4] = puVar5" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);" do (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != puVar5)" ( (binary_expression "puVar1 != puVar5" identifier != identifier) )) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);" do (compound_statement "{\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    }" { (expression_statement "__s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);" (assignment_expression "__s = *(char **)(*(int *)(param_2 + 0x10) + iVar4)" identifier = (pointer_expression "*(char **)(*(int *)(param_2 + 0x10) + iVar4)" * (cast_expression "(char **)(*(int *)(param_2 + 0x10) + iVar4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_2 + 0x10) + iVar4)" ( (binary_expression "*(int *)(param_2 + 0x10) + iVar4" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) + identifier) ))))) ;) (if_statement "if (__s == (char *)0x0) {\n        return;\n      }" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "sVar6 = strlen(__s);" (assignment_expression "sVar6 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar8 = param_1[4];" (assignment_expression "iVar8 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar7 = FUN_001e5180(sVar6 + 1);" (assignment_expression "uVar7 = FUN_001e5180(sVar6 + 1)" identifier = (call_expression "FUN_001e5180(sVar6 + 1)" identifier (argument_list "(sVar6 + 1)" ( (binary_expression "sVar6 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar8 + iVar4) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + iVar4) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + iVar4)" * (cast_expression "(undefined4 *)(iVar8 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + iVar4)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) )))) = identifier) ;) (expression_statement "puVar1 = (undefined4 *)(iVar2 + iVar4);" (assignment_expression "puVar1 = (undefined4 *)(iVar2 + iVar4)" identifier = (cast_expression "(undefined4 *)(iVar2 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar4)" ( (binary_expression "iVar2 + iVar4" identifier + identifier) )))) ;) (expression_statement "puVar5 = (undefined4 *)(param_1[4] + iVar4);" (assignment_expression "puVar5 = (undefined4 *)(param_1[4] + iVar4)" identifier = (cast_expression "(undefined4 *)(param_1[4] + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[4] + iVar4)" ( (binary_expression "param_1[4] + iVar4" (subscript_expression "param_1[4]" identifier [ number_literal ]) + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 4;" (assignment_expression "iVar4 = iVar4 + 4" identifier = (binary_expression "iVar4 + 4" identifier + number_literal)) ;) (expression_statement "memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);" (call_expression "memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1)" identifier (argument_list "((void *)*puVar5,(void *)*puVar1,sVar6 + 1)" ( (cast_expression "(void *)*puVar5" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier)) , (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , (binary_expression "sVar6 + 1" identifier + number_literal) ))) ;) }) while (parenthesized_expression "(iVar4 != 0x30)" ( (binary_expression "iVar4 != 0x30" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );" do (compound_statement "{\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  }" { (expression_statement "iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4)" * (cast_expression "(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xc) + iVar8 * 4)" ( (binary_expression "*(int *)(param_2 + 0xc) + iVar8 * 4" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (expression_statement "*(int *)(iVar4 + iVar8 * 4) = iVar2;" (assignment_expression "*(int *)(iVar4 + iVar8 * 4) = iVar2" (pointer_expression "*(int *)(iVar4 + iVar8 * 4)" * (cast_expression "(int *)(iVar4 + iVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar8 * 4)" ( (binary_expression "iVar4 + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" { (labeled_statement "LAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;" statement_identifier : (if_statement "if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;" if (parenthesized_expression "((uint)param_1[2] <= iVar8 + 1U)" ( (binary_expression "(uint)param_1[2] <= iVar8 + 1U" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) <= (binary_expression "iVar8 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e96a3;" goto statement_identifier ;))) }) (else_clause "else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" else (compound_statement "{\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" { (if_statement "if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }" if (parenthesized_expression "(puVar3 != (undefined *)0x0)" ( (binary_expression "puVar3 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_001e9675;" goto statement_identifier ;) })) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;" if (parenthesized_expression "((uint)param_1[2] <= iVar8 + 1U)" ( (binary_expression "(uint)param_1[2] <= iVar8 + 1U" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) <= (binary_expression "iVar8 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_001e96a3;" goto statement_identifier ;)) }))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (labeled_statement "LAB_001e962d:\n  uVar9 = uVar10 * 4;" statement_identifier : (expression_statement "uVar9 = uVar10 * 4;" (assignment_expression "uVar9 = uVar10 * 4" identifier = (binary_expression "uVar10 * 4" identifier * number_literal)) ;)) (if_statement "if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }" if (parenthesized_expression "(0x1fffffff < uVar10)" ( (binary_expression "0x1fffffff < uVar10" number_literal < identifier) )) (compound_statement "{\n    uVar9 = 0xffffffff;\n  }" { (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" identifier = number_literal) ;) })) (goto_statement "goto LAB_001e9642;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + LIT)) )) (goto_statement goto statement_identifier ;))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + LIT)) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) while (parenthesized_expression ( BOOL )) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (binary_expression IDENT + LIT) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (binary_expression IDENT + LIT)) )) (goto_statement goto statement_identifier ;))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (binary_expression IDENT + LIT)) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) while (parenthesized_expression ( BOOL )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (goto_statement goto statement_identifier ;) })))
(function_definition "void FUN_001e9570(undefined4 *param_1,int param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  \n  uVar9 = *(uint *)(param_2 + 8);\n  param_1[1] = 0;\n  *param_1 = param_3;\n  param_1[2] = uVar9;\n  iVar4 = uVar9 * 4;\n  if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }\n  param_1[3] = 0;\n  param_1[4] = 0;\n                    \n  iVar4 = FUN_001e5180(iVar4);\n  param_1[1] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  uVar9 = param_1[2];\n  if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }\nLAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);\n  param_1[3] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }\n  iVar8 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );\nLAB_001e962d:\n  uVar9 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}" (primitive_type "void") (function_declarator "FUN_001e9570(undefined4 *param_1,int param_2,undefined4 param_3)" (identifier "FUN_001e9570") (parameter_list "(undefined4 *param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int iVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  \n  uVar9 = *(uint *)(param_2 + 8);\n  param_1[1] = 0;\n  *param_1 = param_3;\n  param_1[2] = uVar9;\n  iVar4 = uVar9 * 4;\n  if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }\n  param_1[3] = 0;\n  param_1[4] = 0;\n                    \n  iVar4 = FUN_001e5180(iVar4);\n  param_1[1] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  uVar9 = param_1[2];\n  if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }\nLAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);\n  param_1[3] = iVar4;\n  puVar3 = PTR___pthread_key_create_0038ef24;\n  if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }\n  iVar8 = 0;\n  do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );\nLAB_001e962d:\n  uVar9 = uVar10 * 4;\n  if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }\n  goto LAB_001e9642;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (expression_statement "uVar9 = *(uint *)(param_2 + 8);" (assignment_expression "uVar9 = *(uint *)(param_2 + 8)" (identifier "uVar9") (= "=") (pointer_expression "*(uint *)(param_2 + 8)" (* "*") (cast_expression "(uint *)(param_2 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "param_1[2] = uVar9;" (assignment_expression "param_1[2] = uVar9" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "iVar4 = uVar9 * 4;" (assignment_expression "iVar4 = uVar9 * 4" (identifier "iVar4") (= "=") (binary_expression "uVar9 * 4" (identifier "uVar9") (* "*") (number_literal "4"))) (; ";")) (if_statement "if (0x1fffffff < uVar9) {\n    iVar4 = -1;\n  }" (if "if") (parenthesized_expression "(0x1fffffff < uVar9)" (( "(") (binary_expression "0x1fffffff < uVar9" (number_literal "0x1fffffff") (< "<") (identifier "uVar9")) () ")")) (compound_statement "{\n    iVar4 = -1;\n  }" ({ "{") (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" (identifier "iVar4") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = FUN_001e5180(iVar4);" (assignment_expression "iVar4 = FUN_001e5180(iVar4)" (identifier "iVar4") (= "=") (call_expression "FUN_001e5180(iVar4)" (identifier "FUN_001e5180") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "param_1[1] = iVar4;" (assignment_expression "param_1[1] = iVar4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "puVar3 = PTR___pthread_key_create_0038ef24;" (assignment_expression "puVar3 = PTR___pthread_key_create_0038ef24" (identifier "puVar3") (= "=") (identifier "PTR___pthread_key_create_0038ef24")) (; ";")) (expression_statement "uVar9 = param_1[2];" (assignment_expression "uVar9 = param_1[2]" (identifier "uVar9") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (uVar9 != 0) {\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }" (if "if") (parenthesized_expression "(uVar9 != 0)" (( "(") (binary_expression "uVar9 != 0" (identifier "uVar9") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar8 = 0;\n    uVar10 = uVar9;\n    do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );\n  }" ({ "{") (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar10 = uVar9;" (assignment_expression "uVar10 = uVar9" (identifier "uVar10") (= "=") (identifier "uVar9")) (; ";")) (do_statement "do {\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    } while( true );" (do "do") (compound_statement "{\n      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);\n      *(int *)(iVar4 + iVar8 * 4) = iVar2;\n      if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      iVar8 = iVar8 + 1;\n      iVar4 = param_1[1];\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)(param_2 + 4) + iVar8 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 4) + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 4) + iVar8 * 4)" (( "(") (binary_expression "*(int *)(param_2 + 4) + iVar8 * 4" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar4 + iVar8 * 4) = iVar2;" (assignment_expression "*(int *)(iVar4 + iVar8 * 4) = iVar2" (pointer_expression "*(int *)(iVar4 + iVar8 * 4)" (* "*") (cast_expression "(int *)(iVar4 + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar8 * 4)" (( "(") (binary_expression "iVar4 + iVar8 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) {\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }\n      else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" ({ "{") (labeled_statement "LAB_001e95fb:\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;" (statement_identifier "LAB_001e95fb") (: ":") (if_statement "if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;" (if "if") (parenthesized_expression "(uVar10 <= iVar8 + 1U)" (( "(") (binary_expression "uVar10 <= iVar8 + 1U" (identifier "uVar10") (<= "<=") (binary_expression "iVar8 + 1U" (identifier "iVar8") (+ "+") (number_literal "1U"))) () ")")) (goto_statement "goto LAB_001e962d;" (goto "goto") (statement_identifier "LAB_001e962d") (; ";")))) (} "}")) (else_clause "else {\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" (else "else") (compound_statement "{\n        if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        uVar10 = param_1[2];\n        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;\n      }" ({ "{") (if_statement "if (puVar3 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }" (if "if") (parenthesized_expression "(puVar3 != (undefined *)0x0)" (( "(") (binary_expression "puVar3 != (undefined *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          LOCK();\n          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n          UNLOCK();\n          uVar10 = param_1[2];\n          goto LAB_001e95fb;\n        }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar10 = param_1[2];" (assignment_expression "uVar10 = param_1[2]" (identifier "uVar10") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (goto_statement "goto LAB_001e95fb;" (goto "goto") (statement_identifier "LAB_001e95fb") (; ";")) (} "}"))) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar10 = param_1[2];" (assignment_expression "uVar10 = param_1[2]" (identifier "uVar10") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;" (if "if") (parenthesized_expression "(uVar10 <= iVar8 + 1U)" (( "(") (binary_expression "uVar10 <= iVar8 + 1U" (identifier "uVar10") (<= "<=") (binary_expression "iVar8 + 1U" (identifier "iVar8") (+ "+") (number_literal "1U"))) () ")")) (goto_statement "goto LAB_001e962d;" (goto "goto") (statement_identifier "LAB_001e962d") (; ";"))) (} "}")))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" (identifier "iVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_001e9642:\n  iVar4 = FUN_001e5180(uVar9);" (statement_identifier "LAB_001e9642") (: ":") (expression_statement "iVar4 = FUN_001e5180(uVar9);" (assignment_expression "iVar4 = FUN_001e5180(uVar9)" (identifier "iVar4") (= "=") (call_expression "FUN_001e5180(uVar9)" (identifier "FUN_001e5180") (argument_list "(uVar9)" (( "(") (identifier "uVar9") () ")")))) (; ";"))) (expression_statement "param_1[3] = iVar4;" (assignment_expression "param_1[3] = iVar4" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "puVar3 = PTR___pthread_key_create_0038ef24;" (assignment_expression "puVar3 = PTR___pthread_key_create_0038ef24" (identifier "puVar3") (= "=") (identifier "PTR___pthread_key_create_0038ef24")) (; ";")) (if_statement "if (param_1[2] == 0) {\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1[2] == 0)" (( "(") (binary_expression "param_1[2] == 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);\n    puVar1 = puVar5 + 0xc;\n    param_1[4] = puVar5;\n    do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);\n    iVar4 = 0;\n    do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);\n    return;\n  }" ({ "{") (labeled_statement "LAB_001e96a3:\n    puVar5 = (undefined4 *)FUN_001e5180(0x30);" (statement_identifier "LAB_001e96a3") (: ":") (expression_statement "puVar5 = (undefined4 *)FUN_001e5180(0x30);" (assignment_expression "puVar5 = (undefined4 *)FUN_001e5180(0x30)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)FUN_001e5180(0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5180(0x30)" (identifier "FUN_001e5180") (argument_list "(0x30)" (( "(") (number_literal "0x30") () ")"))))) (; ";"))) (expression_statement "puVar1 = puVar5 + 0xc;" (assignment_expression "puVar1 = puVar5 + 0xc" (identifier "puVar1") (= "=") (binary_expression "puVar5 + 0xc" (identifier "puVar5") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "param_1[4] = puVar5;" (assignment_expression "param_1[4] = puVar5" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "puVar5")) (; ";")) (do_statement "do {\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    } while (puVar1 != puVar5);" (do "do") (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + 1;\n    }" ({ "{") (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != puVar5)" (( "(") (binary_expression "puVar1 != puVar5" (identifier "puVar1") (!= "!=") (identifier "puVar5")) () ")")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    } while (iVar4 != 0x30);" (do "do") (compound_statement "{\n      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar6 = strlen(__s);\n      iVar8 = param_1[4];\n      uVar7 = FUN_001e5180(sVar6 + 1);\n      iVar2 = *(int *)(param_2 + 0x10);\n      *(undefined4 *)(iVar8 + iVar4) = uVar7;\n      puVar1 = (undefined4 *)(iVar2 + iVar4);\n      puVar5 = (undefined4 *)(param_1[4] + iVar4);\n      iVar4 = iVar4 + 4;\n      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);\n    }" ({ "{") (expression_statement "__s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);" (assignment_expression "__s = *(char **)(*(int *)(param_2 + 0x10) + iVar4)" (identifier "__s") (= "=") (pointer_expression "*(char **)(*(int *)(param_2 + 0x10) + iVar4)" (* "*") (cast_expression "(char **)(*(int *)(param_2 + 0x10) + iVar4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x10) + iVar4)" (( "(") (binary_expression "*(int *)(param_2 + 0x10) + iVar4" (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "iVar4")) () ")"))))) (; ";")) (if_statement "if (__s == (char *)0x0) {\n        return;\n      }" (if "if") (parenthesized_expression "(__s == (char *)0x0)" (( "(") (binary_expression "__s == (char *)0x0" (identifier "__s") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "sVar6 = strlen(__s);" (assignment_expression "sVar6 = strlen(__s)" (identifier "sVar6") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "iVar8 = param_1[4];" (assignment_expression "iVar8 = param_1[4]" (identifier "iVar8") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "uVar7 = FUN_001e5180(sVar6 + 1);" (assignment_expression "uVar7 = FUN_001e5180(sVar6 + 1)" (identifier "uVar7") (= "=") (call_expression "FUN_001e5180(sVar6 + 1)" (identifier "FUN_001e5180") (argument_list "(sVar6 + 1)" (( "(") (binary_expression "sVar6 + 1" (identifier "sVar6") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "iVar2 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x10)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar8 + iVar4) = uVar7;" (assignment_expression "*(undefined4 *)(iVar8 + iVar4) = uVar7" (pointer_expression "*(undefined4 *)(iVar8 + iVar4)" (* "*") (cast_expression "(undefined4 *)(iVar8 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + iVar4)" (( "(") (binary_expression "iVar8 + iVar4" (identifier "iVar8") (+ "+") (identifier "iVar4")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "puVar1 = (undefined4 *)(iVar2 + iVar4);" (assignment_expression "puVar1 = (undefined4 *)(iVar2 + iVar4)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(iVar2 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar4)" (( "(") (binary_expression "iVar2 + iVar4" (identifier "iVar2") (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "puVar5 = (undefined4 *)(param_1[4] + iVar4);" (assignment_expression "puVar5 = (undefined4 *)(param_1[4] + iVar4)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(param_1[4] + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[4] + iVar4)" (( "(") (binary_expression "param_1[4] + iVar4" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + 4;" (assignment_expression "iVar4 = iVar4 + 4" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);" (call_expression "memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1)" (identifier "memcpy") (argument_list "((void *)*puVar5,(void *)*puVar1,sVar6 + 1)" (( "(") (cast_expression "(void *)*puVar5" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (, ",") (cast_expression "(void *)*puVar1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (, ",") (binary_expression "sVar6 + 1" (identifier "sVar6") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 0x30)" (( "(") (binary_expression "iVar4 != 0x30" (identifier "iVar4") (!= "!=") (number_literal "0x30")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  } while( true );" (do "do") (compound_statement "{\n    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);\n    *(int *)(iVar4 + iVar8 * 4) = iVar2;\n    if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    iVar8 = iVar8 + 1;\n    iVar4 = param_1[3];\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);" (assignment_expression "iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0xc) + iVar8 * 4)" (( "(") (binary_expression "*(int *)(param_2 + 0xc) + iVar8 * 4" (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar4 + iVar8 * 4) = iVar2;" (assignment_expression "*(int *)(iVar4 + iVar8 * 4) = iVar2" (pointer_expression "*(int *)(iVar4 + iVar8 * 4)" (* "*") (cast_expression "(int *)(iVar4 + iVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar8 * 4)" (( "(") (binary_expression "iVar4 + iVar8 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar8 * 4" (identifier "iVar8") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) {\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }\n    else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" ({ "{") (labeled_statement "LAB_001e9675:\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;" (statement_identifier "LAB_001e9675") (: ":") (if_statement "if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;" (if "if") (parenthesized_expression "((uint)param_1[2] <= iVar8 + 1U)" (( "(") (binary_expression "(uint)param_1[2] <= iVar8 + 1U" (cast_expression "(uint)param_1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (<= "<=") (binary_expression "iVar8 + 1U" (identifier "iVar8") (+ "+") (number_literal "1U"))) () ")")) (goto_statement "goto LAB_001e96a3;" (goto "goto") (statement_identifier "LAB_001e96a3") (; ";")))) (} "}")) (else_clause "else {\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" (else "else") (compound_statement "{\n      if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }\n      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;\n    }" ({ "{") (if_statement "if (puVar3 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }" (if "if") (parenthesized_expression "(puVar3 != (undefined *)0x0)" (( "(") (binary_expression "puVar3 != (undefined *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        LOCK();\n        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;\n        UNLOCK();\n        goto LAB_001e9675;\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_001e9675;" (goto "goto") (statement_identifier "LAB_001e9675") (; ";")) (} "}"))) (expression_statement "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;" (assignment_expression "*(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(iVar2 + 4) + 1" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;" (if "if") (parenthesized_expression "((uint)param_1[2] <= iVar8 + 1U)" (( "(") (binary_expression "(uint)param_1[2] <= iVar8 + 1U" (cast_expression "(uint)param_1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (<= "<=") (binary_expression "iVar8 + 1U" (identifier "iVar8") (+ "+") (number_literal "1U"))) () ")")) (goto_statement "goto LAB_001e96a3;" (goto "goto") (statement_identifier "LAB_001e96a3") (; ";"))) (} "}")))) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar4 = param_1[3];" (assignment_expression "iVar4 = param_1[3]" (identifier "iVar4") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (labeled_statement "LAB_001e962d:\n  uVar9 = uVar10 * 4;" (statement_identifier "LAB_001e962d") (: ":") (expression_statement "uVar9 = uVar10 * 4;" (assignment_expression "uVar9 = uVar10 * 4" (identifier "uVar9") (= "=") (binary_expression "uVar10 * 4" (identifier "uVar10") (* "*") (number_literal "4"))) (; ";"))) (if_statement "if (0x1fffffff < uVar10) {\n    uVar9 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(0x1fffffff < uVar10)" (( "(") (binary_expression "0x1fffffff < uVar10" (number_literal "0x1fffffff") (< "<") (identifier "uVar10")) () ")")) (compound_statement "{\n    uVar9 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" (identifier "uVar9") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (goto_statement "goto LAB_001e9642;" (goto "goto") (statement_identifier "LAB_001e9642") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::locale::_Impl::_Impl(std::locale::_Impl const&, unsigned int) */

void __thiscall std::locale::function_1::function_1(function_1 *var_2,function_1 *var_1,type_1 param_2)

{
  type_2 *var_12;
  int var_7;
  int var_15;
  type_3 *var_8;
  type_1 var_5;
  void *pvVar6;
  type_2 *var_11;
  size_t var_14;
  int var_6;
  type_1 var_3;
  
  var_3 = *(type_1 *)(var_1 + 8);
  *(type_2 *)(var_2 + 4) = 0;
  *(type_1 *)var_2 = param_2;
  *(type_1 *)(var_2 + 8) = var_3;
  var_5 = var_3 * 4;
  if (0x1fffffff < var_3) {
    var_5 = 0xffffffff;
  }
  *(type_2 *)(var_2 + 0xc) = 0;
  *(type_2 *)(var_2 + 0x10) = 0;
                    /* try { // try from 001e95c3 to 001e9701 has its CatchHandler @ 001e9739 */
  pvVar6 = var_4(var_5);
  *(void **)(var_2 + 4) = pvVar6;
  var_8 = PTR___pthread_key_create_0038ef24;
  var_5 = *(type_1 *)(var_2 + 8);
  if (var_5 != 0) {
    var_6 = 0;
    var_3 = var_5;
    do {
      var_7 = *(int *)(*(int *)(var_1 + 4) + var_6 * 4);
      *(int *)((int)pvVar6 + var_6 * 4) = var_7;
      if (var_7 == 0) {
LAB_001e95fb:
        if (var_3 <= var_6 + 1U) goto LAB_001e962d;
      }
      else {
        if (var_8 != (type_3 *)0x0) {
          var_9();
          *(int *)(var_7 + 4) = *(int *)(var_7 + 4) + 1;
          var_10();
          var_3 = *(type_1 *)(var_2 + 8);
          goto LAB_001e95fb;
        }
        *(int *)(var_7 + 4) = *(int *)(var_7 + 4) + 1;
        var_3 = *(type_1 *)(var_2 + 8);
        if (var_3 <= var_6 + 1U) goto LAB_001e962d;
      }
      var_6 = var_6 + 1;
      pvVar6 = *(void **)(var_2 + 4);
    } while( true );
  }
LAB_001e9642:
  pvVar6 = var_4(var_5);
  *(void **)(var_2 + 0xc) = pvVar6;
  var_8 = PTR___pthread_key_create_0038ef24;
  if (*(int *)(var_2 + 8) == 0) {
LAB_001e96a3:
    var_11 = (type_2 *)var_4(0x30);
    var_12 = var_11 + 0xc;
    *(type_2 **)(var_2 + 0x10) = var_11;
    do {
      *var_11 = 0;
      var_11 = var_11 + 1;
    } while (var_12 != var_11);
    var_6 = 0;
    do {
      if (*(char **)(*(int *)(var_1 + 0x10) + var_6) == (char *)0x0) {
        return;
      }
      var_14 = var_13(*(char **)(*(int *)(var_1 + 0x10) + var_6));
      var_7 = *(int *)(var_2 + 0x10);
      pvVar6 = var_4(var_14 + 1);
      var_15 = *(int *)(var_1 + 0x10);
      *(void **)(var_7 + var_6) = pvVar6;
      var_12 = (type_2 *)(var_15 + var_6);
      var_11 = (type_2 *)(*(int *)(var_2 + 0x10) + var_6);
      var_6 = var_6 + 4;
      var_16((void *)*var_11,(void *)*var_12,var_14 + 1);
    } while (var_6 != 0x30);
    return;
  }
  var_6 = 0;
  do {
    var_7 = *(int *)(*(int *)(var_1 + 0xc) + var_6 * 4);
    *(int *)((int)pvVar6 + var_6 * 4) = var_7;
    if (var_7 == 0) {
LAB_001e9675:
      if (*(type_1 *)(var_2 + 8) <= var_6 + 1U) goto LAB_001e96a3;
    }
    else {
      if (var_8 != (type_3 *)0x0) {
        var_9();
        *(int *)(var_7 + 4) = *(int *)(var_7 + 4) + 1;
        var_10();
        goto LAB_001e9675;
      }
      *(int *)(var_7 + 4) = *(int *)(var_7 + 4) + 1;
      if (*(type_1 *)(var_2 + 8) <= var_6 + 1U) goto LAB_001e96a3;
    }
    var_6 = var_6 + 1;
    pvVar6 = *(void **)(var_2 + 0xc);
  } while( true );
LAB_001e962d:
  var_5 = var_3 * 4;
  if (0x1fffffff < var_3) {
    var_5 = 0xffffffff;
  }
  goto LAB_001e9642;
}


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

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

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

{
  undefined4 *puVar1;
  int iVar2;
  char *__s;
  undefined *puVar3;
  int iVar4;
  undefined4 *puVar5;
  size_t sVar6;
  undefined4 uVar7;
  int iVar8;
  uint uVar9;
  uint uVar10;
  
  uVar9 = *(uint *)(param_2 + 8);
  param_1[1] = 0;
  *param_1 = param_3;
  param_1[2] = uVar9;
  iVar4 = uVar9 * 4;
  if (0x1fffffff < uVar9) {
    iVar4 = -1;
  }
  param_1[3] = 0;
  param_1[4] = 0;
                    /* try { // try from 001e95c3 to 001e9701 has its CatchHandler @ 001e9739 */
  iVar4 = FUN_001e5180(iVar4);
  param_1[1] = iVar4;
  puVar3 = PTR___pthread_key_create_0038ef24;
  uVar9 = param_1[2];
  if (uVar9 != 0) {
    iVar8 = 0;
    uVar10 = uVar9;
    do {
      iVar2 = *(int *)(*(int *)(param_2 + 4) + iVar8 * 4);
      *(int *)(iVar4 + iVar8 * 4) = iVar2;
      if (iVar2 == 0) {
LAB_001e95fb:
        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;
      }
      else {
        if (puVar3 != (undefined *)0x0) {
          LOCK();
          *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
          UNLOCK();
          uVar10 = param_1[2];
          goto LAB_001e95fb;
        }
        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
        uVar10 = param_1[2];
        if (uVar10 <= iVar8 + 1U) goto LAB_001e962d;
      }
      iVar8 = iVar8 + 1;
      iVar4 = param_1[1];
    } while( true );
  }
LAB_001e9642:
  iVar4 = FUN_001e5180(uVar9);
  param_1[3] = iVar4;
  puVar3 = PTR___pthread_key_create_0038ef24;
  if (param_1[2] == 0) {
LAB_001e96a3:
    puVar5 = (undefined4 *)FUN_001e5180(0x30);
    puVar1 = puVar5 + 0xc;
    param_1[4] = puVar5;
    do {
      *puVar5 = 0;
      puVar5 = puVar5 + 1;
    } while (puVar1 != puVar5);
    iVar4 = 0;
    do {
      __s = *(char **)(*(int *)(param_2 + 0x10) + iVar4);
      if (__s == (char *)0x0) {
        return;
      }
      sVar6 = strlen(__s);
      iVar8 = param_1[4];
      uVar7 = FUN_001e5180(sVar6 + 1);
      iVar2 = *(int *)(param_2 + 0x10);
      *(undefined4 *)(iVar8 + iVar4) = uVar7;
      puVar1 = (undefined4 *)(iVar2 + iVar4);
      puVar5 = (undefined4 *)(param_1[4] + iVar4);
      iVar4 = iVar4 + 4;
      memcpy((void *)*puVar5,(void *)*puVar1,sVar6 + 1);
    } while (iVar4 != 0x30);
    return;
  }
  iVar8 = 0;
  do {
    iVar2 = *(int *)(*(int *)(param_2 + 0xc) + iVar8 * 4);
    *(int *)(iVar4 + iVar8 * 4) = iVar2;
    if (iVar2 == 0) {
LAB_001e9675:
      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;
    }
    else {
      if (puVar3 != (undefined *)0x0) {
        LOCK();
        *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
        UNLOCK();
        goto LAB_001e9675;
      }
      *(int *)(iVar2 + 4) = *(int *)(iVar2 + 4) + 1;
      if ((uint)param_1[2] <= iVar8 + 1U) goto LAB_001e96a3;
    }
    iVar8 = iVar8 + 1;
    iVar4 = param_1[3];
  } while( true );
LAB_001e962d:
  uVar9 = uVar10 * 4;
  if (0x1fffffff < uVar10) {
    uVar9 = 0xffffffff;
  }
  goto LAB_001e9642;
}

