
/* std::locale::_Impl::_Impl(std::locale::_Impl const&, unsigned long) */

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

{
  undefined8 *puVar1;
  long lVar2;
  void *pvVar3;
  undefined8 *puVar4;
  size_t sVar5;
  long lVar6;
  ulong uVar7;
  ulong uVar8;
  
  uVar7 = *(ulong *)(param_1 + 0x10);
  *(int *)this = (int)param_2;
  *(ulong *)(this + 0x10) = uVar7;
  *(undefined8 *)(this + 8) = 0;
  *(undefined8 *)(this + 0x18) = 0;
  *(undefined8 *)(this + 0x20) = 0;
  uVar8 = uVar7 * 8;
  if (0xfffffffffffffff < uVar7) {
    uVar8 = 0xffffffffffffffff;
  }
                    /* try { // try from 002a4f50 to 002a507d has its CatchHandler @ 002a50ad */
  pvVar3 = operator_new__(uVar8);
  uVar7 = *(ulong *)(this + 0x10);
  *(void **)(this + 8) = pvVar3;
  uVar8 = uVar7;
  if (uVar7 != 0) {
    lVar6 = 0;
    do {
      lVar2 = *(long *)(*(long *)(param_1 + 8) + lVar6 * 8);
      *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;
      if (lVar2 == 0) {
LAB_002a4f79:
        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;
      }
      else {
        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {
          LOCK();
          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
          UNLOCK();
          uVar7 = *(ulong *)(this + 0x10);
          goto LAB_002a4f79;
        }
        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;
      }
      lVar6 = lVar6 + 1;
      pvVar3 = *(void **)(this + 8);
    } while( true );
  }
LAB_002a4fcf:
  pvVar3 = operator_new__(uVar8);
  *(void **)(this + 0x18) = pvVar3;
  if (*(long *)(this + 0x10) == 0) {
LAB_002a5025:
    puVar4 = (undefined8 *)operator_new__(0x60);
    *(undefined8 **)(this + 0x20) = puVar4;
    puVar1 = puVar4 + 0xc;
    do {
      *puVar4 = 0;
      puVar4 = puVar4 + 1;
    } while (puVar1 != puVar4);
    lVar6 = 0;
    do {
      if (*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0) {
        return;
      }
      sVar5 = strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6));
      lVar2 = *(long *)(this + 0x20);
      pvVar3 = operator_new__(sVar5 + 1);
      *(void **)(lVar2 + lVar6) = pvVar3;
      puVar1 = (undefined8 *)(*(long *)(this + 0x20) + lVar6);
      puVar4 = (undefined8 *)(*(long *)(param_1 + 0x20) + lVar6);
      lVar6 = lVar6 + 8;
      memcpy((void *)*puVar1,(void *)*puVar4,sVar5 + 1);
    } while (lVar6 != 0x60);
    return;
  }
  lVar6 = 0;
  do {
    lVar2 = *(long *)(*(long *)(param_1 + 0x18) + lVar6 * 8);
    *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;
    if (lVar2 == 0) {
LAB_002a4fed:
      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;
    }
    else {
      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {
        LOCK();
        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
        UNLOCK();
        goto LAB_002a4fed;
      }
      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;
    }
    lVar6 = lVar6 + 1;
    pvVar3 = *(void **)(this + 0x18);
  } while( true );
LAB_002a4faf:
  uVar8 = uVar7 * 8;
  if (0xfffffffffffffff < uVar7) {
    uVar8 = 0xffffffffffffffff;
  }
  goto LAB_002a4fcf;
}



void FUN_002a4f00(undefined4 *param_1,long param_2,undefined4 param_3)

{
  undefined8 *puVar1;
  long lVar2;
  char *__s;
  undefined8 *puVar3;
  size_t sVar4;
  undefined8 uVar5;
  long lVar6;
  ulong uVar7;
  long lVar8;
  ulong uVar9;
  
  uVar9 = *(ulong *)(param_2 + 0x10);
  *param_1 = param_3;
  *(ulong *)(param_1 + 4) = uVar9;
  *(undefined8 *)(param_1 + 2) = 0;
  *(undefined8 *)(param_1 + 6) = 0;
  *(undefined8 *)(param_1 + 8) = 0;
  lVar8 = uVar9 * 8;
  if (0xfffffffffffffff < uVar9) {
    lVar8 = -1;
  }
                    /* try { // try from 002a4f50 to 002a507d has its CatchHandler @ 002a50ad */
  lVar8 = thunk_FUN_002a11b0(lVar8);
  uVar7 = *(ulong *)(param_1 + 4);
  *(long *)(param_1 + 2) = lVar8;
  uVar9 = uVar7;
  if (uVar7 != 0) {
    lVar6 = 0;
    do {
      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);
      *(long *)(lVar8 + lVar6 * 8) = lVar2;
      if (lVar2 == 0) {
LAB_002a4f79:
        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;
      }
      else {
        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {
          LOCK();
          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
          UNLOCK();
          uVar7 = *(ulong *)(param_1 + 4);
          goto LAB_002a4f79;
        }
        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;
      }
      lVar6 = lVar6 + 1;
      lVar8 = *(long *)(param_1 + 2);
    } while( true );
  }
LAB_002a4fcf:
  lVar8 = thunk_FUN_002a11b0(uVar9);
  *(long *)(param_1 + 6) = lVar8;
  if (*(long *)(param_1 + 4) == 0) {
LAB_002a5025:
    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);
    *(undefined8 **)(param_1 + 8) = puVar3;
    puVar1 = puVar3 + 0xc;
    do {
      *puVar3 = 0;
      puVar3 = puVar3 + 1;
    } while (puVar1 != puVar3);
    lVar8 = 0;
    do {
      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);
      if (__s == (char *)0x0) {
        return;
      }
      sVar4 = strlen(__s);
      lVar6 = *(long *)(param_1 + 8);
      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);
      *(undefined8 *)(lVar6 + lVar8) = uVar5;
      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);
      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);
      lVar8 = lVar8 + 8;
      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);
    } while (lVar8 != 0x60);
    return;
  }
  lVar6 = 0;
  do {
    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);
    *(long *)(lVar8 + lVar6 * 8) = lVar2;
    if (lVar2 == 0) {
LAB_002a4fed:
      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;
    }
    else {
      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {
        LOCK();
        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
        UNLOCK();
        goto LAB_002a4fed;
      }
      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;
    }
    lVar6 = lVar6 + 1;
    lVar8 = *(long *)(param_1 + 6);
  } while( true );
LAB_002a4faf:
  uVar9 = uVar7 * 8;
  if (0xfffffffffffffff < uVar7) {
    uVar9 = 0xffffffffffffffff;
  }
  goto LAB_002a4fcf;
}


