
/* std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >
   std::__facet_shims::__money_put<wchar_t>(std::integral_constant<bool, false>, std::locale::facet
   const*, std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool, std::ios_base&,
   wchar_t, long double, std::__facet_shims::__any_string const*) */

undefined8 __thiscall
std::__facet_shims::__money_put<wchar_t>
          (__facet_shims *this,undefined8 param_2,undefined8 param_3,undefined1 param_4,
          undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,
          undefined8 *param_9)

{
  int *piVar1;
  undefined8 uVar2;
  int iVar3;
  allocator local_41;
  long local_40 [2];
  
  if (param_9 == (undefined8 *)0x0) {
    uVar2 = (**(code **)(*(long *)this + 0x10))();
    return uVar2;
  }
  if (param_9[4] != 0) {
    std::wstring::wstring((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41);
                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */
    uVar2 = (**(code **)(*(long *)this + 0x18))
                      (this,param_2,param_3,param_4,param_5,param_6,(wstring *)local_40);
    if ((allocator *)(local_40[0] + -0x18) != (allocator *)PTR__S_empty_rep_storage_0067bcd8) {
      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {
        iVar3 = *(int *)(local_40[0] + -8);
        *(int *)(local_40[0] + -8) = iVar3 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(local_40[0] + -8);
        iVar3 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar3 < 1) {
        std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));
      }
    }
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  __throw_logic_error("uninitialized __any_string");
}



undefined8
FUN_004db1a0(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,
            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,
            undefined8 *param_9)

{
  int *piVar1;
  undefined8 uVar2;
  int iVar3;
  int iVar4;
  undefined1 auVar5 [16];
  undefined1 local_41;
  long local_40 [2];
  
  if (param_9 == (undefined8 *)0x0) {
    uVar2 = (**(code **)(*param_1 + 0x10))();
    return uVar2;
  }
  if (param_9[4] != 0) {
    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);
                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */
    auVar5 = (**(code **)(*param_1 + 0x18))
                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);
    iVar4 = 0x4db1f6;
    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {
      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {
        iVar3 = *(int *)(local_40[0] + -8);
        iVar4 = iVar3 + -1;
        *(int *)(local_40[0] + -8) = iVar4;
      }
      else {
        LOCK();
        piVar1 = (int *)(local_40[0] + -8);
        iVar3 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar3 < 1) {
        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],
                           iVar4);
      }
    }
    return auVar5._0_8_;
  }
                    /* WARNING: Subroutine does not return */
  FUN_004dcba0("uninitialized __any_string");
}


