
/* std::locale::_Impl::_M_install_cache(std::locale::facet const*, unsigned int) */

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

{
  id *this_00;
  int iVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  facet *pfVar5;
  int *piVar6;
  undefined4 *puVar7;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {
    iVar3 = __cxa_guard_acquire(unaff_EDI + 0x1ac6c7);
    if (iVar3 != 0) {
      uVar2 = 0;
      do {
        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;
        uVar2 = uVar2 + 4;
      } while (uVar2 < 0x18);
      __cxa_guard_release(unaff_EDI + 0x1ac6c7);
    }
  }
  iVar3 = *(int *)(unaff_EDI + 0x1a52cb);
  if ((iVar3 != 0) &&
     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {
    piVar6 = (int *)__cxa_allocate_exception(4);
    *piVar6 = unaff_EDI + 0x1a2343;
                    /* WARNING: Subroutine does not return */
    __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117));
  }
  puVar7 = (undefined4 *)(unaff_EDI + 0x1a3c87);
  this_00 = (id *)*puVar7;
  do {
    if (this_00 == (id *)0x0) {
      uVar2 = 0xffffffff;
LAB_001e9cf7:
      iVar1 = *(int *)(this + 0xc);
      piVar6 = (int *)(iVar1 + param_2 * 4);
      if (*piVar6 == 0) {
        pfVar5 = param_1 + 4;
        if (iVar3 == 0) {
          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;
        }
        else {
          LOCK();
          *(int *)pfVar5 = *(int *)pfVar5 + 1;
          UNLOCK();
          iVar1 = *(int *)(this + 0xc);
          piVar6 = (int *)(param_2 * 4 + iVar1);
        }
        *piVar6 = (int)param_1;
        if (uVar2 != 0xffffffff) {
          if (iVar3 == 0) {
            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;
          }
          else {
            LOCK();
            *(int *)pfVar5 = *(int *)pfVar5 + 1;
            UNLOCK();
            iVar1 = *(int *)(this + 0xc);
          }
          *(facet **)(iVar1 + uVar2 * 4) = param_1;
        }
      }
      else if (param_1 != (facet *)0x0) {
                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */
        (**(code **)(*(int *)param_1 + 4))(param_1);
      }
      if ((iVar3 != 0) &&
         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)) {
        piVar6 = (int *)__cxa_allocate_exception(4);
        *piVar6 = unaff_EDI + 0x1a2357;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */
        __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),
                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));
      }
      return;
    }
    uVar2 = locale::id::_M_id(this_00);
    if (uVar2 == param_2) {
      uVar2 = locale::id::_M_id((id *)puVar7[1]);
      goto LAB_001e9cf7;
    }
    uVar2 = locale::id::_M_id((id *)puVar7[1]);
    if (uVar2 == param_2) {
      uVar4 = locale::id::_M_id((id *)*puVar7);
      uVar2 = param_2;
      param_2 = uVar4;
      goto LAB_001e9cf7;
    }
    puVar7 = puVar7 + 2;
    this_00 = (id *)*puVar7;
  } while( true );
}