PUSH R14
PUSH R13
PUSH R12
MOV R12,RSI
PUSH RBP
PUSH RBX
MOV RAX,qword ptr [RSI + 0x10]
MOV RBX,RDI
MOV dword ptr [RDI],EDX
MOV RDX,0xfffffffffffffff
MOV qword ptr [RDI + 0x10],RAX
CMP RAX,RDX
MOV qword ptr [RDI + 0x8],0x0
MOV qword ptr [RDI + 0x18],0x0
MOV qword ptr [RDI + 0x20],0x0
LEA RDI,[RAX*0x8]
MOV RAX,-0x1
CMOVA RDI,RAX
CALL 0x002a1150
MOV RSI,qword ptr [RBX + 0x10]
MOV qword ptr [RBX + 0x8],RAX
MOV RDI,RSI
TEST RSI,RSI
JZ 0x002a4fcf
XOR EDX,EDX
JMP 0x002a4f86
ADD.LOCK dword ptr [RCX + 0x8],0x1
MOV RSI,qword ptr [RBX + 0x10]
ADD RDX,0x1
CMP RSI,RDX
JBE 0x002a4faf
MOV RAX,qword ptr [RBX + 0x8]
MOV RCX,qword ptr [R12 + 0x8]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV qword ptr [RAX + RDX*0x8],RCX
TEST RCX,RCX
JZ 0x002a4f79
CMP qword ptr [0x003f7ee8],0x0
JNZ 0x002a4f70
ADD RDX,0x1
ADD dword ptr [RCX + 0x8],0x1
CMP RSI,RDX
JA 0x002a4f82
MOV RAX,0xfffffffffffffff
LEA RDI,[RSI*0x8]
CMP RSI,RAX
MOV RAX,-0x1
CMOVA RDI,RAX
CALL 0x002a1150
CMP qword ptr [RBX + 0x10],0x0
MOV qword ptr [RBX + 0x18],RAX
JZ 0x002a5025
XOR EDX,EDX
JMP 0x002a4ffb
ADD.LOCK dword ptr [RCX + 0x8],0x1
ADD RDX,0x1
CMP qword ptr [RBX + 0x10],RDX
JBE 0x002a5025
MOV RAX,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [R12 + 0x18]
MOV RCX,qword ptr [RCX + RDX*0x8]
MOV qword ptr [RAX + RDX*0x8],RCX
TEST RCX,RCX
JZ 0x002a4fed
CMP qword ptr [0x003f7ee8],0x0
JNZ 0x002a4fe8
ADD dword ptr [RCX + 0x8],0x1
ADD RDX,0x1
CMP qword ptr [RBX + 0x10],RDX
JA 0x002a4ff7
MOV EDI,0x60
CALL 0x002a1150
MOV qword ptr [RBX + 0x20],RAX
LEA RDX,[RAX + 0x60]
NOP word ptr [RAX + RAX*0x1]
MOV qword ptr [RAX],0x0
ADD RAX,0x8
CMP RDX,RAX
JNZ 0x002a5040
XOR EBP,EBP
NOP word ptr [RAX + RAX*0x1]
MOV RAX,qword ptr [R12 + 0x20]
MOV RDI,qword ptr [RAX + RBP*0x1]
TEST RDI,RDI
JZ 0x002a50a4
CALL 0x00144490
MOV R14,qword ptr [RBX + 0x20]
LEA R13,[RAX + 0x1]
MOV RDI,R13
ADD R14,RBP
CALL 0x002a1150
MOV qword ptr [R14],RAX
MOV RAX,qword ptr [RBX + 0x20]
MOV RDX,R13
MOV RDI,qword ptr [RAX + RBP*0x1]
MOV RAX,qword ptr [R12 + 0x20]
MOV RSI,qword ptr [RAX + RBP*0x1]
ADD RBP,0x8
CALL 0x00144a90
CMP RBP,0x60
JNZ 0x002a5058
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
(translation_unit "void FUN_002a4f00(undefined4 *param_1,long param_2,undefined4 param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  char *__s;\n  undefined8 *puVar3;\n  size_t sVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  long lVar8;\n  ulong uVar9;\n  \n  uVar9 = *(ulong *)(param_2 + 0x10);\n  *param_1 = param_3;\n  *(ulong *)(param_1 + 4) = uVar9;\n  *(undefined8 *)(param_1 + 2) = 0;\n  *(undefined8 *)(param_1 + 6) = 0;\n  *(undefined8 *)(param_1 + 8) = 0;\n  lVar8 = uVar9 * 8;\n  if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }\n                    /* try { // try from 002a4f50 to 002a507d has its CatchHandler @ 002a50ad */\n  lVar8 = thunk_FUN_002a11b0(lVar8);\n  uVar7 = *(ulong *)(param_1 + 4);\n  *(long *)(param_1 + 2) = lVar8;\n  uVar9 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }\nLAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);\n  *(long *)(param_1 + 6) = lVar8;\n  if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );\nLAB_002a4faf:\n  uVar9 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}\n\n" (function_definition "void FUN_002a4f00(undefined4 *param_1,long param_2,undefined4 param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  char *__s;\n  undefined8 *puVar3;\n  size_t sVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  long lVar8;\n  ulong uVar9;\n  \n  uVar9 = *(ulong *)(param_2 + 0x10);\n  *param_1 = param_3;\n  *(ulong *)(param_1 + 4) = uVar9;\n  *(undefined8 *)(param_1 + 2) = 0;\n  *(undefined8 *)(param_1 + 6) = 0;\n  *(undefined8 *)(param_1 + 8) = 0;\n  lVar8 = uVar9 * 8;\n  if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }\n                    /* try { // try from 002a4f50 to 002a507d has its CatchHandler @ 002a50ad */\n  lVar8 = thunk_FUN_002a11b0(lVar8);\n  uVar7 = *(ulong *)(param_1 + 4);\n  *(long *)(param_1 + 2) = lVar8;\n  uVar9 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }\nLAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);\n  *(long *)(param_1 + 6) = lVar8;\n  if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );\nLAB_002a4faf:\n  uVar9 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}" primitive_type (function_declarator "FUN_002a4f00(undefined4 *param_1,long param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,long param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  char *__s;\n  undefined8 *puVar3;\n  size_t sVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  long lVar8;\n  ulong uVar9;\n  \n  uVar9 = *(ulong *)(param_2 + 0x10);\n  *param_1 = param_3;\n  *(ulong *)(param_1 + 4) = uVar9;\n  *(undefined8 *)(param_1 + 2) = 0;\n  *(undefined8 *)(param_1 + 6) = 0;\n  *(undefined8 *)(param_1 + 8) = 0;\n  lVar8 = uVar9 * 8;\n  if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }\n                    /* try { // try from 002a4f50 to 002a507d has its CatchHandler @ 002a50ad */\n  lVar8 = thunk_FUN_002a11b0(lVar8);\n  uVar7 = *(ulong *)(param_1 + 4);\n  *(long *)(param_1 + 2) = lVar8;\n  uVar9 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }\nLAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);\n  *(long *)(param_1 + 6) = lVar8;\n  if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );\nLAB_002a4faf:\n  uVar9 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (expression_statement "uVar9 = *(ulong *)(param_2 + 0x10);" (assignment_expression "uVar9 = *(ulong *)(param_2 + 0x10)" identifier = (pointer_expression "*(ulong *)(param_2 + 0x10)" * (cast_expression "(ulong *)(param_2 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(ulong *)(param_1 + 4) = uVar9;" (assignment_expression "*(ulong *)(param_1 + 4) = uVar9" (pointer_expression "*(ulong *)(param_1 + 4)" * (cast_expression "(ulong *)(param_1 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 2) = 0" (pointer_expression "*(undefined8 *)(param_1 + 2)" * (cast_expression "(undefined8 *)(param_1 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 6) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 6) = 0" (pointer_expression "*(undefined8 *)(param_1 + 6)" * (cast_expression "(undefined8 *)(param_1 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 8) = 0" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar8 = uVar9 * 8;" (assignment_expression "lVar8 = uVar9 * 8" identifier = (binary_expression "uVar9 * 8" identifier * number_literal)) ;) (if_statement "if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }" if (parenthesized_expression "(0xfffffffffffffff < uVar9)" ( (binary_expression "0xfffffffffffffff < uVar9" number_literal < identifier) )) (compound_statement "{\n    lVar8 = -1;\n  }" { (expression_statement "lVar8 = -1;" (assignment_expression "lVar8 = -1" identifier = number_literal) ;) })) comment (expression_statement "lVar8 = thunk_FUN_002a11b0(lVar8);" (assignment_expression "lVar8 = thunk_FUN_002a11b0(lVar8)" identifier = (call_expression "thunk_FUN_002a11b0(lVar8)" identifier (argument_list "(lVar8)" ( identifier )))) ;) (expression_statement "uVar7 = *(ulong *)(param_1 + 4);" (assignment_expression "uVar7 = *(ulong *)(param_1 + 4)" identifier = (pointer_expression "*(ulong *)(param_1 + 4)" * (cast_expression "(ulong *)(param_1 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 2) = lVar8;" (assignment_expression "*(long *)(param_1 + 2) = lVar8" (pointer_expression "*(long *)(param_1 + 2)" * (cast_expression "(long *)(param_1 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar9 = uVar7;" (assignment_expression "uVar9 = uVar7" identifier = identifier) ;) (if_statement "if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }" { (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );" do (compound_statement "{\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    }" { (expression_statement "lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8)" identifier = (pointer_expression "*(long *)(*(long *)(param_2 + 8) + lVar6 * 8)" * (cast_expression "(long *)(*(long *)(param_2 + 8) + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 8) + lVar6 * 8)" ( (binary_expression "*(long *)(param_2 + 8) + lVar6 * 8" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) + (binary_expression "lVar6 * 8" identifier * number_literal)) ))))) ;) (expression_statement "*(long *)(lVar8 + lVar6 * 8) = lVar2;" (assignment_expression "*(long *)(lVar8 + lVar6 * 8) = lVar2" (pointer_expression "*(long *)(lVar8 + lVar6 * 8)" * (cast_expression "(long *)(lVar8 + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + lVar6 * 8)" ( (binary_expression "lVar8 + lVar6 * 8" identifier + (binary_expression "lVar6 * 8" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" { (labeled_statement "LAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" statement_identifier : (if_statement "if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" if (parenthesized_expression "(uVar7 <= lVar6 + 1U)" ( (binary_expression "uVar7 <= lVar6 + 1U" identifier <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a4faf;" goto statement_identifier ;))) }) (else_clause "else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" else (compound_statement "{\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" { (if_statement "if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }" if (parenthesized_expression "(PTR___pthread_key_create_003f7ee8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003f7ee8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar7 = *(ulong *)(param_1 + 4);" (assignment_expression "uVar7 = *(ulong *)(param_1 + 4)" identifier = (pointer_expression "*(ulong *)(param_1 + 4)" * (cast_expression "(ulong *)(param_1 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_002a4f79;" goto statement_identifier ;) })) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" if (parenthesized_expression "(uVar7 <= lVar6 + 1U)" ( (binary_expression "uVar7 <= lVar6 + 1U" identifier <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a4faf;" goto statement_identifier ;)) }))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "lVar8 = *(long *)(param_1 + 2);" (assignment_expression "lVar8 = *(long *)(param_1 + 2)" identifier = (pointer_expression "*(long *)(param_1 + 2)" * (cast_expression "(long *)(param_1 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);" statement_identifier : (expression_statement "lVar8 = thunk_FUN_002a11b0(uVar9);" (assignment_expression "lVar8 = thunk_FUN_002a11b0(uVar9)" identifier = (call_expression "thunk_FUN_002a11b0(uVar9)" identifier (argument_list "(uVar9)" ( identifier )))) ;)) (expression_statement "*(long *)(param_1 + 6) = lVar8;" (assignment_expression "*(long *)(param_1 + 6) = lVar8" (pointer_expression "*(long *)(param_1 + 6)" * (cast_expression "(long *)(param_1 + 6)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 4) == 0)" ( (binary_expression "*(long *)(param_1 + 4) == 0" (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }" { (labeled_statement "LAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);" statement_identifier : (expression_statement "puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);" (assignment_expression "puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60)" identifier = (cast_expression "(undefined8 *)thunk_FUN_002a11b0(0x60)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002a11b0(0x60)" identifier (argument_list "(0x60)" ( number_literal ))))) ;)) (expression_statement "*(undefined8 **)(param_1 + 8) = puVar3;" (assignment_expression "*(undefined8 **)(param_1 + 8) = puVar3" (pointer_expression "*(undefined8 **)(param_1 + 8)" * (cast_expression "(undefined8 **)(param_1 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1 = puVar3 + 0xc;" (assignment_expression "puVar1 = puVar3 + 0xc" identifier = (binary_expression "puVar3 + 0xc" identifier + number_literal)) ;) (do_statement "do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);" do (compound_statement "{\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != puVar3)" ( (binary_expression "puVar1 != puVar3" identifier != identifier) )) ;) (expression_statement "lVar8 = 0;" (assignment_expression "lVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);" do (compound_statement "{\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    }" { (expression_statement "__s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);" (assignment_expression "__s = *(char **)(*(long *)(param_2 + 0x20) + lVar8)" identifier = (pointer_expression "*(char **)(*(long *)(param_2 + 0x20) + lVar8)" * (cast_expression "(char **)(*(long *)(param_2 + 0x20) + lVar8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_2 + 0x20) + lVar8)" ( (binary_expression "*(long *)(param_2 + 0x20) + lVar8" (pointer_expression "*(long *)(param_2 + 0x20)" * (cast_expression "(long *)(param_2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" 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 "sVar4 = strlen(__s);" (assignment_expression "sVar4 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "lVar6 = *(long *)(param_1 + 8);" (assignment_expression "lVar6 = *(long *)(param_1 + 8)" identifier = (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = thunk_FUN_002a11b0(sVar4 + 1);" (assignment_expression "uVar5 = thunk_FUN_002a11b0(sVar4 + 1)" identifier = (call_expression "thunk_FUN_002a11b0(sVar4 + 1)" identifier (argument_list "(sVar4 + 1)" ( (binary_expression "sVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "*(undefined8 *)(lVar6 + lVar8) = uVar5;" (assignment_expression "*(undefined8 *)(lVar6 + lVar8) = uVar5" (pointer_expression "*(undefined8 *)(lVar6 + lVar8)" * (cast_expression "(undefined8 *)(lVar6 + lVar8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + lVar8)" ( (binary_expression "lVar6 + lVar8" identifier + identifier) )))) = identifier) ;) (expression_statement "puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);" (assignment_expression "puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8)" identifier = (cast_expression "(undefined8 *)(*(long *)(param_1 + 8) + lVar8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + lVar8)" ( (binary_expression "*(long *)(param_1 + 8) + lVar8" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);" (assignment_expression "puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8)" identifier = (cast_expression "(undefined8 *)(*(long *)(param_2 + 0x20) + lVar8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0x20) + lVar8)" ( (binary_expression "*(long *)(param_2 + 0x20) + lVar8" (pointer_expression "*(long *)(param_2 + 0x20)" * (cast_expression "(long *)(param_2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "lVar8 = lVar8 + 8;" (assignment_expression "lVar8 = lVar8 + 8" identifier = (binary_expression "lVar8 + 8" identifier + number_literal)) ;) (expression_statement "memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);" (call_expression "memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1)" identifier (argument_list "((void *)*puVar1,(void *)*puVar3,sVar4 + 1)" ( (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , (cast_expression "(void *)*puVar3" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) , (binary_expression "sVar4 + 1" identifier + number_literal) ))) ;) }) while (parenthesized_expression "(lVar8 != 0x60)" ( (binary_expression "lVar8 != 0x60" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );" do (compound_statement "{\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  }" { (expression_statement "lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8)" identifier = (pointer_expression "*(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8)" * (cast_expression "(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0x18) + lVar6 * 8)" ( (binary_expression "*(long *)(param_2 + 0x18) + lVar6 * 8" (pointer_expression "*(long *)(param_2 + 0x18)" * (cast_expression "(long *)(param_2 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + (binary_expression "lVar6 * 8" identifier * number_literal)) ))))) ;) (expression_statement "*(long *)(lVar8 + lVar6 * 8) = lVar2;" (assignment_expression "*(long *)(lVar8 + lVar6 * 8) = lVar2" (pointer_expression "*(long *)(lVar8 + lVar6 * 8)" * (cast_expression "(long *)(lVar8 + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + lVar6 * 8)" ( (binary_expression "lVar8 + lVar6 * 8" identifier + (binary_expression "lVar6 * 8" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" { (labeled_statement "LAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;" statement_identifier : (if_statement "if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;" if (parenthesized_expression "(*(ulong *)(param_1 + 4) <= lVar6 + 1U)" ( (binary_expression "*(ulong *)(param_1 + 4) <= lVar6 + 1U" (pointer_expression "*(ulong *)(param_1 + 4)" * (cast_expression "(ulong *)(param_1 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a5025;" goto statement_identifier ;))) }) (else_clause "else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" else (compound_statement "{\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" { (if_statement "if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003f7ee8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003f7ee8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_002a4fed;" goto statement_identifier ;) })) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;" if (parenthesized_expression "(*(ulong *)(param_1 + 4) <= lVar6 + 1U)" ( (binary_expression "*(ulong *)(param_1 + 4) <= lVar6 + 1U" (pointer_expression "*(ulong *)(param_1 + 4)" * (cast_expression "(ulong *)(param_1 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a5025;" goto statement_identifier ;)) }))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "lVar8 = *(long *)(param_1 + 6);" (assignment_expression "lVar8 = *(long *)(param_1 + 6)" identifier = (pointer_expression "*(long *)(param_1 + 6)" * (cast_expression "(long *)(param_1 + 6)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (labeled_statement "LAB_002a4faf:\n  uVar9 = uVar7 * 8;" statement_identifier : (expression_statement "uVar9 = uVar7 * 8;" (assignment_expression "uVar9 = uVar7 * 8" identifier = (binary_expression "uVar7 * 8" identifier * number_literal)) ;)) (if_statement "if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }" if (parenthesized_expression "(0xfffffffffffffff < uVar7)" ( (binary_expression "0xfffffffffffffff < uVar7" number_literal < identifier) )) (compound_statement "{\n    uVar9 = 0xffffffffffffffff;\n  }" { (expression_statement "uVar9 = 0xffffffffffffffff;" (assignment_expression "uVar9 = 0xffffffffffffffff" identifier = number_literal) ;) })) (goto_statement "goto LAB_002a4fcf;" goto statement_identifier ;) })))
(translation_unit "/* std::locale::_Impl::_Impl(std::locale::_Impl const&, unsigned long) */\n\nvoid __thiscall std::locale::_Impl::_Impl(_Impl *this,_Impl *param_1,ulong param_2)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  void *pvVar3;\n  undefined8 *puVar4;\n  size_t sVar5;\n  long lVar6;\n  ulong uVar7;\n  ulong uVar8;\n  \n  uVar7 = *(ulong *)(param_1 + 0x10);\n  *(int *)this = (int)param_2;\n  *(ulong *)(this + 0x10) = uVar7;\n  *(undefined8 *)(this + 8) = 0;\n  *(undefined8 *)(this + 0x18) = 0;\n  *(undefined8 *)(this + 0x20) = 0;\n  uVar8 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar8 = 0xffffffffffffffff;\n  }\n                    /* try { // try from 002a4f50 to 002a507d has its CatchHandler @ 002a50ad */\n  pvVar3 = operator_new__(uVar8);\n  uVar7 = *(ulong *)(this + 0x10);\n  *(void **)(this + 8) = pvVar3;\n  uVar8 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_1 + 8) + lVar6 * 8);\n      *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      pvVar3 = *(void **)(this + 8);\n    } while( true );\n  }\nLAB_002a4fcf:\n  pvVar3 = operator_new__(uVar8);\n  *(void **)(this + 0x18) = pvVar3;\n  if (*(long *)(this + 0x10) == 0) {\nLAB_002a5025:\n    puVar4 = (undefined8 *)operator_new__(0x60);\n    *(undefined8 **)(this + 0x20) = puVar4;\n    puVar1 = puVar4 + 0xc;\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar1 != puVar4);\n    lVar6 = 0;\n    do {\n      if (*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0) {\n        return;\n      }\n      sVar5 = strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6));\n      lVar2 = *(long *)(this + 0x20);\n      pvVar3 = operator_new__(sVar5 + 1);\n      *(void **)(lVar2 + lVar6) = pvVar3;\n      puVar1 = (undefined8 *)(*(long *)(this + 0x20) + lVar6);\n      puVar4 = (undefined8 *)(*(long *)(param_1 + 0x20) + lVar6);\n      lVar6 = lVar6 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar4,sVar5 + 1);\n    } while (lVar6 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_1 + 0x18) + lVar6 * 8);\n    *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    pvVar3 = *(void **)(this + 0x18);\n  } while( true );\nLAB_002a4faf:\n  uVar8 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar8 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}\n\n" comment (function_definition "void __thiscall std::locale::_Impl::_Impl(_Impl *this,_Impl *param_1,ulong param_2)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  void *pvVar3;\n  undefined8 *puVar4;\n  size_t sVar5;\n  long lVar6;\n  ulong uVar7;\n  ulong uVar8;\n  \n  uVar7 = *(ulong *)(param_1 + 0x10);\n  *(int *)this = (int)param_2;\n  *(ulong *)(this + 0x10) = uVar7;\n  *(undefined8 *)(this + 8) = 0;\n  *(undefined8 *)(this + 0x18) = 0;\n  *(undefined8 *)(this + 0x20) = 0;\n  uVar8 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar8 = 0xffffffffffffffff;\n  }\n                    /* try { // try from 002a4f50 to 002a507d has its CatchHandler @ 002a50ad */\n  pvVar3 = operator_new__(uVar8);\n  uVar7 = *(ulong *)(this + 0x10);\n  *(void **)(this + 8) = pvVar3;\n  uVar8 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_1 + 8) + lVar6 * 8);\n      *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      pvVar3 = *(void **)(this + 8);\n    } while( true );\n  }\nLAB_002a4fcf:\n  pvVar3 = operator_new__(uVar8);\n  *(void **)(this + 0x18) = pvVar3;\n  if (*(long *)(this + 0x10) == 0) {\nLAB_002a5025:\n    puVar4 = (undefined8 *)operator_new__(0x60);\n    *(undefined8 **)(this + 0x20) = puVar4;\n    puVar1 = puVar4 + 0xc;\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar1 != puVar4);\n    lVar6 = 0;\n    do {\n      if (*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0) {\n        return;\n      }\n      sVar5 = strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6));\n      lVar2 = *(long *)(this + 0x20);\n      pvVar3 = operator_new__(sVar5 + 1);\n      *(void **)(lVar2 + lVar6) = pvVar3;\n      puVar1 = (undefined8 *)(*(long *)(this + 0x20) + lVar6);\n      puVar4 = (undefined8 *)(*(long *)(param_1 + 0x20) + lVar6);\n      lVar6 = lVar6 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar4,sVar5 + 1);\n    } while (lVar6 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_1 + 0x18) + lVar6 * 8);\n    *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    pvVar3 = *(void **)(this + 0x18);\n  } while( true );\nLAB_002a4faf:\n  uVar8 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar8 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::locale::_Impl::" identifier : : identifier : : identifier : :) (function_declarator "_Impl(_Impl *this,_Impl *param_1,ulong param_2)" identifier (parameter_list "(_Impl *this,_Impl *param_1,ulong 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 "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  void *pvVar3;\n  undefined8 *puVar4;\n  size_t sVar5;\n  long lVar6;\n  ulong uVar7;\n  ulong uVar8;\n  \n  uVar7 = *(ulong *)(param_1 + 0x10);\n  *(int *)this = (int)param_2;\n  *(ulong *)(this + 0x10) = uVar7;\n  *(undefined8 *)(this + 8) = 0;\n  *(undefined8 *)(this + 0x18) = 0;\n  *(undefined8 *)(this + 0x20) = 0;\n  uVar8 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar8 = 0xffffffffffffffff;\n  }\n                    /* try { // try from 002a4f50 to 002a507d has its CatchHandler @ 002a50ad */\n  pvVar3 = operator_new__(uVar8);\n  uVar7 = *(ulong *)(this + 0x10);\n  *(void **)(this + 8) = pvVar3;\n  uVar8 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_1 + 8) + lVar6 * 8);\n      *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      pvVar3 = *(void **)(this + 8);\n    } while( true );\n  }\nLAB_002a4fcf:\n  pvVar3 = operator_new__(uVar8);\n  *(void **)(this + 0x18) = pvVar3;\n  if (*(long *)(this + 0x10) == 0) {\nLAB_002a5025:\n    puVar4 = (undefined8 *)operator_new__(0x60);\n    *(undefined8 **)(this + 0x20) = puVar4;\n    puVar1 = puVar4 + 0xc;\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar1 != puVar4);\n    lVar6 = 0;\n    do {\n      if (*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0) {\n        return;\n      }\n      sVar5 = strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6));\n      lVar2 = *(long *)(this + 0x20);\n      pvVar3 = operator_new__(sVar5 + 1);\n      *(void **)(lVar2 + lVar6) = pvVar3;\n      puVar1 = (undefined8 *)(*(long *)(this + 0x20) + lVar6);\n      puVar4 = (undefined8 *)(*(long *)(param_1 + 0x20) + lVar6);\n      lVar6 = lVar6 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar4,sVar5 + 1);\n    } while (lVar6 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_1 + 0x18) + lVar6 * 8);\n    *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    pvVar3 = *(void **)(this + 0x18);\n  } while( true );\nLAB_002a4faf:\n  uVar8 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar8 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (expression_statement "uVar7 = *(ulong *)(param_1 + 0x10);" (assignment_expression "uVar7 = *(ulong *)(param_1 + 0x10)" identifier = (pointer_expression "*(ulong *)(param_1 + 0x10)" * (cast_expression "(ulong *)(param_1 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(int *)this = (int)param_2;" (assignment_expression "*(int *)this = (int)param_2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(ulong *)(this + 0x10) = uVar7;" (assignment_expression "*(ulong *)(this + 0x10) = uVar7" (pointer_expression "*(ulong *)(this + 0x10)" * (cast_expression "(ulong *)(this + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 8) = 0;" (assignment_expression "*(undefined8 *)(this + 8) = 0" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x18) = 0;" (assignment_expression "*(undefined8 *)(this + 0x18) = 0" (pointer_expression "*(undefined8 *)(this + 0x18)" * (cast_expression "(undefined8 *)(this + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x20) = 0;" (assignment_expression "*(undefined8 *)(this + 0x20) = 0" (pointer_expression "*(undefined8 *)(this + 0x20)" * (cast_expression "(undefined8 *)(this + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar8 = uVar7 * 8;" (assignment_expression "uVar8 = uVar7 * 8" identifier = (binary_expression "uVar7 * 8" identifier * number_literal)) ;) (if_statement "if (0xfffffffffffffff < uVar7) {\n    uVar8 = 0xffffffffffffffff;\n  }" if (parenthesized_expression "(0xfffffffffffffff < uVar7)" ( (binary_expression "0xfffffffffffffff < uVar7" number_literal < identifier) )) (compound_statement "{\n    uVar8 = 0xffffffffffffffff;\n  }" { (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;) })) comment (expression_statement "pvVar3 = operator_new__(uVar8);" (assignment_expression "pvVar3 = operator_new__(uVar8)" identifier = (call_expression "operator_new__(uVar8)" identifier (argument_list "(uVar8)" ( identifier )))) ;) (expression_statement "uVar7 = *(ulong *)(this + 0x10);" (assignment_expression "uVar7 = *(ulong *)(this + 0x10)" identifier = (pointer_expression "*(ulong *)(this + 0x10)" * (cast_expression "(ulong *)(this + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(void **)(this + 8) = pvVar3;" (assignment_expression "*(void **)(this + 8) = pvVar3" (pointer_expression "*(void **)(this + 8)" * (cast_expression "(void **)(this + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = uVar7;" (assignment_expression "uVar8 = uVar7" identifier = identifier) ;) (if_statement "if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_1 + 8) + lVar6 * 8);\n      *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      pvVar3 = *(void **)(this + 8);\n    } while( true );\n  }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_1 + 8) + lVar6 * 8);\n      *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      pvVar3 = *(void **)(this + 8);\n    } while( true );\n  }" { (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      lVar2 = *(long *)(*(long *)(param_1 + 8) + lVar6 * 8);\n      *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      pvVar3 = *(void **)(this + 8);\n    } while( true );" do (compound_statement "{\n      lVar2 = *(long *)(*(long *)(param_1 + 8) + lVar6 * 8);\n      *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      pvVar3 = *(void **)(this + 8);\n    }" { (expression_statement "lVar2 = *(long *)(*(long *)(param_1 + 8) + lVar6 * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_1 + 8) + lVar6 * 8)" identifier = (pointer_expression "*(long *)(*(long *)(param_1 + 8) + lVar6 * 8)" * (cast_expression "(long *)(*(long *)(param_1 + 8) + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + lVar6 * 8)" ( (binary_expression "*(long *)(param_1 + 8) + lVar6 * 8" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "lVar6 * 8" identifier * number_literal)) ))))) ;) (expression_statement "*(long *)((long)pvVar3 + lVar6 * 8) = lVar2;" (assignment_expression "*(long *)((long)pvVar3 + lVar6 * 8) = lVar2" (pointer_expression "*(long *)((long)pvVar3 + lVar6 * 8)" * (cast_expression "(long *)((long)pvVar3 + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + lVar6 * 8)" ( (binary_expression "(long)pvVar3 + lVar6 * 8" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "lVar6 * 8" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" { (labeled_statement "LAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" statement_identifier : (if_statement "if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" if (parenthesized_expression "(uVar7 <= lVar6 + 1U)" ( (binary_expression "uVar7 <= lVar6 + 1U" identifier <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a4faf;" goto statement_identifier ;))) }) (else_clause "else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" else (compound_statement "{\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" { (if_statement "if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }" if (parenthesized_expression "(PTR___pthread_key_create_003f7ee8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003f7ee8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(this + 0x10);\n          goto LAB_002a4f79;\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar7 = *(ulong *)(this + 0x10);" (assignment_expression "uVar7 = *(ulong *)(this + 0x10)" identifier = (pointer_expression "*(ulong *)(this + 0x10)" * (cast_expression "(ulong *)(this + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_002a4f79;" goto statement_identifier ;) })) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" if (parenthesized_expression "(uVar7 <= lVar6 + 1U)" ( (binary_expression "uVar7 <= lVar6 + 1U" identifier <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a4faf;" goto statement_identifier ;)) }))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "pvVar3 = *(void **)(this + 8);" (assignment_expression "pvVar3 = *(void **)(this + 8)" identifier = (pointer_expression "*(void **)(this + 8)" * (cast_expression "(void **)(this + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_002a4fcf:\n  pvVar3 = operator_new__(uVar8);" statement_identifier : (expression_statement "pvVar3 = operator_new__(uVar8);" (assignment_expression "pvVar3 = operator_new__(uVar8)" identifier = (call_expression "operator_new__(uVar8)" identifier (argument_list "(uVar8)" ( identifier )))) ;)) (expression_statement "*(void **)(this + 0x18) = pvVar3;" (assignment_expression "*(void **)(this + 0x18) = pvVar3" (pointer_expression "*(void **)(this + 0x18)" * (cast_expression "(void **)(this + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(long *)(this + 0x10) == 0) {\nLAB_002a5025:\n    puVar4 = (undefined8 *)operator_new__(0x60);\n    *(undefined8 **)(this + 0x20) = puVar4;\n    puVar1 = puVar4 + 0xc;\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar1 != puVar4);\n    lVar6 = 0;\n    do {\n      if (*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0) {\n        return;\n      }\n      sVar5 = strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6));\n      lVar2 = *(long *)(this + 0x20);\n      pvVar3 = operator_new__(sVar5 + 1);\n      *(void **)(lVar2 + lVar6) = pvVar3;\n      puVar1 = (undefined8 *)(*(long *)(this + 0x20) + lVar6);\n      puVar4 = (undefined8 *)(*(long *)(param_1 + 0x20) + lVar6);\n      lVar6 = lVar6 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar4,sVar5 + 1);\n    } while (lVar6 != 0x60);\n    return;\n  }" if (parenthesized_expression "(*(long *)(this + 0x10) == 0)" ( (binary_expression "*(long *)(this + 0x10) == 0" (pointer_expression "*(long *)(this + 0x10)" * (cast_expression "(long *)(this + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_002a5025:\n    puVar4 = (undefined8 *)operator_new__(0x60);\n    *(undefined8 **)(this + 0x20) = puVar4;\n    puVar1 = puVar4 + 0xc;\n    do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar1 != puVar4);\n    lVar6 = 0;\n    do {\n      if (*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0) {\n        return;\n      }\n      sVar5 = strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6));\n      lVar2 = *(long *)(this + 0x20);\n      pvVar3 = operator_new__(sVar5 + 1);\n      *(void **)(lVar2 + lVar6) = pvVar3;\n      puVar1 = (undefined8 *)(*(long *)(this + 0x20) + lVar6);\n      puVar4 = (undefined8 *)(*(long *)(param_1 + 0x20) + lVar6);\n      lVar6 = lVar6 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar4,sVar5 + 1);\n    } while (lVar6 != 0x60);\n    return;\n  }" { (labeled_statement "LAB_002a5025:\n    puVar4 = (undefined8 *)operator_new__(0x60);" statement_identifier : (expression_statement "puVar4 = (undefined8 *)operator_new__(0x60);" (assignment_expression "puVar4 = (undefined8 *)operator_new__(0x60)" identifier = (cast_expression "(undefined8 *)operator_new__(0x60)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(0x60)" identifier (argument_list "(0x60)" ( number_literal ))))) ;)) (expression_statement "*(undefined8 **)(this + 0x20) = puVar4;" (assignment_expression "*(undefined8 **)(this + 0x20) = puVar4" (pointer_expression "*(undefined8 **)(this + 0x20)" * (cast_expression "(undefined8 **)(this + 0x20)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1 = puVar4 + 0xc;" (assignment_expression "puVar1 = puVar4 + 0xc" identifier = (binary_expression "puVar4 + 0xc" identifier + number_literal)) ;) (do_statement "do {\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    } while (puVar1 != puVar4);" do (compound_statement "{\n      *puVar4 = 0;\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != puVar4)" ( (binary_expression "puVar1 != puVar4" identifier != identifier) )) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0) {\n        return;\n      }\n      sVar5 = strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6));\n      lVar2 = *(long *)(this + 0x20);\n      pvVar3 = operator_new__(sVar5 + 1);\n      *(void **)(lVar2 + lVar6) = pvVar3;\n      puVar1 = (undefined8 *)(*(long *)(this + 0x20) + lVar6);\n      puVar4 = (undefined8 *)(*(long *)(param_1 + 0x20) + lVar6);\n      lVar6 = lVar6 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar4,sVar5 + 1);\n    } while (lVar6 != 0x60);" do (compound_statement "{\n      if (*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0) {\n        return;\n      }\n      sVar5 = strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6));\n      lVar2 = *(long *)(this + 0x20);\n      pvVar3 = operator_new__(sVar5 + 1);\n      *(void **)(lVar2 + lVar6) = pvVar3;\n      puVar1 = (undefined8 *)(*(long *)(this + 0x20) + lVar6);\n      puVar4 = (undefined8 *)(*(long *)(param_1 + 0x20) + lVar6);\n      lVar6 = lVar6 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar4,sVar5 + 1);\n    }" { (if_statement "if (*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0) {\n        return;\n      }" if (parenthesized_expression "(*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0)" ( (binary_expression "*(char **)(*(long *)(param_1 + 0x20) + lVar6) == (char *)0x0" (pointer_expression "*(char **)(*(long *)(param_1 + 0x20) + lVar6)" * (cast_expression "(char **)(*(long *)(param_1 + 0x20) + lVar6)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + lVar6)" ( (binary_expression "*(long *)(param_1 + 0x20) + lVar6" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" 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 "sVar5 = strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6));" (assignment_expression "sVar5 = strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6))" identifier = (call_expression "strlen(*(char **)(*(long *)(param_1 + 0x20) + lVar6))" identifier (argument_list "(*(char **)(*(long *)(param_1 + 0x20) + lVar6))" ( (pointer_expression "*(char **)(*(long *)(param_1 + 0x20) + lVar6)" * (cast_expression "(char **)(*(long *)(param_1 + 0x20) + lVar6)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + lVar6)" ( (binary_expression "*(long *)(param_1 + 0x20) + lVar6" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + identifier) )))) )))) ;) (expression_statement "lVar2 = *(long *)(this + 0x20);" (assignment_expression "lVar2 = *(long *)(this + 0x20)" identifier = (pointer_expression "*(long *)(this + 0x20)" * (cast_expression "(long *)(this + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) ))))) ;) (expression_statement "pvVar3 = operator_new__(sVar5 + 1);" (assignment_expression "pvVar3 = operator_new__(sVar5 + 1)" identifier = (call_expression "operator_new__(sVar5 + 1)" identifier (argument_list "(sVar5 + 1)" ( (binary_expression "sVar5 + 1" identifier + number_literal) )))) ;) (expression_statement "*(void **)(lVar2 + lVar6) = pvVar3;" (assignment_expression "*(void **)(lVar2 + lVar6) = pvVar3" (pointer_expression "*(void **)(lVar2 + lVar6)" * (cast_expression "(void **)(lVar2 + lVar6)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + lVar6)" ( (binary_expression "lVar2 + lVar6" identifier + identifier) )))) = identifier) ;) (expression_statement "puVar1 = (undefined8 *)(*(long *)(this + 0x20) + lVar6);" (assignment_expression "puVar1 = (undefined8 *)(*(long *)(this + 0x20) + lVar6)" identifier = (cast_expression "(undefined8 *)(*(long *)(this + 0x20) + lVar6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(this + 0x20) + lVar6)" ( (binary_expression "*(long *)(this + 0x20) + lVar6" (pointer_expression "*(long *)(this + 0x20)" * (cast_expression "(long *)(this + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "puVar4 = (undefined8 *)(*(long *)(param_1 + 0x20) + lVar6);" (assignment_expression "puVar4 = (undefined8 *)(*(long *)(param_1 + 0x20) + lVar6)" identifier = (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x20) + lVar6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x20) + lVar6)" ( (binary_expression "*(long *)(param_1 + 0x20) + lVar6" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "lVar6 = lVar6 + 8;" (assignment_expression "lVar6 = lVar6 + 8" identifier = (binary_expression "lVar6 + 8" identifier + number_literal)) ;) (expression_statement "memcpy((void *)*puVar1,(void *)*puVar4,sVar5 + 1);" (call_expression "memcpy((void *)*puVar1,(void *)*puVar4,sVar5 + 1)" identifier (argument_list "((void *)*puVar1,(void *)*puVar4,sVar5 + 1)" ( (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , (cast_expression "(void *)*puVar4" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier)) , (binary_expression "sVar5 + 1" identifier + number_literal) ))) ;) }) while (parenthesized_expression "(lVar6 != 0x60)" ( (binary_expression "lVar6 != 0x60" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n    lVar2 = *(long *)(*(long *)(param_1 + 0x18) + lVar6 * 8);\n    *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    pvVar3 = *(void **)(this + 0x18);\n  } while( true );" do (compound_statement "{\n    lVar2 = *(long *)(*(long *)(param_1 + 0x18) + lVar6 * 8);\n    *(long *)((long)pvVar3 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    pvVar3 = *(void **)(this + 0x18);\n  }" { (expression_statement "lVar2 = *(long *)(*(long *)(param_1 + 0x18) + lVar6 * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_1 + 0x18) + lVar6 * 8)" identifier = (pointer_expression "*(long *)(*(long *)(param_1 + 0x18) + lVar6 * 8)" * (cast_expression "(long *)(*(long *)(param_1 + 0x18) + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x18) + lVar6 * 8)" ( (binary_expression "*(long *)(param_1 + 0x18) + lVar6 * 8" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + (binary_expression "lVar6 * 8" identifier * number_literal)) ))))) ;) (expression_statement "*(long *)((long)pvVar3 + lVar6 * 8) = lVar2;" (assignment_expression "*(long *)((long)pvVar3 + lVar6 * 8) = lVar2" (pointer_expression "*(long *)((long)pvVar3 + lVar6 * 8)" * (cast_expression "(long *)((long)pvVar3 + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar3 + lVar6 * 8)" ( (binary_expression "(long)pvVar3 + lVar6 * 8" (cast_expression "(long)pvVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "lVar6 * 8" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002a4fed:\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }" { (labeled_statement "LAB_002a4fed:\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;" statement_identifier : (if_statement "if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;" if (parenthesized_expression "(*(ulong *)(this + 0x10) <= lVar6 + 1U)" ( (binary_expression "*(ulong *)(this + 0x10) <= lVar6 + 1U" (pointer_expression "*(ulong *)(this + 0x10)" * (cast_expression "(ulong *)(this + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a5025;" goto statement_identifier ;))) }) (else_clause "else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }" else (compound_statement "{\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;\n    }" { (if_statement "if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003f7ee8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003f7ee8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_002a4fed;" goto statement_identifier ;) })) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*(ulong *)(this + 0x10) <= lVar6 + 1U) goto LAB_002a5025;" if (parenthesized_expression "(*(ulong *)(this + 0x10) <= lVar6 + 1U)" ( (binary_expression "*(ulong *)(this + 0x10) <= lVar6 + 1U" (pointer_expression "*(ulong *)(this + 0x10)" * (cast_expression "(ulong *)(this + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a5025;" goto statement_identifier ;)) }))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "pvVar3 = *(void **)(this + 0x18);" (assignment_expression "pvVar3 = *(void **)(this + 0x18)" identifier = (pointer_expression "*(void **)(this + 0x18)" * (cast_expression "(void **)(this + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (labeled_statement "LAB_002a4faf:\n  uVar8 = uVar7 * 8;" statement_identifier : (expression_statement "uVar8 = uVar7 * 8;" (assignment_expression "uVar8 = uVar7 * 8" identifier = (binary_expression "uVar7 * 8" identifier * number_literal)) ;)) (if_statement "if (0xfffffffffffffff < uVar7) {\n    uVar8 = 0xffffffffffffffff;\n  }" if (parenthesized_expression "(0xfffffffffffffff < uVar7)" ( (binary_expression "0xfffffffffffffff < uVar7" number_literal < identifier) )) (compound_statement "{\n    uVar8 = 0xffffffffffffffff;\n  }" { (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;) })) (goto_statement "goto LAB_002a4fcf;" goto statement_identifier ;) })))
(translation_unit "void FUN_002a4f00(undefined4 *param_1,long param_2,undefined4 param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  char *__s;\n  undefined8 *puVar3;\n  size_t sVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  long lVar8;\n  ulong uVar9;\n  \n  uVar9 = *(ulong *)(param_2 + 0x10);\n  *param_1 = param_3;\n  *(ulong *)(param_1 + 4) = uVar9;\n  *(undefined8 *)(param_1 + 2) = 0;\n  *(undefined8 *)(param_1 + 6) = 0;\n  *(undefined8 *)(param_1 + 8) = 0;\n  lVar8 = uVar9 * 8;\n  if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }\n                    \n  lVar8 = thunk_FUN_002a11b0(lVar8);\n  uVar7 = *(ulong *)(param_1 + 4);\n  *(long *)(param_1 + 2) = lVar8;\n  uVar9 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }\nLAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);\n  *(long *)(param_1 + 6) = lVar8;\n  if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );\nLAB_002a4faf:\n  uVar9 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}\n\n" (function_definition "void FUN_002a4f00(undefined4 *param_1,long param_2,undefined4 param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  char *__s;\n  undefined8 *puVar3;\n  size_t sVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  long lVar8;\n  ulong uVar9;\n  \n  uVar9 = *(ulong *)(param_2 + 0x10);\n  *param_1 = param_3;\n  *(ulong *)(param_1 + 4) = uVar9;\n  *(undefined8 *)(param_1 + 2) = 0;\n  *(undefined8 *)(param_1 + 6) = 0;\n  *(undefined8 *)(param_1 + 8) = 0;\n  lVar8 = uVar9 * 8;\n  if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }\n                    \n  lVar8 = thunk_FUN_002a11b0(lVar8);\n  uVar7 = *(ulong *)(param_1 + 4);\n  *(long *)(param_1 + 2) = lVar8;\n  uVar9 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }\nLAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);\n  *(long *)(param_1 + 6) = lVar8;\n  if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );\nLAB_002a4faf:\n  uVar9 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}" primitive_type (function_declarator "FUN_002a4f00(undefined4 *param_1,long param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,long param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  char *__s;\n  undefined8 *puVar3;\n  size_t sVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  long lVar8;\n  ulong uVar9;\n  \n  uVar9 = *(ulong *)(param_2 + 0x10);\n  *param_1 = param_3;\n  *(ulong *)(param_1 + 4) = uVar9;\n  *(undefined8 *)(param_1 + 2) = 0;\n  *(undefined8 *)(param_1 + 6) = 0;\n  *(undefined8 *)(param_1 + 8) = 0;\n  lVar8 = uVar9 * 8;\n  if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }\n                    \n  lVar8 = thunk_FUN_002a11b0(lVar8);\n  uVar7 = *(ulong *)(param_1 + 4);\n  *(long *)(param_1 + 2) = lVar8;\n  uVar9 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }\nLAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);\n  *(long *)(param_1 + 6) = lVar8;\n  if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );\nLAB_002a4faf:\n  uVar9 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "undefined8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (expression_statement "uVar9 = *(ulong *)(param_2 + 0x10);" (assignment_expression "uVar9 = *(ulong *)(param_2 + 0x10)" identifier = (pointer_expression "*(ulong *)(param_2 + 0x10)" * (cast_expression "(ulong *)(param_2 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(ulong *)(param_1 + 4) = uVar9;" (assignment_expression "*(ulong *)(param_1 + 4) = uVar9" (pointer_expression "*(ulong *)(param_1 + 4)" * (cast_expression "(ulong *)(param_1 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 2) = 0" (pointer_expression "*(undefined8 *)(param_1 + 2)" * (cast_expression "(undefined8 *)(param_1 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 6) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 6) = 0" (pointer_expression "*(undefined8 *)(param_1 + 6)" * (cast_expression "(undefined8 *)(param_1 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 8) = 0" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar8 = uVar9 * 8;" (assignment_expression "lVar8 = uVar9 * 8" identifier = (binary_expression "uVar9 * 8" identifier * number_literal)) ;) (if_statement "if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }" if (parenthesized_expression "(0xfffffffffffffff < uVar9)" ( (binary_expression "0xfffffffffffffff < uVar9" number_literal < identifier) )) (compound_statement "{\n    lVar8 = -1;\n  }" { (expression_statement "lVar8 = -1;" (assignment_expression "lVar8 = -1" identifier = number_literal) ;) })) (expression_statement "lVar8 = thunk_FUN_002a11b0(lVar8);" (assignment_expression "lVar8 = thunk_FUN_002a11b0(lVar8)" identifier = (call_expression "thunk_FUN_002a11b0(lVar8)" identifier (argument_list "(lVar8)" ( identifier )))) ;) (expression_statement "uVar7 = *(ulong *)(param_1 + 4);" (assignment_expression "uVar7 = *(ulong *)(param_1 + 4)" identifier = (pointer_expression "*(ulong *)(param_1 + 4)" * (cast_expression "(ulong *)(param_1 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 2) = lVar8;" (assignment_expression "*(long *)(param_1 + 2) = lVar8" (pointer_expression "*(long *)(param_1 + 2)" * (cast_expression "(long *)(param_1 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar9 = uVar7;" (assignment_expression "uVar9 = uVar7" identifier = identifier) ;) (if_statement "if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }" { (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );" do (compound_statement "{\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    }" { (expression_statement "lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8)" identifier = (pointer_expression "*(long *)(*(long *)(param_2 + 8) + lVar6 * 8)" * (cast_expression "(long *)(*(long *)(param_2 + 8) + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 8) + lVar6 * 8)" ( (binary_expression "*(long *)(param_2 + 8) + lVar6 * 8" (pointer_expression "*(long *)(param_2 + 8)" * (cast_expression "(long *)(param_2 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) + (binary_expression "lVar6 * 8" identifier * number_literal)) ))))) ;) (expression_statement "*(long *)(lVar8 + lVar6 * 8) = lVar2;" (assignment_expression "*(long *)(lVar8 + lVar6 * 8) = lVar2" (pointer_expression "*(long *)(lVar8 + lVar6 * 8)" * (cast_expression "(long *)(lVar8 + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + lVar6 * 8)" ( (binary_expression "lVar8 + lVar6 * 8" identifier + (binary_expression "lVar6 * 8" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" { (labeled_statement "LAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" statement_identifier : (if_statement "if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" if (parenthesized_expression "(uVar7 <= lVar6 + 1U)" ( (binary_expression "uVar7 <= lVar6 + 1U" identifier <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a4faf;" goto statement_identifier ;))) }) (else_clause "else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" else (compound_statement "{\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" { (if_statement "if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }" if (parenthesized_expression "(PTR___pthread_key_create_003f7ee8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003f7ee8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar7 = *(ulong *)(param_1 + 4);" (assignment_expression "uVar7 = *(ulong *)(param_1 + 4)" identifier = (pointer_expression "*(ulong *)(param_1 + 4)" * (cast_expression "(ulong *)(param_1 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_002a4f79;" goto statement_identifier ;) })) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" if (parenthesized_expression "(uVar7 <= lVar6 + 1U)" ( (binary_expression "uVar7 <= lVar6 + 1U" identifier <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a4faf;" goto statement_identifier ;)) }))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "lVar8 = *(long *)(param_1 + 2);" (assignment_expression "lVar8 = *(long *)(param_1 + 2)" identifier = (pointer_expression "*(long *)(param_1 + 2)" * (cast_expression "(long *)(param_1 + 2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);" statement_identifier : (expression_statement "lVar8 = thunk_FUN_002a11b0(uVar9);" (assignment_expression "lVar8 = thunk_FUN_002a11b0(uVar9)" identifier = (call_expression "thunk_FUN_002a11b0(uVar9)" identifier (argument_list "(uVar9)" ( identifier )))) ;)) (expression_statement "*(long *)(param_1 + 6) = lVar8;" (assignment_expression "*(long *)(param_1 + 6) = lVar8" (pointer_expression "*(long *)(param_1 + 6)" * (cast_expression "(long *)(param_1 + 6)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 4) == 0)" ( (binary_expression "*(long *)(param_1 + 4) == 0" (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }" { (labeled_statement "LAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);" statement_identifier : (expression_statement "puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);" (assignment_expression "puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60)" identifier = (cast_expression "(undefined8 *)thunk_FUN_002a11b0(0x60)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "thunk_FUN_002a11b0(0x60)" identifier (argument_list "(0x60)" ( number_literal ))))) ;)) (expression_statement "*(undefined8 **)(param_1 + 8) = puVar3;" (assignment_expression "*(undefined8 **)(param_1 + 8) = puVar3" (pointer_expression "*(undefined8 **)(param_1 + 8)" * (cast_expression "(undefined8 **)(param_1 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar1 = puVar3 + 0xc;" (assignment_expression "puVar1 = puVar3 + 0xc" identifier = (binary_expression "puVar3 + 0xc" identifier + number_literal)) ;) (do_statement "do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);" do (compound_statement "{\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    }" { (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar1 != puVar3)" ( (binary_expression "puVar1 != puVar3" identifier != identifier) )) ;) (expression_statement "lVar8 = 0;" (assignment_expression "lVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);" do (compound_statement "{\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    }" { (expression_statement "__s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);" (assignment_expression "__s = *(char **)(*(long *)(param_2 + 0x20) + lVar8)" identifier = (pointer_expression "*(char **)(*(long *)(param_2 + 0x20) + lVar8)" * (cast_expression "(char **)(*(long *)(param_2 + 0x20) + lVar8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_2 + 0x20) + lVar8)" ( (binary_expression "*(long *)(param_2 + 0x20) + lVar8" (pointer_expression "*(long *)(param_2 + 0x20)" * (cast_expression "(long *)(param_2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" 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 "sVar4 = strlen(__s);" (assignment_expression "sVar4 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "lVar6 = *(long *)(param_1 + 8);" (assignment_expression "lVar6 = *(long *)(param_1 + 8)" identifier = (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = thunk_FUN_002a11b0(sVar4 + 1);" (assignment_expression "uVar5 = thunk_FUN_002a11b0(sVar4 + 1)" identifier = (call_expression "thunk_FUN_002a11b0(sVar4 + 1)" identifier (argument_list "(sVar4 + 1)" ( (binary_expression "sVar4 + 1" identifier + number_literal) )))) ;) (expression_statement "*(undefined8 *)(lVar6 + lVar8) = uVar5;" (assignment_expression "*(undefined8 *)(lVar6 + lVar8) = uVar5" (pointer_expression "*(undefined8 *)(lVar6 + lVar8)" * (cast_expression "(undefined8 *)(lVar6 + lVar8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + lVar8)" ( (binary_expression "lVar6 + lVar8" identifier + identifier) )))) = identifier) ;) (expression_statement "puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);" (assignment_expression "puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8)" identifier = (cast_expression "(undefined8 *)(*(long *)(param_1 + 8) + lVar8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + lVar8)" ( (binary_expression "*(long *)(param_1 + 8) + lVar8" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);" (assignment_expression "puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8)" identifier = (cast_expression "(undefined8 *)(*(long *)(param_2 + 0x20) + lVar8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0x20) + lVar8)" ( (binary_expression "*(long *)(param_2 + 0x20) + lVar8" (pointer_expression "*(long *)(param_2 + 0x20)" * (cast_expression "(long *)(param_2 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "lVar8 = lVar8 + 8;" (assignment_expression "lVar8 = lVar8 + 8" identifier = (binary_expression "lVar8 + 8" identifier + number_literal)) ;) (expression_statement "memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);" (call_expression "memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1)" identifier (argument_list "((void *)*puVar1,(void *)*puVar3,sVar4 + 1)" ( (cast_expression "(void *)*puVar1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier)) , (cast_expression "(void *)*puVar3" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier)) , (binary_expression "sVar4 + 1" identifier + number_literal) ))) ;) }) while (parenthesized_expression "(lVar8 != 0x60)" ( (binary_expression "lVar8 != 0x60" identifier != number_literal) )) ;) (return_statement "return;" return ;) })) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );" do (compound_statement "{\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  }" { (expression_statement "lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8)" identifier = (pointer_expression "*(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8)" * (cast_expression "(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0x18) + lVar6 * 8)" ( (binary_expression "*(long *)(param_2 + 0x18) + lVar6 * 8" (pointer_expression "*(long *)(param_2 + 0x18)" * (cast_expression "(long *)(param_2 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + (binary_expression "lVar6 * 8" identifier * number_literal)) ))))) ;) (expression_statement "*(long *)(lVar8 + lVar6 * 8) = lVar2;" (assignment_expression "*(long *)(lVar8 + lVar6 * 8) = lVar2" (pointer_expression "*(long *)(lVar8 + lVar6 * 8)" * (cast_expression "(long *)(lVar8 + lVar6 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + lVar6 * 8)" ( (binary_expression "lVar8 + lVar6 * 8" identifier + (binary_expression "lVar6 * 8" identifier * number_literal)) )))) = identifier) ;) (if_statement "if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" { (labeled_statement "LAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;" statement_identifier : (if_statement "if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;" if (parenthesized_expression "(*(ulong *)(param_1 + 4) <= lVar6 + 1U)" ( (binary_expression "*(ulong *)(param_1 + 4) <= lVar6 + 1U" (pointer_expression "*(ulong *)(param_1 + 4)" * (cast_expression "(ulong *)(param_1 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a5025;" goto statement_identifier ;))) }) (else_clause "else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" else (compound_statement "{\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" { (if_statement "if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003f7ee8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003f7ee8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_002a4fed;" goto statement_identifier ;) })) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" * (cast_expression "(int *)(lVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;" if (parenthesized_expression "(*(ulong *)(param_1 + 4) <= lVar6 + 1U)" ( (binary_expression "*(ulong *)(param_1 + 4) <= lVar6 + 1U" (pointer_expression "*(ulong *)(param_1 + 4)" * (cast_expression "(ulong *)(param_1 + 4)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) <= (binary_expression "lVar6 + 1U" identifier + number_literal)) )) (goto_statement "goto LAB_002a5025;" goto statement_identifier ;)) }))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) (expression_statement "lVar8 = *(long *)(param_1 + 6);" (assignment_expression "lVar8 = *(long *)(param_1 + 6)" identifier = (pointer_expression "*(long *)(param_1 + 6)" * (cast_expression "(long *)(param_1 + 6)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (labeled_statement "LAB_002a4faf:\n  uVar9 = uVar7 * 8;" statement_identifier : (expression_statement "uVar9 = uVar7 * 8;" (assignment_expression "uVar9 = uVar7 * 8" identifier = (binary_expression "uVar7 * 8" identifier * number_literal)) ;)) (if_statement "if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }" if (parenthesized_expression "(0xfffffffffffffff < uVar7)" ( (binary_expression "0xfffffffffffffff < uVar7" number_literal < identifier) )) (compound_statement "{\n    uVar9 = 0xffffffffffffffff;\n  }" { (expression_statement "uVar9 = 0xffffffffffffffff;" (assignment_expression "uVar9 = 0xffffffffffffffff" identifier = number_literal) ;) })) (goto_statement "goto LAB_002a4fcf;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) 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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression 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 IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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)) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 (sized_type_specifier long) (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 = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) ;) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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_002a4f00(undefined4 *param_1,long param_2,undefined4 param_3)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  char *__s;\n  undefined8 *puVar3;\n  size_t sVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  long lVar8;\n  ulong uVar9;\n  \n  uVar9 = *(ulong *)(param_2 + 0x10);\n  *param_1 = param_3;\n  *(ulong *)(param_1 + 4) = uVar9;\n  *(undefined8 *)(param_1 + 2) = 0;\n  *(undefined8 *)(param_1 + 6) = 0;\n  *(undefined8 *)(param_1 + 8) = 0;\n  lVar8 = uVar9 * 8;\n  if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }\n                    \n  lVar8 = thunk_FUN_002a11b0(lVar8);\n  uVar7 = *(ulong *)(param_1 + 4);\n  *(long *)(param_1 + 2) = lVar8;\n  uVar9 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }\nLAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);\n  *(long *)(param_1 + 6) = lVar8;\n  if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );\nLAB_002a4faf:\n  uVar9 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}" (primitive_type "void") (function_declarator "FUN_002a4f00(undefined4 *param_1,long param_2,undefined4 param_3)" (identifier "FUN_002a4f00") (parameter_list "(undefined4 *param_1,long param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  char *__s;\n  undefined8 *puVar3;\n  size_t sVar4;\n  undefined8 uVar5;\n  long lVar6;\n  ulong uVar7;\n  long lVar8;\n  ulong uVar9;\n  \n  uVar9 = *(ulong *)(param_2 + 0x10);\n  *param_1 = param_3;\n  *(ulong *)(param_1 + 4) = uVar9;\n  *(undefined8 *)(param_1 + 2) = 0;\n  *(undefined8 *)(param_1 + 6) = 0;\n  *(undefined8 *)(param_1 + 8) = 0;\n  lVar8 = uVar9 * 8;\n  if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }\n                    \n  lVar8 = thunk_FUN_002a11b0(lVar8);\n  uVar7 = *(ulong *)(param_1 + 4);\n  *(long *)(param_1 + 2) = lVar8;\n  uVar9 = uVar7;\n  if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }\nLAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);\n  *(long *)(param_1 + 6) = lVar8;\n  if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }\n  lVar6 = 0;\n  do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );\nLAB_002a4faf:\n  uVar9 = uVar7 * 8;\n  if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }\n  goto LAB_002a4fcf;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "undefined8 *puVar3;" (type_identifier "undefined8") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "ulong uVar7;" (type_identifier "ulong") (identifier "uVar7") (; ";")) (declaration "long lVar8;" (sized_type_specifier "long" (long "long")) (identifier "lVar8") (; ";")) (declaration "ulong uVar9;" (type_identifier "ulong") (identifier "uVar9") (; ";")) (expression_statement "uVar9 = *(ulong *)(param_2 + 0x10);" (assignment_expression "uVar9 = *(ulong *)(param_2 + 0x10)" (identifier "uVar9") (= "=") (pointer_expression "*(ulong *)(param_2 + 0x10)" (* "*") (cast_expression "(ulong *)(param_2 + 0x10)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*param_1 = param_3;" (assignment_expression "*param_1 = param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(ulong *)(param_1 + 4) = uVar9;" (assignment_expression "*(ulong *)(param_1 + 4) = uVar9" (pointer_expression "*(ulong *)(param_1 + 4)" (* "*") (cast_expression "(ulong *)(param_1 + 4)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 2) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 2) = 0" (pointer_expression "*(undefined8 *)(param_1 + 2)" (* "*") (cast_expression "(undefined8 *)(param_1 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 6) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 6) = 0" (pointer_expression "*(undefined8 *)(param_1 + 6)" (* "*") (cast_expression "(undefined8 *)(param_1 + 6)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 8) = 0" (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar8 = uVar9 * 8;" (assignment_expression "lVar8 = uVar9 * 8" (identifier "lVar8") (= "=") (binary_expression "uVar9 * 8" (identifier "uVar9") (* "*") (number_literal "8"))) (; ";")) (if_statement "if (0xfffffffffffffff < uVar9) {\n    lVar8 = -1;\n  }" (if "if") (parenthesized_expression "(0xfffffffffffffff < uVar9)" (( "(") (binary_expression "0xfffffffffffffff < uVar9" (number_literal "0xfffffffffffffff") (< "<") (identifier "uVar9")) () ")")) (compound_statement "{\n    lVar8 = -1;\n  }" ({ "{") (expression_statement "lVar8 = -1;" (assignment_expression "lVar8 = -1" (identifier "lVar8") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (expression_statement "lVar8 = thunk_FUN_002a11b0(lVar8);" (assignment_expression "lVar8 = thunk_FUN_002a11b0(lVar8)" (identifier "lVar8") (= "=") (call_expression "thunk_FUN_002a11b0(lVar8)" (identifier "thunk_FUN_002a11b0") (argument_list "(lVar8)" (( "(") (identifier "lVar8") () ")")))) (; ";")) (expression_statement "uVar7 = *(ulong *)(param_1 + 4);" (assignment_expression "uVar7 = *(ulong *)(param_1 + 4)" (identifier "uVar7") (= "=") (pointer_expression "*(ulong *)(param_1 + 4)" (* "*") (cast_expression "(ulong *)(param_1 + 4)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(long *)(param_1 + 2) = lVar8;" (assignment_expression "*(long *)(param_1 + 2) = lVar8" (pointer_expression "*(long *)(param_1 + 2)" (* "*") (cast_expression "(long *)(param_1 + 2)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "lVar8")) (; ";")) (expression_statement "uVar9 = uVar7;" (assignment_expression "uVar9 = uVar7" (identifier "uVar9") (= "=") (identifier "uVar7")) (; ";")) (if_statement "if (uVar7 != 0) {\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }" (if "if") (parenthesized_expression "(uVar7 != 0)" (( "(") (binary_expression "uVar7 != 0" (identifier "uVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar6 = 0;\n    do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );\n  }" ({ "{") (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" (identifier "lVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    } while( true );" (do "do") (compound_statement "{\n      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);\n      *(long *)(lVar8 + lVar6 * 8) = lVar2;\n      if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      lVar6 = lVar6 + 1;\n      lVar8 = *(long *)(param_1 + 2);\n    }" ({ "{") (expression_statement "lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(*(long *)(param_2 + 8) + lVar6 * 8)" (* "*") (cast_expression "(long *)(*(long *)(param_2 + 8) + lVar6 * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_2 + 8) + lVar6 * 8)" (( "(") (binary_expression "*(long *)(param_2 + 8) + lVar6 * 8" (pointer_expression "*(long *)(param_2 + 8)" (* "*") (cast_expression "(long *)(param_2 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "lVar6 * 8" (identifier "lVar6") (* "*") (number_literal "8"))) () ")"))))) (; ";")) (expression_statement "*(long *)(lVar8 + lVar6 * 8) = lVar2;" (assignment_expression "*(long *)(lVar8 + lVar6 * 8) = lVar2" (pointer_expression "*(long *)(lVar8 + lVar6 * 8)" (* "*") (cast_expression "(long *)(lVar8 + lVar6 * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar8 + lVar6 * 8)" (( "(") (binary_expression "lVar8 + lVar6 * 8" (identifier "lVar8") (+ "+") (binary_expression "lVar6 * 8" (identifier "lVar6") (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "lVar2")) (; ";")) (if_statement "if (lVar2 == 0) {\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }\n      else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" ({ "{") (labeled_statement "LAB_002a4f79:\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" (statement_identifier "LAB_002a4f79") (: ":") (if_statement "if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" (if "if") (parenthesized_expression "(uVar7 <= lVar6 + 1U)" (( "(") (binary_expression "uVar7 <= lVar6 + 1U" (identifier "uVar7") (<= "<=") (binary_expression "lVar6 + 1U" (identifier "lVar6") (+ "+") (number_literal "1U"))) () ")")) (goto_statement "goto LAB_002a4faf;" (goto "goto") (statement_identifier "LAB_002a4faf") (; ";")))) (} "}")) (else_clause "else {\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" (else "else") (compound_statement "{\n        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;\n      }" ({ "{") (if_statement "if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_003f7ee8 != (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_003f7ee8 != (undefined *)0x0" (identifier "PTR___pthread_key_create_003f7ee8") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          LOCK();\n          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n          UNLOCK();\n          uVar7 = *(ulong *)(param_1 + 4);\n          goto LAB_002a4f79;\n        }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar7 = *(ulong *)(param_1 + 4);" (assignment_expression "uVar7 = *(ulong *)(param_1 + 4)" (identifier "uVar7") (= "=") (pointer_expression "*(ulong *)(param_1 + 4)" (* "*") (cast_expression "(ulong *)(param_1 + 4)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (goto_statement "goto LAB_002a4f79;" (goto "goto") (statement_identifier "LAB_002a4f79") (; ";")) (} "}"))) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;" (if "if") (parenthesized_expression "(uVar7 <= lVar6 + 1U)" (( "(") (binary_expression "uVar7 <= lVar6 + 1U" (identifier "uVar7") (<= "<=") (binary_expression "lVar6 + 1U" (identifier "lVar6") (+ "+") (number_literal "1U"))) () ")")) (goto_statement "goto LAB_002a4faf;" (goto "goto") (statement_identifier "LAB_002a4faf") (; ";"))) (} "}")))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" (identifier "lVar6") (= "=") (binary_expression "lVar6 + 1" (identifier "lVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar8 = *(long *)(param_1 + 2);" (assignment_expression "lVar8 = *(long *)(param_1 + 2)" (identifier "lVar8") (= "=") (pointer_expression "*(long *)(param_1 + 2)" (* "*") (cast_expression "(long *)(param_1 + 2)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_002a4fcf:\n  lVar8 = thunk_FUN_002a11b0(uVar9);" (statement_identifier "LAB_002a4fcf") (: ":") (expression_statement "lVar8 = thunk_FUN_002a11b0(uVar9);" (assignment_expression "lVar8 = thunk_FUN_002a11b0(uVar9)" (identifier "lVar8") (= "=") (call_expression "thunk_FUN_002a11b0(uVar9)" (identifier "thunk_FUN_002a11b0") (argument_list "(uVar9)" (( "(") (identifier "uVar9") () ")")))) (; ";"))) (expression_statement "*(long *)(param_1 + 6) = lVar8;" (assignment_expression "*(long *)(param_1 + 6) = lVar8" (pointer_expression "*(long *)(param_1 + 6)" (* "*") (cast_expression "(long *)(param_1 + 6)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (= "=") (identifier "lVar8")) (; ";")) (if_statement "if (*(long *)(param_1 + 4) == 0) {\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 4) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 4) == 0" (pointer_expression "*(long *)(param_1 + 4)" (* "*") (cast_expression "(long *)(param_1 + 4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);\n    *(undefined8 **)(param_1 + 8) = puVar3;\n    puVar1 = puVar3 + 0xc;\n    do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);\n    lVar8 = 0;\n    do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);\n    return;\n  }" ({ "{") (labeled_statement "LAB_002a5025:\n    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);" (statement_identifier "LAB_002a5025") (: ":") (expression_statement "puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);" (assignment_expression "puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60)" (identifier "puVar3") (= "=") (cast_expression "(undefined8 *)thunk_FUN_002a11b0(0x60)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "thunk_FUN_002a11b0(0x60)" (identifier "thunk_FUN_002a11b0") (argument_list "(0x60)" (( "(") (number_literal "0x60") () ")"))))) (; ";"))) (expression_statement "*(undefined8 **)(param_1 + 8) = puVar3;" (assignment_expression "*(undefined8 **)(param_1 + 8) = puVar3" (pointer_expression "*(undefined8 **)(param_1 + 8)" (* "*") (cast_expression "(undefined8 **)(param_1 + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (expression_statement "puVar1 = puVar3 + 0xc;" (assignment_expression "puVar1 = puVar3 + 0xc" (identifier "puVar1") (= "=") (binary_expression "puVar3 + 0xc" (identifier "puVar3") (+ "+") (number_literal "0xc"))) (; ";")) (do_statement "do {\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    } while (puVar1 != puVar3);" (do "do") (compound_statement "{\n      *puVar3 = 0;\n      puVar3 = puVar3 + 1;\n    }" ({ "{") (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar1 != puVar3)" (( "(") (binary_expression "puVar1 != puVar3" (identifier "puVar1") (!= "!=") (identifier "puVar3")) () ")")) (; ";")) (expression_statement "lVar8 = 0;" (assignment_expression "lVar8 = 0" (identifier "lVar8") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    } while (lVar8 != 0x60);" (do "do") (compound_statement "{\n      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);\n      if (__s == (char *)0x0) {\n        return;\n      }\n      sVar4 = strlen(__s);\n      lVar6 = *(long *)(param_1 + 8);\n      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);\n      *(undefined8 *)(lVar6 + lVar8) = uVar5;\n      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);\n      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);\n      lVar8 = lVar8 + 8;\n      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);\n    }" ({ "{") (expression_statement "__s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);" (assignment_expression "__s = *(char **)(*(long *)(param_2 + 0x20) + lVar8)" (identifier "__s") (= "=") (pointer_expression "*(char **)(*(long *)(param_2 + 0x20) + lVar8)" (* "*") (cast_expression "(char **)(*(long *)(param_2 + 0x20) + lVar8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(param_2 + 0x20) + lVar8)" (( "(") (binary_expression "*(long *)(param_2 + 0x20) + lVar8" (pointer_expression "*(long *)(param_2 + 0x20)" (* "*") (cast_expression "(long *)(param_2 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (identifier "lVar8")) () ")"))))) (; ";")) (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 "sVar4 = strlen(__s);" (assignment_expression "sVar4 = strlen(__s)" (identifier "sVar4") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "lVar6 = *(long *)(param_1 + 8);" (assignment_expression "lVar6 = *(long *)(param_1 + 8)" (identifier "lVar6") (= "=") (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar5 = thunk_FUN_002a11b0(sVar4 + 1);" (assignment_expression "uVar5 = thunk_FUN_002a11b0(sVar4 + 1)" (identifier "uVar5") (= "=") (call_expression "thunk_FUN_002a11b0(sVar4 + 1)" (identifier "thunk_FUN_002a11b0") (argument_list "(sVar4 + 1)" (( "(") (binary_expression "sVar4 + 1" (identifier "sVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*(undefined8 *)(lVar6 + lVar8) = uVar5;" (assignment_expression "*(undefined8 *)(lVar6 + lVar8) = uVar5" (pointer_expression "*(undefined8 *)(lVar6 + lVar8)" (* "*") (cast_expression "(undefined8 *)(lVar6 + lVar8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + lVar8)" (( "(") (binary_expression "lVar6 + lVar8" (identifier "lVar6") (+ "+") (identifier "lVar8")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);" (assignment_expression "puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8)" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)(*(long *)(param_1 + 8) + lVar8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 8) + lVar8)" (( "(") (binary_expression "*(long *)(param_1 + 8) + lVar8" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (identifier "lVar8")) () ")")))) (; ";")) (expression_statement "puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);" (assignment_expression "puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8)" (identifier "puVar3") (= "=") (cast_expression "(undefined8 *)(*(long *)(param_2 + 0x20) + lVar8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_2 + 0x20) + lVar8)" (( "(") (binary_expression "*(long *)(param_2 + 0x20) + lVar8" (pointer_expression "*(long *)(param_2 + 0x20)" (* "*") (cast_expression "(long *)(param_2 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (+ "+") (identifier "lVar8")) () ")")))) (; ";")) (expression_statement "lVar8 = lVar8 + 8;" (assignment_expression "lVar8 = lVar8 + 8" (identifier "lVar8") (= "=") (binary_expression "lVar8 + 8" (identifier "lVar8") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);" (call_expression "memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1)" (identifier "memcpy") (argument_list "((void *)*puVar1,(void *)*puVar3,sVar4 + 1)" (( "(") (cast_expression "(void *)*puVar1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (, ",") (cast_expression "(void *)*puVar3" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (, ",") (binary_expression "sVar4 + 1" (identifier "sVar4") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar8 != 0x60)" (( "(") (binary_expression "lVar8 != 0x60" (identifier "lVar8") (!= "!=") (number_literal "0x60")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" (identifier "lVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  } while( true );" (do "do") (compound_statement "{\n    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);\n    *(long *)(lVar8 + lVar6 * 8) = lVar2;\n    if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    lVar6 = lVar6 + 1;\n    lVar8 = *(long *)(param_1 + 6);\n  }" ({ "{") (expression_statement "lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8)" (* "*") (cast_expression "(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_2 + 0x18) + lVar6 * 8)" (( "(") (binary_expression "*(long *)(param_2 + 0x18) + lVar6 * 8" (pointer_expression "*(long *)(param_2 + 0x18)" (* "*") (cast_expression "(long *)(param_2 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (binary_expression "lVar6 * 8" (identifier "lVar6") (* "*") (number_literal "8"))) () ")"))))) (; ";")) (expression_statement "*(long *)(lVar8 + lVar6 * 8) = lVar2;" (assignment_expression "*(long *)(lVar8 + lVar6 * 8) = lVar2" (pointer_expression "*(long *)(lVar8 + lVar6 * 8)" (* "*") (cast_expression "(long *)(lVar8 + lVar6 * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar8 + lVar6 * 8)" (( "(") (binary_expression "lVar8 + lVar6 * 8" (identifier "lVar8") (+ "+") (binary_expression "lVar6 * 8" (identifier "lVar6") (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "lVar2")) (; ";")) (if_statement "if (lVar2 == 0) {\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }\n    else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" ({ "{") (labeled_statement "LAB_002a4fed:\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;" (statement_identifier "LAB_002a4fed") (: ":") (if_statement "if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;" (if "if") (parenthesized_expression "(*(ulong *)(param_1 + 4) <= lVar6 + 1U)" (( "(") (binary_expression "*(ulong *)(param_1 + 4) <= lVar6 + 1U" (pointer_expression "*(ulong *)(param_1 + 4)" (* "*") (cast_expression "(ulong *)(param_1 + 4)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (<= "<=") (binary_expression "lVar6 + 1U" (identifier "lVar6") (+ "+") (number_literal "1U"))) () ")")) (goto_statement "goto LAB_002a5025;" (goto "goto") (statement_identifier "LAB_002a5025") (; ";")))) (} "}")) (else_clause "else {\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" (else "else") (compound_statement "{\n      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }\n      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_003f7ee8 != (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_003f7ee8 != (undefined *)0x0" (identifier "PTR___pthread_key_create_003f7ee8") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        LOCK();\n        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;\n        UNLOCK();\n        goto LAB_002a4fed;\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_002a4fed;" (goto "goto") (statement_identifier "LAB_002a4fed") (; ";")) (} "}"))) (expression_statement "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;" (assignment_expression "*(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(int *)(lVar2 + 8) + 1" (pointer_expression "*(int *)(lVar2 + 8)" (* "*") (cast_expression "(int *)(lVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;" (if "if") (parenthesized_expression "(*(ulong *)(param_1 + 4) <= lVar6 + 1U)" (( "(") (binary_expression "*(ulong *)(param_1 + 4) <= lVar6 + 1U" (pointer_expression "*(ulong *)(param_1 + 4)" (* "*") (cast_expression "(ulong *)(param_1 + 4)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (<= "<=") (binary_expression "lVar6 + 1U" (identifier "lVar6") (+ "+") (number_literal "1U"))) () ")")) (goto_statement "goto LAB_002a5025;" (goto "goto") (statement_identifier "LAB_002a5025") (; ";"))) (} "}")))) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" (identifier "lVar6") (= "=") (binary_expression "lVar6 + 1" (identifier "lVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar8 = *(long *)(param_1 + 6);" (assignment_expression "lVar8 = *(long *)(param_1 + 6)" (identifier "lVar8") (= "=") (pointer_expression "*(long *)(param_1 + 6)" (* "*") (cast_expression "(long *)(param_1 + 6)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (labeled_statement "LAB_002a4faf:\n  uVar9 = uVar7 * 8;" (statement_identifier "LAB_002a4faf") (: ":") (expression_statement "uVar9 = uVar7 * 8;" (assignment_expression "uVar9 = uVar7 * 8" (identifier "uVar9") (= "=") (binary_expression "uVar7 * 8" (identifier "uVar7") (* "*") (number_literal "8"))) (; ";"))) (if_statement "if (0xfffffffffffffff < uVar7) {\n    uVar9 = 0xffffffffffffffff;\n  }" (if "if") (parenthesized_expression "(0xfffffffffffffff < uVar7)" (( "(") (binary_expression "0xfffffffffffffff < uVar7" (number_literal "0xfffffffffffffff") (< "<") (identifier "uVar7")) () ")")) (compound_statement "{\n    uVar9 = 0xffffffffffffffff;\n  }" ({ "{") (expression_statement "uVar9 = 0xffffffffffffffff;" (assignment_expression "uVar9 = 0xffffffffffffffff" (identifier "uVar9") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (} "}"))) (goto_statement "goto LAB_002a4fcf;" (goto "goto") (statement_identifier "LAB_002a4fcf") (; ";")) (} "}")))

/* std::locale::_Impl::_Impl(std::locale::_Impl const&, unsigned long) */

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

{
  type_2 *var_11;
  long var_6;
  void *pvVar3;
  type_2 *var_10;
  size_t var_13;
  long var_5;
  type_1 var_3;
  type_1 uVar8;
  
  var_3 = *(type_1 *)(var_1 + 0x10);
  *(int *)var_2 = (int)param_2;
  *(type_1 *)(var_2 + 0x10) = var_3;
  *(type_2 *)(var_2 + 8) = 0;
  *(type_2 *)(var_2 + 0x18) = 0;
  *(type_2 *)(var_2 + 0x20) = 0;
  uVar8 = var_3 * 8;
  if (0xfffffffffffffff < var_3) {
    uVar8 = 0xffffffffffffffff;
  }
                    /* try { // try from 002a4f50 to 002a507d has its CatchHandler @ 002a50ad */
  pvVar3 = var_4(uVar8);
  var_3 = *(type_1 *)(var_2 + 0x10);
  *(void **)(var_2 + 8) = pvVar3;
  uVar8 = var_3;
  if (var_3 != 0) {
    var_5 = 0;
    do {
      var_6 = *(long *)(*(long *)(var_1 + 8) + var_5 * 8);
      *(long *)((long)pvVar3 + var_5 * 8) = var_6;
      if (var_6 == 0) {
LAB_002a4f79:
        if (var_3 <= var_5 + 1U) goto LAB_002a4faf;
      }
      else {
        if (var_7 != (type_3 *)0x0) {
          var_8();
          *(int *)(var_6 + 8) = *(int *)(var_6 + 8) + 1;
          var_9();
          var_3 = *(type_1 *)(var_2 + 0x10);
          goto LAB_002a4f79;
        }
        *(int *)(var_6 + 8) = *(int *)(var_6 + 8) + 1;
        if (var_3 <= var_5 + 1U) goto LAB_002a4faf;
      }
      var_5 = var_5 + 1;
      pvVar3 = *(void **)(var_2 + 8);
    } while( true );
  }
LAB_002a4fcf:
  pvVar3 = var_4(uVar8);
  *(void **)(var_2 + 0x18) = pvVar3;
  if (*(long *)(var_2 + 0x10) == 0) {
LAB_002a5025:
    var_10 = (type_2 *)var_4(0x60);
    *(type_2 **)(var_2 + 0x20) = var_10;
    var_11 = var_10 + 0xc;
    do {
      *var_10 = 0;
      var_10 = var_10 + 1;
    } while (var_11 != var_10);
    var_5 = 0;
    do {
      if (*(char **)(*(long *)(var_1 + 0x20) + var_5) == (char *)0x0) {
        return;
      }
      var_13 = var_12(*(char **)(*(long *)(var_1 + 0x20) + var_5));
      var_6 = *(long *)(var_2 + 0x20);
      pvVar3 = var_4(var_13 + 1);
      *(void **)(var_6 + var_5) = pvVar3;
      var_11 = (type_2 *)(*(long *)(var_2 + 0x20) + var_5);
      var_10 = (type_2 *)(*(long *)(var_1 + 0x20) + var_5);
      var_5 = var_5 + 8;
      var_14((void *)*var_11,(void *)*var_10,var_13 + 1);
    } while (var_5 != 0x60);
    return;
  }
  var_5 = 0;
  do {
    var_6 = *(long *)(*(long *)(var_1 + 0x18) + var_5 * 8);
    *(long *)((long)pvVar3 + var_5 * 8) = var_6;
    if (var_6 == 0) {
LAB_002a4fed:
      if (*(type_1 *)(var_2 + 0x10) <= var_5 + 1U) goto LAB_002a5025;
    }
    else {
      if (var_7 != (type_3 *)0x0) {
        var_8();
        *(int *)(var_6 + 8) = *(int *)(var_6 + 8) + 1;
        var_9();
        goto LAB_002a4fed;
      }
      *(int *)(var_6 + 8) = *(int *)(var_6 + 8) + 1;
      if (*(type_1 *)(var_2 + 0x10) <= var_5 + 1U) goto LAB_002a5025;
    }
    var_5 = var_5 + 1;
    pvVar3 = *(void **)(var_2 + 0x18);
  } while( true );
LAB_002a4faf:
  uVar8 = var_3 * 8;
  if (0xfffffffffffffff < var_3) {
    uVar8 = 0xffffffffffffffff;
  }
  goto LAB_002a4fcf;
}


(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: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) 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: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (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: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (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))))))) (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (sized_type_specifier) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) 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)))))

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

{
  undefined8 *puVar1;
  long lVar2;
  char *__s;
  undefined8 *puVar3;
  size_t sVar4;
  undefined8 uVar5;
  long lVar6;
  ulong uVar7;
  long lVar8;
  ulong uVar9;
  
  uVar9 = *(ulong *)(param_2 + 0x10);
  *param_1 = param_3;
  *(ulong *)(param_1 + 4) = uVar9;
  *(undefined8 *)(param_1 + 2) = 0;
  *(undefined8 *)(param_1 + 6) = 0;
  *(undefined8 *)(param_1 + 8) = 0;
  lVar8 = uVar9 * 8;
  if (0xfffffffffffffff < uVar9) {
    lVar8 = -1;
  }
                    /* try { // try from 002a4f50 to 002a507d has its CatchHandler @ 002a50ad */
  lVar8 = thunk_FUN_002a11b0(lVar8);
  uVar7 = *(ulong *)(param_1 + 4);
  *(long *)(param_1 + 2) = lVar8;
  uVar9 = uVar7;
  if (uVar7 != 0) {
    lVar6 = 0;
    do {
      lVar2 = *(long *)(*(long *)(param_2 + 8) + lVar6 * 8);
      *(long *)(lVar8 + lVar6 * 8) = lVar2;
      if (lVar2 == 0) {
LAB_002a4f79:
        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;
      }
      else {
        if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {
          LOCK();
          *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
          UNLOCK();
          uVar7 = *(ulong *)(param_1 + 4);
          goto LAB_002a4f79;
        }
        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
        if (uVar7 <= lVar6 + 1U) goto LAB_002a4faf;
      }
      lVar6 = lVar6 + 1;
      lVar8 = *(long *)(param_1 + 2);
    } while( true );
  }
LAB_002a4fcf:
  lVar8 = thunk_FUN_002a11b0(uVar9);
  *(long *)(param_1 + 6) = lVar8;
  if (*(long *)(param_1 + 4) == 0) {
LAB_002a5025:
    puVar3 = (undefined8 *)thunk_FUN_002a11b0(0x60);
    *(undefined8 **)(param_1 + 8) = puVar3;
    puVar1 = puVar3 + 0xc;
    do {
      *puVar3 = 0;
      puVar3 = puVar3 + 1;
    } while (puVar1 != puVar3);
    lVar8 = 0;
    do {
      __s = *(char **)(*(long *)(param_2 + 0x20) + lVar8);
      if (__s == (char *)0x0) {
        return;
      }
      sVar4 = strlen(__s);
      lVar6 = *(long *)(param_1 + 8);
      uVar5 = thunk_FUN_002a11b0(sVar4 + 1);
      *(undefined8 *)(lVar6 + lVar8) = uVar5;
      puVar1 = (undefined8 *)(*(long *)(param_1 + 8) + lVar8);
      puVar3 = (undefined8 *)(*(long *)(param_2 + 0x20) + lVar8);
      lVar8 = lVar8 + 8;
      memcpy((void *)*puVar1,(void *)*puVar3,sVar4 + 1);
    } while (lVar8 != 0x60);
    return;
  }
  lVar6 = 0;
  do {
    lVar2 = *(long *)(*(long *)(param_2 + 0x18) + lVar6 * 8);
    *(long *)(lVar8 + lVar6 * 8) = lVar2;
    if (lVar2 == 0) {
LAB_002a4fed:
      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;
    }
    else {
      if (PTR___pthread_key_create_003f7ee8 != (undefined *)0x0) {
        LOCK();
        *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
        UNLOCK();
        goto LAB_002a4fed;
      }
      *(int *)(lVar2 + 8) = *(int *)(lVar2 + 8) + 1;
      if (*(ulong *)(param_1 + 4) <= lVar6 + 1U) goto LAB_002a5025;
    }
    lVar6 = lVar6 + 1;
    lVar8 = *(long *)(param_1 + 6);
  } while( true );
LAB_002a4faf:
  uVar9 = uVar7 * 8;
  if (0xfffffffffffffff < uVar7) {
    uVar9 = 0xffffffffffffffff;
  }
  goto LAB_002a4fcf;
}

