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

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

{
  facet *pfVar1;
  id *this_00;
  undefined *puVar2;
  int iVar3;
  ulong uVar4;
  ulong uVar5;
  undefined8 *puVar6;
  long *plVar7;
  long lVar8;
  undefined **ppuVar9;
  
  if ((::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex == '\0') &&
     (iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::
                                   locale_cache_mutex), iVar3 != 0)) {
    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._32_8_ = 0;
    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._0_16_ =
         (undefined1  [16])0x0;
    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._16_16_ =
         (undefined1  [16])0x0;
    __cxa_guard_release(&::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex);
  }
  puVar2 = PTR___pthread_key_create_003bdee8;
  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&
     (iVar3 = pthread_mutex_lock((pthread_mutex_t *)
                                 ::(anonymous_namespace)::get_locale_cache_mutex()::
                                 locale_cache_mutex), iVar3 != 0)) {
    puVar6 = (undefined8 *)__cxa_allocate_exception(8);
    *puVar6 = &PTR____concurrence_lock_error_003b8480;
                    /* WARNING: Subroutine does not return */
    __cxa_throw(puVar6,&__concurrence_lock_error::typeinfo,
                __concurrence_lock_error::~__concurrence_lock_error);
  }
  ppuVar9 = &_S_twinned_facets;
  this_00 = (id *)_S_twinned_facets;
  do {
    uVar4 = param_2;
    if (this_00 == (id *)0x0) {
      param_2 = 0xffffffffffffffff;
LAB_00279960:
      lVar8 = *(long *)(this + 0x18);
      plVar7 = (long *)(lVar8 + uVar4 * 8);
      if (*plVar7 == 0) {
        pfVar1 = param_1 + 8;
        if (puVar2 == (undefined *)0x0) {
          *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;
        }
        else {
          LOCK();
          *(int *)pfVar1 = *(int *)pfVar1 + 1;
          UNLOCK();
          lVar8 = *(long *)(this + 0x18);
          plVar7 = (long *)(lVar8 + uVar4 * 8);
        }
        *plVar7 = (long)param_1;
        if (param_2 != 0xffffffffffffffff) {
          if (puVar2 == (undefined *)0x0) {
            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;
          }
          else {
            LOCK();
            *(int *)pfVar1 = *(int *)pfVar1 + 1;
            UNLOCK();
            lVar8 = *(long *)(this + 0x18);
          }
          *(facet **)(lVar8 + param_2 * 8) = param_1;
        }
      }
      else if (param_1 != (facet *)0x0) {
                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */
        (**(code **)(*(long *)param_1 + 8))(param_1);
      }
      if ((puVar2 != (undefined *)0x0) &&
         (iVar3 = pthread_mutex_unlock
                            ((pthread_mutex_t *)
                             ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex),
         iVar3 != 0)) {
        puVar6 = (undefined8 *)__cxa_allocate_exception(8);
        *puVar6 = &PTR____concurrence_unlock_error_003b84a8;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */
        __cxa_throw(puVar6,&__concurrence_unlock_error::typeinfo,
                    __concurrence_unlock_error::~__concurrence_unlock_error);
      }
      return;
    }
    uVar5 = locale::id::_M_id(this_00);
    if (uVar5 == param_2) {
      uVar5 = locale::id::_M_id((id *)ppuVar9[1]);
      param_2 = uVar5;
      goto LAB_00279960;
    }
    uVar4 = locale::id::_M_id((id *)ppuVar9[1]);
    if (uVar4 == param_2) {
      uVar4 = locale::id::_M_id((id *)*ppuVar9);
      goto LAB_00279960;
    }
    ppuVar9 = ppuVar9 + 2;
    this_00 = (id *)*ppuVar9;
  } while( true );
}



/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

void FUN_002798d0(long param_1,long *param_2,long param_3)

{
  long *plVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  long lVar5;
  long lVar6;
  undefined8 *puVar7;
  long *plVar8;
  undefined **ppuVar9;
  
  if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {
    _DAT_003c9320 = 0;
    _DAT_003c9300 = (undefined1  [16])0x0;
    _DAT_003c9310 = (undefined1  [16])0x0;
    FUN_002757f0(&DAT_003c92e8);
  }
  puVar3 = PTR___pthread_key_create_003bdee8;
  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&
     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {
    puVar7 = (undefined8 *)FUN_00276bb0(8);
    *puVar7 = &PTR_FUN_003b8480;
                    /* WARNING: Subroutine does not return */
    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);
  }
  ppuVar9 = &PTR_DAT_003bb5c0;
  puVar2 = PTR_DAT_003bb5c0;
  do {
    lVar5 = param_3;
    if (puVar2 == (undefined *)0x0) {
      param_3 = -1;
LAB_00279960:
      lVar6 = *(long *)(param_1 + 0x18);
      plVar8 = (long *)(lVar6 + lVar5 * 8);
      if (*plVar8 == 0) {
        plVar1 = param_2 + 1;
        if (puVar3 == (undefined *)0x0) {
          *(int *)(param_2 + 1) = (int)param_2[1] + 1;
        }
        else {
          LOCK();
          *(int *)plVar1 = (int)*plVar1 + 1;
          UNLOCK();
          lVar6 = *(long *)(param_1 + 0x18);
          plVar8 = (long *)(lVar6 + lVar5 * 8);
        }
        *plVar8 = (long)param_2;
        if (param_3 != -1) {
          if (puVar3 == (undefined *)0x0) {
            *(int *)(param_2 + 1) = (int)param_2[1] + 1;
          }
          else {
            LOCK();
            *(int *)plVar1 = (int)*plVar1 + 1;
            UNLOCK();
            lVar6 = *(long *)(param_1 + 0x18);
          }
          *(long **)(lVar6 + param_3 * 8) = param_2;
        }
      }
      else if (param_2 != (long *)0x0) {
                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */
        (**(code **)(*param_2 + 8))(param_2);
      }
      if ((puVar3 != (undefined *)0x0) &&
         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {
        puVar7 = (undefined8 *)FUN_00276bb0(8);
        *puVar7 = &PTR_FUN_003b84a8;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */
        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);
      }
      return;
    }
    lVar6 = FUN_00279460();
    if (lVar6 == param_3) {
      param_3 = FUN_00279460(ppuVar9[1]);
      goto LAB_00279960;
    }
    lVar5 = FUN_00279460(ppuVar9[1]);
    if (lVar5 == param_3) {
      lVar5 = FUN_00279460(*ppuVar9);
      goto LAB_00279960;
    }
    ppuVar9 = ppuVar9 + 2;
    puVar2 = *ppuVar9;
  } while( true );
}