void FUN_001e9c50(int param_1,int *param_2,int param_3)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  int *piVar5;
  int *piVar6;
  int unaff_EDI;
  
  FUN_000559ee();
  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {
    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);
    if (iVar2 != 0) {
      uVar3 = 0;
      do {
        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;
        uVar3 = uVar3 + 4;
      } while (uVar3 < 0x18);
      FUN_001e5500(unaff_EDI + 0x1ac6c7);
    }
  }
  iVar2 = *(int *)(unaff_EDI + 0x1a52cb);
  if ((iVar2 != 0) &&
     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {
    piVar6 = (int *)FUN_001e6be0(4);
    *piVar6 = unaff_EDI + 0x1a2343;
                    /* WARNING: Subroutine does not return */
    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))
    ;
  }
  piVar6 = (int *)(unaff_EDI + 0x1a3c87);
  iVar1 = *piVar6;
  do {
    if (iVar1 == 0) {
      iVar1 = -1;
LAB_001e9cf7:
      iVar4 = *(int *)(param_1 + 0xc);
      piVar6 = (int *)(iVar4 + param_3 * 4);
      if (*piVar6 == 0) {
        piVar5 = param_2 + 1;
        if (iVar2 == 0) {
          param_2[1] = param_2[1] + 1;
        }
        else {
          LOCK();
          *piVar5 = *piVar5 + 1;
          UNLOCK();
          iVar4 = *(int *)(param_1 + 0xc);
          piVar6 = (int *)(param_3 * 4 + iVar4);
        }
        *piVar6 = (int)param_2;
        if (iVar1 != -1) {
          if (iVar2 == 0) {
            param_2[1] = param_2[1] + 1;
          }
          else {
            LOCK();
            *piVar5 = *piVar5 + 1;
            UNLOCK();
            iVar4 = *(int *)(param_1 + 0xc);
          }
          *(int **)(iVar4 + iVar1 * 4) = param_2;
        }
      }
      else if (param_2 != (int *)0x0) {
                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */
        (**(code **)(*param_2 + 4))(param_2);
      }
      if ((iVar2 != 0) &&
         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {
        piVar6 = (int *)FUN_001e6be0(4);
        *piVar6 = unaff_EDI + 0x1a2357;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */
        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),
                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));
      }
      return;
    }
    iVar1 = FUN_001e9740(iVar1);
    if (iVar1 == param_3) {
      iVar1 = FUN_001e9740(piVar6[1]);
      goto LAB_001e9cf7;
    }
    iVar1 = FUN_001e9740(piVar6[1]);
    if (iVar1 == param_3) {
      iVar4 = FUN_001e9740(*piVar6);
      iVar1 = param_3;
      param_3 = iVar4;
      goto LAB_001e9cf7;
    }
    piVar6 = piVar6 + 2;
    iVar1 = *piVar6;
  } while( true );
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000559ee
ADD EDI,0x1a53a7
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOVZX EAX,byte ptr [EDI + 0x7320]
TEST AL,AL
JZ 0x001e9d60
MOV ECX,dword ptr [EDI + 0xffffff24]
LEA EAX,[EDI + 0x7328]
MOV dword ptr [EBP + -0x1c],EAX
MOV dword ptr [EBP + -0x2c],ECX
TEST ECX,ECX
JZ 0x001e9c9f
SUB ESP,0xc
MOV EBX,EDI
PUSH EAX
CALL 0x000297c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001e9e22
LEA ESI,[EDI + 0xffffe8e0]
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JNZ 0x001e9cd4
JMP 0x001e9d58
SUB ESP,0xc
PUSH dword ptr [ESI + 0x4]
CALL 0x001e9740
ADD ESP,0x10
CMP EAX,dword ptr [EBP + 0x10]
JZ 0x001e9da8
ADD ESI,0x8
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x001e9d58
SUB ESP,0xc
MOV EBX,EDI
PUSH EAX
CALL 0x001e9740
ADD ESP,0x10
CMP EAX,dword ptr [EBP + 0x10]
JNZ 0x001e9cb0
SUB ESP,0xc
PUSH dword ptr [ESI + 0x4]
CALL 0x001e9740
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [EBP + 0x10]
SHL EAX,0x2
LEA ECX,[EDX + EAX*0x1]
MOV dword ptr [EBP + -0x30],EAX
MOV EAX,dword ptr [ECX]
TEST EAX,EAX
JZ 0x001e9dc0
MOV ESI,dword ptr [EBP + 0xc]
TEST ESI,ESI
JZ 0x001e9d2b
MOV EAX,dword ptr [EBP + 0xc]
SUB ESP,0xc
MOV EAX,dword ptr [EAX]
PUSH dword ptr [EBP + 0xc]
CALL dword ptr [EAX + 0x4]
ADD ESP,0x10
MOV EAX,dword ptr [EBP + -0x2c]
TEST EAX,EAX
JZ 0x001e9d4a
SUB ESP,0xc
PUSH dword ptr [EBP + -0x1c]
MOV EBX,EDI
CALL 0x00029500
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x001e9e4c
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ESI,0xffffffff
JMP 0x001e9cf7
SUB ESP,0xc
LEA ESI,[EDI + 0x7320]
MOV EBX,EDI
PUSH ESI
CALL 0x001e5390
ADD ESP,0x10
TEST EAX,EAX
JZ 0x001e9c73
XOR EDX,EDX
XOR EAX,EAX
MOV dword ptr [EDI + EAX*0x1 + 0x7328],EDX
ADD EAX,0x4
CMP EAX,0x18
JC 0x001e9d80
SUB ESP,0xc
MOV EBX,EDI
PUSH ESI
CALL 0x001e5500
ADD ESP,0x10
JMP 0x001e9c73
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x001e9740
MOV ESI,dword ptr [EBP + 0x10]
ADD ESP,0x10
MOV dword ptr [EBP + 0x10],EAX
JMP 0x001e9cf7
MOV EAX,dword ptr [EBP + 0xc]
MOV EBX,dword ptr [EBP + -0x2c]
ADD EAX,0x4
TEST EBX,EBX
JZ 0x001e9e10
ADD.LOCK dword ptr [EAX],0x1
MOV EDX,dword ptr [EBP + 0x8]
MOV ECX,dword ptr [EBP + -0x30]
MOV EDX,dword ptr [EDX + 0xc]
ADD ECX,EDX
MOV EBX,dword ptr [EBP + 0xc]
MOV dword ptr [ECX],EBX
CMP ESI,-0x1
JZ 0x001e9d2b
MOV ECX,dword ptr [EBP + -0x2c]
TEST ECX,ECX
JZ 0x001e9e19
ADD.LOCK dword ptr [EAX],0x1
MOV EAX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [EBP + 0xc]
MOV dword ptr [EDX + ESI*0x4],EAX
JMP 0x001e9d2b
MOV EBX,dword ptr [EBP + 0xc]
ADD dword ptr [EBX + 0x4],0x1
JMP 0x001e9ddc
MOV EAX,dword ptr [EBP + 0xc]
ADD dword ptr [EAX + 0x4],0x1
JMP 0x001e9dfb
SUB ESP,0xc
PUSH 0x4
CALL 0x001e6be0
LEA EDX,[EDI + 0xffffcf94]
ADD ESP,0xc
ADD EDX,0x8
MOV dword ptr [EAX],EDX
PUSH dword ptr [EDI + 0xfffffd70]
PUSH dword ptr [EDI + 0xffffff80]
PUSH EAX
CALL 0x001e5630
SUB ESP,0xc
PUSH 0x4
CALL 0x001e6be0
LEA EDX,[EDI + 0xffffcfa8]
ADD ESP,0xc
ADD EDX,0x8
MOV dword ptr [EAX],EDX
PUSH dword ptr [EDI + 0xffffffdc]
PUSH dword ptr [EDI + 0xfffffbc0]
PUSH EAX
CALL 0x001e5630
(translation_unit "void FUN_001e9c50(int param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar2 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    /* WARNING: Subroutine does not return */\n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }\n  piVar6 = (int *)(unaff_EDI + 0x1a3c87);\n  iVar1 = *piVar6;\n  do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );\n}\n\n" (function_definition "void FUN_001e9c50(int param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar2 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    /* WARNING: Subroutine does not return */\n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }\n  piVar6 = (int *)(unaff_EDI + 0x1a3c87);\n  iVar1 = *piVar6;\n  do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );\n}" primitive_type (function_declarator "FUN_001e9c50(int param_1,int *param_2,int param_3)" identifier (parameter_list "(int param_1,int *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar2 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    /* WARNING: Subroutine does not return */\n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }\n  piVar6 = (int *)(unaff_EDI + 0x1a3c87);\n  iVar1 = *piVar6;\n  do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }" if (parenthesized_expression "(*(char *)(unaff_EDI + 0x1ac6c7) == '\0')" ( (binary_expression "*(char *)(unaff_EDI + 0x1ac6c7) == '\0'" (pointer_expression "*(char *)(unaff_EDI + 0x1ac6c7)" * (cast_expression "(char *)(unaff_EDI + 0x1ac6c7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6c7)" ( (binary_expression "unaff_EDI + 0x1ac6c7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }" { (expression_statement "iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);" (assignment_expression "iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7)" identifier = (call_expression "FUN_001e5390(unaff_EDI + 0x1ac6c7)" identifier (argument_list "(unaff_EDI + 0x1ac6c7)" ( (binary_expression "unaff_EDI + 0x1ac6c7" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);" do (compound_statement "{\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      }" { (expression_statement "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6cf + uVar3)" ( (binary_expression "unaff_EDI + 0x1ac6cf + uVar3" (binary_expression "unaff_EDI + 0x1ac6cf" identifier + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" identifier = (binary_expression "uVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < 0x18)" ( (binary_expression "uVar3 < 0x18" identifier < number_literal) )) ;) (expression_statement "FUN_001e5500(unaff_EDI + 0x1ac6c7);" (call_expression "FUN_001e5500(unaff_EDI + 0x1ac6c7)" identifier (argument_list "(unaff_EDI + 0x1ac6c7)" ( (binary_expression "unaff_EDI + 0x1ac6c7" identifier + number_literal) ))) ;) })) })) (expression_statement "iVar2 = *(int *)(unaff_EDI + 0x1a52cb);" (assignment_expression "iVar2 = *(int *)(unaff_EDI + 0x1a52cb)" identifier = (pointer_expression "*(int *)(unaff_EDI + 0x1a52cb)" * (cast_expression "(int *)(unaff_EDI + 0x1a52cb)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a52cb)" ( (binary_expression "unaff_EDI + 0x1a52cb" identifier + number_literal) ))))) ;) (if_statement "if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    /* WARNING: Subroutine does not return */\n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }" if (parenthesized_expression "((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0))" ( (binary_expression "(iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)" ( (comma_expression "iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0" (assignment_expression "iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier = (call_expression "pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier (argument_list "((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" ( (cast_expression "(pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6cf)" ( (binary_expression "unaff_EDI + 0x1ac6cf" identifier + number_literal) ))) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    /* WARNING: Subroutine does not return */\n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }" { (expression_statement "piVar6 = (int *)FUN_001e6be0(4);" (assignment_expression "piVar6 = (int *)FUN_001e6be0(4)" identifier = (cast_expression "(int *)FUN_001e6be0(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e6be0(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*piVar6 = unaff_EDI + 0x1a2343;" (assignment_expression "*piVar6 = unaff_EDI + 0x1a2343" (pointer_expression "*piVar6" * identifier) = (binary_expression "unaff_EDI + 0x1a2343" identifier + number_literal)) ;) comment (expression_statement "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;" (call_expression "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))" identifier (argument_list "(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))" ( identifier , (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a5327)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1a5327)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a5327)" ( (binary_expression "unaff_EDI + 0x1a5327" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a5117)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1a5117)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a5117)" ( (binary_expression "unaff_EDI + 0x1a5117" identifier + number_literal) )))) ))) ;) })) (expression_statement "piVar6 = (int *)(unaff_EDI + 0x1a3c87);" (assignment_expression "piVar6 = (int *)(unaff_EDI + 0x1a3c87)" identifier = (cast_expression "(int *)(unaff_EDI + 0x1a3c87)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a3c87)" ( (binary_expression "unaff_EDI + 0x1a3c87" identifier + number_literal) )))) ;) (expression_statement "iVar1 = *piVar6;" (assignment_expression "iVar1 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (do_statement "do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );" do (compound_statement "{\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  }" { (if_statement "if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (labeled_statement "LAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);" statement_identifier : (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;)) (expression_statement "piVar6 = (int *)(iVar4 + param_3 * 4);" (assignment_expression "piVar6 = (int *)(iVar4 + param_3 * 4)" identifier = (cast_expression "(int *)(iVar4 + param_3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + param_3 * 4)" ( (binary_expression "iVar4 + param_3 * 4" identifier + (binary_expression "param_3 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }" if (parenthesized_expression "(*piVar6 == 0)" ( (binary_expression "*piVar6 == 0" (pointer_expression "*piVar6" * identifier) == number_literal) )) (compound_statement "{\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }" { (expression_statement "piVar5 = param_2 + 1;" (assignment_expression "piVar5 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          param_2[1] = param_2[1] + 1;\n        }" { (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }" else (compound_statement "{\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*piVar5 = *piVar5 + 1;" (assignment_expression "*piVar5 = *piVar5 + 1" (pointer_expression "*piVar5" * identifier) = (binary_expression "*piVar5 + 1" (pointer_expression "*piVar5" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "piVar6 = (int *)(param_3 * 4 + iVar4);" (assignment_expression "piVar6 = (int *)(param_3 * 4 + iVar4)" identifier = (cast_expression "(int *)(param_3 * 4 + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 * 4 + iVar4)" ( (binary_expression "param_3 * 4 + iVar4" (binary_expression "param_3 * 4" identifier * number_literal) + identifier) )))) ;) }))) (expression_statement "*piVar6 = (int)param_2;" (assignment_expression "*piVar6 = (int)param_2" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }" { (if_statement "if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            param_2[1] = param_2[1] + 1;\n          }" { (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }" else (compound_statement "{\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*piVar5 = *piVar5 + 1;" (assignment_expression "*piVar5 = *piVar5 + 1" (pointer_expression "*piVar5" * identifier) = (binary_expression "*piVar5 + 1" (pointer_expression "*piVar5" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }))) (expression_statement "*(int **)(iVar4 + iVar1 * 4) = param_2;" (assignment_expression "*(int **)(iVar4 + iVar1 * 4) = param_2" (pointer_expression "*(int **)(iVar4 + iVar1 * 4)" * (cast_expression "(int **)(iVar4 + iVar1 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + iVar1 * 4)" ( (binary_expression "iVar4 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) })) }) (else_clause "else if (param_2 != (int *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }" else (if_statement "if (param_2 != (int *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }" if (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*param_2 + 4))(param_2);\n      }" { comment (expression_statement "(**(code **)(*param_2 + 4))(param_2);" (call_expression "(**(code **)(*param_2 + 4))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 4))" ( (pointer_expression "**(code **)(*param_2 + 4)" * (pointer_expression "*(code **)(*param_2 + 4)" * (cast_expression "(code **)(*param_2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 4)" ( (binary_expression "*param_2 + 4" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier ))) ;) })))) (if_statement "if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }" if (parenthesized_expression "((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0))" ( (binary_expression "(iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)" ( (comma_expression "iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0" (assignment_expression "iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier (argument_list "((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" ( (cast_expression "(pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6cf)" ( (binary_expression "unaff_EDI + 0x1ac6cf" identifier + number_literal) ))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }" { (expression_statement "piVar6 = (int *)FUN_001e6be0(4);" (assignment_expression "piVar6 = (int *)FUN_001e6be0(4)" identifier = (cast_expression "(int *)FUN_001e6be0(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e6be0(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*piVar6 = unaff_EDI + 0x1a2357;" (assignment_expression "*piVar6 = unaff_EDI + 0x1a2357" (pointer_expression "*piVar6" * identifier) = (binary_expression "unaff_EDI + 0x1a2357" identifier + number_literal)) ;) comment comment (expression_statement "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));" (call_expression "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI))" identifier (argument_list "(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI))" ( identifier , (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a4f67)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1a4f67)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a4f67)" ( (binary_expression "unaff_EDI + 0x1a4f67" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(&DAT_001a5383 + unaff_EDI)" * (cast_expression "(undefined4 *)(&DAT_001a5383 + unaff_EDI)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001a5383 + unaff_EDI)" ( (binary_expression "&DAT_001a5383 + unaff_EDI" (pointer_expression "&DAT_001a5383" & identifier) + identifier) )))) ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_001e9740(iVar1);" (assignment_expression "iVar1 = FUN_001e9740(iVar1)" identifier = (call_expression "FUN_001e9740(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }" if (parenthesized_expression "(iVar1 == param_3)" ( (binary_expression "iVar1 == param_3" identifier == identifier) )) (compound_statement "{\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }" { (expression_statement "iVar1 = FUN_001e9740(piVar6[1]);" (assignment_expression "iVar1 = FUN_001e9740(piVar6[1])" identifier = (call_expression "FUN_001e9740(piVar6[1])" identifier (argument_list "(piVar6[1])" ( (subscript_expression "piVar6[1]" identifier [ number_literal ]) )))) ;) (goto_statement "goto LAB_001e9cf7;" goto statement_identifier ;) })) (expression_statement "iVar1 = FUN_001e9740(piVar6[1]);" (assignment_expression "iVar1 = FUN_001e9740(piVar6[1])" identifier = (call_expression "FUN_001e9740(piVar6[1])" identifier (argument_list "(piVar6[1])" ( (subscript_expression "piVar6[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }" if (parenthesized_expression "(iVar1 == param_3)" ( (binary_expression "iVar1 == param_3" identifier == identifier) )) (compound_statement "{\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }" { (expression_statement "iVar4 = FUN_001e9740(*piVar6);" (assignment_expression "iVar4 = FUN_001e9740(*piVar6)" identifier = (call_expression "FUN_001e9740(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "iVar1 = param_3;" (assignment_expression "iVar1 = param_3" identifier = identifier) ;) (expression_statement "param_3 = iVar4;" (assignment_expression "param_3 = iVar4" identifier = identifier) ;) (goto_statement "goto LAB_001e9cf7;" goto statement_identifier ;) })) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) (expression_statement "iVar1 = *piVar6;" (assignment_expression "iVar1 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* std::locale::_Impl::_M_install_cache(std::locale::facet const*, unsigned int) */\n\nvoid __thiscall std::locale::_Impl::_M_install_cache(_Impl *this,facet *param_1,uint param_2)\n\n{\n  id *this_00;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  facet *pfVar5;\n  int *piVar6;\n  undefined4 *puVar7;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar3 = __cxa_guard_acquire(unaff_EDI + 0x1ac6c7);\n    if (iVar3 != 0) {\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < 0x18);\n      __cxa_guard_release(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar3 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar3 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)__cxa_allocate_exception(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    /* WARNING: Subroutine does not return */\n    __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117));\n  }\n  puVar7 = (undefined4 *)(unaff_EDI + 0x1a3c87);\n  this_00 = (id *)*puVar7;\n  do {\n    if (this_00 == (id *)0x0) {\n      uVar2 = 0xffffffff;\nLAB_001e9cf7:\n      iVar1 = *(int *)(this + 0xc);\n      piVar6 = (int *)(iVar1 + param_2 * 4);\n      if (*piVar6 == 0) {\n        pfVar5 = param_1 + 4;\n        if (iVar3 == 0) {\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }\n        *piVar6 = (int)param_1;\n        if (uVar2 != 0xffffffff) {\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }\n      if ((iVar3 != 0) &&\n         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)) {\n        piVar6 = (int *)__cxa_allocate_exception(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    uVar2 = locale::id::_M_id(this_00);\n    if (uVar2 == param_2) {\n      uVar2 = locale::id::_M_id((id *)puVar7[1]);\n      goto LAB_001e9cf7;\n    }\n    uVar2 = locale::id::_M_id((id *)puVar7[1]);\n    if (uVar2 == param_2) {\n      uVar4 = locale::id::_M_id((id *)*puVar7);\n      uVar2 = param_2;\n      param_2 = uVar4;\n      goto LAB_001e9cf7;\n    }\n    puVar7 = puVar7 + 2;\n    this_00 = (id *)*puVar7;\n  } while( true );\n}\n\n" comment (function_definition "void __thiscall std::locale::_Impl::_M_install_cache(_Impl *this,facet *param_1,uint param_2)\n\n{\n  id *this_00;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  facet *pfVar5;\n  int *piVar6;\n  undefined4 *puVar7;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar3 = __cxa_guard_acquire(unaff_EDI + 0x1ac6c7);\n    if (iVar3 != 0) {\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < 0x18);\n      __cxa_guard_release(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar3 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar3 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)__cxa_allocate_exception(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    /* WARNING: Subroutine does not return */\n    __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117));\n  }\n  puVar7 = (undefined4 *)(unaff_EDI + 0x1a3c87);\n  this_00 = (id *)*puVar7;\n  do {\n    if (this_00 == (id *)0x0) {\n      uVar2 = 0xffffffff;\nLAB_001e9cf7:\n      iVar1 = *(int *)(this + 0xc);\n      piVar6 = (int *)(iVar1 + param_2 * 4);\n      if (*piVar6 == 0) {\n        pfVar5 = param_1 + 4;\n        if (iVar3 == 0) {\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }\n        *piVar6 = (int)param_1;\n        if (uVar2 != 0xffffffff) {\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }\n      if ((iVar3 != 0) &&\n         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)) {\n        piVar6 = (int *)__cxa_allocate_exception(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    uVar2 = locale::id::_M_id(this_00);\n    if (uVar2 == param_2) {\n      uVar2 = locale::id::_M_id((id *)puVar7[1]);\n      goto LAB_001e9cf7;\n    }\n    uVar2 = locale::id::_M_id((id *)puVar7[1]);\n    if (uVar2 == param_2) {\n      uVar4 = locale::id::_M_id((id *)*puVar7);\n      uVar2 = param_2;\n      param_2 = uVar4;\n      goto LAB_001e9cf7;\n    }\n    puVar7 = puVar7 + 2;\n    this_00 = (id *)*puVar7;\n  } while( true );\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::locale::_Impl::" identifier : : identifier : : identifier : :) (function_declarator "_M_install_cache(_Impl *this,facet *param_1,uint param_2)" identifier (parameter_list "(_Impl *this,facet *param_1,uint param_2)" ( (parameter_declaration "_Impl *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "facet *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  id *this_00;\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  facet *pfVar5;\n  int *piVar6;\n  undefined4 *puVar7;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar3 = __cxa_guard_acquire(unaff_EDI + 0x1ac6c7);\n    if (iVar3 != 0) {\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < 0x18);\n      __cxa_guard_release(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar3 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar3 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)__cxa_allocate_exception(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    /* WARNING: Subroutine does not return */\n    __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117));\n  }\n  puVar7 = (undefined4 *)(unaff_EDI + 0x1a3c87);\n  this_00 = (id *)*puVar7;\n  do {\n    if (this_00 == (id *)0x0) {\n      uVar2 = 0xffffffff;\nLAB_001e9cf7:\n      iVar1 = *(int *)(this + 0xc);\n      piVar6 = (int *)(iVar1 + param_2 * 4);\n      if (*piVar6 == 0) {\n        pfVar5 = param_1 + 4;\n        if (iVar3 == 0) {\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }\n        *piVar6 = (int)param_1;\n        if (uVar2 != 0xffffffff) {\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }\n      if ((iVar3 != 0) &&\n         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)) {\n        piVar6 = (int *)__cxa_allocate_exception(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    uVar2 = locale::id::_M_id(this_00);\n    if (uVar2 == param_2) {\n      uVar2 = locale::id::_M_id((id *)puVar7[1]);\n      goto LAB_001e9cf7;\n    }\n    uVar2 = locale::id::_M_id((id *)puVar7[1]);\n    if (uVar2 == param_2) {\n      uVar4 = locale::id::_M_id((id *)*puVar7);\n      uVar2 = param_2;\n      param_2 = uVar4;\n      goto LAB_001e9cf7;\n    }\n    puVar7 = puVar7 + 2;\n    this_00 = (id *)*puVar7;\n  } while( true );\n}" { (declaration "id *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "facet *pfVar5;" type_identifier (pointer_declarator "*pfVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar3 = __cxa_guard_acquire(unaff_EDI + 0x1ac6c7);\n    if (iVar3 != 0) {\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < 0x18);\n      __cxa_guard_release(unaff_EDI + 0x1ac6c7);\n    }\n  }" if (parenthesized_expression "(*(char *)(unaff_EDI + 0x1ac6c7) == '\0')" ( (binary_expression "*(char *)(unaff_EDI + 0x1ac6c7) == '\0'" (pointer_expression "*(char *)(unaff_EDI + 0x1ac6c7)" * (cast_expression "(char *)(unaff_EDI + 0x1ac6c7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6c7)" ( (binary_expression "unaff_EDI + 0x1ac6c7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar3 = __cxa_guard_acquire(unaff_EDI + 0x1ac6c7);\n    if (iVar3 != 0) {\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < 0x18);\n      __cxa_guard_release(unaff_EDI + 0x1ac6c7);\n    }\n  }" { (expression_statement "iVar3 = __cxa_guard_acquire(unaff_EDI + 0x1ac6c7);" (assignment_expression "iVar3 = __cxa_guard_acquire(unaff_EDI + 0x1ac6c7)" identifier = (call_expression "__cxa_guard_acquire(unaff_EDI + 0x1ac6c7)" identifier (argument_list "(unaff_EDI + 0x1ac6c7)" ( (binary_expression "unaff_EDI + 0x1ac6c7" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) {\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < 0x18);\n      __cxa_guard_release(unaff_EDI + 0x1ac6c7);\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < 0x18);\n      __cxa_guard_release(unaff_EDI + 0x1ac6c7);\n    }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      } while (uVar2 < 0x18);" do (compound_statement "{\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;\n        uVar2 = uVar2 + 4;\n      }" { (expression_statement "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0;" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2) = 0" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6cf + uVar2)" ( (binary_expression "unaff_EDI + 0x1ac6cf + uVar2" (binary_expression "unaff_EDI + 0x1ac6cf" identifier + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "uVar2 = uVar2 + 4;" (assignment_expression "uVar2 = uVar2 + 4" identifier = (binary_expression "uVar2 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar2 < 0x18)" ( (binary_expression "uVar2 < 0x18" identifier < number_literal) )) ;) (expression_statement "__cxa_guard_release(unaff_EDI + 0x1ac6c7);" (call_expression "__cxa_guard_release(unaff_EDI + 0x1ac6c7)" identifier (argument_list "(unaff_EDI + 0x1ac6c7)" ( (binary_expression "unaff_EDI + 0x1ac6c7" identifier + number_literal) ))) ;) })) })) (expression_statement "iVar3 = *(int *)(unaff_EDI + 0x1a52cb);" (assignment_expression "iVar3 = *(int *)(unaff_EDI + 0x1a52cb)" identifier = (pointer_expression "*(int *)(unaff_EDI + 0x1a52cb)" * (cast_expression "(int *)(unaff_EDI + 0x1a52cb)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a52cb)" ( (binary_expression "unaff_EDI + 0x1a52cb" identifier + number_literal) ))))) ;) (if_statement "if ((iVar3 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)__cxa_allocate_exception(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    /* WARNING: Subroutine does not return */\n    __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117));\n  }" if (parenthesized_expression "((iVar3 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0))" ( (binary_expression "(iVar3 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)" ( (comma_expression "iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0" (assignment_expression "iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier = (call_expression "pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier (argument_list "((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" ( (cast_expression "(pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6cf)" ( (binary_expression "unaff_EDI + 0x1ac6cf" identifier + number_literal) ))) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    piVar6 = (int *)__cxa_allocate_exception(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    /* WARNING: Subroutine does not return */\n    __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117));\n  }" { (expression_statement "piVar6 = (int *)__cxa_allocate_exception(4);" (assignment_expression "piVar6 = (int *)__cxa_allocate_exception(4)" identifier = (cast_expression "(int *)__cxa_allocate_exception(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*piVar6 = unaff_EDI + 0x1a2343;" (assignment_expression "*piVar6 = unaff_EDI + 0x1a2343" (pointer_expression "*piVar6" * identifier) = (binary_expression "unaff_EDI + 0x1a2343" identifier + number_literal)) ;) comment (expression_statement "__cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117));" (call_expression "__cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))" identifier (argument_list "(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))" ( identifier , (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a5327)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1a5327)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a5327)" ( (binary_expression "unaff_EDI + 0x1a5327" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a5117)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1a5117)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a5117)" ( (binary_expression "unaff_EDI + 0x1a5117" identifier + number_literal) )))) ))) ;) })) (expression_statement "puVar7 = (undefined4 *)(unaff_EDI + 0x1a3c87);" (assignment_expression "puVar7 = (undefined4 *)(unaff_EDI + 0x1a3c87)" identifier = (cast_expression "(undefined4 *)(unaff_EDI + 0x1a3c87)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a3c87)" ( (binary_expression "unaff_EDI + 0x1a3c87" identifier + number_literal) )))) ;) (expression_statement "this_00 = (id *)*puVar7;" (assignment_expression "this_00 = (id *)*puVar7" identifier = (cast_expression "(id *)*puVar7" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) ;) (do_statement "do {\n    if (this_00 == (id *)0x0) {\n      uVar2 = 0xffffffff;\nLAB_001e9cf7:\n      iVar1 = *(int *)(this + 0xc);\n      piVar6 = (int *)(iVar1 + param_2 * 4);\n      if (*piVar6 == 0) {\n        pfVar5 = param_1 + 4;\n        if (iVar3 == 0) {\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }\n        *piVar6 = (int)param_1;\n        if (uVar2 != 0xffffffff) {\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }\n      if ((iVar3 != 0) &&\n         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)) {\n        piVar6 = (int *)__cxa_allocate_exception(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    uVar2 = locale::id::_M_id(this_00);\n    if (uVar2 == param_2) {\n      uVar2 = locale::id::_M_id((id *)puVar7[1]);\n      goto LAB_001e9cf7;\n    }\n    uVar2 = locale::id::_M_id((id *)puVar7[1]);\n    if (uVar2 == param_2) {\n      uVar4 = locale::id::_M_id((id *)*puVar7);\n      uVar2 = param_2;\n      param_2 = uVar4;\n      goto LAB_001e9cf7;\n    }\n    puVar7 = puVar7 + 2;\n    this_00 = (id *)*puVar7;\n  } while( true );" do (compound_statement "{\n    if (this_00 == (id *)0x0) {\n      uVar2 = 0xffffffff;\nLAB_001e9cf7:\n      iVar1 = *(int *)(this + 0xc);\n      piVar6 = (int *)(iVar1 + param_2 * 4);\n      if (*piVar6 == 0) {\n        pfVar5 = param_1 + 4;\n        if (iVar3 == 0) {\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }\n        *piVar6 = (int)param_1;\n        if (uVar2 != 0xffffffff) {\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }\n      if ((iVar3 != 0) &&\n         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)) {\n        piVar6 = (int *)__cxa_allocate_exception(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    uVar2 = locale::id::_M_id(this_00);\n    if (uVar2 == param_2) {\n      uVar2 = locale::id::_M_id((id *)puVar7[1]);\n      goto LAB_001e9cf7;\n    }\n    uVar2 = locale::id::_M_id((id *)puVar7[1]);\n    if (uVar2 == param_2) {\n      uVar4 = locale::id::_M_id((id *)*puVar7);\n      uVar2 = param_2;\n      param_2 = uVar4;\n      goto LAB_001e9cf7;\n    }\n    puVar7 = puVar7 + 2;\n    this_00 = (id *)*puVar7;\n  }" { (if_statement "if (this_00 == (id *)0x0) {\n      uVar2 = 0xffffffff;\nLAB_001e9cf7:\n      iVar1 = *(int *)(this + 0xc);\n      piVar6 = (int *)(iVar1 + param_2 * 4);\n      if (*piVar6 == 0) {\n        pfVar5 = param_1 + 4;\n        if (iVar3 == 0) {\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }\n        *piVar6 = (int)param_1;\n        if (uVar2 != 0xffffffff) {\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }\n      if ((iVar3 != 0) &&\n         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)) {\n        piVar6 = (int *)__cxa_allocate_exception(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }" if (parenthesized_expression "(this_00 == (id *)0x0)" ( (binary_expression "this_00 == (id *)0x0" identifier == (cast_expression "(id *)0x0" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar2 = 0xffffffff;\nLAB_001e9cf7:\n      iVar1 = *(int *)(this + 0xc);\n      piVar6 = (int *)(iVar1 + param_2 * 4);\n      if (*piVar6 == 0) {\n        pfVar5 = param_1 + 4;\n        if (iVar3 == 0) {\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }\n        *piVar6 = (int)param_1;\n        if (uVar2 != 0xffffffff) {\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }\n      if ((iVar3 != 0) &&\n         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)) {\n        piVar6 = (int *)__cxa_allocate_exception(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (labeled_statement "LAB_001e9cf7:\n      iVar1 = *(int *)(this + 0xc);" statement_identifier : (expression_statement "iVar1 = *(int *)(this + 0xc);" (assignment_expression "iVar1 = *(int *)(this + 0xc)" identifier = (pointer_expression "*(int *)(this + 0xc)" * (cast_expression "(int *)(this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;)) (expression_statement "piVar6 = (int *)(iVar1 + param_2 * 4);" (assignment_expression "piVar6 = (int *)(iVar1 + param_2 * 4)" identifier = (cast_expression "(int *)(iVar1 + param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_2 * 4)" ( (binary_expression "iVar1 + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*piVar6 == 0) {\n        pfVar5 = param_1 + 4;\n        if (iVar3 == 0) {\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }\n        *piVar6 = (int)param_1;\n        if (uVar2 != 0xffffffff) {\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }" if (parenthesized_expression "(*piVar6 == 0)" ( (binary_expression "*piVar6 == 0" (pointer_expression "*piVar6" * identifier) == number_literal) )) (compound_statement "{\n        pfVar5 = param_1 + 4;\n        if (iVar3 == 0) {\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }\n        *piVar6 = (int)param_1;\n        if (uVar2 != 0xffffffff) {\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }\n      }" { (expression_statement "pfVar5 = param_1 + 4;" (assignment_expression "pfVar5 = param_1 + 4" identifier = (binary_expression "param_1 + 4" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0) {\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n        }" { (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + 1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }" else (compound_statement "{\n          LOCK();\n          *(int *)pfVar5 = *(int *)pfVar5 + 1;\n          UNLOCK();\n          iVar1 = *(int *)(this + 0xc);\n          piVar6 = (int *)(param_2 * 4 + iVar1);\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)pfVar5 = *(int *)pfVar5 + 1;" (assignment_expression "*(int *)pfVar5 = *(int *)pfVar5 + 1" (pointer_expression "*(int *)pfVar5" * (cast_expression "(int *)pfVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)pfVar5 + 1" (pointer_expression "*(int *)pfVar5" * (cast_expression "(int *)pfVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(this + 0xc);" (assignment_expression "iVar1 = *(int *)(this + 0xc)" identifier = (pointer_expression "*(int *)(this + 0xc)" * (cast_expression "(int *)(this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (expression_statement "piVar6 = (int *)(param_2 * 4 + iVar1);" (assignment_expression "piVar6 = (int *)(param_2 * 4 + iVar1)" identifier = (cast_expression "(int *)(param_2 * 4 + iVar1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 * 4 + iVar1)" ( (binary_expression "param_2 * 4 + iVar1" (binary_expression "param_2 * 4" identifier * number_literal) + identifier) )))) ;) }))) (expression_statement "*piVar6 = (int)param_1;" (assignment_expression "*piVar6 = (int)param_1" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (uVar2 != 0xffffffff) {\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }" if (parenthesized_expression "(uVar2 != 0xffffffff)" ( (binary_expression "uVar2 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n          if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }\n          *(facet **)(iVar1 + uVar2 * 4) = param_1;\n        }" { (if_statement "if (iVar3 == 0) {\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n          }" { (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + 1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }" else (compound_statement "{\n            LOCK();\n            *(int *)pfVar5 = *(int *)pfVar5 + 1;\n            UNLOCK();\n            iVar1 = *(int *)(this + 0xc);\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)pfVar5 = *(int *)pfVar5 + 1;" (assignment_expression "*(int *)pfVar5 = *(int *)pfVar5 + 1" (pointer_expression "*(int *)pfVar5" * (cast_expression "(int *)pfVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)pfVar5 + 1" (pointer_expression "*(int *)pfVar5" * (cast_expression "(int *)pfVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(this + 0xc);" (assignment_expression "iVar1 = *(int *)(this + 0xc)" identifier = (pointer_expression "*(int *)(this + 0xc)" * (cast_expression "(int *)(this + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) }))) (expression_statement "*(facet **)(iVar1 + uVar2 * 4) = param_1;" (assignment_expression "*(facet **)(iVar1 + uVar2 * 4) = param_1" (pointer_expression "*(facet **)(iVar1 + uVar2 * 4)" * (cast_expression "(facet **)(iVar1 + uVar2 * 4)" ( (type_descriptor "facet **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + uVar2 * 4)" ( (binary_expression "iVar1 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) = identifier) ;) })) }) (else_clause "else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }" else (if_statement "if (param_1 != (facet *)0x0) {\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }" if (parenthesized_expression "(param_1 != (facet *)0x0)" ( (binary_expression "param_1 != (facet *)0x0" identifier != (cast_expression "(facet *)0x0" ( (type_descriptor "facet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */\n        (**(code **)(*(int *)param_1 + 4))(param_1);\n      }" { comment (expression_statement "(**(code **)(*(int *)param_1 + 4))(param_1);" (call_expression "(**(code **)(*(int *)param_1 + 4))(param_1)" (parenthesized_expression "(**(code **)(*(int *)param_1 + 4))" ( (pointer_expression "**(code **)(*(int *)param_1 + 4)" * (pointer_expression "*(code **)(*(int *)param_1 + 4)" * (cast_expression "(code **)(*(int *)param_1 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)param_1 + 4)" ( (binary_expression "*(int *)param_1 + 4" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier ))) ;) })))) (if_statement "if ((iVar3 != 0) &&\n         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)) {\n        piVar6 = (int *)__cxa_allocate_exception(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }" if (parenthesized_expression "((iVar3 != 0) &&\n         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0))" ( (binary_expression "(iVar3 != 0) &&\n         (iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)" (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0)" ( (comma_expression "iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar3 != 0" (assignment_expression "iVar3 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier (argument_list "((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" ( (cast_expression "(pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6cf)" ( (binary_expression "unaff_EDI + 0x1ac6cf" identifier + number_literal) ))) )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        piVar6 = (int *)__cxa_allocate_exception(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */\n        __cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }" { (expression_statement "piVar6 = (int *)__cxa_allocate_exception(4);" (assignment_expression "piVar6 = (int *)__cxa_allocate_exception(4)" identifier = (cast_expression "(int *)__cxa_allocate_exception(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*piVar6 = unaff_EDI + 0x1a2357;" (assignment_expression "*piVar6 = unaff_EDI + 0x1a2357" (pointer_expression "*piVar6" * identifier) = (binary_expression "unaff_EDI + 0x1a2357" identifier + number_literal)) ;) comment comment (expression_statement "__cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI));" (call_expression "__cxa_throw(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI))" identifier (argument_list "(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                    *(undefined4 *)(&DAT_001a5383 + unaff_EDI))" ( identifier , (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a4f67)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1a4f67)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a4f67)" ( (binary_expression "unaff_EDI + 0x1a4f67" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(&DAT_001a5383 + unaff_EDI)" * (cast_expression "(undefined4 *)(&DAT_001a5383 + unaff_EDI)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001a5383 + unaff_EDI)" ( (binary_expression "&DAT_001a5383 + unaff_EDI" (pointer_expression "&DAT_001a5383" & identifier) + identifier) )))) ))) ;) })) (return_statement "return;" return ;) })) (ERROR "uVar2 = locale::" (assignment_expression "uVar2 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id(this_00);" (call_expression "_M_id(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) (if_statement "if (uVar2 == param_2) {\n      uVar2 = locale::id::_M_id((id *)puVar7[1]);\n      goto LAB_001e9cf7;\n    }" if (parenthesized_expression "(uVar2 == param_2)" ( (binary_expression "uVar2 == param_2" identifier == identifier) )) (compound_statement "{\n      uVar2 = locale::id::_M_id((id *)puVar7[1]);\n      goto LAB_001e9cf7;\n    }" { (ERROR "uVar2 = locale::" (assignment_expression "uVar2 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id((id *)puVar7[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id((id *)puVar7[1]);" (call_expression "_M_id((id *)puVar7[1])" identifier (argument_list "((id *)puVar7[1])" ( (cast_expression "(id *)puVar7[1]" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar7[1]" identifier [ number_literal ])) ))) ;)) (goto_statement "goto LAB_001e9cf7;" goto statement_identifier ;) })) (ERROR "uVar2 = locale::" (assignment_expression "uVar2 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id((id *)puVar7[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id((id *)puVar7[1]);" (call_expression "_M_id((id *)puVar7[1])" identifier (argument_list "((id *)puVar7[1])" ( (cast_expression "(id *)puVar7[1]" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar7[1]" identifier [ number_literal ])) ))) ;)) (if_statement "if (uVar2 == param_2) {\n      uVar4 = locale::id::_M_id((id *)*puVar7);\n      uVar2 = param_2;\n      param_2 = uVar4;\n      goto LAB_001e9cf7;\n    }" if (parenthesized_expression "(uVar2 == param_2)" ( (binary_expression "uVar2 == param_2" identifier == identifier) )) (compound_statement "{\n      uVar4 = locale::id::_M_id((id *)*puVar7);\n      uVar2 = param_2;\n      param_2 = uVar4;\n      goto LAB_001e9cf7;\n    }" { (ERROR "uVar4 = locale::" (assignment_expression "uVar4 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id((id *)*puVar7);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id((id *)*puVar7);" (call_expression "_M_id((id *)*puVar7)" identifier (argument_list "((id *)*puVar7)" ( (cast_expression "(id *)*puVar7" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier)) ))) ;)) (expression_statement "uVar2 = param_2;" (assignment_expression "uVar2 = param_2" identifier = identifier) ;) (expression_statement "param_2 = uVar4;" (assignment_expression "param_2 = uVar4" identifier = identifier) ;) (goto_statement "goto LAB_001e9cf7;" goto statement_identifier ;) })) (expression_statement "puVar7 = puVar7 + 2;" (assignment_expression "puVar7 = puVar7 + 2" identifier = (binary_expression "puVar7 + 2" identifier + number_literal)) ;) (expression_statement "this_00 = (id *)*puVar7;" (assignment_expression "this_00 = (id *)*puVar7" identifier = (cast_expression "(id *)*puVar7" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar7" * identifier))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_001e9c50(int param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar2 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    \n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }\n  piVar6 = (int *)(unaff_EDI + 0x1a3c87);\n  iVar1 = *piVar6;\n  do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );\n}\n\n" (function_definition "void FUN_001e9c50(int param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar2 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    \n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }\n  piVar6 = (int *)(unaff_EDI + 0x1a3c87);\n  iVar1 = *piVar6;\n  do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );\n}" primitive_type (function_declarator "FUN_001e9c50(int param_1,int *param_2,int param_3)" identifier (parameter_list "(int param_1,int *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar2 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    \n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }\n  piVar6 = (int *)(unaff_EDI + 0x1a3c87);\n  iVar1 = *piVar6;\n  do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }" if (parenthesized_expression "(*(char *)(unaff_EDI + 0x1ac6c7) == '\0')" ( (binary_expression "*(char *)(unaff_EDI + 0x1ac6c7) == '\0'" (pointer_expression "*(char *)(unaff_EDI + 0x1ac6c7)" * (cast_expression "(char *)(unaff_EDI + 0x1ac6c7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6c7)" ( (binary_expression "unaff_EDI + 0x1ac6c7" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }" { (expression_statement "iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);" (assignment_expression "iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7)" identifier = (call_expression "FUN_001e5390(unaff_EDI + 0x1ac6c7)" identifier (argument_list "(unaff_EDI + 0x1ac6c7)" ( (binary_expression "unaff_EDI + 0x1ac6c7" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);" do (compound_statement "{\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      }" { (expression_statement "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6cf + uVar3)" ( (binary_expression "unaff_EDI + 0x1ac6cf + uVar3" (binary_expression "unaff_EDI + 0x1ac6cf" identifier + number_literal) + identifier) )))) = number_literal) ;) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" identifier = (binary_expression "uVar3 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar3 < 0x18)" ( (binary_expression "uVar3 < 0x18" identifier < number_literal) )) ;) (expression_statement "FUN_001e5500(unaff_EDI + 0x1ac6c7);" (call_expression "FUN_001e5500(unaff_EDI + 0x1ac6c7)" identifier (argument_list "(unaff_EDI + 0x1ac6c7)" ( (binary_expression "unaff_EDI + 0x1ac6c7" identifier + number_literal) ))) ;) })) })) (expression_statement "iVar2 = *(int *)(unaff_EDI + 0x1a52cb);" (assignment_expression "iVar2 = *(int *)(unaff_EDI + 0x1a52cb)" identifier = (pointer_expression "*(int *)(unaff_EDI + 0x1a52cb)" * (cast_expression "(int *)(unaff_EDI + 0x1a52cb)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a52cb)" ( (binary_expression "unaff_EDI + 0x1a52cb" identifier + number_literal) ))))) ;) (if_statement "if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    \n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }" if (parenthesized_expression "((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0))" ( (binary_expression "(iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)" ( (comma_expression "iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0" (assignment_expression "iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier = (call_expression "pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier (argument_list "((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" ( (cast_expression "(pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6cf)" ( (binary_expression "unaff_EDI + 0x1ac6cf" identifier + number_literal) ))) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    \n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }" { (expression_statement "piVar6 = (int *)FUN_001e6be0(4);" (assignment_expression "piVar6 = (int *)FUN_001e6be0(4)" identifier = (cast_expression "(int *)FUN_001e6be0(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e6be0(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*piVar6 = unaff_EDI + 0x1a2343;" (assignment_expression "*piVar6 = unaff_EDI + 0x1a2343" (pointer_expression "*piVar6" * identifier) = (binary_expression "unaff_EDI + 0x1a2343" identifier + number_literal)) ;) (expression_statement "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;" (call_expression "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))" identifier (argument_list "(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))" ( identifier , (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a5327)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1a5327)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a5327)" ( (binary_expression "unaff_EDI + 0x1a5327" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a5117)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1a5117)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a5117)" ( (binary_expression "unaff_EDI + 0x1a5117" identifier + number_literal) )))) ))) ;) })) (expression_statement "piVar6 = (int *)(unaff_EDI + 0x1a3c87);" (assignment_expression "piVar6 = (int *)(unaff_EDI + 0x1a3c87)" identifier = (cast_expression "(int *)(unaff_EDI + 0x1a3c87)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a3c87)" ( (binary_expression "unaff_EDI + 0x1a3c87" identifier + number_literal) )))) ;) (expression_statement "iVar1 = *piVar6;" (assignment_expression "iVar1 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (do_statement "do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );" do (compound_statement "{\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  }" { (if_statement "if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) (labeled_statement "LAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);" statement_identifier : (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;)) (expression_statement "piVar6 = (int *)(iVar4 + param_3 * 4);" (assignment_expression "piVar6 = (int *)(iVar4 + param_3 * 4)" identifier = (cast_expression "(int *)(iVar4 + param_3 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + param_3 * 4)" ( (binary_expression "iVar4 + param_3 * 4" identifier + (binary_expression "param_3 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }" if (parenthesized_expression "(*piVar6 == 0)" ( (binary_expression "*piVar6 == 0" (pointer_expression "*piVar6" * identifier) == number_literal) )) (compound_statement "{\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }" { (expression_statement "piVar5 = param_2 + 1;" (assignment_expression "piVar5 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          param_2[1] = param_2[1] + 1;\n        }" { (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }" else (compound_statement "{\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*piVar5 = *piVar5 + 1;" (assignment_expression "*piVar5 = *piVar5 + 1" (pointer_expression "*piVar5" * identifier) = (binary_expression "*piVar5 + 1" (pointer_expression "*piVar5" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "piVar6 = (int *)(param_3 * 4 + iVar4);" (assignment_expression "piVar6 = (int *)(param_3 * 4 + iVar4)" identifier = (cast_expression "(int *)(param_3 * 4 + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 * 4 + iVar4)" ( (binary_expression "param_3 * 4 + iVar4" (binary_expression "param_3 * 4" identifier * number_literal) + identifier) )))) ;) }))) (expression_statement "*piVar6 = (int)param_2;" (assignment_expression "*piVar6 = (int)param_2" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }" { (if_statement "if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            param_2[1] = param_2[1] + 1;\n          }" { (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }" else (compound_statement "{\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*piVar5 = *piVar5 + 1;" (assignment_expression "*piVar5 = *piVar5 + 1" (pointer_expression "*piVar5" * identifier) = (binary_expression "*piVar5 + 1" (pointer_expression "*piVar5" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) }))) (expression_statement "*(int **)(iVar4 + iVar1 * 4) = param_2;" (assignment_expression "*(int **)(iVar4 + iVar1 * 4) = param_2" (pointer_expression "*(int **)(iVar4 + iVar1 * 4)" * (cast_expression "(int **)(iVar4 + iVar1 * 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + iVar1 * 4)" ( (binary_expression "iVar4 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) = identifier) ;) })) }) (else_clause "else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }" else (if_statement "if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }" if (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }" { (expression_statement "(**(code **)(*param_2 + 4))(param_2);" (call_expression "(**(code **)(*param_2 + 4))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 4))" ( (pointer_expression "**(code **)(*param_2 + 4)" * (pointer_expression "*(code **)(*param_2 + 4)" * (cast_expression "(code **)(*param_2 + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 4)" ( (binary_expression "*param_2 + 4" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier ))) ;) })))) (if_statement "if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }" if (parenthesized_expression "((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0))" ( (binary_expression "(iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)" ( (comma_expression "iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0" (assignment_expression "iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" identifier (argument_list "((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" ( (cast_expression "(pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1ac6cf)" ( (binary_expression "unaff_EDI + 0x1ac6cf" identifier + number_literal) ))) )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }" { (expression_statement "piVar6 = (int *)FUN_001e6be0(4);" (assignment_expression "piVar6 = (int *)FUN_001e6be0(4)" identifier = (cast_expression "(int *)FUN_001e6be0(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e6be0(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*piVar6 = unaff_EDI + 0x1a2357;" (assignment_expression "*piVar6 = unaff_EDI + 0x1a2357" (pointer_expression "*piVar6" * identifier) = (binary_expression "unaff_EDI + 0x1a2357" identifier + number_literal)) ;) (expression_statement "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));" (call_expression "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI))" identifier (argument_list "(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI))" ( identifier , (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a4f67)" * (cast_expression "(undefined4 *)(unaff_EDI + 0x1a4f67)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0x1a4f67)" ( (binary_expression "unaff_EDI + 0x1a4f67" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(&DAT_001a5383 + unaff_EDI)" * (cast_expression "(undefined4 *)(&DAT_001a5383 + unaff_EDI)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_001a5383 + unaff_EDI)" ( (binary_expression "&DAT_001a5383 + unaff_EDI" (pointer_expression "&DAT_001a5383" & identifier) + identifier) )))) ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "iVar1 = FUN_001e9740(iVar1);" (assignment_expression "iVar1 = FUN_001e9740(iVar1)" identifier = (call_expression "FUN_001e9740(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }" if (parenthesized_expression "(iVar1 == param_3)" ( (binary_expression "iVar1 == param_3" identifier == identifier) )) (compound_statement "{\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }" { (expression_statement "iVar1 = FUN_001e9740(piVar6[1]);" (assignment_expression "iVar1 = FUN_001e9740(piVar6[1])" identifier = (call_expression "FUN_001e9740(piVar6[1])" identifier (argument_list "(piVar6[1])" ( (subscript_expression "piVar6[1]" identifier [ number_literal ]) )))) ;) (goto_statement "goto LAB_001e9cf7;" goto statement_identifier ;) })) (expression_statement "iVar1 = FUN_001e9740(piVar6[1]);" (assignment_expression "iVar1 = FUN_001e9740(piVar6[1])" identifier = (call_expression "FUN_001e9740(piVar6[1])" identifier (argument_list "(piVar6[1])" ( (subscript_expression "piVar6[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }" if (parenthesized_expression "(iVar1 == param_3)" ( (binary_expression "iVar1 == param_3" identifier == identifier) )) (compound_statement "{\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }" { (expression_statement "iVar4 = FUN_001e9740(*piVar6);" (assignment_expression "iVar4 = FUN_001e9740(*piVar6)" identifier = (call_expression "FUN_001e9740(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "iVar1 = param_3;" (assignment_expression "iVar1 = param_3" identifier = identifier) ;) (expression_statement "param_3 = iVar4;" (assignment_expression "param_3 = iVar4" identifier = identifier) ;) (goto_statement "goto LAB_001e9cf7;" goto statement_identifier ;) })) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) (expression_statement "iVar1 = *piVar6;" (assignment_expression "iVar1 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < LIT) )) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (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 * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + 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) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) + IDENT) )))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + 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) ))))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) = IDENT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (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 * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) ))) ;) })) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_001e9c50(int param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar2 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    \n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }\n  piVar6 = (int *)(unaff_EDI + 0x1a3c87);\n  iVar1 = *piVar6;\n  do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_001e9c50(int param_1,int *param_2,int param_3)" (identifier "FUN_001e9c50") (parameter_list "(int param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int *piVar5;\n  int *piVar6;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }\n  iVar2 = *(int *)(unaff_EDI + 0x1a52cb);\n  if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    \n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }\n  piVar6 = (int *)(unaff_EDI + 0x1a3c87);\n  iVar1 = *piVar6;\n  do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" (identifier "FUN_000559ee") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(unaff_EDI + 0x1ac6c7) == '\0')" (( "(") (binary_expression "*(char *)(unaff_EDI + 0x1ac6c7) == '\0'" (pointer_expression "*(char *)(unaff_EDI + 0x1ac6c7)" (* "*") (cast_expression "(char *)(unaff_EDI + 0x1ac6c7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1ac6c7)" (( "(") (binary_expression "unaff_EDI + 0x1ac6c7" (identifier "unaff_EDI") (+ "+") (number_literal "0x1ac6c7")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);\n    if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);" (assignment_expression "iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7)" (identifier "iVar2") (= "=") (call_expression "FUN_001e5390(unaff_EDI + 0x1ac6c7)" (identifier "FUN_001e5390") (argument_list "(unaff_EDI + 0x1ac6c7)" (( "(") (binary_expression "unaff_EDI + 0x1ac6c7" (identifier "unaff_EDI") (+ "+") (number_literal "0x1ac6c7")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 0;\n      do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);\n      FUN_001e5500(unaff_EDI + 0x1ac6c7);\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      } while (uVar3 < 0x18);" (do "do") (compound_statement "{\n        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;\n        uVar3 = uVar3 + 4;\n      }" ({ "{") (expression_statement "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;" (assignment_expression "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0" (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3)" (* "*") (cast_expression "(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1ac6cf + uVar3)" (( "(") (binary_expression "unaff_EDI + 0x1ac6cf + uVar3" (binary_expression "unaff_EDI + 0x1ac6cf" (identifier "unaff_EDI") (+ "+") (number_literal "0x1ac6cf")) (+ "+") (identifier "uVar3")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = uVar3 + 4;" (assignment_expression "uVar3 = uVar3 + 4" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 4" (identifier "uVar3") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 < 0x18)" (( "(") (binary_expression "uVar3 < 0x18" (identifier "uVar3") (< "<") (number_literal "0x18")) () ")")) (; ";")) (expression_statement "FUN_001e5500(unaff_EDI + 0x1ac6c7);" (call_expression "FUN_001e5500(unaff_EDI + 0x1ac6c7)" (identifier "FUN_001e5500") (argument_list "(unaff_EDI + 0x1ac6c7)" (( "(") (binary_expression "unaff_EDI + 0x1ac6c7" (identifier "unaff_EDI") (+ "+") (number_literal "0x1ac6c7")) () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar2 = *(int *)(unaff_EDI + 0x1a52cb);" (assignment_expression "iVar2 = *(int *)(unaff_EDI + 0x1a52cb)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(unaff_EDI + 0x1a52cb)" (* "*") (cast_expression "(int *)(unaff_EDI + 0x1a52cb)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1a52cb)" (( "(") (binary_expression "unaff_EDI + 0x1a52cb" (identifier "unaff_EDI") (+ "+") (number_literal "0x1a52cb")) () ")"))))) (; ";")) (if_statement "if ((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    \n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0))" (( "(") (binary_expression "(iVar2 != 0) &&\n     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)" (( "(") (comma_expression "iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0" (assignment_expression "iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" (identifier "iVar1") (= "=") (call_expression "pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" (identifier "pthread_mutex_lock") (argument_list "((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" (( "(") (cast_expression "(pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1ac6cf)" (( "(") (binary_expression "unaff_EDI + 0x1ac6cf" (identifier "unaff_EDI") (+ "+") (number_literal "0x1ac6cf")) () ")"))) () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    piVar6 = (int *)FUN_001e6be0(4);\n    *piVar6 = unaff_EDI + 0x1a2343;\n                    \n    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;\n  }" ({ "{") (expression_statement "piVar6 = (int *)FUN_001e6be0(4);" (assignment_expression "piVar6 = (int *)FUN_001e6be0(4)" (identifier "piVar6") (= "=") (cast_expression "(int *)FUN_001e6be0(4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e6be0(4)" (identifier "FUN_001e6be0") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*piVar6 = unaff_EDI + 0x1a2343;" (assignment_expression "*piVar6 = unaff_EDI + 0x1a2343" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (binary_expression "unaff_EDI + 0x1a2343" (identifier "unaff_EDI") (+ "+") (number_literal "0x1a2343"))) (; ";")) (expression_statement "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))\n    ;" (call_expression "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))" (identifier "FUN_001e5630") (argument_list "(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))" (( "(") (identifier "piVar6") (, ",") (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a5327)" (* "*") (cast_expression "(undefined4 *)(unaff_EDI + 0x1a5327)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1a5327)" (( "(") (binary_expression "unaff_EDI + 0x1a5327" (identifier "unaff_EDI") (+ "+") (number_literal "0x1a5327")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a5117)" (* "*") (cast_expression "(undefined4 *)(unaff_EDI + 0x1a5117)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1a5117)" (( "(") (binary_expression "unaff_EDI + 0x1a5117" (identifier "unaff_EDI") (+ "+") (number_literal "0x1a5117")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "piVar6 = (int *)(unaff_EDI + 0x1a3c87);" (assignment_expression "piVar6 = (int *)(unaff_EDI + 0x1a3c87)" (identifier "piVar6") (= "=") (cast_expression "(int *)(unaff_EDI + 0x1a3c87)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1a3c87)" (( "(") (binary_expression "unaff_EDI + 0x1a3c87" (identifier "unaff_EDI") (+ "+") (number_literal "0x1a3c87")) () ")")))) (; ";")) (expression_statement "iVar1 = *piVar6;" (assignment_expression "iVar1 = *piVar6" (identifier "iVar1") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (do_statement "do {\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  } while( true );" (do "do") (compound_statement "{\n    if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }\n    iVar1 = FUN_001e9740(iVar1);\n    if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }\n    iVar1 = FUN_001e9740(piVar6[1]);\n    if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }\n    piVar6 = piVar6 + 2;\n    iVar1 = *piVar6;\n  }" ({ "{") (if_statement "if (iVar1 == 0) {\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = -1;\nLAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);\n      piVar6 = (int *)(iVar4 + param_3 * 4);\n      if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }\n      if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }\n      return;\n    }" ({ "{") (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (labeled_statement "LAB_001e9cf7:\n      iVar4 = *(int *)(param_1 + 0xc);" (statement_identifier "LAB_001e9cf7") (: ":") (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";"))) (expression_statement "piVar6 = (int *)(iVar4 + param_3 * 4);" (assignment_expression "piVar6 = (int *)(iVar4 + param_3 * 4)" (identifier "piVar6") (= "=") (cast_expression "(int *)(iVar4 + param_3 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + param_3 * 4)" (( "(") (binary_expression "iVar4 + param_3 * 4" (identifier "iVar4") (+ "+") (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if (*piVar6 == 0) {\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }\n      else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }" (if "if") (parenthesized_expression "(*piVar6 == 0)" (( "(") (binary_expression "*piVar6 == 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        piVar5 = param_2 + 1;\n        if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }\n        *piVar6 = (int)param_2;\n        if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }\n      }" ({ "{") (expression_statement "piVar5 = param_2 + 1;" (assignment_expression "piVar5 = param_2 + 1" (identifier "piVar5") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 == 0) {\n          param_2[1] = param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          param_2[1] = param_2[1] + 1;\n        }" ({ "{") (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }" (else "else") (compound_statement "{\n          LOCK();\n          *piVar5 = *piVar5 + 1;\n          UNLOCK();\n          iVar4 = *(int *)(param_1 + 0xc);\n          piVar6 = (int *)(param_3 * 4 + iVar4);\n        }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*piVar5 = *piVar5 + 1;" (assignment_expression "*piVar5 = *piVar5 + 1" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (binary_expression "*piVar5 + 1" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "piVar6 = (int *)(param_3 * 4 + iVar4);" (assignment_expression "piVar6 = (int *)(param_3 * 4 + iVar4)" (identifier "piVar6") (= "=") (cast_expression "(int *)(param_3 * 4 + iVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 * 4 + iVar4)" (( "(") (binary_expression "param_3 * 4 + iVar4" (binary_expression "param_3 * 4" (identifier "param_3") (* "*") (number_literal "4")) (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (} "}")))) (expression_statement "*piVar6 = (int)param_2;" (assignment_expression "*piVar6 = (int)param_2" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (; ";")) (if_statement "if (iVar1 != -1) {\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n          if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }\n          *(int **)(iVar4 + iVar1 * 4) = param_2;\n        }" ({ "{") (if_statement "if (iVar2 == 0) {\n            param_2[1] = param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            param_2[1] = param_2[1] + 1;\n          }" ({ "{") (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }" (else "else") (compound_statement "{\n            LOCK();\n            *piVar5 = *piVar5 + 1;\n            UNLOCK();\n            iVar4 = *(int *)(param_1 + 0xc);\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*piVar5 = *piVar5 + 1;" (assignment_expression "*piVar5 = *piVar5 + 1" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (binary_expression "*piVar5 + 1" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")))) (expression_statement "*(int **)(iVar4 + iVar1 * 4) = param_2;" (assignment_expression "*(int **)(iVar4 + iVar1 * 4) = param_2" (pointer_expression "*(int **)(iVar4 + iVar1 * 4)" (* "*") (cast_expression "(int **)(iVar4 + iVar1 * 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + iVar1 * 4)" (( "(") (binary_expression "iVar4 + iVar1 * 4" (identifier "iVar4") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }" (else "else") (if_statement "if (param_2 != (int *)0x0) {\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }" (if "if") (parenthesized_expression "(param_2 != (int *)0x0)" (( "(") (binary_expression "param_2 != (int *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n        (**(code **)(*param_2 + 4))(param_2);\n      }" ({ "{") (expression_statement "(**(code **)(*param_2 + 4))(param_2);" (call_expression "(**(code **)(*param_2 + 4))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 4))" (( "(") (pointer_expression "**(code **)(*param_2 + 4)" (* "*") (pointer_expression "*(code **)(*param_2 + 4)" (* "*") (cast_expression "(code **)(*param_2 + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 4)" (( "(") (binary_expression "*param_2 + 4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}"))))) (if_statement "if ((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }" (if "if") (parenthesized_expression "((iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0))" (( "(") (binary_expression "(iVar2 != 0) &&\n         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)" (( "(") (comma_expression "iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0" (assignment_expression "iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" (identifier "iVar2") (= "=") (call_expression "pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" (identifier "pthread_mutex_unlock") (argument_list "((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf))" (( "(") (cast_expression "(pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1ac6cf)" (( "(") (binary_expression "unaff_EDI + 0x1ac6cf" (identifier "unaff_EDI") (+ "+") (number_literal "0x1ac6cf")) () ")"))) () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        piVar6 = (int *)FUN_001e6be0(4);\n        *piVar6 = unaff_EDI + 0x1a2357;\n                    \n                    \n        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));\n      }" ({ "{") (expression_statement "piVar6 = (int *)FUN_001e6be0(4);" (assignment_expression "piVar6 = (int *)FUN_001e6be0(4)" (identifier "piVar6") (= "=") (cast_expression "(int *)FUN_001e6be0(4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e6be0(4)" (identifier "FUN_001e6be0") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*piVar6 = unaff_EDI + 0x1a2357;" (assignment_expression "*piVar6 = unaff_EDI + 0x1a2357" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (binary_expression "unaff_EDI + 0x1a2357" (identifier "unaff_EDI") (+ "+") (number_literal "0x1a2357"))) (; ";")) (expression_statement "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));" (call_expression "FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI))" (identifier "FUN_001e5630") (argument_list "(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),\n                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI))" (( "(") (identifier "piVar6") (, ",") (pointer_expression "*(undefined4 *)(unaff_EDI + 0x1a4f67)" (* "*") (cast_expression "(undefined4 *)(unaff_EDI + 0x1a4f67)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0x1a4f67)" (( "(") (binary_expression "unaff_EDI + 0x1a4f67" (identifier "unaff_EDI") (+ "+") (number_literal "0x1a4f67")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(&DAT_001a5383 + unaff_EDI)" (* "*") (cast_expression "(undefined4 *)(&DAT_001a5383 + unaff_EDI)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_001a5383 + unaff_EDI)" (( "(") (binary_expression "&DAT_001a5383 + unaff_EDI" (pointer_expression "&DAT_001a5383" (& "&") (identifier "DAT_001a5383")) (+ "+") (identifier "unaff_EDI")) () ")")))) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_001e9740(iVar1);" (assignment_expression "iVar1 = FUN_001e9740(iVar1)" (identifier "iVar1") (= "=") (call_expression "FUN_001e9740(iVar1)" (identifier "FUN_001e9740") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar1 == param_3) {\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }" (if "if") (parenthesized_expression "(iVar1 == param_3)" (( "(") (binary_expression "iVar1 == param_3" (identifier "iVar1") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n      iVar1 = FUN_001e9740(piVar6[1]);\n      goto LAB_001e9cf7;\n    }" ({ "{") (expression_statement "iVar1 = FUN_001e9740(piVar6[1]);" (assignment_expression "iVar1 = FUN_001e9740(piVar6[1])" (identifier "iVar1") (= "=") (call_expression "FUN_001e9740(piVar6[1])" (identifier "FUN_001e9740") (argument_list "(piVar6[1])" (( "(") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (goto_statement "goto LAB_001e9cf7;" (goto "goto") (statement_identifier "LAB_001e9cf7") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_001e9740(piVar6[1]);" (assignment_expression "iVar1 = FUN_001e9740(piVar6[1])" (identifier "iVar1") (= "=") (call_expression "FUN_001e9740(piVar6[1])" (identifier "FUN_001e9740") (argument_list "(piVar6[1])" (( "(") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar1 == param_3) {\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }" (if "if") (parenthesized_expression "(iVar1 == param_3)" (( "(") (binary_expression "iVar1 == param_3" (identifier "iVar1") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n      iVar4 = FUN_001e9740(*piVar6);\n      iVar1 = param_3;\n      param_3 = iVar4;\n      goto LAB_001e9cf7;\n    }" ({ "{") (expression_statement "iVar4 = FUN_001e9740(*piVar6);" (assignment_expression "iVar4 = FUN_001e9740(*piVar6)" (identifier "iVar4") (= "=") (call_expression "FUN_001e9740(*piVar6)" (identifier "FUN_001e9740") (argument_list "(*piVar6)" (( "(") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")")))) (; ";")) (expression_statement "iVar1 = param_3;" (assignment_expression "iVar1 = param_3" (identifier "iVar1") (= "=") (identifier "param_3")) (; ";")) (expression_statement "param_3 = iVar4;" (assignment_expression "param_3 = iVar4" (identifier "param_3") (= "=") (identifier "iVar4")) (; ";")) (goto_statement "goto LAB_001e9cf7;" (goto "goto") (statement_identifier "LAB_001e9cf7") (; ";")) (} "}"))) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar1 = *piVar6;" (assignment_expression "iVar1 = *piVar6" (identifier "iVar1") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* std::locale::_Impl::_M_install_cache(std::locale::facet const*, unsigned int) */

void __thiscall std::locale::type_1::function_1(type_1 *var_12,type_2 *var_14,type_3 var_13)

{
  type_4 *var_11;
  int var_8;
  type_3 var_5;
  int var_4;
  type_3 uVar4;
  type_2 *pfVar5;
  int *piVar6;
  type_5 *var_19;
  int var_2;
  
  var_1();
  if (*(char *)(var_2 + 0x1ac6c7) == '\0') {
    var_4 = var_3(var_2 + 0x1ac6c7);
    if (var_4 != 0) {
      var_5 = 0;
      do {
        *(type_5 *)(var_2 + 0x1ac6cf + var_5) = 0;
        var_5 = var_5 + 4;
      } while (var_5 < 0x18);
      var_6(var_2 + 0x1ac6c7);
    }
  }
  var_4 = *(int *)(var_2 + 0x1a52cb);
  if ((var_4 != 0) &&
     (var_8 = var_7((type_6 *)(var_2 + 0x1ac6cf)), var_8 != 0)) {
    piVar6 = (int *)var_9(4);
    *piVar6 = var_2 + 0x1a2343;
                    /* WARNING: Subroutine does not return */
    var_10(piVar6,*(type_5 *)(var_2 + 0x1a5327),*(type_5 *)(var_2 + 0x1a5117));
  }
  var_19 = (type_5 *)(var_2 + 0x1a3c87);
  var_11 = (type_4 *)*var_19;
  do {
    if (var_11 == (type_4 *)0x0) {
      var_5 = 0xffffffff;
LAB_001e9cf7:
      var_8 = *(int *)(var_12 + 0xc);
      piVar6 = (int *)(var_8 + var_13 * 4);
      if (*piVar6 == 0) {
        pfVar5 = var_14 + 4;
        if (var_4 == 0) {
          *(int *)(var_14 + 4) = *(int *)(var_14 + 4) + 1;
        }
        else {
          var_15();
          *(int *)pfVar5 = *(int *)pfVar5 + 1;
          var_16();
          var_8 = *(int *)(var_12 + 0xc);
          piVar6 = (int *)(var_13 * 4 + var_8);
        }
        *piVar6 = (int)var_14;
        if (var_5 != 0xffffffff) {
          if (var_4 == 0) {
            *(int *)(var_14 + 4) = *(int *)(var_14 + 4) + 1;
          }
          else {
            var_15();
            *(int *)pfVar5 = *(int *)pfVar5 + 1;
            var_16();
            var_8 = *(int *)(var_12 + 0xc);
          }
          *(type_2 **)(var_8 + var_5 * 4) = var_14;
        }
      }
      else if (var_14 != (type_2 *)0x0) {
                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */
        (**(type_7 **)(*(int *)var_14 + 4))(var_14);
      }
      if ((var_4 != 0) &&
         (var_4 = var_17((type_6 *)(var_2 + 0x1ac6cf)), var_4 != 0)) {
        piVar6 = (int *)var_9(4);
        *piVar6 = var_2 + 0x1a2357;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */
        var_10(piVar6,*(type_5 *)(var_2 + 0x1a4f67),
                    *(type_5 *)(&DAT_001a5383 + var_2));
      }
      return;
    }
    var_5 = locale::id::var_18(var_11);
    if (var_5 == var_13) {
      var_5 = locale::id::var_18((type_4 *)var_19[1]);
      goto LAB_001e9cf7;
    }
    var_5 = locale::id::var_18((type_4 *)var_19[1]);
    if (var_5 == var_13) {
      uVar4 = locale::id::var_18((type_4 *)*var_19);
      var_5 = var_13;
      var_13 = uVar4;
      goto LAB_001e9cf7;
    }
    var_19 = var_19 + 2;
    var_11 = (type_4 *)*var_19;
  } while( true );
}


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

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

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  int *piVar5;
  int *piVar6;
  int unaff_EDI;
  
  FUN_000559ee();
  if (*(char *)(unaff_EDI + 0x1ac6c7) == '\0') {
    iVar2 = FUN_001e5390(unaff_EDI + 0x1ac6c7);
    if (iVar2 != 0) {
      uVar3 = 0;
      do {
        *(undefined4 *)(unaff_EDI + 0x1ac6cf + uVar3) = 0;
        uVar3 = uVar3 + 4;
      } while (uVar3 < 0x18);
      FUN_001e5500(unaff_EDI + 0x1ac6c7);
    }
  }
  iVar2 = *(int *)(unaff_EDI + 0x1a52cb);
  if ((iVar2 != 0) &&
     (iVar1 = pthread_mutex_lock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar1 != 0)) {
    piVar6 = (int *)FUN_001e6be0(4);
    *piVar6 = unaff_EDI + 0x1a2343;
                    /* WARNING: Subroutine does not return */
    FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a5327),*(undefined4 *)(unaff_EDI + 0x1a5117))
    ;
  }
  piVar6 = (int *)(unaff_EDI + 0x1a3c87);
  iVar1 = *piVar6;
  do {
    if (iVar1 == 0) {
      iVar1 = -1;
LAB_001e9cf7:
      iVar4 = *(int *)(param_1 + 0xc);
      piVar6 = (int *)(iVar4 + param_3 * 4);
      if (*piVar6 == 0) {
        piVar5 = param_2 + 1;
        if (iVar2 == 0) {
          param_2[1] = param_2[1] + 1;
        }
        else {
          LOCK();
          *piVar5 = *piVar5 + 1;
          UNLOCK();
          iVar4 = *(int *)(param_1 + 0xc);
          piVar6 = (int *)(param_3 * 4 + iVar4);
        }
        *piVar6 = (int)param_2;
        if (iVar1 != -1) {
          if (iVar2 == 0) {
            param_2[1] = param_2[1] + 1;
          }
          else {
            LOCK();
            *piVar5 = *piVar5 + 1;
            UNLOCK();
            iVar4 = *(int *)(param_1 + 0xc);
          }
          *(int **)(iVar4 + iVar1 * 4) = param_2;
        }
      }
      else if (param_2 != (int *)0x0) {
                    /* try { // try from 001e9d25 to 001e9d27 has its CatchHandler @ 001e9e76 */
        (**(code **)(*param_2 + 4))(param_2);
      }
      if ((iVar2 != 0) &&
         (iVar2 = pthread_mutex_unlock((pthread_mutex_t *)(unaff_EDI + 0x1ac6cf)), iVar2 != 0)) {
        piVar6 = (int *)FUN_001e6be0(4);
        *piVar6 = unaff_EDI + 0x1a2357;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001e9e71 to 001e9e75 has its CatchHandler @ 001e9e7d */
        FUN_001e5630(piVar6,*(undefined4 *)(unaff_EDI + 0x1a4f67),
                     *(undefined4 *)(&DAT_001a5383 + unaff_EDI));
      }
      return;
    }
    iVar1 = FUN_001e9740(iVar1);
    if (iVar1 == param_3) {
      iVar1 = FUN_001e9740(piVar6[1]);
      goto LAB_001e9cf7;
    }
    iVar1 = FUN_001e9740(piVar6[1]);
    if (iVar1 == param_3) {
      iVar4 = FUN_001e9740(*piVar6);
      iVar1 = param_3;
      param_3 = iVar4;
      goto LAB_001e9cf7;
    }
    piVar6 = piVar6 + 2;
    iVar1 = *piVar6;
  } while( true );
}