PUSH RBP
MOV RBP,RSP
PUSH R15
MOV R15,RSI
PUSH R14
MOV R14,RDX
PUSH R13
MOV R13,RDI
PUSH R12
PUSH RBX
MOV EBX,ECX
SUB RSP,0x38
MOV RAX,qword ptr [RBP + 0x20]
TEST RAX,RAX
JZ 0x004db240
CMP qword ptr [RAX + 0x20],0x0
JZ 0x004db2a5
LEA RSI,[RBP + -0x39]
MOV RDX,qword ptr [RAX + 0x8]
LEA R12,[RBP + -0x38]
MOV dword ptr [RBP + -0x54],R9D
MOV RCX,RSI
MOV qword ptr [RBP + -0x60],RSI
MOV RSI,qword ptr [RAX]
MOV RDI,R12
MOV qword ptr [RBP + -0x50],R8
CALL 0x0051ac10
MOV RAX,qword ptr [R13]
SUB RSP,0x8
MOVZX ECX,BL
PUSH R12
MOV R9D,dword ptr [RBP + -0x54]
MOV RSI,R15
MOV RDX,R14
MOV R8,qword ptr [RBP + -0x50]
MOV RDI,R13
CALL qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x38]
POP RDI
POP R8
LEA RDI,[RCX + -0x18]
CMP RDI,qword ptr [0x0067bcd8]
JNZ 0x004db260
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
MOV RAX,qword ptr [RDI]
MOVZX ECX,CL
PUSH qword ptr [RBP + 0x18]
PUSH qword ptr [RBP + 0x10]
CALL qword ptr [RAX + 0x10]
POP RCX
POP RSI
LEA RSP,[RBP + -0x28]
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
CMP qword ptr [0x0067bee8],0x0
JZ 0x004db298
MOV ESI,0xffffffff
XADD.LOCK dword ptr [RCX + -0x8],ESI
TEST ESI,ESI
JG 0x004db22b
MOV RSI,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x50],RAX
MOV qword ptr [RBP + -0x48],RDX
CALL 0x005192e0
MOV RAX,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x48]
JMP 0x004db22b
MOV ESI,dword ptr [RCX + -0x8]
LEA R8D,[RSI + -0x1]
MOV dword ptr [RCX + -0x8],R8D
JMP 0x004db274
LEA RDI,[0x58bfe4]
CALL 0x004dcba0
(translation_unit "undefined8\nFUN_004db1a0(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)\n\n{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 auVar5 [16];\n  undefined1 local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */\n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_004dcba0("uninitialized __any_string");\n}\n\n" (function_definition "undefined8\nFUN_004db1a0(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)\n\n{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 auVar5 [16];\n  undefined1 local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */\n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_004dcba0("uninitialized __any_string");\n}" type_identifier (function_declarator "FUN_004db1a0(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)" identifier (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined1 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) , (parameter_declaration "undefined8 *param_9" type_identifier (pointer_declarator "*param_9" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 auVar5 [16];\n  undefined1 local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */\n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_004dcba0("uninitialized __any_string");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 auVar5 [16];" type_identifier (array_declarator "auVar5 [16]" identifier [ number_literal ]) ;) (declaration "undefined1 local_41;" type_identifier identifier ;) (declaration "long local_40 [2];" (sized_type_specifier "long" long) (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (if_statement "if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }" if (parenthesized_expression "(param_9 == (undefined8 *)0x0)" ( (binary_expression "param_9 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }" { (expression_statement "uVar2 = (**(code **)(*param_1 + 0x10))();" (assignment_expression "uVar2 = (**(code **)(*param_1 + 0x10))()" identifier = (call_expression "(**(code **)(*param_1 + 0x10))()" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" ( (pointer_expression "**(code **)(*param_1 + 0x10)" * (pointer_expression "*(code **)(*param_1 + 0x10)" * (cast_expression "(code **)(*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */\n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }" if (parenthesized_expression "(param_9[4] != 0)" ( (binary_expression "param_9[4] != 0" (subscript_expression "param_9[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */\n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }" { (expression_statement "FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);" (call_expression "FUN_0051ac10(local_40,*param_9,param_9[1],&local_41)" identifier (argument_list "(local_40,*param_9,param_9[1],&local_41)" ( identifier , (pointer_expression "*param_9" * identifier) , (subscript_expression "param_9[1]" identifier [ number_literal ]) , (pointer_expression "&local_41" & identifier) ))) ;) comment (expression_statement "auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);" (assignment_expression "auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40)" identifier = (call_expression "(**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40)" (parenthesized_expression "(**(code **)(*param_1 + 0x18))" ( (pointer_expression "**(code **)(*param_1 + 0x18)" * (pointer_expression "*(code **)(*param_1 + 0x18)" * (cast_expression "(code **)(*param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,local_40)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar4 = 0x4db1f6;" (assignment_expression "iVar4 = 0x4db1f6" identifier = number_literal) ;) (if_statement "if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }" if (parenthesized_expression "((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8)" ( (binary_expression "(undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8" (cast_expression "(undefined *)(local_40[0] + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -0x18)" ( (binary_expression "local_40[0] + -0x18" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) ))) != identifier) )) (compound_statement "{\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_0067bee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0067bee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }" { (expression_statement "iVar3 = *(int *)(local_40[0] + -8);" (assignment_expression "iVar3 = *(int *)(local_40[0] + -8)" identifier = (pointer_expression "*(int *)(local_40[0] + -8)" * (cast_expression "(int *)(local_40[0] + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -8)" ( (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "iVar4 = iVar3 + -1;" (assignment_expression "iVar4 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "*(int *)(local_40[0] + -8) = iVar4;" (assignment_expression "*(int *)(local_40[0] + -8) = iVar4" (pointer_expression "*(int *)(local_40[0] + -8)" * (cast_expression "(int *)(local_40[0] + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -8)" ( (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_40[0] + -8);" (assignment_expression "piVar1 = (int *)(local_40[0] + -8)" identifier = (cast_expression "(int *)(local_40[0] + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -8)" ( (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }" { (expression_statement "thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);" (call_expression "thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4)" identifier (argument_list "((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4)" ( (cast_expression "(undefined *)(local_40[0] + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -0x18)" ( (binary_expression "local_40[0] + -0x18" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) ))) , (pointer_expression "&local_41" & identifier) , (field_expression "auVar5._8_8_" identifier . field_identifier) , (subscript_expression "local_40[0]" identifier [ number_literal ]) , identifier ))) ;) })) })) (return_statement "return auVar5._0_8_;" return (field_expression "auVar5._0_8_" identifier . field_identifier) ;) })) comment (expression_statement "FUN_004dcba0("uninitialized __any_string");" (call_expression "FUN_004dcba0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit "/* std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >\n   std::__facet_shims::__money_put<wchar_t>(std::integral_constant<bool, false>, std::locale::facet\n   const*, std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool, std::ios_base&,\n   wchar_t, long double, std::__facet_shims::__any_string const*) */\n\nundefined8 __thiscall\nstd::__facet_shims::__money_put<wchar_t>\n          (__facet_shims *this,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n          undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n          undefined8 *param_9)\n\n{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  allocator local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*(long *)this + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    std::wstring::wstring((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41);\n                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */\n    uVar2 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,(wstring *)local_40);\n    if ((allocator *)(local_40[0] + -0x18) != (allocator *)PTR__S_empty_rep_storage_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        *(int *)(local_40[0] + -8) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));\n      }\n    }\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_logic_error("uninitialized __any_string");\n}\n\n" comment (function_definition "undefined8 __thiscall\nstd::__facet_shims::__money_put<wchar_t>\n          (__facet_shims *this,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n          undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n          undefined8 *param_9)\n\n{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  allocator local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*(long *)this + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    std::wstring::wstring((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41);\n                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */\n    uVar2 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,(wstring *)local_40);\n    if ((allocator *)(local_40[0] + -0x18) != (allocator *)PTR__S_empty_rep_storage_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        *(int *)(local_40[0] + -8) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));\n      }\n    }\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_logic_error("uninitialized __any_string");\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__facet_shims::__money_put<" identifier : : identifier : : identifier <) (function_declarator "wchar_t>\n          (__facet_shims *this,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n          undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n          undefined8 *param_9)" identifier (ERROR ">" >) (parameter_list "(__facet_shims *this,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n          undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n          undefined8 *param_9)" ( (parameter_declaration "__facet_shims *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined1 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) , (parameter_declaration "undefined8 *param_9" type_identifier (pointer_declarator "*param_9" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  allocator local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*(long *)this + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    std::wstring::wstring((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41);\n                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */\n    uVar2 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,(wstring *)local_40);\n    if ((allocator *)(local_40[0] + -0x18) != (allocator *)PTR__S_empty_rep_storage_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        *(int *)(local_40[0] + -8) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));\n      }\n    }\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_logic_error("uninitialized __any_string");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "allocator local_41;" type_identifier identifier ;) (declaration "long local_40 [2];" (sized_type_specifier "long" long) (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (if_statement "if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*(long *)this + 0x10))();\n    return uVar2;\n  }" if (parenthesized_expression "(param_9 == (undefined8 *)0x0)" ( (binary_expression "param_9 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = (**(code **)(*(long *)this + 0x10))();\n    return uVar2;\n  }" { (expression_statement "uVar2 = (**(code **)(*(long *)this + 0x10))();" (assignment_expression "uVar2 = (**(code **)(*(long *)this + 0x10))()" identifier = (call_expression "(**(code **)(*(long *)this + 0x10))()" (parenthesized_expression "(**(code **)(*(long *)this + 0x10))" ( (pointer_expression "**(code **)(*(long *)this + 0x10)" * (pointer_expression "*(code **)(*(long *)this + 0x10)" * (cast_expression "(code **)(*(long *)this + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x10)" ( (binary_expression "*(long *)this + 0x10" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (param_9[4] != 0) {\n    std::wstring::wstring((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41);\n                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */\n    uVar2 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,(wstring *)local_40);\n    if ((allocator *)(local_40[0] + -0x18) != (allocator *)PTR__S_empty_rep_storage_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        *(int *)(local_40[0] + -8) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));\n      }\n    }\n    return uVar2;\n  }" if (parenthesized_expression "(param_9[4] != 0)" ( (binary_expression "param_9[4] != 0" (subscript_expression "param_9[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    std::wstring::wstring((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41);\n                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */\n    uVar2 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,(wstring *)local_40);\n    if ((allocator *)(local_40[0] + -0x18) != (allocator *)PTR__S_empty_rep_storage_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        *(int *)(local_40[0] + -8) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));\n      }\n    }\n    return uVar2;\n  }" { (labeled_statement "std::wstring::wstring((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::wstring((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41);" statement_identifier : (ERROR ":" :) (expression_statement "wstring((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41);" (call_expression "wstring((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41)" identifier (argument_list "((wstring *)local_40,(wchar_t *)*param_9,param_9[1],&local_41)" ( (cast_expression "(wstring *)local_40" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wchar_t *)*param_9" ( (type_descriptor "wchar_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_9" * identifier)) , (subscript_expression "param_9[1]" identifier [ number_literal ]) , (pointer_expression "&local_41" & identifier) ))) ;))) comment (expression_statement "uVar2 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,(wstring *)local_40);" (assignment_expression "uVar2 = (**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,(wstring *)local_40)" identifier = (call_expression "(**(code **)(*(long *)this + 0x18))\n                      (this,param_2,param_3,param_4,param_5,param_6,(wstring *)local_40)" (parenthesized_expression "(**(code **)(*(long *)this + 0x18))" ( (pointer_expression "**(code **)(*(long *)this + 0x18)" * (pointer_expression "*(code **)(*(long *)this + 0x18)" * (cast_expression "(code **)(*(long *)this + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x18)" ( (binary_expression "*(long *)this + 0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(this,param_2,param_3,param_4,param_5,param_6,(wstring *)local_40)" ( identifier , identifier , identifier , identifier , identifier , identifier , (cast_expression "(wstring *)local_40" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if ((allocator *)(local_40[0] + -0x18) != (allocator *)PTR__S_empty_rep_storage_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        *(int *)(local_40[0] + -8) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));\n      }\n    }" if (parenthesized_expression "((allocator *)(local_40[0] + -0x18) != (allocator *)PTR__S_empty_rep_storage_0067bcd8)" ( (binary_expression "(allocator *)(local_40[0] + -0x18) != (allocator *)PTR__S_empty_rep_storage_0067bcd8" (cast_expression "(allocator *)(local_40[0] + -0x18)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -0x18)" ( (binary_expression "local_40[0] + -0x18" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_0067bcd8" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        *(int *)(local_40[0] + -8) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        *(int *)(local_40[0] + -8) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_0067bee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0067bee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar3 = *(int *)(local_40[0] + -8);\n        *(int *)(local_40[0] + -8) = iVar3 + -1;\n      }" { (expression_statement "iVar3 = *(int *)(local_40[0] + -8);" (assignment_expression "iVar3 = *(int *)(local_40[0] + -8)" identifier = (pointer_expression "*(int *)(local_40[0] + -8)" * (cast_expression "(int *)(local_40[0] + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -8)" ( (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "*(int *)(local_40[0] + -8) = iVar3 + -1;" (assignment_expression "*(int *)(local_40[0] + -8) = iVar3 + -1" (pointer_expression "*(int *)(local_40[0] + -8)" * (cast_expression "(int *)(local_40[0] + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -8)" ( (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_40[0] + -8);" (assignment_expression "piVar1 = (int *)(local_40[0] + -8)" identifier = (cast_expression "(int *)(local_40[0] + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -8)" ( (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));\n      }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));\n      }" { (labeled_statement "std::wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(local_40[0] + -0x18));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(local_40[0] + -0x18));" (call_expression "_M_destroy((allocator *)(local_40[0] + -0x18))" identifier (argument_list "((allocator *)(local_40[0] + -0x18))" ( (cast_expression "(allocator *)(local_40[0] + -0x18)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -0x18)" ( (binary_expression "local_40[0] + -0x18" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) ))) ))) ;)))) })) })) (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "__throw_logic_error("uninitialized __any_string");" (call_expression "__throw_logic_error("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit "undefined8\nFUN_004db1a0(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)\n\n{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 auVar5 [16];\n  undefined1 local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    \n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }\n                    \n  FUN_004dcba0("uninitialized __any_string");\n}\n\n" (function_definition "undefined8\nFUN_004db1a0(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)\n\n{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 auVar5 [16];\n  undefined1 local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    \n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }\n                    \n  FUN_004dcba0("uninitialized __any_string");\n}" type_identifier (function_declarator "FUN_004db1a0(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)" identifier (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined1 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "undefined8 param_8" type_identifier identifier) , (parameter_declaration "undefined8 *param_9" type_identifier (pointer_declarator "*param_9" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 auVar5 [16];\n  undefined1 local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    \n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }\n                    \n  FUN_004dcba0("uninitialized __any_string");\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 auVar5 [16];" type_identifier (array_declarator "auVar5 [16]" identifier [ number_literal ]) ;) (declaration "undefined1 local_41;" type_identifier identifier ;) (declaration "long local_40 [2];" (sized_type_specifier "long" long) (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (if_statement "if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }" if (parenthesized_expression "(param_9 == (undefined8 *)0x0)" ( (binary_expression "param_9 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }" { (expression_statement "uVar2 = (**(code **)(*param_1 + 0x10))();" (assignment_expression "uVar2 = (**(code **)(*param_1 + 0x10))()" identifier = (call_expression "(**(code **)(*param_1 + 0x10))()" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" ( (pointer_expression "**(code **)(*param_1 + 0x10)" * (pointer_expression "*(code **)(*param_1 + 0x10)" * (cast_expression "(code **)(*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    \n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }" if (parenthesized_expression "(param_9[4] != 0)" ( (binary_expression "param_9[4] != 0" (subscript_expression "param_9[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    \n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }" { (expression_statement "FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);" (call_expression "FUN_0051ac10(local_40,*param_9,param_9[1],&local_41)" identifier (argument_list "(local_40,*param_9,param_9[1],&local_41)" ( identifier , (pointer_expression "*param_9" * identifier) , (subscript_expression "param_9[1]" identifier [ number_literal ]) , (pointer_expression "&local_41" & identifier) ))) ;) (expression_statement "auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);" (assignment_expression "auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40)" identifier = (call_expression "(**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40)" (parenthesized_expression "(**(code **)(*param_1 + 0x18))" ( (pointer_expression "**(code **)(*param_1 + 0x18)" * (pointer_expression "*(code **)(*param_1 + 0x18)" * (cast_expression "(code **)(*param_1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x18)" ( (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,local_40)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar4 = 0x4db1f6;" (assignment_expression "iVar4 = 0x4db1f6" identifier = number_literal) ;) (if_statement "if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }" if (parenthesized_expression "((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8)" ( (binary_expression "(undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8" (cast_expression "(undefined *)(local_40[0] + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -0x18)" ( (binary_expression "local_40[0] + -0x18" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) ))) != identifier) )) (compound_statement "{\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_0067bee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0067bee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }" { (expression_statement "iVar3 = *(int *)(local_40[0] + -8);" (assignment_expression "iVar3 = *(int *)(local_40[0] + -8)" identifier = (pointer_expression "*(int *)(local_40[0] + -8)" * (cast_expression "(int *)(local_40[0] + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -8)" ( (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) ))))) ;) (expression_statement "iVar4 = iVar3 + -1;" (assignment_expression "iVar4 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "*(int *)(local_40[0] + -8) = iVar4;" (assignment_expression "*(int *)(local_40[0] + -8) = iVar4" (pointer_expression "*(int *)(local_40[0] + -8)" * (cast_expression "(int *)(local_40[0] + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -8)" ( (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_40[0] + -8);" (assignment_expression "piVar1 = (int *)(local_40[0] + -8)" identifier = (cast_expression "(int *)(local_40[0] + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -8)" ( (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }" { (expression_statement "thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);" (call_expression "thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4)" identifier (argument_list "((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4)" ( (cast_expression "(undefined *)(local_40[0] + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_40[0] + -0x18)" ( (binary_expression "local_40[0] + -0x18" (subscript_expression "local_40[0]" identifier [ number_literal ]) + number_literal) ))) , (pointer_expression "&local_41" & identifier) , (field_expression "auVar5._8_8_" identifier . field_identifier) , (subscript_expression "local_40[0]" identifier [ number_literal ]) , identifier ))) ;) })) })) (return_statement "return auVar5._0_8_;" return (field_expression "auVar5._0_8_" identifier . field_identifier) ;) })) (expression_statement "FUN_004dcba0("uninitialized __any_string");" (call_expression "FUN_004dcba0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (array_declarator 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 IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , (subscript_expression IDENT [ LIT ]) , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))) != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))) , (pointer_expression & IDENT) , (field_expression IDENT . field_identifier) , (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) })) })) (return_statement return (field_expression IDENT . field_identifier) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "undefined8\nFUN_004db1a0(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)\n\n{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 auVar5 [16];\n  undefined1 local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    \n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }\n                    \n  FUN_004dcba0("uninitialized __any_string");\n}" (type_identifier "undefined8") (function_declarator "FUN_004db1a0(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)" (identifier "FUN_004db1a0") (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,\n            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,\n            undefined8 *param_9)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined1 param_4" (type_identifier "undefined1") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined8 param_7" (type_identifier "undefined8") (identifier "param_7")) (, ",") (parameter_declaration "undefined8 param_8" (type_identifier "undefined8") (identifier "param_8")) (, ",") (parameter_declaration "undefined8 *param_9" (type_identifier "undefined8") (pointer_declarator "*param_9" (* "*") (identifier "param_9"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined8 uVar2;\n  int iVar3;\n  int iVar4;\n  undefined1 auVar5 [16];\n  undefined1 local_41;\n  long local_40 [2];\n  \n  if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }\n  if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    \n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }\n                    \n  FUN_004dcba0("uninitialized __any_string");\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined1 auVar5 [16];" (type_identifier "undefined1") (array_declarator "auVar5 [16]" (identifier "auVar5") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "undefined1 local_41;" (type_identifier "undefined1") (identifier "local_41") (; ";")) (declaration "long local_40 [2];" (sized_type_specifier "long" (long "long")) (array_declarator "local_40 [2]" (identifier "local_40") ([ "[") (number_literal "2") (] "]")) (; ";")) (if_statement "if (param_9 == (undefined8 *)0x0) {\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(param_9 == (undefined8 *)0x0)" (( "(") (binary_expression "param_9 == (undefined8 *)0x0" (identifier "param_9") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar2 = (**(code **)(*param_1 + 0x10))();\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = (**(code **)(*param_1 + 0x10))();" (assignment_expression "uVar2 = (**(code **)(*param_1 + 0x10))()" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*param_1 + 0x10))()" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x10)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x10)" (* "*") (cast_expression "(code **)(*param_1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x10)" (( "(") (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (if_statement "if (param_9[4] != 0) {\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    \n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }" (if "if") (parenthesized_expression "(param_9[4] != 0)" (( "(") (binary_expression "param_9[4] != 0" (subscript_expression "param_9[4]" (identifier "param_9") ([ "[") (number_literal "4") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);\n                    \n    auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);\n    iVar4 = 0x4db1f6;\n    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }\n    return auVar5._0_8_;\n  }" ({ "{") (expression_statement "FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);" (call_expression "FUN_0051ac10(local_40,*param_9,param_9[1],&local_41)" (identifier "FUN_0051ac10") (argument_list "(local_40,*param_9,param_9[1],&local_41)" (( "(") (identifier "local_40") (, ",") (pointer_expression "*param_9" (* "*") (identifier "param_9")) (, ",") (subscript_expression "param_9[1]" (identifier "param_9") ([ "[") (number_literal "1") (] "]")) (, ",") (pointer_expression "&local_41" (& "&") (identifier "local_41")) () ")"))) (; ";")) (expression_statement "auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);" (assignment_expression "auVar5 = (**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40)" (identifier "auVar5") (= "=") (call_expression "(**(code **)(*param_1 + 0x18))\n                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40)" (parenthesized_expression "(**(code **)(*param_1 + 0x18))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x18)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x18)" (* "*") (cast_expression "(code **)(*param_1 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x18)" (( "(") (binary_expression "*param_1 + 0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,local_40)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "local_40") () ")")))) (; ";")) (expression_statement "iVar4 = 0x4db1f6;" (assignment_expression "iVar4 = 0x4db1f6" (identifier "iVar4") (= "=") (number_literal "0x4db1f6")) (; ";")) (if_statement "if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }" (if "if") (parenthesized_expression "((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8)" (( "(") (binary_expression "(undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8" (cast_expression "(undefined *)(local_40[0] + -0x18)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_40[0] + -0x18)" (( "(") (binary_expression "local_40[0] + -0x18" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0x18")) () ")"))) (!= "!=") (identifier "PTR_DAT_0067bcd8")) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_0067bee8 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_0067bee8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_0067bee8") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar3 = *(int *)(local_40[0] + -8);\n        iVar4 = iVar3 + -1;\n        *(int *)(local_40[0] + -8) = iVar4;\n      }" ({ "{") (expression_statement "iVar3 = *(int *)(local_40[0] + -8);" (assignment_expression "iVar3 = *(int *)(local_40[0] + -8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(local_40[0] + -8)" (* "*") (cast_expression "(int *)(local_40[0] + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_40[0] + -8)" (( "(") (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-8")) () ")"))))) (; ";")) (expression_statement "iVar4 = iVar3 + -1;" (assignment_expression "iVar4 = iVar3 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(int *)(local_40[0] + -8) = iVar4;" (assignment_expression "*(int *)(local_40[0] + -8) = iVar4" (pointer_expression "*(int *)(local_40[0] + -8)" (* "*") (cast_expression "(int *)(local_40[0] + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_40[0] + -8)" (( "(") (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-8")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (} "}")) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (else "else") (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_40[0] + -8);\n        iVar3 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(local_40[0] + -8);" (assignment_expression "piVar1 = (int *)(local_40[0] + -8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(local_40[0] + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_40[0] + -8)" (( "(") (binary_expression "local_40[0] + -8" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-8")) () ")")))) (; ";")) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar3 < 1) {\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }" (if "if") (parenthesized_expression "(iVar3 < 1)" (( "(") (binary_expression "iVar3 < 1" (identifier "iVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);\n      }" ({ "{") (expression_statement "thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4);" (call_expression "thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4)" (identifier "thunk_FUN_0049e330") (argument_list "((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],\n                           iVar4)" (( "(") (cast_expression "(undefined *)(local_40[0] + -0x18)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_40[0] + -0x18)" (( "(") (binary_expression "local_40[0] + -0x18" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (+ "+") (number_literal "-0x18")) () ")"))) (, ",") (pointer_expression "&local_41" (& "&") (identifier "local_41")) (, ",") (field_expression "auVar5._8_8_" (identifier "auVar5") (. ".") (field_identifier "_8_8_")) (, ",") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (, ",") (identifier "iVar4") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return auVar5._0_8_;" (return "return") (field_expression "auVar5._0_8_" (identifier "auVar5") (. ".") (field_identifier "_0_8_")) (; ";")) (} "}"))) (expression_statement "FUN_004dcba0("uninitialized __any_string");" (call_expression "FUN_004dcba0("uninitialized __any_string")" (identifier "FUN_004dcba0") (argument_list "("uninitialized __any_string")" (( "(") (string_literal ""uninitialized __any_string"" (" """) (string_content "uninitialized __any_string") (" """)) () ")"))) (; ";")) (} "}")))

/* std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >
   std::__facet_shims::__money_put<wchar_t>(std::integral_constant<bool, false>, std::locale::facet
   const*, std::ostreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool, std::ios_base&,
   wchar_t, long double, std::__facet_shims::__any_string const*) */

type_1 __thiscall
std::type_2::__money_put<function_1>
          (type_2 *this,type_1 param_2,type_1 param_3,type_3 param_4,
          type_1 param_5,type_4 param_6,type_1 param_7,type_1 param_8,
          type_1 *var_1)

{
  int *piVar1;
  type_1 uVar2;
  int var_4;
  type_5 local_41;
  long local_40 [2];
  
  if (var_1 == (type_1 *)0x0) {
    uVar2 = (**(type_6 **)(*(long *)this + 0x10))();
    return uVar2;
  }
  if (var_1[4] != 0) {
    std::wstring::var_2((var_2 *)local_40,(function_1 *)*var_1,var_1[1],&local_41);
                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */
    uVar2 = (**(type_6 **)(*(long *)this + 0x18))
                      (this,param_2,param_3,param_4,param_5,param_6,(var_2 *)local_40);
    if ((type_5 *)(local_40[0] + -0x18) != (type_5 *)PTR__S_empty_rep_storage_0067bcd8) {
      if (var_3 == (type_7 *)0x0) {
        var_4 = *(int *)(local_40[0] + -8);
        *(int *)(local_40[0] + -8) = var_4 + -1;
      }
      else {
        var_5();
        piVar1 = (int *)(local_40[0] + -8);
        var_4 = *piVar1;
        *piVar1 = *piVar1 + -1;
        var_6();
      }
      if (var_4 < 1) {
        std::wstring::_Rep::var_7((type_5 *)(local_40[0] + -0x18));
      }
    }
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_8("uninitialized __any_string");
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (array_declarator declarator: (identifier) size: (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: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list)))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (subscript_expression argument: (identifier) index: (number_literal)) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (pointer_expression argument: (identifier)) (field_expression argument: (identifier) field: (field_identifier)) (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))))))) (return_statement (field_expression argument: (identifier) field: (field_identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))))

undefined8
MASKED(long *param_1,undefined8 param_2,undefined8 param_3,undefined1 param_4,
            undefined8 param_5,undefined4 param_6,undefined8 param_7,undefined8 param_8,
            undefined8 *param_9)

{
  int *piVar1;
  undefined8 uVar2;
  int iVar3;
  int iVar4;
  undefined1 auVar5 [16];
  undefined1 local_41;
  long local_40 [2];
  
  if (param_9 == (undefined8 *)0x0) {
    uVar2 = (**(code **)(*param_1 + 0x10))();
    return uVar2;
  }
  if (param_9[4] != 0) {
    FUN_0051ac10(local_40,*param_9,param_9[1],&local_41);
                    /* try { // try from 004db214 to 004db216 has its CatchHandler @ 004db2b1 */
    auVar5 = (**(code **)(*param_1 + 0x18))
                       (param_1,param_2,param_3,param_4,param_5,param_6,local_40);
    iVar4 = 0x4db1f6;
    if ((undefined *)(local_40[0] + -0x18) != PTR_DAT_0067bcd8) {
      if (PTR___pthread_key_create_0067bee8 == (undefined *)0x0) {
        iVar3 = *(int *)(local_40[0] + -8);
        iVar4 = iVar3 + -1;
        *(int *)(local_40[0] + -8) = iVar4;
      }
      else {
        LOCK();
        piVar1 = (int *)(local_40[0] + -8);
        iVar3 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar3 < 1) {
        thunk_FUN_0049e330((undefined *)(local_40[0] + -0x18),&local_41,auVar5._8_8_,local_40[0],
                           iVar4);
      }
    }
    return auVar5._0_8_;
  }
                    /* WARNING: Subroutine does not return */
  FUN_004dcba0("uninitialized __any_string");
}