PUSH R14
MOV R14,RDI
PUSH R13
PUSH R12
MOV R12,RSI
PUSH RBP
MOV RBP,RDX
PUSH RBX
SUB RSP,0x10
MOVZX EAX,byte ptr [0x003c92e8]
TEST AL,AL
JZ 0x002799c0
MOV R13,qword ptr [0x003bdee8]
LEA RDI,[0x3c9300]
MOV qword ptr [RSP + 0x8],RDI
TEST R13,R13
JZ 0x00279919
CALL 0x0013e9b0
TEST EAX,EAX
JNZ 0x00279a70
LEA RBX,[0x3bb5c0]
MOV RDI,qword ptr [RBX]
TEST RDI,RDI
JNZ 0x0027994a
JMP 0x002799b0
CALL 0x00279460
CMP RAX,RBP
JZ 0x00279a08
ADD RBX,0x10
MOV RDI,qword ptr [RBX]
TEST RDI,RDI
JZ 0x002799b0
CALL 0x00279460
MOV RDI,qword ptr [RBX + 0x8]
CMP RAX,RBP
JNZ 0x00279930
CALL 0x00279460
MOV RSI,RAX
MOV RDX,qword ptr [R14 + 0x18]
SHL RBP,0x3
LEA RCX,[RDX + RBP*0x1]
CMP qword ptr [RCX],0x0
JZ 0x00279a20
TEST R12,R12
JZ 0x00279985
MOV RAX,qword ptr [R12]
MOV RDI,R12
CALL qword ptr [RAX + 0x8]
TEST R13,R13
JZ 0x0027999c
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0013ea80
TEST EAX,EAX
JNZ 0x00279a9e
ADD RSP,0x10
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
MOV RSI,-0x1
JMP 0x00279960
LEA RDI,[0x3c92e8]
CALL 0x002756c0
TEST EAX,EAX
JZ 0x002798f4
PXOR XMM0,XMM0
LEA RDI,[0x3c92e8]
MOV qword ptr [0x003c9320],0x0
MOVAPS xmmword ptr [0x003c9300],XMM0
MOVAPS xmmword ptr [0x003c9310],XMM0
CALL 0x002757f0
JMP 0x002798f4
MOV RDI,qword ptr [RBX]
CALL 0x00279460
MOV RSI,RBP
MOV RBP,RAX
JMP 0x00279960
LEA RAX,[R12 + 0x8]
TEST R13,R13
JZ 0x00279a60
ADD.LOCK dword ptr [RAX],0x1
MOV RDX,qword ptr [R14 + 0x18]
LEA RCX,[RDX + RBP*0x1]
MOV qword ptr [RCX],R12
CMP RSI,-0x1
JZ 0x00279985
TEST R13,R13
JZ 0x00279a68
ADD.LOCK dword ptr [RAX],0x1
MOV RDX,qword ptr [R14 + 0x18]
MOV qword ptr [RDX + RSI*0x8],R12
JMP 0x00279985
ADD dword ptr [R12 + 0x8],0x1
JMP 0x00279a36
ADD dword ptr [R12 + 0x8],0x1
JMP 0x00279a50
MOV EDI,0x8
CALL 0x00276bb0
LEA RDX,[0x3b8470]
LEA RSI,[0x3b8440]
MOV RDI,RAX
ADD RDX,0x10
MOV qword ptr [RAX],RDX
LEA RDX,[0x2767f0]
CALL 0x002758d0
MOV EDI,0x8
CALL 0x00276bb0
LEA RDX,[0x3b8498]
LEA RSI,[0x3b8458]
MOV RDI,RAX
ADD RDX,0x10
MOV qword ptr [RAX],RDX
LEA RDX,[0x276810]
CALL 0x002758d0
(translation_unit "/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nvoid FUN_002798d0(long param_1,long *param_2,long param_3)\n\n{\n  long *plVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  long *plVar8;\n  undefined **ppuVar9;\n  \n  if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }\n  puVar3 = PTR___pthread_key_create_003bdee8;\n  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    /* WARNING: Subroutine does not return */\n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }\n  ppuVar9 = &PTR_DAT_003bb5c0;\n  puVar2 = PTR_DAT_003bb5c0;\n  do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );\n}\n\n" comment (function_definition "void FUN_002798d0(long param_1,long *param_2,long param_3)\n\n{\n  long *plVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  long *plVar8;\n  undefined **ppuVar9;\n  \n  if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }\n  puVar3 = PTR___pthread_key_create_003bdee8;\n  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    /* WARNING: Subroutine does not return */\n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }\n  ppuVar9 = &PTR_DAT_003bb5c0;\n  puVar2 = PTR_DAT_003bb5c0;\n  do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );\n}" primitive_type (function_declarator "FUN_002798d0(long param_1,long *param_2,long param_3)" identifier (parameter_list "(long param_1,long *param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long *plVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  long *plVar8;\n  undefined **ppuVar9;\n  \n  if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }\n  puVar3 = PTR___pthread_key_create_003bdee8;\n  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    /* WARNING: Subroutine does not return */\n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }\n  ppuVar9 = &PTR_DAT_003bb5c0;\n  puVar2 = PTR_DAT_003bb5c0;\n  do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "long *plVar8;" (sized_type_specifier "long" long) (pointer_declarator "*plVar8" * identifier) ;) (declaration "undefined **ppuVar9;" type_identifier (pointer_declarator "**ppuVar9" * (pointer_declarator "*ppuVar9" * identifier)) ;) (if_statement "if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }" if (parenthesized_expression "((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0))" ( (binary_expression "(DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)" (parenthesized_expression "(DAT_003c92e8 == '\0')" ( (binary_expression "DAT_003c92e8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)" ( (comma_expression "iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0" (assignment_expression "iVar4 = FUN_002756c0(&DAT_003c92e8)" identifier = (call_expression "FUN_002756c0(&DAT_003c92e8)" identifier (argument_list "(&DAT_003c92e8)" ( (pointer_expression "&DAT_003c92e8" & identifier) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }" { (expression_statement "_DAT_003c9320 = 0;" (assignment_expression "_DAT_003c9320 = 0" identifier = number_literal) ;) (expression_statement "_DAT_003c9300 = (undefined1  [16])0x0;" (assignment_expression "_DAT_003c9300 = (undefined1  [16])0x0" identifier = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "_DAT_003c9310 = (undefined1  [16])0x0;" (assignment_expression "_DAT_003c9310 = (undefined1  [16])0x0" identifier = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "FUN_002757f0(&DAT_003c92e8);" (call_expression "FUN_002757f0(&DAT_003c92e8)" identifier (argument_list "(&DAT_003c92e8)" ( (pointer_expression "&DAT_003c92e8" & identifier) ))) ;) })) (expression_statement "puVar3 = PTR___pthread_key_create_003bdee8;" (assignment_expression "puVar3 = PTR___pthread_key_create_003bdee8" identifier = identifier) ;) (if_statement "if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    /* WARNING: Subroutine does not return */\n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }" if (parenthesized_expression "((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0))" ( (binary_expression "(PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" (parenthesized_expression "(PTR___pthread_key_create_003bdee8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" ( (comma_expression "iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0" (assignment_expression "iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300)" identifier = (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300)" identifier (argument_list "((pthread_mutex_t *)&DAT_003c9300)" ( (cast_expression "(pthread_mutex_t *)&DAT_003c9300" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_003c9300" & identifier)) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    /* WARNING: Subroutine does not return */\n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }" { (expression_statement "puVar7 = (undefined8 *)FUN_00276bb0(8);" (assignment_expression "puVar7 = (undefined8 *)FUN_00276bb0(8)" identifier = (cast_expression "(undefined8 *)FUN_00276bb0(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00276bb0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar7 = &PTR_FUN_003b8480;" (assignment_expression "*puVar7 = &PTR_FUN_003b8480" (pointer_expression "*puVar7" * identifier) = (pointer_expression "&PTR_FUN_003b8480" & identifier)) ;) comment (expression_statement "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);" (call_expression "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0)" identifier (argument_list "(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0)" ( identifier , (pointer_expression "&PTR_PTR_FUN_003b8440" & identifier) , identifier ))) ;) })) (expression_statement "ppuVar9 = &PTR_DAT_003bb5c0;" (assignment_expression "ppuVar9 = &PTR_DAT_003bb5c0" identifier = (pointer_expression "&PTR_DAT_003bb5c0" & identifier)) ;) (expression_statement "puVar2 = PTR_DAT_003bb5c0;" (assignment_expression "puVar2 = PTR_DAT_003bb5c0" identifier = identifier) ;) (do_statement "do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );" do (compound_statement "{\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  }" { (expression_statement "lVar5 = param_3;" (assignment_expression "lVar5 = param_3" identifier = identifier) ;) (if_statement "if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }" { (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) (labeled_statement "LAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);" statement_identifier : (expression_statement "lVar6 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar6 = *(long *)(param_1 + 0x18)" identifier = (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;)) (expression_statement "plVar8 = (long *)(lVar6 + lVar5 * 8);" (assignment_expression "plVar8 = (long *)(lVar6 + lVar5 * 8)" identifier = (cast_expression "(long *)(lVar6 + lVar5 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + lVar5 * 8)" ( (binary_expression "lVar6 + lVar5 * 8" identifier + (binary_expression "lVar5 * 8" identifier * number_literal)) )))) ;) (if_statement "if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }" if (parenthesized_expression "(*plVar8 == 0)" ( (binary_expression "*plVar8 == 0" (pointer_expression "*plVar8" * identifier) == number_literal) )) (compound_statement "{\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }" { (expression_statement "plVar1 = param_2 + 1;" (assignment_expression "plVar1 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }" { (expression_statement "*(int *)(param_2 + 1) = (int)param_2[1] + 1;" (assignment_expression "*(int *)(param_2 + 1) = (int)param_2[1] + 1" (pointer_expression "*(int *)(param_2 + 1)" * (cast_expression "(int *)(param_2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = (binary_expression "(int)param_2[1] + 1" (cast_expression "(int)param_2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) + number_literal)) ;) }) (else_clause "else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }" else (compound_statement "{\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + 1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + 1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + 1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar6 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar6 = *(long *)(param_1 + 0x18)" identifier = (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "plVar8 = (long *)(lVar6 + lVar5 * 8);" (assignment_expression "plVar8 = (long *)(lVar6 + lVar5 * 8)" identifier = (cast_expression "(long *)(lVar6 + lVar5 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + lVar5 * 8)" ( (binary_expression "lVar6 + lVar5 * 8" identifier + (binary_expression "lVar5 * 8" identifier * number_literal)) )))) ;) }))) (expression_statement "*plVar8 = (long)param_2;" (assignment_expression "*plVar8 = (long)param_2" (pointer_expression "*plVar8" * identifier) = (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }" if (parenthesized_expression "(param_3 != -1)" ( (binary_expression "param_3 != -1" identifier != number_literal) )) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }" { (if_statement "if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }" { (expression_statement "*(int *)(param_2 + 1) = (int)param_2[1] + 1;" (assignment_expression "*(int *)(param_2 + 1) = (int)param_2[1] + 1" (pointer_expression "*(int *)(param_2 + 1)" * (cast_expression "(int *)(param_2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = (binary_expression "(int)param_2[1] + 1" (cast_expression "(int)param_2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }" else (compound_statement "{\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + 1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + 1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + 1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar6 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar6 = *(long *)(param_1 + 0x18)" identifier = (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) }))) (expression_statement "*(long **)(lVar6 + param_3 * 8) = param_2;" (assignment_expression "*(long **)(lVar6 + param_3 * 8) = param_2" (pointer_expression "*(long **)(lVar6 + param_3 * 8)" * (cast_expression "(long **)(lVar6 + param_3 * 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar6 + param_3 * 8)" ( (binary_expression "lVar6 + param_3 * 8" identifier + (binary_expression "param_3 * 8" identifier * number_literal)) )))) = identifier) ;) })) }) (else_clause "else if (param_2 != (long *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }" else (if_statement "if (param_2 != (long *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }" if (parenthesized_expression "(param_2 != (long *)0x0)" ( (binary_expression "param_2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*param_2 + 8))(param_2);\n      }" { comment (expression_statement "(**(code **)(*param_2 + 8))(param_2);" (call_expression "(**(code **)(*param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 8))" ( (pointer_expression "**(code **)(*param_2 + 8)" * (pointer_expression "*(code **)(*param_2 + 8)" * (cast_expression "(code **)(*param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier ))) ;) })))) (if_statement "if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }" if (parenthesized_expression "((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0))" ( (binary_expression "(puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" (parenthesized_expression "(puVar3 != (undefined *)0x0)" ( (binary_expression "puVar3 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" ( (comma_expression "iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0" (assignment_expression "iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300)" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300)" identifier (argument_list "((pthread_mutex_t *)&DAT_003c9300)" ( (cast_expression "(pthread_mutex_t *)&DAT_003c9300" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_003c9300" & identifier)) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }" { (expression_statement "puVar7 = (undefined8 *)FUN_00276bb0(8);" (assignment_expression "puVar7 = (undefined8 *)FUN_00276bb0(8)" identifier = (cast_expression "(undefined8 *)FUN_00276bb0(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00276bb0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar7 = &PTR_FUN_003b84a8;" (assignment_expression "*puVar7 = &PTR_FUN_003b84a8" (pointer_expression "*puVar7" * identifier) = (pointer_expression "&PTR_FUN_003b84a8" & identifier)) ;) comment comment (expression_statement "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);" (call_expression "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810)" identifier (argument_list "(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810)" ( identifier , (pointer_expression "&PTR_PTR_FUN_003b8458" & identifier) , identifier ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "lVar6 = FUN_00279460();" (assignment_expression "lVar6 = FUN_00279460()" identifier = (call_expression "FUN_00279460()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }" if (parenthesized_expression "(lVar6 == param_3)" ( (binary_expression "lVar6 == param_3" identifier == identifier) )) (compound_statement "{\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }" { (expression_statement "param_3 = FUN_00279460(ppuVar9[1]);" (assignment_expression "param_3 = FUN_00279460(ppuVar9[1])" identifier = (call_expression "FUN_00279460(ppuVar9[1])" identifier (argument_list "(ppuVar9[1])" ( (subscript_expression "ppuVar9[1]" identifier [ number_literal ]) )))) ;) (goto_statement "goto LAB_00279960;" goto statement_identifier ;) })) (expression_statement "lVar5 = FUN_00279460(ppuVar9[1]);" (assignment_expression "lVar5 = FUN_00279460(ppuVar9[1])" identifier = (call_expression "FUN_00279460(ppuVar9[1])" identifier (argument_list "(ppuVar9[1])" ( (subscript_expression "ppuVar9[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }" if (parenthesized_expression "(lVar5 == param_3)" ( (binary_expression "lVar5 == param_3" identifier == identifier) )) (compound_statement "{\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }" { (expression_statement "lVar5 = FUN_00279460(*ppuVar9);" (assignment_expression "lVar5 = FUN_00279460(*ppuVar9)" identifier = (call_expression "FUN_00279460(*ppuVar9)" identifier (argument_list "(*ppuVar9)" ( (pointer_expression "*ppuVar9" * identifier) )))) ;) (goto_statement "goto LAB_00279960;" goto statement_identifier ;) })) (expression_statement "ppuVar9 = ppuVar9 + 2;" (assignment_expression "ppuVar9 = ppuVar9 + 2" identifier = (binary_expression "ppuVar9 + 2" identifier + number_literal)) ;) (expression_statement "puVar2 = *ppuVar9;" (assignment_expression "puVar2 = *ppuVar9" identifier = (pointer_expression "*ppuVar9" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* std::locale::_Impl::_M_install_cache(std::locale::facet const*, unsigned long) */\n\nvoid __thiscall std::locale::_Impl::_M_install_cache(_Impl *this,facet *param_1,ulong param_2)\n\n{\n  facet *pfVar1;\n  id *this_00;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 *puVar6;\n  long *plVar7;\n  long lVar8;\n  undefined **ppuVar9;\n  \n  if ((::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex == '\0') &&\n     (iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::\n                                   locale_cache_mutex), iVar3 != 0)) {\n    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._32_8_ = 0;\n    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._0_16_ =\n         (undefined1  [16])0x0;\n    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._16_16_ =\n         (undefined1  [16])0x0;\n    __cxa_guard_release(&::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex);\n  }\n  puVar2 = PTR___pthread_key_create_003bdee8;\n  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar3 = pthread_mutex_lock((pthread_mutex_t *)\n                                 ::(anonymous_namespace)::get_locale_cache_mutex()::\n                                 locale_cache_mutex), iVar3 != 0)) {\n    puVar6 = (undefined8 *)__cxa_allocate_exception(8);\n    *puVar6 = &PTR____concurrence_lock_error_003b8480;\n                    /* WARNING: Subroutine does not return */\n    __cxa_throw(puVar6,&__concurrence_lock_error::typeinfo,\n                __concurrence_lock_error::~__concurrence_lock_error);\n  }\n  ppuVar9 = &_S_twinned_facets;\n  this_00 = (id *)_S_twinned_facets;\n  do {\n    uVar4 = param_2;\n    if (this_00 == (id *)0x0) {\n      param_2 = 0xffffffffffffffff;\nLAB_00279960:\n      lVar8 = *(long *)(this + 0x18);\n      plVar7 = (long *)(lVar8 + uVar4 * 8);\n      if (*plVar7 == 0) {\n        pfVar1 = param_1 + 8;\n        if (puVar2 == (undefined *)0x0) {\n          *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar1 = *(int *)pfVar1 + 1;\n          UNLOCK();\n          lVar8 = *(long *)(this + 0x18);\n          plVar7 = (long *)(lVar8 + uVar4 * 8);\n        }\n        *plVar7 = (long)param_1;\n        if (param_2 != 0xffffffffffffffff) {\n          if (puVar2 == (undefined *)0x0) {\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }\n          *(facet **)(lVar8 + param_2 * 8) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*(long *)param_1 + 8))(param_1);\n      }\n      if ((puVar2 != (undefined *)0x0) &&\n         (iVar3 = pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex),\n         iVar3 != 0)) {\n        puVar6 = (undefined8 *)__cxa_allocate_exception(8);\n        *puVar6 = &PTR____concurrence_unlock_error_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        __cxa_throw(puVar6,&__concurrence_unlock_error::typeinfo,\n                    __concurrence_unlock_error::~__concurrence_unlock_error);\n      }\n      return;\n    }\n    uVar5 = locale::id::_M_id(this_00);\n    if (uVar5 == param_2) {\n      uVar5 = locale::id::_M_id((id *)ppuVar9[1]);\n      param_2 = uVar5;\n      goto LAB_00279960;\n    }\n    uVar4 = locale::id::_M_id((id *)ppuVar9[1]);\n    if (uVar4 == param_2) {\n      uVar4 = locale::id::_M_id((id *)*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    this_00 = (id *)*ppuVar9;\n  } while( true );\n}\n\n" comment (function_definition "void __thiscall std::locale::_Impl::_M_install_cache(_Impl *this,facet *param_1,ulong param_2)\n\n{\n  facet *pfVar1;\n  id *this_00;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 *puVar6;\n  long *plVar7;\n  long lVar8;\n  undefined **ppuVar9;\n  \n  if ((::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex == '\0') &&\n     (iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::\n                                   locale_cache_mutex), iVar3 != 0)) {\n    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._32_8_ = 0;\n    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._0_16_ =\n         (undefined1  [16])0x0;\n    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._16_16_ =\n         (undefined1  [16])0x0;\n    __cxa_guard_release(&::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex);\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,ulong param_2)" identifier (parameter_list "(_Impl *this,facet *param_1,ulong 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 "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  facet *pfVar1;\n  id *this_00;\n  undefined *puVar2;\n  int iVar3;\n  ulong uVar4;\n  ulong uVar5;\n  undefined8 *puVar6;\n  long *plVar7;\n  long lVar8;\n  undefined **ppuVar9;\n  \n  if ((::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex == '\0') &&\n     (iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::\n                                   locale_cache_mutex), iVar3 != 0)) {\n    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._32_8_ = 0;\n    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._0_16_ =\n         (undefined1  [16])0x0;\n    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._16_16_ =\n         (undefined1  [16])0x0;\n    __cxa_guard_release(&::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex);\n  }" { (declaration "facet *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (declaration "id *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "undefined8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "long *plVar7;" (sized_type_specifier "long" long) (pointer_declarator "*plVar7" * identifier) ;) (declaration "long lVar8;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined **ppuVar9;" type_identifier (pointer_declarator "**ppuVar9" * (pointer_declarator "*ppuVar9" * identifier)) ;) (if_statement "if ((::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex == '\0') &&\n     (iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::\n                                   locale_cache_mutex), iVar3 != 0)) {\n    ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._32_8_ = 0;" if (parenthesized_expression "((::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex == '\0')" ( (ERROR "(::(anonymous_namespace)::get_locale_cache_mutex()::" (parenthesized_expression "(::(anonymous_namespace)" ( (ERROR "::(" : : () identifier )) : : (call_expression "get_locale_cache_mutex()" identifier (argument_list "()" ( ))) : :) (binary_expression "locale_cache_mutex == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (ERROR "&&\n     (iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::\n                                   locale_cache_mutex), iVar3 != 0)) {\n    ::(anonymous_namespace)::get_locale_cache_mutex()::" (comma_expression "&&\n     (iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::\n                                   locale_cache_mutex), iVar3 != 0" (pointer_expression "&&\n     (iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::\n                                   locale_cache_mutex)" & (pointer_expression "&\n     (iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::\n                                   locale_cache_mutex)" & (parenthesized_expression "(iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::\n                                   locale_cache_mutex)" ( (ERROR "iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::" (assignment_expression "iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)" identifier = (call_expression "__cxa_guard_acquire(&::(anonymous_namespace)" identifier (argument_list "(&::(anonymous_namespace)" ( (pointer_expression "&::(anonymous_namespace" & (ERROR "::(" : : () identifier) )))) : : (type_descriptor "get_locale_cache_mutex()" type_identifier (abstract_function_declarator "()" (parameter_list "()" ( )))) : :) identifier )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ) ) { : : ( identifier ) : : (call_expression "get_locale_cache_mutex()" identifier (argument_list "()" ( ))) : :) (expression_statement "locale_cache_mutex._32_8_ = 0;" (assignment_expression "locale_cache_mutex._32_8_ = 0" (field_expression "locale_cache_mutex._32_8_" identifier . field_identifier) = number_literal) ;)) (ERROR "::(" : : () (labeled_statement "anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._0_16_ =\n         (undefined1  [16])0x0;" statement_identifier (ERROR ")::get_locale_cache_mutex():" ) : : (call_expression "get_locale_cache_mutex()" identifier (argument_list "()" ( ))) :) : (expression_statement "locale_cache_mutex._0_16_ =\n         (undefined1  [16])0x0;" (assignment_expression "locale_cache_mutex._0_16_ =\n         (undefined1  [16])0x0" (field_expression "locale_cache_mutex._0_16_" identifier . field_identifier) = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;)) (ERROR "::(" : : () (labeled_statement "anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex._16_16_ =\n         (undefined1  [16])0x0;" statement_identifier (ERROR ")::get_locale_cache_mutex():" ) : : (call_expression "get_locale_cache_mutex()" identifier (argument_list "()" ( ))) :) : (expression_statement "locale_cache_mutex._16_16_ =\n         (undefined1  [16])0x0;" (assignment_expression "locale_cache_mutex._16_16_ =\n         (undefined1  [16])0x0" (field_expression "locale_cache_mutex._16_16_" identifier . field_identifier) = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;)) (ERROR "__cxa_guard_release(&::(anonymous_namespace)::get_locale_cache_mutex()::" (call_expression "__cxa_guard_release(&::(anonymous_namespace)" identifier (argument_list "(&::(anonymous_namespace)" ( (pointer_expression "&::(anonymous_namespace" & (ERROR "::(" : : () identifier) ))) : : (call_expression "get_locale_cache_mutex()" identifier (argument_list "()" ( ))) : :) (expression_statement "locale_cache_mutex);" identifier (ERROR ")" )) ;) })) (expression_statement "puVar2 = PTR___pthread_key_create_003bdee8;" (assignment_expression "puVar2 = PTR___pthread_key_create_003bdee8" identifier = identifier) ;) (if_statement "if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar3 = pthread_mutex_lock((pthread_mutex_t *)\n                                 ::(anonymous_namespace)::get_locale_cache_mutex()::\n                                 locale_cache_mutex), iVar3 != 0)) {\n    puVar6 = (undefined8 *)__cxa_allocate_exception(8);\n    *puVar6 = &PTR____concurrence_lock_error_003b8480;\n                    /* WARNING: Subroutine does not return */\n    __cxa_throw(puVar6,&__concurrence_lock_error::typeinfo,\n                __concurrence_lock_error::~__concurrence_lock_error);\n  }" if (parenthesized_expression "((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar3 = pthread_mutex_lock((pthread_mutex_t *)\n                                 ::(anonymous_namespace)::get_locale_cache_mutex()::\n                                 locale_cache_mutex)" ( (binary_expression "(PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar3 = pthread_mutex_lock((pthread_mutex_t *)\n                                 ::(anonymous_namespace)::get_locale_cache_mutex()" (parenthesized_expression "(PTR___pthread_key_create_003bdee8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar3 = pthread_mutex_lock((pthread_mutex_t *)\n                                 ::(anonymous_namespace)::get_locale_cache_mutex()" ( (assignment_expression "iVar3 = pthread_mutex_lock((pthread_mutex_t *)\n                                 ::(anonymous_namespace)" identifier = (call_expression "pthread_mutex_lock((pthread_mutex_t *)\n                                 ::(anonymous_namespace)" identifier (argument_list "((pthread_mutex_t *)\n                                 ::(anonymous_namespace)" ( (cast_expression "(pthread_mutex_t *)\n                                 ::(anonymous_namespace" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (ERROR "::(" : : () identifier) )))) (ERROR "::get_locale_cache_mutex(" : : identifier () ))) (ERROR "::\n                                 locale_cache_mutex" : : identifier) )) (ERROR ", iVar3 != 0))" , (binary_expression "iVar3 != 0" identifier != number_literal) ) )) (compound_statement "{\n    puVar6 = (undefined8 *)__cxa_allocate_exception(8);\n    *puVar6 = &PTR____concurrence_lock_error_003b8480;\n                    /* WARNING: Subroutine does not return */\n    __cxa_throw(puVar6,&__concurrence_lock_error::typeinfo,\n                __concurrence_lock_error::~__concurrence_lock_error);\n  }" { (expression_statement "puVar6 = (undefined8 *)__cxa_allocate_exception(8);" (assignment_expression "puVar6 = (undefined8 *)__cxa_allocate_exception(8)" identifier = (cast_expression "(undefined8 *)__cxa_allocate_exception(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar6 = &PTR____concurrence_lock_error_003b8480;" (assignment_expression "*puVar6 = &PTR____concurrence_lock_error_003b8480" (pointer_expression "*puVar6" * identifier) = (pointer_expression "&PTR____concurrence_lock_error_003b8480" & identifier)) ;) comment (expression_statement "__cxa_throw(puVar6,&__concurrence_lock_error::typeinfo,\n                __concurrence_lock_error::~__concurrence_lock_error);" (call_expression "__cxa_throw(puVar6,&__concurrence_lock_error::typeinfo,\n                __concurrence_lock_error::~__concurrence_lock_error)" identifier (argument_list "(puVar6,&__concurrence_lock_error::typeinfo,\n                __concurrence_lock_error::~__concurrence_lock_error)" ( identifier , (pointer_expression "&__concurrence_lock_error" & identifier) (ERROR "::typeinfo" : : identifier) , (ERROR "__concurrence_lock_error::" identifier : :) (unary_expression "~__concurrence_lock_error" ~ identifier) ))) ;) })) (expression_statement "ppuVar9 = &_S_twinned_facets;" (assignment_expression "ppuVar9 = &_S_twinned_facets" identifier = (pointer_expression "&_S_twinned_facets" & identifier)) ;) (expression_statement "this_00 = (id *)_S_twinned_facets;" (assignment_expression "this_00 = (id *)_S_twinned_facets" identifier = (cast_expression "(id *)_S_twinned_facets" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    uVar4 = param_2;\n    if (this_00 == (id *)0x0) {\n      param_2 = 0xffffffffffffffff;\nLAB_00279960:\n      lVar8 = *(long *)(this + 0x18);\n      plVar7 = (long *)(lVar8 + uVar4 * 8);\n      if (*plVar7 == 0) {\n        pfVar1 = param_1 + 8;\n        if (puVar2 == (undefined *)0x0) {\n          *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar1 = *(int *)pfVar1 + 1;\n          UNLOCK();\n          lVar8 = *(long *)(this + 0x18);\n          plVar7 = (long *)(lVar8 + uVar4 * 8);\n        }\n        *plVar7 = (long)param_1;\n        if (param_2 != 0xffffffffffffffff) {\n          if (puVar2 == (undefined *)0x0) {\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }\n          *(facet **)(lVar8 + param_2 * 8) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*(long *)param_1 + 8))(param_1);\n      }\n      if ((puVar2 != (undefined *)0x0) &&\n         (iVar3 = pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex),\n         iVar3 != 0)) {\n        puVar6 = (undefined8 *)__cxa_allocate_exception(8);\n        *puVar6 = &PTR____concurrence_unlock_error_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        __cxa_throw(puVar6,&__concurrence_unlock_error::typeinfo,\n                    __concurrence_unlock_error::~__concurrence_unlock_error);\n      }\n      return;\n    }\n    uVar5 = locale::id::_M_id(this_00);\n    if (uVar5 == param_2) {\n      uVar5 = locale::id::_M_id((id *)ppuVar9[1]);\n      param_2 = uVar5;\n      goto LAB_00279960;\n    }\n    uVar4 = locale::id::_M_id((id *)ppuVar9[1]);\n    if (uVar4 == param_2) {\n      uVar4 = locale::id::_M_id((id *)*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    this_00 = (id *)*ppuVar9;\n  } while( true );" do (compound_statement "{\n    uVar4 = param_2;\n    if (this_00 == (id *)0x0) {\n      param_2 = 0xffffffffffffffff;\nLAB_00279960:\n      lVar8 = *(long *)(this + 0x18);\n      plVar7 = (long *)(lVar8 + uVar4 * 8);\n      if (*plVar7 == 0) {\n        pfVar1 = param_1 + 8;\n        if (puVar2 == (undefined *)0x0) {\n          *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar1 = *(int *)pfVar1 + 1;\n          UNLOCK();\n          lVar8 = *(long *)(this + 0x18);\n          plVar7 = (long *)(lVar8 + uVar4 * 8);\n        }\n        *plVar7 = (long)param_1;\n        if (param_2 != 0xffffffffffffffff) {\n          if (puVar2 == (undefined *)0x0) {\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }\n          *(facet **)(lVar8 + param_2 * 8) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*(long *)param_1 + 8))(param_1);\n      }\n      if ((puVar2 != (undefined *)0x0) &&\n         (iVar3 = pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex),\n         iVar3 != 0)) {\n        puVar6 = (undefined8 *)__cxa_allocate_exception(8);\n        *puVar6 = &PTR____concurrence_unlock_error_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        __cxa_throw(puVar6,&__concurrence_unlock_error::typeinfo,\n                    __concurrence_unlock_error::~__concurrence_unlock_error);\n      }\n      return;\n    }\n    uVar5 = locale::id::_M_id(this_00);\n    if (uVar5 == param_2) {\n      uVar5 = locale::id::_M_id((id *)ppuVar9[1]);\n      param_2 = uVar5;\n      goto LAB_00279960;\n    }\n    uVar4 = locale::id::_M_id((id *)ppuVar9[1]);\n    if (uVar4 == param_2) {\n      uVar4 = locale::id::_M_id((id *)*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    this_00 = (id *)*ppuVar9;\n  }" { (expression_statement "uVar4 = param_2;" (assignment_expression "uVar4 = param_2" identifier = identifier) ;) (if_statement "if (this_00 == (id *)0x0) {\n      param_2 = 0xffffffffffffffff;\nLAB_00279960:\n      lVar8 = *(long *)(this + 0x18);\n      plVar7 = (long *)(lVar8 + uVar4 * 8);\n      if (*plVar7 == 0) {\n        pfVar1 = param_1 + 8;\n        if (puVar2 == (undefined *)0x0) {\n          *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar1 = *(int *)pfVar1 + 1;\n          UNLOCK();\n          lVar8 = *(long *)(this + 0x18);\n          plVar7 = (long *)(lVar8 + uVar4 * 8);\n        }\n        *plVar7 = (long)param_1;\n        if (param_2 != 0xffffffffffffffff) {\n          if (puVar2 == (undefined *)0x0) {\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }\n          *(facet **)(lVar8 + param_2 * 8) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*(long *)param_1 + 8))(param_1);\n      }\n      if ((puVar2 != (undefined *)0x0) &&\n         (iVar3 = pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex),\n         iVar3 != 0)) {\n        puVar6 = (undefined8 *)__cxa_allocate_exception(8);\n        *puVar6 = &PTR____concurrence_unlock_error_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        __cxa_throw(puVar6,&__concurrence_unlock_error::typeinfo,\n                    __concurrence_unlock_error::~__concurrence_unlock_error);\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      param_2 = 0xffffffffffffffff;\nLAB_00279960:\n      lVar8 = *(long *)(this + 0x18);\n      plVar7 = (long *)(lVar8 + uVar4 * 8);\n      if (*plVar7 == 0) {\n        pfVar1 = param_1 + 8;\n        if (puVar2 == (undefined *)0x0) {\n          *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar1 = *(int *)pfVar1 + 1;\n          UNLOCK();\n          lVar8 = *(long *)(this + 0x18);\n          plVar7 = (long *)(lVar8 + uVar4 * 8);\n        }\n        *plVar7 = (long)param_1;\n        if (param_2 != 0xffffffffffffffff) {\n          if (puVar2 == (undefined *)0x0) {\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }\n          *(facet **)(lVar8 + param_2 * 8) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*(long *)param_1 + 8))(param_1);\n      }\n      if ((puVar2 != (undefined *)0x0) &&\n         (iVar3 = pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex),\n         iVar3 != 0)) {\n        puVar6 = (undefined8 *)__cxa_allocate_exception(8);\n        *puVar6 = &PTR____concurrence_unlock_error_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        __cxa_throw(puVar6,&__concurrence_unlock_error::typeinfo,\n                    __concurrence_unlock_error::~__concurrence_unlock_error);\n      }\n      return;\n    }" { (expression_statement "param_2 = 0xffffffffffffffff;" (assignment_expression "param_2 = 0xffffffffffffffff" identifier = number_literal) ;) (labeled_statement "LAB_00279960:\n      lVar8 = *(long *)(this + 0x18);" statement_identifier : (expression_statement "lVar8 = *(long *)(this + 0x18);" (assignment_expression "lVar8 = *(long *)(this + 0x18)" identifier = (pointer_expression "*(long *)(this + 0x18)" * (cast_expression "(long *)(this + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) ;)) (expression_statement "plVar7 = (long *)(lVar8 + uVar4 * 8);" (assignment_expression "plVar7 = (long *)(lVar8 + uVar4 * 8)" identifier = (cast_expression "(long *)(lVar8 + uVar4 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + uVar4 * 8)" ( (binary_expression "lVar8 + uVar4 * 8" identifier + (binary_expression "uVar4 * 8" identifier * number_literal)) )))) ;) (if_statement "if (*plVar7 == 0) {\n        pfVar1 = param_1 + 8;\n        if (puVar2 == (undefined *)0x0) {\n          *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar1 = *(int *)pfVar1 + 1;\n          UNLOCK();\n          lVar8 = *(long *)(this + 0x18);\n          plVar7 = (long *)(lVar8 + uVar4 * 8);\n        }\n        *plVar7 = (long)param_1;\n        if (param_2 != 0xffffffffffffffff) {\n          if (puVar2 == (undefined *)0x0) {\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }\n          *(facet **)(lVar8 + param_2 * 8) = param_1;\n        }\n      }\n      else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*(long *)param_1 + 8))(param_1);\n      }" if (parenthesized_expression "(*plVar7 == 0)" ( (binary_expression "*plVar7 == 0" (pointer_expression "*plVar7" * identifier) == number_literal) )) (compound_statement "{\n        pfVar1 = param_1 + 8;\n        if (puVar2 == (undefined *)0x0) {\n          *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar1 = *(int *)pfVar1 + 1;\n          UNLOCK();\n          lVar8 = *(long *)(this + 0x18);\n          plVar7 = (long *)(lVar8 + uVar4 * 8);\n        }\n        *plVar7 = (long)param_1;\n        if (param_2 != 0xffffffffffffffff) {\n          if (puVar2 == (undefined *)0x0) {\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }\n          *(facet **)(lVar8 + param_2 * 8) = param_1;\n        }\n      }" { (expression_statement "pfVar1 = param_1 + 8;" (assignment_expression "pfVar1 = param_1 + 8" identifier = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (if_statement "if (puVar2 == (undefined *)0x0) {\n          *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n        }\n        else {\n          LOCK();\n          *(int *)pfVar1 = *(int *)pfVar1 + 1;\n          UNLOCK();\n          lVar8 = *(long *)(this + 0x18);\n          plVar7 = (long *)(lVar8 + uVar4 * 8);\n        }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n        }" { (expression_statement "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;" (assignment_expression "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 8) + 1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n          LOCK();\n          *(int *)pfVar1 = *(int *)pfVar1 + 1;\n          UNLOCK();\n          lVar8 = *(long *)(this + 0x18);\n          plVar7 = (long *)(lVar8 + uVar4 * 8);\n        }" else (compound_statement "{\n          LOCK();\n          *(int *)pfVar1 = *(int *)pfVar1 + 1;\n          UNLOCK();\n          lVar8 = *(long *)(this + 0x18);\n          plVar7 = (long *)(lVar8 + uVar4 * 8);\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)pfVar1 = *(int *)pfVar1 + 1;" (assignment_expression "*(int *)pfVar1 = *(int *)pfVar1 + 1" (pointer_expression "*(int *)pfVar1" * (cast_expression "(int *)pfVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)pfVar1 + 1" (pointer_expression "*(int *)pfVar1" * (cast_expression "(int *)pfVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar8 = *(long *)(this + 0x18);" (assignment_expression "lVar8 = *(long *)(this + 0x18)" identifier = (pointer_expression "*(long *)(this + 0x18)" * (cast_expression "(long *)(this + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) ;) (expression_statement "plVar7 = (long *)(lVar8 + uVar4 * 8);" (assignment_expression "plVar7 = (long *)(lVar8 + uVar4 * 8)" identifier = (cast_expression "(long *)(lVar8 + uVar4 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar8 + uVar4 * 8)" ( (binary_expression "lVar8 + uVar4 * 8" identifier + (binary_expression "uVar4 * 8" identifier * number_literal)) )))) ;) }))) (expression_statement "*plVar7 = (long)param_1;" (assignment_expression "*plVar7 = (long)param_1" (pointer_expression "*plVar7" * identifier) = (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (param_2 != 0xffffffffffffffff) {\n          if (puVar2 == (undefined *)0x0) {\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }\n          *(facet **)(lVar8 + param_2 * 8) = param_1;\n        }" if (parenthesized_expression "(param_2 != 0xffffffffffffffff)" ( (binary_expression "param_2 != 0xffffffffffffffff" identifier != number_literal) )) (compound_statement "{\n          if (puVar2 == (undefined *)0x0) {\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }\n          *(facet **)(lVar8 + param_2 * 8) = param_1;\n        }" { (if_statement "if (puVar2 == (undefined *)0x0) {\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }\n          else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;\n          }" { (expression_statement "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1;" (assignment_expression "*(int *)(param_1 + 8) = *(int *)(param_1 + 8) + 1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 8) + 1" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }" else (compound_statement "{\n            LOCK();\n            *(int *)pfVar1 = *(int *)pfVar1 + 1;\n            UNLOCK();\n            lVar8 = *(long *)(this + 0x18);\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)pfVar1 = *(int *)pfVar1 + 1;" (assignment_expression "*(int *)pfVar1 = *(int *)pfVar1 + 1" (pointer_expression "*(int *)pfVar1" * (cast_expression "(int *)pfVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(int *)pfVar1 + 1" (pointer_expression "*(int *)pfVar1" * (cast_expression "(int *)pfVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar8 = *(long *)(this + 0x18);" (assignment_expression "lVar8 = *(long *)(this + 0x18)" identifier = (pointer_expression "*(long *)(this + 0x18)" * (cast_expression "(long *)(this + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) ;) }))) (expression_statement "*(facet **)(lVar8 + param_2 * 8) = param_1;" (assignment_expression "*(facet **)(lVar8 + param_2 * 8) = param_1" (pointer_expression "*(facet **)(lVar8 + param_2 * 8)" * (cast_expression "(facet **)(lVar8 + param_2 * 8)" ( (type_descriptor "facet **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar8 + param_2 * 8)" ( (binary_expression "lVar8 + param_2 * 8" identifier + (binary_expression "param_2 * 8" identifier * number_literal)) )))) = identifier) ;) })) }) (else_clause "else if (param_1 != (facet *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*(long *)param_1 + 8))(param_1);\n      }" else (if_statement "if (param_1 != (facet *)0x0) {\n                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*(long *)param_1 + 8))(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 00279982 to 00279984 has its CatchHandler @ 00279acc */\n        (**(code **)(*(long *)param_1 + 8))(param_1);\n      }" { comment (expression_statement "(**(code **)(*(long *)param_1 + 8))(param_1);" (call_expression "(**(code **)(*(long *)param_1 + 8))(param_1)" (parenthesized_expression "(**(code **)(*(long *)param_1 + 8))" ( (pointer_expression "**(code **)(*(long *)param_1 + 8)" * (pointer_expression "*(code **)(*(long *)param_1 + 8)" * (cast_expression "(code **)(*(long *)param_1 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1 + 8)" ( (binary_expression "*(long *)param_1 + 8" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier ))) ;) })))) (if_statement "if ((puVar2 != (undefined *)0x0) &&\n         (iVar3 = pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex),\n         iVar3 != 0)) {\n        puVar6 = (undefined8 *)__cxa_allocate_exception(8);\n        *puVar6 = &PTR____concurrence_unlock_error_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        __cxa_throw(puVar6,&__concurrence_unlock_error::typeinfo,\n                    __concurrence_unlock_error::~__concurrence_unlock_error);\n      }" if (parenthesized_expression "((puVar2 != (undefined *)0x0) &&\n         (iVar3 = pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)::get_locale_cache_mutex()::locale_cache_mutex)" ( (binary_expression "(puVar2 != (undefined *)0x0) &&\n         (iVar3 = pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)::get_locale_cache_mutex()" (parenthesized_expression "(puVar2 != (undefined *)0x0)" ( (binary_expression "puVar2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar3 = pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)::get_locale_cache_mutex()" ( (assignment_expression "iVar3 = pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)" identifier = (call_expression "pthread_mutex_unlock\n                            ((pthread_mutex_t *)\n                             ::(anonymous_namespace)" identifier (argument_list "((pthread_mutex_t *)\n                             ::(anonymous_namespace)" ( (cast_expression "(pthread_mutex_t *)\n                             ::(anonymous_namespace" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (ERROR "::(" : : () identifier) )))) (ERROR "::get_locale_cache_mutex(" : : identifier () ))) (ERROR "::locale_cache_mutex" : : identifier) )) (ERROR ",\n         iVar3 != 0))" , (binary_expression "iVar3 != 0" identifier != number_literal) ) )) (compound_statement "{\n        puVar6 = (undefined8 *)__cxa_allocate_exception(8);\n        *puVar6 = &PTR____concurrence_unlock_error_003b84a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */\n        __cxa_throw(puVar6,&__concurrence_unlock_error::typeinfo,\n                    __concurrence_unlock_error::~__concurrence_unlock_error);\n      }" { (expression_statement "puVar6 = (undefined8 *)__cxa_allocate_exception(8);" (assignment_expression "puVar6 = (undefined8 *)__cxa_allocate_exception(8)" identifier = (cast_expression "(undefined8 *)__cxa_allocate_exception(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar6 = &PTR____concurrence_unlock_error_003b84a8;" (assignment_expression "*puVar6 = &PTR____concurrence_unlock_error_003b84a8" (pointer_expression "*puVar6" * identifier) = (pointer_expression "&PTR____concurrence_unlock_error_003b84a8" & identifier)) ;) comment comment (expression_statement "__cxa_throw(puVar6,&__concurrence_unlock_error::typeinfo,\n                    __concurrence_unlock_error::~__concurrence_unlock_error);" (call_expression "__cxa_throw(puVar6,&__concurrence_unlock_error::typeinfo,\n                    __concurrence_unlock_error::~__concurrence_unlock_error)" identifier (argument_list "(puVar6,&__concurrence_unlock_error::typeinfo,\n                    __concurrence_unlock_error::~__concurrence_unlock_error)" ( identifier , (pointer_expression "&__concurrence_unlock_error" & identifier) (ERROR "::typeinfo" : : identifier) , (ERROR "__concurrence_unlock_error::" identifier : :) (unary_expression "~__concurrence_unlock_error" ~ identifier) ))) ;) })) (return_statement "return;" return ;) })) (ERROR "uVar5 = locale::" (assignment_expression "uVar5 = 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 (uVar5 == param_2) {\n      uVar5 = locale::id::_M_id((id *)ppuVar9[1]);\n      param_2 = uVar5;\n      goto LAB_00279960;\n    }" if (parenthesized_expression "(uVar5 == param_2)" ( (binary_expression "uVar5 == param_2" identifier == identifier) )) (compound_statement "{\n      uVar5 = locale::id::_M_id((id *)ppuVar9[1]);\n      param_2 = uVar5;\n      goto LAB_00279960;\n    }" { (ERROR "uVar5 = locale::" (assignment_expression "uVar5 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id((id *)ppuVar9[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id((id *)ppuVar9[1]);" (call_expression "_M_id((id *)ppuVar9[1])" identifier (argument_list "((id *)ppuVar9[1])" ( (cast_expression "(id *)ppuVar9[1]" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "ppuVar9[1]" identifier [ number_literal ])) ))) ;)) (expression_statement "param_2 = uVar5;" (assignment_expression "param_2 = uVar5" identifier = identifier) ;) (goto_statement "goto LAB_00279960;" goto statement_identifier ;) })) (ERROR "uVar4 = locale::" (assignment_expression "uVar4 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id((id *)ppuVar9[1]);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id((id *)ppuVar9[1]);" (call_expression "_M_id((id *)ppuVar9[1])" identifier (argument_list "((id *)ppuVar9[1])" ( (cast_expression "(id *)ppuVar9[1]" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "ppuVar9[1]" identifier [ number_literal ])) ))) ;)) (if_statement "if (uVar4 == param_2) {\n      uVar4 = locale::id::_M_id((id *)*ppuVar9);\n      goto LAB_00279960;\n    }" if (parenthesized_expression "(uVar4 == param_2)" ( (binary_expression "uVar4 == param_2" identifier == identifier) )) (compound_statement "{\n      uVar4 = locale::id::_M_id((id *)*ppuVar9);\n      goto LAB_00279960;\n    }" { (ERROR "uVar4 = locale::" (assignment_expression "uVar4 = locale" identifier = identifier) : :) (labeled_statement "id::_M_id((id *)*ppuVar9);" statement_identifier : (ERROR ":" :) (expression_statement "_M_id((id *)*ppuVar9);" (call_expression "_M_id((id *)*ppuVar9)" identifier (argument_list "((id *)*ppuVar9)" ( (cast_expression "(id *)*ppuVar9" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ppuVar9" * identifier)) ))) ;)) (goto_statement "goto LAB_00279960;" goto statement_identifier ;) })) (expression_statement "ppuVar9 = ppuVar9 + 2;" (assignment_expression "ppuVar9 = ppuVar9 + 2" identifier = (binary_expression "ppuVar9 + 2" identifier + number_literal)) ;) (expression_statement "this_00 = (id *)*ppuVar9;" (assignment_expression "this_00 = (id *)*ppuVar9" identifier = (cast_expression "(id *)*ppuVar9" ( (type_descriptor "id *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*ppuVar9" * identifier))) ;) }) while (parenthesized_expression "( true )" ( true )) ;) (ERROR "}" }))
(translation_unit "void FUN_002798d0(long param_1,long *param_2,long param_3)\n\n{\n  long *plVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  long *plVar8;\n  undefined **ppuVar9;\n  \n  if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }\n  puVar3 = PTR___pthread_key_create_003bdee8;\n  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    \n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }\n  ppuVar9 = &PTR_DAT_003bb5c0;\n  puVar2 = PTR_DAT_003bb5c0;\n  do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );\n}\n\n" (function_definition "void FUN_002798d0(long param_1,long *param_2,long param_3)\n\n{\n  long *plVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  long *plVar8;\n  undefined **ppuVar9;\n  \n  if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }\n  puVar3 = PTR___pthread_key_create_003bdee8;\n  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    \n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }\n  ppuVar9 = &PTR_DAT_003bb5c0;\n  puVar2 = PTR_DAT_003bb5c0;\n  do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );\n}" primitive_type (function_declarator "FUN_002798d0(long param_1,long *param_2,long param_3)" identifier (parameter_list "(long param_1,long *param_2,long param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long *plVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  long *plVar8;\n  undefined **ppuVar9;\n  \n  if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }\n  puVar3 = PTR___pthread_key_create_003bdee8;\n  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    \n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }\n  ppuVar9 = &PTR_DAT_003bb5c0;\n  puVar2 = PTR_DAT_003bb5c0;\n  do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "long *plVar8;" (sized_type_specifier "long" long) (pointer_declarator "*plVar8" * identifier) ;) (declaration "undefined **ppuVar9;" type_identifier (pointer_declarator "**ppuVar9" * (pointer_declarator "*ppuVar9" * identifier)) ;) (if_statement "if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }" if (parenthesized_expression "((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0))" ( (binary_expression "(DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)" (parenthesized_expression "(DAT_003c92e8 == '\0')" ( (binary_expression "DAT_003c92e8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)" ( (comma_expression "iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0" (assignment_expression "iVar4 = FUN_002756c0(&DAT_003c92e8)" identifier = (call_expression "FUN_002756c0(&DAT_003c92e8)" identifier (argument_list "(&DAT_003c92e8)" ( (pointer_expression "&DAT_003c92e8" & identifier) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }" { (expression_statement "_DAT_003c9320 = 0;" (assignment_expression "_DAT_003c9320 = 0" identifier = number_literal) ;) (expression_statement "_DAT_003c9300 = (undefined1  [16])0x0;" (assignment_expression "_DAT_003c9300 = (undefined1  [16])0x0" identifier = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "_DAT_003c9310 = (undefined1  [16])0x0;" (assignment_expression "_DAT_003c9310 = (undefined1  [16])0x0" identifier = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "FUN_002757f0(&DAT_003c92e8);" (call_expression "FUN_002757f0(&DAT_003c92e8)" identifier (argument_list "(&DAT_003c92e8)" ( (pointer_expression "&DAT_003c92e8" & identifier) ))) ;) })) (expression_statement "puVar3 = PTR___pthread_key_create_003bdee8;" (assignment_expression "puVar3 = PTR___pthread_key_create_003bdee8" identifier = identifier) ;) (if_statement "if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    \n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }" if (parenthesized_expression "((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0))" ( (binary_expression "(PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" (parenthesized_expression "(PTR___pthread_key_create_003bdee8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" ( (comma_expression "iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0" (assignment_expression "iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300)" identifier = (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300)" identifier (argument_list "((pthread_mutex_t *)&DAT_003c9300)" ( (cast_expression "(pthread_mutex_t *)&DAT_003c9300" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_003c9300" & identifier)) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    \n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }" { (expression_statement "puVar7 = (undefined8 *)FUN_00276bb0(8);" (assignment_expression "puVar7 = (undefined8 *)FUN_00276bb0(8)" identifier = (cast_expression "(undefined8 *)FUN_00276bb0(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00276bb0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar7 = &PTR_FUN_003b8480;" (assignment_expression "*puVar7 = &PTR_FUN_003b8480" (pointer_expression "*puVar7" * identifier) = (pointer_expression "&PTR_FUN_003b8480" & identifier)) ;) (expression_statement "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);" (call_expression "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0)" identifier (argument_list "(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0)" ( identifier , (pointer_expression "&PTR_PTR_FUN_003b8440" & identifier) , identifier ))) ;) })) (expression_statement "ppuVar9 = &PTR_DAT_003bb5c0;" (assignment_expression "ppuVar9 = &PTR_DAT_003bb5c0" identifier = (pointer_expression "&PTR_DAT_003bb5c0" & identifier)) ;) (expression_statement "puVar2 = PTR_DAT_003bb5c0;" (assignment_expression "puVar2 = PTR_DAT_003bb5c0" identifier = identifier) ;) (do_statement "do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );" do (compound_statement "{\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  }" { (expression_statement "lVar5 = param_3;" (assignment_expression "lVar5 = param_3" identifier = identifier) ;) (if_statement "if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }" if (parenthesized_expression "(puVar2 == (undefined *)0x0)" ( (binary_expression "puVar2 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }" { (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) (labeled_statement "LAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);" statement_identifier : (expression_statement "lVar6 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar6 = *(long *)(param_1 + 0x18)" identifier = (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;)) (expression_statement "plVar8 = (long *)(lVar6 + lVar5 * 8);" (assignment_expression "plVar8 = (long *)(lVar6 + lVar5 * 8)" identifier = (cast_expression "(long *)(lVar6 + lVar5 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + lVar5 * 8)" ( (binary_expression "lVar6 + lVar5 * 8" identifier + (binary_expression "lVar5 * 8" identifier * number_literal)) )))) ;) (if_statement "if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }" if (parenthesized_expression "(*plVar8 == 0)" ( (binary_expression "*plVar8 == 0" (pointer_expression "*plVar8" * identifier) == number_literal) )) (compound_statement "{\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }" { (expression_statement "plVar1 = param_2 + 1;" (assignment_expression "plVar1 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (if_statement "if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }" { (expression_statement "*(int *)(param_2 + 1) = (int)param_2[1] + 1;" (assignment_expression "*(int *)(param_2 + 1) = (int)param_2[1] + 1" (pointer_expression "*(int *)(param_2 + 1)" * (cast_expression "(int *)(param_2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = (binary_expression "(int)param_2[1] + 1" (cast_expression "(int)param_2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) + number_literal)) ;) }) (else_clause "else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }" else (compound_statement "{\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + 1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + 1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + 1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar6 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar6 = *(long *)(param_1 + 0x18)" identifier = (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "plVar8 = (long *)(lVar6 + lVar5 * 8);" (assignment_expression "plVar8 = (long *)(lVar6 + lVar5 * 8)" identifier = (cast_expression "(long *)(lVar6 + lVar5 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + lVar5 * 8)" ( (binary_expression "lVar6 + lVar5 * 8" identifier + (binary_expression "lVar5 * 8" identifier * number_literal)) )))) ;) }))) (expression_statement "*plVar8 = (long)param_2;" (assignment_expression "*plVar8 = (long)param_2" (pointer_expression "*plVar8" * identifier) = (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (if_statement "if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }" if (parenthesized_expression "(param_3 != -1)" ( (binary_expression "param_3 != -1" identifier != number_literal) )) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }" { (if_statement "if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }" if (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }" { (expression_statement "*(int *)(param_2 + 1) = (int)param_2[1] + 1;" (assignment_expression "*(int *)(param_2 + 1) = (int)param_2[1] + 1" (pointer_expression "*(int *)(param_2 + 1)" * (cast_expression "(int *)(param_2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) = (binary_expression "(int)param_2[1] + 1" (cast_expression "(int)param_2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }" else (compound_statement "{\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + 1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + 1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + 1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar6 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar6 = *(long *)(param_1 + 0x18)" identifier = (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) }))) (expression_statement "*(long **)(lVar6 + param_3 * 8) = param_2;" (assignment_expression "*(long **)(lVar6 + param_3 * 8) = param_2" (pointer_expression "*(long **)(lVar6 + param_3 * 8)" * (cast_expression "(long **)(lVar6 + param_3 * 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar6 + param_3 * 8)" ( (binary_expression "lVar6 + param_3 * 8" identifier + (binary_expression "param_3 * 8" identifier * number_literal)) )))) = identifier) ;) })) }) (else_clause "else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }" else (if_statement "if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }" if (parenthesized_expression "(param_2 != (long *)0x0)" ( (binary_expression "param_2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }" { (expression_statement "(**(code **)(*param_2 + 8))(param_2);" (call_expression "(**(code **)(*param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 8))" ( (pointer_expression "**(code **)(*param_2 + 8)" * (pointer_expression "*(code **)(*param_2 + 8)" * (cast_expression "(code **)(*param_2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8)" ( (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(param_2)" ( identifier ))) ;) })))) (if_statement "if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }" if (parenthesized_expression "((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0))" ( (binary_expression "(puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" (parenthesized_expression "(puVar3 != (undefined *)0x0)" ( (binary_expression "puVar3 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" ( (comma_expression "iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0" (assignment_expression "iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300)" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300)" identifier (argument_list "((pthread_mutex_t *)&DAT_003c9300)" ( (cast_expression "(pthread_mutex_t *)&DAT_003c9300" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_003c9300" & identifier)) )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }" { (expression_statement "puVar7 = (undefined8 *)FUN_00276bb0(8);" (assignment_expression "puVar7 = (undefined8 *)FUN_00276bb0(8)" identifier = (cast_expression "(undefined8 *)FUN_00276bb0(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00276bb0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar7 = &PTR_FUN_003b84a8;" (assignment_expression "*puVar7 = &PTR_FUN_003b84a8" (pointer_expression "*puVar7" * identifier) = (pointer_expression "&PTR_FUN_003b84a8" & identifier)) ;) (expression_statement "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);" (call_expression "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810)" identifier (argument_list "(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810)" ( identifier , (pointer_expression "&PTR_PTR_FUN_003b8458" & identifier) , identifier ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "lVar6 = FUN_00279460();" (assignment_expression "lVar6 = FUN_00279460()" identifier = (call_expression "FUN_00279460()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }" if (parenthesized_expression "(lVar6 == param_3)" ( (binary_expression "lVar6 == param_3" identifier == identifier) )) (compound_statement "{\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }" { (expression_statement "param_3 = FUN_00279460(ppuVar9[1]);" (assignment_expression "param_3 = FUN_00279460(ppuVar9[1])" identifier = (call_expression "FUN_00279460(ppuVar9[1])" identifier (argument_list "(ppuVar9[1])" ( (subscript_expression "ppuVar9[1]" identifier [ number_literal ]) )))) ;) (goto_statement "goto LAB_00279960;" goto statement_identifier ;) })) (expression_statement "lVar5 = FUN_00279460(ppuVar9[1]);" (assignment_expression "lVar5 = FUN_00279460(ppuVar9[1])" identifier = (call_expression "FUN_00279460(ppuVar9[1])" identifier (argument_list "(ppuVar9[1])" ( (subscript_expression "ppuVar9[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }" if (parenthesized_expression "(lVar5 == param_3)" ( (binary_expression "lVar5 == param_3" identifier == identifier) )) (compound_statement "{\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }" { (expression_statement "lVar5 = FUN_00279460(*ppuVar9);" (assignment_expression "lVar5 = FUN_00279460(*ppuVar9)" identifier = (call_expression "FUN_00279460(*ppuVar9)" identifier (argument_list "(*ppuVar9)" ( (pointer_expression "*ppuVar9" * identifier) )))) ;) (goto_statement "goto LAB_00279960;" goto statement_identifier ;) })) (expression_statement "ppuVar9 = ppuVar9 + 2;" (assignment_expression "ppuVar9 = ppuVar9 + 2" identifier = (binary_expression "ppuVar9 + 2" identifier + number_literal)) ;) (expression_statement "puVar2 = *ppuVar9;" (assignment_expression "puVar2 = *ppuVar9" identifier = (pointer_expression "*ppuVar9" * identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_array_declarator [ LIT ])) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_array_declarator [ LIT ])) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) )))) , (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) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (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 == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (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 != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) )))) , (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) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))) ;) })) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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) )))) ;) (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_002798d0(long param_1,long *param_2,long param_3)\n\n{\n  long *plVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  long *plVar8;\n  undefined **ppuVar9;\n  \n  if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }\n  puVar3 = PTR___pthread_key_create_003bdee8;\n  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    \n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }\n  ppuVar9 = &PTR_DAT_003bb5c0;\n  puVar2 = PTR_DAT_003bb5c0;\n  do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_002798d0(long param_1,long *param_2,long param_3)" (identifier "FUN_002798d0") (parameter_list "(long param_1,long *param_2,long param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  long *plVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  long lVar5;\n  long lVar6;\n  undefined8 *puVar7;\n  long *plVar8;\n  undefined **ppuVar9;\n  \n  if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }\n  puVar3 = PTR___pthread_key_create_003bdee8;\n  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    \n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }\n  ppuVar9 = &PTR_DAT_003bb5c0;\n  puVar2 = PTR_DAT_003bb5c0;\n  do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "undefined8 *puVar7;" (type_identifier "undefined8") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "long *plVar8;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar8" (* "*") (identifier "plVar8")) (; ";")) (declaration "undefined **ppuVar9;" (type_identifier "undefined") (pointer_declarator "**ppuVar9" (* "*") (pointer_declarator "*ppuVar9" (* "*") (identifier "ppuVar9"))) (; ";")) (if_statement "if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }" (if "if") (parenthesized_expression "((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0))" (( "(") (binary_expression "(DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)" (parenthesized_expression "(DAT_003c92e8 == '\0')" (( "(") (binary_expression "DAT_003c92e8 == '\0'" (identifier "DAT_003c92e8") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)" (( "(") (comma_expression "iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0" (assignment_expression "iVar4 = FUN_002756c0(&DAT_003c92e8)" (identifier "iVar4") (= "=") (call_expression "FUN_002756c0(&DAT_003c92e8)" (identifier "FUN_002756c0") (argument_list "(&DAT_003c92e8)" (( "(") (pointer_expression "&DAT_003c92e8" (& "&") (identifier "DAT_003c92e8")) () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    _DAT_003c9320 = 0;\n    _DAT_003c9300 = (undefined1  [16])0x0;\n    _DAT_003c9310 = (undefined1  [16])0x0;\n    FUN_002757f0(&DAT_003c92e8);\n  }" ({ "{") (expression_statement "_DAT_003c9320 = 0;" (assignment_expression "_DAT_003c9320 = 0" (identifier "_DAT_003c9320") (= "=") (number_literal "0")) (; ";")) (expression_statement "_DAT_003c9300 = (undefined1  [16])0x0;" (assignment_expression "_DAT_003c9300 = (undefined1  [16])0x0" (identifier "_DAT_003c9300") (= "=") (cast_expression "(undefined1  [16])0x0" (( "(") (type_descriptor "undefined1  [16]" (type_identifier "undefined1") (abstract_array_declarator "[16]" ([ "[") (number_literal "16") (] "]"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "_DAT_003c9310 = (undefined1  [16])0x0;" (assignment_expression "_DAT_003c9310 = (undefined1  [16])0x0" (identifier "_DAT_003c9310") (= "=") (cast_expression "(undefined1  [16])0x0" (( "(") (type_descriptor "undefined1  [16]" (type_identifier "undefined1") (abstract_array_declarator "[16]" ([ "[") (number_literal "16") (] "]"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "FUN_002757f0(&DAT_003c92e8);" (call_expression "FUN_002757f0(&DAT_003c92e8)" (identifier "FUN_002757f0") (argument_list "(&DAT_003c92e8)" (( "(") (pointer_expression "&DAT_003c92e8" (& "&") (identifier "DAT_003c92e8")) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar3 = PTR___pthread_key_create_003bdee8;" (assignment_expression "puVar3 = PTR___pthread_key_create_003bdee8" (identifier "puVar3") (= "=") (identifier "PTR___pthread_key_create_003bdee8")) (; ";")) (if_statement "if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    \n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }" (if "if") (parenthesized_expression "((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0))" (( "(") (binary_expression "(PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&\n     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" (parenthesized_expression "(PTR___pthread_key_create_003bdee8 != (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_003bdee8 != (undefined *)0x0" (identifier "PTR___pthread_key_create_003bdee8") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" (( "(") (comma_expression "iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0" (assignment_expression "iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300)" (identifier "iVar4") (= "=") (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300)" (identifier "pthread_mutex_lock") (argument_list "((pthread_mutex_t *)&DAT_003c9300)" (( "(") (cast_expression "(pthread_mutex_t *)&DAT_003c9300" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_003c9300" (& "&") (identifier "DAT_003c9300"))) () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    puVar7 = (undefined8 *)FUN_00276bb0(8);\n    *puVar7 = &PTR_FUN_003b8480;\n                    \n    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);\n  }" ({ "{") (expression_statement "puVar7 = (undefined8 *)FUN_00276bb0(8);" (assignment_expression "puVar7 = (undefined8 *)FUN_00276bb0(8)" (identifier "puVar7") (= "=") (cast_expression "(undefined8 *)FUN_00276bb0(8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00276bb0(8)" (identifier "FUN_00276bb0") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*puVar7 = &PTR_FUN_003b8480;" (assignment_expression "*puVar7 = &PTR_FUN_003b8480" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (pointer_expression "&PTR_FUN_003b8480" (& "&") (identifier "PTR_FUN_003b8480"))) (; ";")) (expression_statement "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);" (call_expression "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0)" (identifier "FUN_002758d0") (argument_list "(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0)" (( "(") (identifier "puVar7") (, ",") (pointer_expression "&PTR_PTR_FUN_003b8440" (& "&") (identifier "PTR_PTR_FUN_003b8440")) (, ",") (identifier "FUN_002767f0") () ")"))) (; ";")) (} "}"))) (expression_statement "ppuVar9 = &PTR_DAT_003bb5c0;" (assignment_expression "ppuVar9 = &PTR_DAT_003bb5c0" (identifier "ppuVar9") (= "=") (pointer_expression "&PTR_DAT_003bb5c0" (& "&") (identifier "PTR_DAT_003bb5c0"))) (; ";")) (expression_statement "puVar2 = PTR_DAT_003bb5c0;" (assignment_expression "puVar2 = PTR_DAT_003bb5c0" (identifier "puVar2") (= "=") (identifier "PTR_DAT_003bb5c0")) (; ";")) (do_statement "do {\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  } while( true );" (do "do") (compound_statement "{\n    lVar5 = param_3;\n    if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }\n    lVar6 = FUN_00279460();\n    if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }\n    lVar5 = FUN_00279460(ppuVar9[1]);\n    if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }\n    ppuVar9 = ppuVar9 + 2;\n    puVar2 = *ppuVar9;\n  }" ({ "{") (expression_statement "lVar5 = param_3;" (assignment_expression "lVar5 = param_3" (identifier "lVar5") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (puVar2 == (undefined *)0x0) {\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }" (if "if") (parenthesized_expression "(puVar2 == (undefined *)0x0)" (( "(") (binary_expression "puVar2 == (undefined *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      param_3 = -1;\nLAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);\n      plVar8 = (long *)(lVar6 + lVar5 * 8);\n      if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }\n      if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }\n      return;\n    }" ({ "{") (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" (identifier "param_3") (= "=") (number_literal "-1")) (; ";")) (labeled_statement "LAB_00279960:\n      lVar6 = *(long *)(param_1 + 0x18);" (statement_identifier "LAB_00279960") (: ":") (expression_statement "lVar6 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar6 = *(long *)(param_1 + 0x18)" (identifier "lVar6") (= "=") (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";"))) (expression_statement "plVar8 = (long *)(lVar6 + lVar5 * 8);" (assignment_expression "plVar8 = (long *)(lVar6 + lVar5 * 8)" (identifier "plVar8") (= "=") (cast_expression "(long *)(lVar6 + lVar5 * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + lVar5 * 8)" (( "(") (binary_expression "lVar6 + lVar5 * 8" (identifier "lVar6") (+ "+") (binary_expression "lVar5 * 8" (identifier "lVar5") (* "*") (number_literal "8"))) () ")")))) (; ";")) (if_statement "if (*plVar8 == 0) {\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }\n      else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }" (if "if") (parenthesized_expression "(*plVar8 == 0)" (( "(") (binary_expression "*plVar8 == 0" (pointer_expression "*plVar8" (* "*") (identifier "plVar8")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        plVar1 = param_2 + 1;\n        if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }\n        *plVar8 = (long)param_2;\n        if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }\n      }" ({ "{") (expression_statement "plVar1 = param_2 + 1;" (assignment_expression "plVar1 = param_2 + 1" (identifier "plVar1") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (puVar3 == (undefined *)0x0) {\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }\n        else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }" (if "if") (parenthesized_expression "(puVar3 == (undefined *)0x0)" (( "(") (binary_expression "puVar3 == (undefined *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n        }" ({ "{") (expression_statement "*(int *)(param_2 + 1) = (int)param_2[1] + 1;" (assignment_expression "*(int *)(param_2 + 1) = (int)param_2[1] + 1" (pointer_expression "*(int *)(param_2 + 1)" (* "*") (cast_expression "(int *)(param_2 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "(int)param_2[1] + 1" (cast_expression "(int)param_2[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }" (else "else") (compound_statement "{\n          LOCK();\n          *(int *)plVar1 = (int)*plVar1 + 1;\n          UNLOCK();\n          lVar6 = *(long *)(param_1 + 0x18);\n          plVar8 = (long *)(lVar6 + lVar5 * 8);\n        }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)plVar1 = (int)*plVar1 + 1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + 1" (pointer_expression "*(int *)plVar1" (* "*") (cast_expression "(int *)plVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "plVar1"))) (= "=") (binary_expression "(int)*plVar1 + 1" (cast_expression "(int)*plVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*plVar1" (* "*") (identifier "plVar1"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "lVar6 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar6 = *(long *)(param_1 + 0x18)" (identifier "lVar6") (= "=") (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "plVar8 = (long *)(lVar6 + lVar5 * 8);" (assignment_expression "plVar8 = (long *)(lVar6 + lVar5 * 8)" (identifier "plVar8") (= "=") (cast_expression "(long *)(lVar6 + lVar5 * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + lVar5 * 8)" (( "(") (binary_expression "lVar6 + lVar5 * 8" (identifier "lVar6") (+ "+") (binary_expression "lVar5 * 8" (identifier "lVar5") (* "*") (number_literal "8"))) () ")")))) (; ";")) (} "}")))) (expression_statement "*plVar8 = (long)param_2;" (assignment_expression "*plVar8 = (long)param_2" (pointer_expression "*plVar8" (* "*") (identifier "plVar8")) (= "=") (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2"))) (; ";")) (if_statement "if (param_3 != -1) {\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }" (if "if") (parenthesized_expression "(param_3 != -1)" (( "(") (binary_expression "param_3 != -1" (identifier "param_3") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n          if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }\n          *(long **)(lVar6 + param_3 * 8) = param_2;\n        }" ({ "{") (if_statement "if (puVar3 == (undefined *)0x0) {\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }\n          else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }" (if "if") (parenthesized_expression "(puVar3 == (undefined *)0x0)" (( "(") (binary_expression "puVar3 == (undefined *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            *(int *)(param_2 + 1) = (int)param_2[1] + 1;\n          }" ({ "{") (expression_statement "*(int *)(param_2 + 1) = (int)param_2[1] + 1;" (assignment_expression "*(int *)(param_2 + 1) = (int)param_2[1] + 1" (pointer_expression "*(int *)(param_2 + 1)" (* "*") (cast_expression "(int *)(param_2 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "(int)param_2[1] + 1" (cast_expression "(int)param_2[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }" (else "else") (compound_statement "{\n            LOCK();\n            *(int *)plVar1 = (int)*plVar1 + 1;\n            UNLOCK();\n            lVar6 = *(long *)(param_1 + 0x18);\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)plVar1 = (int)*plVar1 + 1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + 1" (pointer_expression "*(int *)plVar1" (* "*") (cast_expression "(int *)plVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "plVar1"))) (= "=") (binary_expression "(int)*plVar1 + 1" (cast_expression "(int)*plVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*plVar1" (* "*") (identifier "plVar1"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "lVar6 = *(long *)(param_1 + 0x18);" (assignment_expression "lVar6 = *(long *)(param_1 + 0x18)" (identifier "lVar6") (= "=") (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}")))) (expression_statement "*(long **)(lVar6 + param_3 * 8) = param_2;" (assignment_expression "*(long **)(lVar6 + param_3 * 8) = param_2" (pointer_expression "*(long **)(lVar6 + param_3 * 8)" (* "*") (cast_expression "(long **)(lVar6 + param_3 * 8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar6 + param_3 * 8)" (( "(") (binary_expression "lVar6 + param_3 * 8" (identifier "lVar6") (+ "+") (binary_expression "param_3 * 8" (identifier "param_3") (* "*") (number_literal "8"))) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }" (else "else") (if_statement "if (param_2 != (long *)0x0) {\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }" (if "if") (parenthesized_expression "(param_2 != (long *)0x0)" (( "(") (binary_expression "param_2 != (long *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n        (**(code **)(*param_2 + 8))(param_2);\n      }" ({ "{") (expression_statement "(**(code **)(*param_2 + 8))(param_2);" (call_expression "(**(code **)(*param_2 + 8))(param_2)" (parenthesized_expression "(**(code **)(*param_2 + 8))" (( "(") (pointer_expression "**(code **)(*param_2 + 8)" (* "*") (pointer_expression "*(code **)(*param_2 + 8)" (* "*") (cast_expression "(code **)(*param_2 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 8)" (( "(") (binary_expression "*param_2 + 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}"))))) (if_statement "if ((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }" (if "if") (parenthesized_expression "((puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0))" (( "(") (binary_expression "(puVar3 != (undefined *)0x0) &&\n         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" (parenthesized_expression "(puVar3 != (undefined *)0x0)" (( "(") (binary_expression "puVar3 != (undefined *)0x0" (identifier "puVar3") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)" (( "(") (comma_expression "iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0" (assignment_expression "iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300)" (identifier "iVar4") (= "=") (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300)" (identifier "pthread_mutex_unlock") (argument_list "((pthread_mutex_t *)&DAT_003c9300)" (( "(") (cast_expression "(pthread_mutex_t *)&DAT_003c9300" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_003c9300" (& "&") (identifier "DAT_003c9300"))) () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        puVar7 = (undefined8 *)FUN_00276bb0(8);\n        *puVar7 = &PTR_FUN_003b84a8;\n                    \n                    \n        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);\n      }" ({ "{") (expression_statement "puVar7 = (undefined8 *)FUN_00276bb0(8);" (assignment_expression "puVar7 = (undefined8 *)FUN_00276bb0(8)" (identifier "puVar7") (= "=") (cast_expression "(undefined8 *)FUN_00276bb0(8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00276bb0(8)" (identifier "FUN_00276bb0") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*puVar7 = &PTR_FUN_003b84a8;" (assignment_expression "*puVar7 = &PTR_FUN_003b84a8" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (pointer_expression "&PTR_FUN_003b84a8" (& "&") (identifier "PTR_FUN_003b84a8"))) (; ";")) (expression_statement "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);" (call_expression "FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810)" (identifier "FUN_002758d0") (argument_list "(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810)" (( "(") (identifier "puVar7") (, ",") (pointer_expression "&PTR_PTR_FUN_003b8458" (& "&") (identifier "PTR_PTR_FUN_003b8458")) (, ",") (identifier "FUN_00276810") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar6 = FUN_00279460();" (assignment_expression "lVar6 = FUN_00279460()" (identifier "lVar6") (= "=") (call_expression "FUN_00279460()" (identifier "FUN_00279460") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (lVar6 == param_3) {\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }" (if "if") (parenthesized_expression "(lVar6 == param_3)" (( "(") (binary_expression "lVar6 == param_3" (identifier "lVar6") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n      param_3 = FUN_00279460(ppuVar9[1]);\n      goto LAB_00279960;\n    }" ({ "{") (expression_statement "param_3 = FUN_00279460(ppuVar9[1]);" (assignment_expression "param_3 = FUN_00279460(ppuVar9[1])" (identifier "param_3") (= "=") (call_expression "FUN_00279460(ppuVar9[1])" (identifier "FUN_00279460") (argument_list "(ppuVar9[1])" (( "(") (subscript_expression "ppuVar9[1]" (identifier "ppuVar9") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (goto_statement "goto LAB_00279960;" (goto "goto") (statement_identifier "LAB_00279960") (; ";")) (} "}"))) (expression_statement "lVar5 = FUN_00279460(ppuVar9[1]);" (assignment_expression "lVar5 = FUN_00279460(ppuVar9[1])" (identifier "lVar5") (= "=") (call_expression "FUN_00279460(ppuVar9[1])" (identifier "FUN_00279460") (argument_list "(ppuVar9[1])" (( "(") (subscript_expression "ppuVar9[1]" (identifier "ppuVar9") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (lVar5 == param_3) {\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }" (if "if") (parenthesized_expression "(lVar5 == param_3)" (( "(") (binary_expression "lVar5 == param_3" (identifier "lVar5") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n      lVar5 = FUN_00279460(*ppuVar9);\n      goto LAB_00279960;\n    }" ({ "{") (expression_statement "lVar5 = FUN_00279460(*ppuVar9);" (assignment_expression "lVar5 = FUN_00279460(*ppuVar9)" (identifier "lVar5") (= "=") (call_expression "FUN_00279460(*ppuVar9)" (identifier "FUN_00279460") (argument_list "(*ppuVar9)" (( "(") (pointer_expression "*ppuVar9" (* "*") (identifier "ppuVar9")) () ")")))) (; ";")) (goto_statement "goto LAB_00279960;" (goto "goto") (statement_identifier "LAB_00279960") (; ";")) (} "}"))) (expression_statement "ppuVar9 = ppuVar9 + 2;" (assignment_expression "ppuVar9 = ppuVar9 + 2" (identifier "ppuVar9") (= "=") (binary_expression "ppuVar9 + 2" (identifier "ppuVar9") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "puVar2 = *ppuVar9;" (assignment_expression "puVar2 = *ppuVar9" (identifier "puVar2") (= "=") (pointer_expression "*ppuVar9" (* "*") (identifier "ppuVar9"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

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

void __thiscall std::locale::type_1::function_1(type_1 *var_7,type_2 *var_10,type_3 var_14)

{
  type_2 *pfVar1;
  type_4 *var_6;
  type_5 *var_11;
  int iVar3;
  type_3 var_9;
  type_3 var_17;
  type_6 *puVar6;
  long *plVar7;
  long var_8;
  type_5 **var_18;
  
  if ((::(anonymous_namespace)::get_locale_cache_mutex()::var_1 == '\0') &&
     (iVar3 = __cxa_guard_acquire(&::(anonymous_namespace)::get_locale_cache_mutex()::
                                   var_1), iVar3 != 0)) {
    ::(anonymous_namespace)::get_locale_cache_mutex()::var_1._32_8_ = 0;
    ::(anonymous_namespace)::get_locale_cache_mutex()::var_1._0_16_ =
         (type_7  [16])0x0;
    ::(anonymous_namespace)::get_locale_cache_mutex()::var_1._16_16_ =
         (type_7  [16])0x0;
    __cxa_guard_release(&::(anonymous_namespace)::get_locale_cache_mutex()::var_1);
  }
  var_11 = var_2;
  if ((var_2 != (type_5 *)0x0) &&
     (iVar3 = var_3((type_8 *)
                                 ::(anonymous_namespace)::get_locale_cache_mutex()::
                                 var_1), iVar3 != 0)) {
    puVar6 = (type_6 *)var_4(8);
    *puVar6 = &PTR____concurrence_lock_error_003b8480;
                    /* WARNING: Subroutine does not return */
    var_5(puVar6,&__concurrence_lock_error::typeinfo,
                __concurrence_lock_error::~__concurrence_lock_error);
  }
  var_18 = &_S_twinned_facets;
  var_6 = (type_4 *)_S_twinned_facets;
  do {
    var_9 = var_14;
    if (var_6 == (type_4 *)0x0) {
      var_14 = 0xffffffffffffffff;
LAB_00279960:
      var_8 = *(long *)(var_7 + 0x18);
      plVar7 = (long *)(var_8 + var_9 * 8);
      if (*plVar7 == 0) {
        pfVar1 = var_10 + 8;
        if (var_11 == (type_5 *)0x0) {
          *(int *)(var_10 + 8) = *(int *)(var_10 + 8) + 1;
        }
        else {
          var_12();
          *(int *)pfVar1 = *(int *)pfVar1 + 1;
          var_13();
          var_8 = *(long *)(var_7 + 0x18);
          plVar7 = (long *)(var_8 + var_9 * 8);
        }
        *plVar7 = (long)var_10;
        if (var_14 != 0xffffffffffffffff) {
          if (var_11 == (type_5 *)0x0) {
            *(int *)(var_10 + 8) = *(int *)(var_10 + 8) + 1;
          }
          else {
            var_12();
            *(int *)pfVar1 = *(int *)pfVar1 + 1;
            var_13();
            var_8 = *(long *)(var_7 + 0x18);
          }
          *(type_2 **)(var_8 + var_14 * 8) = var_10;
        }
      }
      else if (var_10 != (type_2 *)0x0) {
                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */
        (**(type_9 **)(*(long *)var_10 + 8))(var_10);
      }
      if ((var_11 != (type_5 *)0x0) &&
         (iVar3 = var_15
                            ((type_8 *)
                             ::(anonymous_namespace)::get_locale_cache_mutex()::var_1),
         iVar3 != 0)) {
        puVar6 = (type_6 *)var_4(8);
        *puVar6 = &PTR____concurrence_unlock_error_003b84a8;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */
        var_5(puVar6,&__concurrence_unlock_error::typeinfo,
                    __concurrence_unlock_error::~__concurrence_unlock_error);
      }
      return;
    }
    var_17 = locale::id::var_16(var_6);
    if (var_17 == var_14) {
      var_17 = locale::id::var_16((type_4 *)var_18[1]);
      var_14 = var_17;
      goto LAB_00279960;
    }
    var_9 = locale::id::var_16((type_4 *)var_18[1]);
    if (var_9 == var_14) {
      var_9 = locale::id::var_16((type_4 *)*var_18);
      goto LAB_00279960;
    }
    var_18 = var_18 + 2;
    var_6 = (type_4 *)*var_18;
  } while( true );
}


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

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

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

{
  long *plVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  long lVar5;
  long lVar6;
  undefined8 *puVar7;
  long *plVar8;
  undefined **ppuVar9;
  
  if ((DAT_003c92e8 == '\0') && (iVar4 = FUN_002756c0(&DAT_003c92e8), iVar4 != 0)) {
    _DAT_003c9320 = 0;
    _DAT_003c9300 = (undefined1  [16])0x0;
    _DAT_003c9310 = (undefined1  [16])0x0;
    FUN_002757f0(&DAT_003c92e8);
  }
  puVar3 = PTR___pthread_key_create_003bdee8;
  if ((PTR___pthread_key_create_003bdee8 != (undefined *)0x0) &&
     (iVar4 = pthread_mutex_lock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {
    puVar7 = (undefined8 *)FUN_00276bb0(8);
    *puVar7 = &PTR_FUN_003b8480;
                    /* WARNING: Subroutine does not return */
    FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8440,FUN_002767f0);
  }
  ppuVar9 = &PTR_DAT_003bb5c0;
  puVar2 = PTR_DAT_003bb5c0;
  do {
    lVar5 = param_3;
    if (puVar2 == (undefined *)0x0) {
      param_3 = -1;
LAB_00279960:
      lVar6 = *(long *)(param_1 + 0x18);
      plVar8 = (long *)(lVar6 + lVar5 * 8);
      if (*plVar8 == 0) {
        plVar1 = param_2 + 1;
        if (puVar3 == (undefined *)0x0) {
          *(int *)(param_2 + 1) = (int)param_2[1] + 1;
        }
        else {
          LOCK();
          *(int *)plVar1 = (int)*plVar1 + 1;
          UNLOCK();
          lVar6 = *(long *)(param_1 + 0x18);
          plVar8 = (long *)(lVar6 + lVar5 * 8);
        }
        *plVar8 = (long)param_2;
        if (param_3 != -1) {
          if (puVar3 == (undefined *)0x0) {
            *(int *)(param_2 + 1) = (int)param_2[1] + 1;
          }
          else {
            LOCK();
            *(int *)plVar1 = (int)*plVar1 + 1;
            UNLOCK();
            lVar6 = *(long *)(param_1 + 0x18);
          }
          *(long **)(lVar6 + param_3 * 8) = param_2;
        }
      }
      else if (param_2 != (long *)0x0) {
                    /* try { // try from 00279982 to 00279984 has its CatchHandler @ 00279acc */
        (**(code **)(*param_2 + 8))(param_2);
      }
      if ((puVar3 != (undefined *)0x0) &&
         (iVar4 = pthread_mutex_unlock((pthread_mutex_t *)&DAT_003c9300), iVar4 != 0)) {
        puVar7 = (undefined8 *)FUN_00276bb0(8);
        *puVar7 = &PTR_FUN_003b84a8;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 00279ac7 to 00279acb has its CatchHandler @ 00279ad4 */
        FUN_002758d0(puVar7,&PTR_PTR_FUN_003b8458,FUN_00276810);
      }
      return;
    }
    lVar6 = FUN_00279460();
    if (lVar6 == param_3) {
      param_3 = FUN_00279460(ppuVar9[1]);
      goto LAB_00279960;
    }
    lVar5 = FUN_00279460(ppuVar9[1]);
    if (lVar5 == param_3) {
      lVar5 = FUN_00279460(*ppuVar9);
      goto LAB_00279960;
    }
    ppuVar9 = ppuVar9 + 2;
    puVar2 = *ppuVar9;
  } while( true );
}

