
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::__facet_shims::(anonymous
   namespace)::money_get_shim<wchar_t>::do_get(std::istreambuf_iterator<wchar_t,
   std::char_traits<wchar_t> >, std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool,
   std::ios_base&, std::_Ios_Iostate&, std::wstring&) const */

undefined4 *
std::__facet_shims::(anonymous_namespace)::money_get_shim<wchar_t>::do_get
          (undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,
          undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9,wstring *param_10)

{
  int *piVar1;
  int iVar2;
  wstring *this;
  allocator *paVar3;
  undefined4 local_54;
  undefined4 local_50;
  allocator local_41;
  int local_40;
  int local_3c;
  wchar_t *local_38;
  uint local_34;
  code *local_20;
  
  this = (wstring *)&local_40;
  local_20 = (code *)0x0;
  local_40 = 0;
                    /* try { // try from 001c211e to 001c2122 has its CatchHandler @ 001c21fa */
  __money_get<wchar_t>
            (&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,
             param_8,this,0,&local_38);
  if (local_40 == 0) {
    if (local_20 == (code *)0x0) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */
      __throw_logic_error("uninitialized __any_string");
    }
    paVar3 = &local_41;
    this = (wstring *)&local_3c;
                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */
    std::wstring::wstring(this,local_38,local_34,paVar3);
                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */
    std::wstring::swap(param_10,this);
    if ((allocator *)(local_3c + -0xc) != (allocator *)PTR__S_empty_rep_storage_00301d58) {
      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {
        iVar2 = *(int *)(local_3c + -4);
        *(int *)(local_3c + -4) = iVar2 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(local_3c + -4);
        iVar2 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar2 < 1) {
        std::wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));
        this = (wstring *)paVar3;
      }
    }
  }
  else {
    *param_9 = local_40;
  }
  *param_1 = local_54;
  param_1[1] = local_50;
  if (local_20 != (code *)0x0) {
    (*local_20)(&local_38,this);
  }
  return param_1;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

undefined4 *
FUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,
            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9
            ,undefined4 param_10)

{
  int *piVar1;
  int iVar2;
  undefined4 local_54;
  undefined4 local_50;
  undefined1 local_41;
  int local_40;
  int local_3c;
  undefined4 local_38;
  undefined4 local_34;
  code *local_20;
  
  local_20 = (code *)0x0;
  local_40 = 0;
                    /* try { // try from 001c211e to 001c2122 has its CatchHandler @ 001c21fa */
  FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,
               param_8,&local_40,0,&local_38);
  if (local_40 == 0) {
    if (local_20 == (code *)0x0) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */
      FUN_001c60a0("uninitialized __any_string");
    }
                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */
    FUN_00205570(&local_3c,local_38,local_34,&local_41);
                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */
    FUN_002028c0(param_10,&local_3c);
    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {
      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {
        iVar2 = *(int *)(local_3c + -4);
        *(int *)(local_3c + -4) = iVar2 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(local_3c + -4);
        iVar2 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar2 < 1) {
        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);
      }
    }
  }
  else {
    *param_9 = local_40;
  }
  *param_1 = local_54;
  param_1[1] = local_50;
  if (local_20 != (code *)0x0) {
    (*local_20)(&local_38);
  }
  return param_1;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
LEA EDX,[EBP + -0x3c]
LEA EDI,[EBP + -0x34]
CALL 0x0004fb7a
ADD ESI,0x13ff20
PUSH EBX
LEA EAX,[EBP + -0x50]
SUB ESP,0x5c
MOV dword ptr [EBP + -0x1c],0x0
PUSH EDI
PUSH 0x0
PUSH EDX
MOVZX EDX,byte ptr [EBP + 0x20]
MOV EBX,ESI
PUSH dword ptr [EBP + 0x24]
PUSH EDX
MOV EDX,dword ptr [EBP + 0xc]
PUSH dword ptr [EBP + 0x1c]
PUSH dword ptr [EBP + 0x18]
PUSH dword ptr [EBP + 0x14]
PUSH dword ptr [EBP + 0x10]
PUSH dword ptr [EDX + 0x8]
PUSH 0x0
PUSH EAX
MOV dword ptr [EBP + -0x3c],0x0
CALL 0x001bec60
MOV EDX,dword ptr [EBP + -0x4c]
MOV EAX,dword ptr [EBP + -0x50]
ADD ESP,0x2c
MOV dword ptr [EBP + -0x54],EDX
MOV EDX,dword ptr [EBP + -0x3c]
MOV dword ptr [EBP + -0x58],EAX
MOV EAX,dword ptr [EBP + -0x1c]
TEST EDX,EDX
JZ 0x001c2170
MOV ECX,dword ptr [EBP + 0x28]
MOV dword ptr [ECX],EDX
MOV ESI,dword ptr [EBP + 0x8]
MOV ECX,dword ptr [EBP + -0x58]
MOV EBX,dword ptr [EBP + -0x54]
MOV dword ptr [ESI],ECX
MOV dword ptr [ESI + 0x4],EBX
TEST EAX,EAX
JZ 0x001c215c
SUB ESP,0xc
PUSH EDI
CALL EAX
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x8]
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET 0x4
TEST EAX,EAX
JZ 0x001c21eb
LEA EAX,[EBP + -0x3d]
PUSH EAX
MOV dword ptr [EBP + -0x60],EAX
LEA EAX,[EBP + -0x38]
PUSH dword ptr [EBP + -0x30]
PUSH dword ptr [EBP + -0x34]
PUSH EAX
MOV dword ptr [EBP + -0x5c],EAX
CALL 0x00205570
POP EAX
POP EDX
PUSH dword ptr [EBP + -0x5c]
PUSH dword ptr [EBP + 0x2c]
CALL 0x002028c0
MOV EAX,dword ptr [EBP + -0x38]
ADD ESP,0x10
LEA EDX,[EAX + -0xc]
CMP EDX,dword ptr [ESI + 0xfffffd58]
JNZ 0x001c21b0
MOV EAX,dword ptr [EBP + -0x1c]
JMP 0x001c2141
MOV ECX,dword ptr [ESI + 0xffffff24]
TEST ECX,ECX
JZ 0x001c21e0
MOV ECX,0xffffffff
XADD.LOCK dword ptr [EAX + -0x4],ECX
TEST ECX,ECX
JG 0x001c21ab
SUB ESP,0x8
PUSH dword ptr [EBP + -0x60]
MOV EBX,ESI
PUSH EDX
CALL 0x002036f0
ADD ESP,0x10
JMP 0x001c21ab
MOV ECX,dword ptr [EAX + -0x4]
LEA EBX,[ECX + -0x1]
MOV dword ptr [EAX + -0x4],EBX
JMP 0x001c21c4
SUB ESP,0xc
LEA EAX,[ESI + 0xfff39614]
PUSH EAX
CALL 0x001c60a0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 *\nFUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined1 local_41;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n  local_40 = 0;\n                    /* try { // try from 001c211e to 001c2122 has its CatchHandler @ 001c21fa */\n  FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);\n  if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */\n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */\n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }\n  *param_1 = local_54;\n  param_1[1] = local_50;\n  if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }\n  return param_1;\n}\n\n" comment (function_definition "undefined4 *\nFUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined1 local_41;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n  local_40 = 0;\n                    /* try { // try from 001c211e to 001c2122 has its CatchHandler @ 001c21fa */\n  FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);\n  if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */\n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */\n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }\n  *param_1 = local_54;\n  param_1[1] = local_50;\n  if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)" * (function_declarator "FUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)" identifier (parameter_list "(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined1 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "int *param_9" primitive_type (pointer_declarator "*param_9" * identifier)) , (parameter_declaration "undefined4 param_10" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined1 local_41;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n  local_40 = 0;\n                    /* try { // try from 001c211e to 001c2122 has its CatchHandler @ 001c21fa */\n  FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);\n  if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */\n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */\n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }\n  *param_1 = local_54;\n  param_1[1] = local_50;\n  if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 local_54;" type_identifier identifier ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "undefined1 local_41;" type_identifier identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "code *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (code *)0x0;" (assignment_expression "local_20 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) comment (expression_statement "FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);" (call_expression "FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38)" identifier (argument_list "(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38)" ( (pointer_expression "&local_54" & identifier) , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_40" & identifier) , number_literal , (pointer_expression "&local_38" & identifier) ))) ;) (if_statement "if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */\n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */\n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }" if (parenthesized_expression "(local_40 == 0)" ( (binary_expression "local_40 == 0" identifier == number_literal) )) (compound_statement "{\n    if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */\n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */\n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }" { (if_statement "if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      FUN_001c60a0("uninitialized __any_string");\n    }" if (parenthesized_expression "(local_20 == (code *)0x0)" ( (binary_expression "local_20 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      FUN_001c60a0("uninitialized __any_string");\n    }" { comment comment (expression_statement "FUN_001c60a0("uninitialized __any_string");" (call_expression "FUN_001c60a0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })) comment (expression_statement "FUN_00205570(&local_3c,local_38,local_34,&local_41);" (call_expression "FUN_00205570(&local_3c,local_38,local_34,&local_41)" identifier (argument_list "(&local_3c,local_38,local_34,&local_41)" ( (pointer_expression "&local_3c" & identifier) , identifier , identifier , (pointer_expression "&local_41" & identifier) ))) ;) comment (expression_statement "FUN_002028c0(param_10,&local_3c);" (call_expression "FUN_002028c0(param_10,&local_3c)" identifier (argument_list "(param_10,&local_3c)" ( identifier , (pointer_expression "&local_3c" & identifier) ))) ;) (if_statement "if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }" if (parenthesized_expression "((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58)" ( (binary_expression "(undefined *)(local_3c + -0xc) != PTR_DAT_00301d58" (cast_expression "(undefined *)(local_3c + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -0xc)" ( (binary_expression "local_3c + -0xc" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_00301f24 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00301f24 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }" { (expression_statement "iVar2 = *(int *)(local_3c + -4);" (assignment_expression "iVar2 = *(int *)(local_3c + -4)" identifier = (pointer_expression "*(int *)(local_3c + -4)" * (cast_expression "(int *)(local_3c + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -4)" ( (binary_expression "local_3c + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(local_3c + -4) = iVar2 + -1;" (assignment_expression "*(int *)(local_3c + -4) = iVar2 + -1" (pointer_expression "*(int *)(local_3c + -4)" * (cast_expression "(int *)(local_3c + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -4)" ( (binary_expression "local_3c + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_3c + -4);" (assignment_expression "piVar1 = (int *)(local_3c + -4)" identifier = (cast_expression "(int *)(local_3c + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -4)" ( (binary_expression "local_3c + -4" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *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 (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }" { (expression_statement "FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);" (call_expression "FUN_002036f0((undefined *)(local_3c + -0xc),&local_41)" identifier (argument_list "((undefined *)(local_3c + -0xc),&local_41)" ( (cast_expression "(undefined *)(local_3c + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -0xc)" ( (binary_expression "local_3c + -0xc" identifier + number_literal) ))) , (pointer_expression "&local_41" & identifier) ))) ;) })) })) }) (else_clause "else {\n    *param_9 = local_40;\n  }" else (compound_statement "{\n    *param_9 = local_40;\n  }" { (expression_statement "*param_9 = local_40;" (assignment_expression "*param_9 = local_40" (pointer_expression "*param_9" * identifier) = identifier) ;) }))) (expression_statement "*param_1 = local_54;" (assignment_expression "*param_1 = local_54" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_50;" (assignment_expression "param_1[1] = local_50" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }" if (parenthesized_expression "(local_20 != (code *)0x0)" ( (binary_expression "local_20 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*local_20)(&local_38);\n  }" { (expression_statement "(*local_20)(&local_38);" (call_expression "(*local_20)(&local_38)" (parenthesized_expression "(*local_20)" ( (pointer_expression "*local_20" * identifier) )) (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::__facet_shims::(anonymous\n   namespace)::money_get_shim<wchar_t>::do_get(std::istreambuf_iterator<wchar_t,\n   std::char_traits<wchar_t> >, std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool,\n   std::ios_base&, std::_Ios_Iostate&, std::wstring&) const */\n\nundefined4 *\nstd::__facet_shims::(anonymous_namespace)::money_get_shim<wchar_t>::do_get\n          (undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n          undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9,wstring *param_10)\n\n{\n  int *piVar1;\n  int iVar2;\n  wstring *this;\n  allocator *paVar3;\n  undefined4 local_54;\n  undefined4 local_50;\n  allocator local_41;\n  int local_40;\n  int local_3c;\n  wchar_t *local_38;\n  uint local_34;\n  code *local_20;\n  \n  this = (wstring *)&local_40;\n  local_20 = (code *)0x0;\n  local_40 = 0;\n                    /* try { // try from 001c211e to 001c2122 has its CatchHandler @ 001c21fa */\n  __money_get<wchar_t>\n            (&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n             param_8,this,0,&local_38);\n  if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      __throw_logic_error("uninitialized __any_string");\n    }\n    paVar3 = &local_41;\n    this = (wstring *)&local_3c;\n                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */\n    std::wstring::wstring(this,local_38,local_34,paVar3);\n                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */\n    std::wstring::swap(param_10,this);\n    if ((allocator *)(local_3c + -0xc) != (allocator *)PTR__S_empty_rep_storage_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));\n        this = (wstring *)paVar3;\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }\n  *param_1 = local_54;\n  param_1[1] = local_50;\n  if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38,this);\n  }\n  return param_1;\n}\n\n" comment comment (ERROR "undefined4 *\nstd::" (binary_expression "undefined4 *\nstd" identifier * identifier) : :) (labeled_statement "__facet_shims::(anonymous_namespace)::money_get_shim<wchar_t>::do_get\n          (undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n          undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9,wstring *param_10)" statement_identifier (ERROR "::(anonymous_namespace)::money_get_shim<wchar_t>:" : : (parenthesized_expression "(anonymous_namespace)" ( identifier )) : : (binary_expression "money_get_shim<wchar_t" identifier < identifier) > :) : (expression_statement "do_get\n          (undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n          undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9,wstring *param_10)" (call_expression "do_get\n          (undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n          undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9,wstring *param_10)" identifier (argument_list "(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5,\n          undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9,wstring *param_10)" ( (binary_expression "undefined4 *param_1" identifier * identifier) , (ERROR "int" identifier) identifier , identifier (ERROR "param_3" identifier) , identifier (ERROR "param_4" identifier) , identifier (ERROR "param_5" identifier) , identifier (ERROR "param_6" identifier) , identifier (ERROR "param_7" identifier) , identifier (ERROR "param_8" identifier) , (binary_expression "int *param_9" identifier * identifier) , (binary_expression "wstring *param_10" identifier * identifier) ))) ;)) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  wstring *this;\n  allocator *paVar3;\n  undefined4 local_54;\n  undefined4 local_50;\n  allocator local_41;\n  int local_40;\n  int local_3c;\n  wchar_t *local_38;\n  uint local_34;\n  code *local_20;\n  \n  this = (wstring *)&local_40;\n  local_20 = (code *)0x0;\n  local_40 = 0;\n                    /* try { // try from 001c211e to 001c2122 has its CatchHandler @ 001c21fa */\n  __money_get<wchar_t>\n            (&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n             param_8,this,0,&local_38);\n  if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      __throw_logic_error("uninitialized __any_string");\n    }\n    paVar3 = &local_41;\n    this = (wstring *)&local_3c;\n                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */\n    std::wstring::wstring(this,local_38,local_34,paVar3);\n                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */\n    std::wstring::swap(param_10,this);\n    if ((allocator *)(local_3c + -0xc) != (allocator *)PTR__S_empty_rep_storage_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));\n        this = (wstring *)paVar3;\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }\n  *param_1 = local_54;\n  param_1[1] = local_50;\n  if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38,this);\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "wstring *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "allocator *paVar3;" type_identifier (pointer_declarator "*paVar3" * identifier) ;) (declaration "undefined4 local_54;" type_identifier identifier ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "allocator local_41;" type_identifier identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "wchar_t *local_38;" type_identifier (pointer_declarator "*local_38" * identifier) ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "code *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "this = (wstring *)&local_40;" (assignment_expression "this = (wstring *)&local_40" identifier = (cast_expression "(wstring *)&local_40" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_40" & identifier))) ;) (expression_statement "local_20 = (code *)0x0;" (assignment_expression "local_20 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) comment (expression_statement "__money_get<wchar_t>\n            (&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n             param_8,this,0,&local_38);" (binary_expression "__money_get<wchar_t>\n            (&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n             param_8,this,0,&local_38)" (binary_expression "__money_get<wchar_t" identifier < identifier) > (parenthesized_expression "(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n             param_8,this,0,&local_38)" ( (comma_expression "&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n             param_8,this,0,&local_38" (pointer_expression "&local_54" & identifier) , (comma_expression "0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n             param_8,this,0,&local_38" number_literal , (comma_expression "*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n             param_8,this,0,&local_38" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , (comma_expression "param_3,param_4,param_5,param_6,param_7,\n             param_8,this,0,&local_38" identifier , (comma_expression "param_4,param_5,param_6,param_7,\n             param_8,this,0,&local_38" identifier , (comma_expression "param_5,param_6,param_7,\n             param_8,this,0,&local_38" identifier , (comma_expression "param_6,param_7,\n             param_8,this,0,&local_38" identifier , (comma_expression "param_7,\n             param_8,this,0,&local_38" identifier , (comma_expression "param_8,this,0,&local_38" identifier , (comma_expression "this,0,&local_38" identifier , (comma_expression "0,&local_38" number_literal , (pointer_expression "&local_38" & identifier)))))))))))) ))) ;) (if_statement "if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      __throw_logic_error("uninitialized __any_string");\n    }\n    paVar3 = &local_41;\n    this = (wstring *)&local_3c;\n                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */\n    std::wstring::wstring(this,local_38,local_34,paVar3);\n                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */\n    std::wstring::swap(param_10,this);\n    if ((allocator *)(local_3c + -0xc) != (allocator *)PTR__S_empty_rep_storage_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));\n        this = (wstring *)paVar3;\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }" if (parenthesized_expression "(local_40 == 0)" ( (binary_expression "local_40 == 0" identifier == number_literal) )) (compound_statement "{\n    if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      __throw_logic_error("uninitialized __any_string");\n    }\n    paVar3 = &local_41;\n    this = (wstring *)&local_3c;\n                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */\n    std::wstring::wstring(this,local_38,local_34,paVar3);\n                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */\n    std::wstring::swap(param_10,this);\n    if ((allocator *)(local_3c + -0xc) != (allocator *)PTR__S_empty_rep_storage_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));\n        this = (wstring *)paVar3;\n      }\n    }\n  }" { (if_statement "if (local_20 == (code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      __throw_logic_error("uninitialized __any_string");\n    }" if (parenthesized_expression "(local_20 == (code *)0x0)" ( (binary_expression "local_20 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */\n      __throw_logic_error("uninitialized __any_string");\n    }" { comment 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 ") ))) ;) })) (expression_statement "paVar3 = &local_41;" (assignment_expression "paVar3 = &local_41" identifier = (pointer_expression "&local_41" & identifier)) ;) (expression_statement "this = (wstring *)&local_3c;" (assignment_expression "this = (wstring *)&local_3c" identifier = (cast_expression "(wstring *)&local_3c" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_3c" & identifier))) ;) comment (labeled_statement "std::wstring::wstring(this,local_38,local_34,paVar3);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::wstring(this,local_38,local_34,paVar3);" statement_identifier : (ERROR ":" :) (expression_statement "wstring(this,local_38,local_34,paVar3);" (call_expression "wstring(this,local_38,local_34,paVar3)" identifier (argument_list "(this,local_38,local_34,paVar3)" ( identifier , identifier , identifier , identifier ))) ;))) comment (labeled_statement "std::wstring::swap(param_10,this);" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::swap(param_10,this);" statement_identifier : (ERROR ":" :) (expression_statement "swap(param_10,this);" (call_expression "swap(param_10,this)" identifier (argument_list "(param_10,this)" ( identifier , identifier ))) ;))) (if_statement "if ((allocator *)(local_3c + -0xc) != (allocator *)PTR__S_empty_rep_storage_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));\n        this = (wstring *)paVar3;\n      }\n    }" if (parenthesized_expression "((allocator *)(local_3c + -0xc) != (allocator *)PTR__S_empty_rep_storage_00301d58)" ( (binary_expression "(allocator *)(local_3c + -0xc) != (allocator *)PTR__S_empty_rep_storage_00301d58" (cast_expression "(allocator *)(local_3c + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -0xc)" ( (binary_expression "local_3c + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_00301d58" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));\n        this = (wstring *)paVar3;\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_00301f24 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00301f24 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }" { (expression_statement "iVar2 = *(int *)(local_3c + -4);" (assignment_expression "iVar2 = *(int *)(local_3c + -4)" identifier = (pointer_expression "*(int *)(local_3c + -4)" * (cast_expression "(int *)(local_3c + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -4)" ( (binary_expression "local_3c + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(local_3c + -4) = iVar2 + -1;" (assignment_expression "*(int *)(local_3c + -4) = iVar2 + -1" (pointer_expression "*(int *)(local_3c + -4)" * (cast_expression "(int *)(local_3c + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -4)" ( (binary_expression "local_3c + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_3c + -4);" (assignment_expression "piVar1 = (int *)(local_3c + -4)" identifier = (cast_expression "(int *)(local_3c + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -4)" ( (binary_expression "local_3c + -4" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *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 (iVar2 < 1) {\n        std::wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));\n        this = (wstring *)paVar3;\n      }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n        std::wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));\n        this = (wstring *)paVar3;\n      }" { (labeled_statement "std::wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "wstring::_Rep::_M_destroy((allocator *)(local_3c + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(local_3c + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(local_3c + -0xc));" (call_expression "_M_destroy((allocator *)(local_3c + -0xc))" identifier (argument_list "((allocator *)(local_3c + -0xc))" ( (cast_expression "(allocator *)(local_3c + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -0xc)" ( (binary_expression "local_3c + -0xc" identifier + number_literal) ))) ))) ;)))) (expression_statement "this = (wstring *)paVar3;" (assignment_expression "this = (wstring *)paVar3" identifier = (cast_expression "(wstring *)paVar3" ( (type_descriptor "wstring *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) })) }) (else_clause "else {\n    *param_9 = local_40;\n  }" else (compound_statement "{\n    *param_9 = local_40;\n  }" { (expression_statement "*param_9 = local_40;" (assignment_expression "*param_9 = local_40" (pointer_expression "*param_9" * identifier) = identifier) ;) }))) (expression_statement "*param_1 = local_54;" (assignment_expression "*param_1 = local_54" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_50;" (assignment_expression "param_1[1] = local_50" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38,this);\n  }" if (parenthesized_expression "(local_20 != (code *)0x0)" ( (binary_expression "local_20 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*local_20)(&local_38,this);\n  }" { (expression_statement "(*local_20)(&local_38,this);" (call_expression "(*local_20)(&local_38,this)" (parenthesized_expression "(*local_20)" ( (pointer_expression "*local_20" * identifier) )) (argument_list "(&local_38,this)" ( (pointer_expression "&local_38" & identifier) , identifier ))) ;) })) (return_statement "return param_1;" return identifier ;) }))
(translation_unit "undefined4 *\nFUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined1 local_41;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n  local_40 = 0;\n                    \n  FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);\n  if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    \n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    \n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }\n  *param_1 = local_54;\n  param_1[1] = local_50;\n  if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }\n  return param_1;\n}\n\n" (function_definition "undefined4 *\nFUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined1 local_41;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n  local_40 = 0;\n                    \n  FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);\n  if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    \n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    \n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }\n  *param_1 = local_54;\n  param_1[1] = local_50;\n  if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "*\nFUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)" * (function_declarator "FUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)" identifier (parameter_list "(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined1 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "int *param_9" primitive_type (pointer_declarator "*param_9" * identifier)) , (parameter_declaration "undefined4 param_10" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined1 local_41;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n  local_40 = 0;\n                    \n  FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);\n  if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    \n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    \n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }\n  *param_1 = local_54;\n  param_1[1] = local_50;\n  if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 local_54;" type_identifier identifier ;) (declaration "undefined4 local_50;" type_identifier identifier ;) (declaration "undefined1 local_41;" type_identifier identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "code *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (expression_statement "local_20 = (code *)0x0;" (assignment_expression "local_20 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);" (call_expression "FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38)" identifier (argument_list "(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38)" ( (pointer_expression "&local_54" & identifier) , number_literal , (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) , identifier , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_40" & identifier) , number_literal , (pointer_expression "&local_38" & identifier) ))) ;) (if_statement "if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    \n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    \n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }" if (parenthesized_expression "(local_40 == 0)" ( (binary_expression "local_40 == 0" identifier == number_literal) )) (compound_statement "{\n    if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    \n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    \n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }" { (if_statement "if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }" if (parenthesized_expression "(local_20 == (code *)0x0)" ( (binary_expression "local_20 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }" { (expression_statement "FUN_001c60a0("uninitialized __any_string");" (call_expression "FUN_001c60a0("uninitialized __any_string")" identifier (argument_list "("uninitialized __any_string")" ( (string_literal ""uninitialized __any_string"" " string_content ") ))) ;) })) (expression_statement "FUN_00205570(&local_3c,local_38,local_34,&local_41);" (call_expression "FUN_00205570(&local_3c,local_38,local_34,&local_41)" identifier (argument_list "(&local_3c,local_38,local_34,&local_41)" ( (pointer_expression "&local_3c" & identifier) , identifier , identifier , (pointer_expression "&local_41" & identifier) ))) ;) (expression_statement "FUN_002028c0(param_10,&local_3c);" (call_expression "FUN_002028c0(param_10,&local_3c)" identifier (argument_list "(param_10,&local_3c)" ( identifier , (pointer_expression "&local_3c" & identifier) ))) ;) (if_statement "if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }" if (parenthesized_expression "((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58)" ( (binary_expression "(undefined *)(local_3c + -0xc) != PTR_DAT_00301d58" (cast_expression "(undefined *)(local_3c + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -0xc)" ( (binary_expression "local_3c + -0xc" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_00301f24 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00301f24 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }" { (expression_statement "iVar2 = *(int *)(local_3c + -4);" (assignment_expression "iVar2 = *(int *)(local_3c + -4)" identifier = (pointer_expression "*(int *)(local_3c + -4)" * (cast_expression "(int *)(local_3c + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -4)" ( (binary_expression "local_3c + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(local_3c + -4) = iVar2 + -1;" (assignment_expression "*(int *)(local_3c + -4) = iVar2 + -1" (pointer_expression "*(int *)(local_3c + -4)" * (cast_expression "(int *)(local_3c + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -4)" ( (binary_expression "local_3c + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_3c + -4);" (assignment_expression "piVar1 = (int *)(local_3c + -4)" identifier = (cast_expression "(int *)(local_3c + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -4)" ( (binary_expression "local_3c + -4" identifier + number_literal) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *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 (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }" { (expression_statement "FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);" (call_expression "FUN_002036f0((undefined *)(local_3c + -0xc),&local_41)" identifier (argument_list "((undefined *)(local_3c + -0xc),&local_41)" ( (cast_expression "(undefined *)(local_3c + -0xc)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_3c + -0xc)" ( (binary_expression "local_3c + -0xc" identifier + number_literal) ))) , (pointer_expression "&local_41" & identifier) ))) ;) })) })) }) (else_clause "else {\n    *param_9 = local_40;\n  }" else (compound_statement "{\n    *param_9 = local_40;\n  }" { (expression_statement "*param_9 = local_40;" (assignment_expression "*param_9 = local_40" (pointer_expression "*param_9" * identifier) = identifier) ;) }))) (expression_statement "*param_1 = local_54;" (assignment_expression "*param_1 = local_54" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = local_50;" (assignment_expression "param_1[1] = local_50" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }" if (parenthesized_expression "(local_20 != (code *)0x0)" ( (binary_expression "local_20 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*local_20)(&local_38);\n  }" { (expression_statement "(*local_20)(&local_38);" (call_expression "(*local_20)(&local_38)" (parenthesized_expression "(*local_20)" ( (pointer_expression "*local_20" * identifier) )) (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (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)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) , LIT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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 IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (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 IDENT + 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 IDENT + LIT) ))) , (pointer_expression & IDENT) ))) ;) })) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression & IDENT) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 *\nFUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined1 local_41;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n  local_40 = 0;\n                    \n  FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);\n  if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    \n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    \n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }\n  *param_1 = local_54;\n  param_1[1] = local_50;\n  if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }\n  return param_1;\n}" (type_identifier "undefined4") (pointer_declarator "*\nFUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)" (* "*") (function_declarator "FUN_001c20d0(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)" (identifier "FUN_001c20d0") (parameter_list "(undefined4 *param_1,int param_2,undefined4 param_3,undefined4 param_4,\n            undefined4 param_5,undefined4 param_6,undefined1 param_7,undefined4 param_8,int *param_9\n            ,undefined4 param_10)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined1 param_7" (type_identifier "undefined1") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "int *param_9" (primitive_type "int") (pointer_declarator "*param_9" (* "*") (identifier "param_9"))) (, ",") (parameter_declaration "undefined4 param_10" (type_identifier "undefined4") (identifier "param_10")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 local_54;\n  undefined4 local_50;\n  undefined1 local_41;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  code *local_20;\n  \n  local_20 = (code *)0x0;\n  local_40 = 0;\n                    \n  FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);\n  if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    \n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    \n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }\n  *param_1 = local_54;\n  param_1[1] = local_50;\n  if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }\n  return param_1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 local_54;" (type_identifier "undefined4") (identifier "local_54") (; ";")) (declaration "undefined4 local_50;" (type_identifier "undefined4") (identifier "local_50") (; ";")) (declaration "undefined1 local_41;" (type_identifier "undefined1") (identifier "local_41") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "code *local_20;" (type_identifier "code") (pointer_declarator "*local_20" (* "*") (identifier "local_20")) (; ";")) (expression_statement "local_20 = (code *)0x0;" (assignment_expression "local_20 = (code *)0x0" (identifier "local_20") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38);" (call_expression "FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38)" (identifier "FUN_001bec60") (argument_list "(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,\n               param_8,&local_40,0,&local_38)" (( "(") (pointer_expression "&local_54" (& "&") (identifier "local_54")) (, ",") (number_literal "0") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (pointer_expression "&local_40" (& "&") (identifier "local_40")) (, ",") (number_literal "0") (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")"))) (; ";")) (if_statement "if (local_40 == 0) {\n    if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    \n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    \n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }\n  else {\n    *param_9 = local_40;\n  }" (if "if") (parenthesized_expression "(local_40 == 0)" (( "(") (binary_expression "local_40 == 0" (identifier "local_40") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }\n                    \n    FUN_00205570(&local_3c,local_38,local_34,&local_41);\n                    \n    FUN_002028c0(param_10,&local_3c);\n    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }\n  }" ({ "{") (if_statement "if (local_20 == (code *)0x0) {\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }" (if "if") (parenthesized_expression "(local_20 == (code *)0x0)" (( "(") (binary_expression "local_20 == (code *)0x0" (identifier "local_20") (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n                    \n      FUN_001c60a0("uninitialized __any_string");\n    }" ({ "{") (expression_statement "FUN_001c60a0("uninitialized __any_string");" (call_expression "FUN_001c60a0("uninitialized __any_string")" (identifier "FUN_001c60a0") (argument_list "("uninitialized __any_string")" (( "(") (string_literal ""uninitialized __any_string"" (" """) (string_content "uninitialized __any_string") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00205570(&local_3c,local_38,local_34,&local_41);" (call_expression "FUN_00205570(&local_3c,local_38,local_34,&local_41)" (identifier "FUN_00205570") (argument_list "(&local_3c,local_38,local_34,&local_41)" (( "(") (pointer_expression "&local_3c" (& "&") (identifier "local_3c")) (, ",") (identifier "local_38") (, ",") (identifier "local_34") (, ",") (pointer_expression "&local_41" (& "&") (identifier "local_41")) () ")"))) (; ";")) (expression_statement "FUN_002028c0(param_10,&local_3c);" (call_expression "FUN_002028c0(param_10,&local_3c)" (identifier "FUN_002028c0") (argument_list "(param_10,&local_3c)" (( "(") (identifier "param_10") (, ",") (pointer_expression "&local_3c" (& "&") (identifier "local_3c")) () ")"))) (; ";")) (if_statement "if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }" (if "if") (parenthesized_expression "((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58)" (( "(") (binary_expression "(undefined *)(local_3c + -0xc) != PTR_DAT_00301d58" (cast_expression "(undefined *)(local_3c + -0xc)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_3c + -0xc)" (( "(") (binary_expression "local_3c + -0xc" (identifier "local_3c") (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (identifier "PTR_DAT_00301d58")) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }\n      else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_00301f24 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_00301f24 == (undefined *)0x0" (identifier "PTR___pthread_key_create_00301f24") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar2 = *(int *)(local_3c + -4);\n        *(int *)(local_3c + -4) = iVar2 + -1;\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(local_3c + -4);" (assignment_expression "iVar2 = *(int *)(local_3c + -4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(local_3c + -4)" (* "*") (cast_expression "(int *)(local_3c + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_3c + -4)" (( "(") (binary_expression "local_3c + -4" (identifier "local_3c") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(local_3c + -4) = iVar2 + -1;" (assignment_expression "*(int *)(local_3c + -4) = iVar2 + -1" (pointer_expression "*(int *)(local_3c + -4)" (* "*") (cast_expression "(int *)(local_3c + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_3c + -4)" (( "(") (binary_expression "local_3c + -4" (identifier "local_3c") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" (else "else") (compound_statement "{\n        LOCK();\n        piVar1 = (int *)(local_3c + -4);\n        iVar2 = *piVar1;\n        *piVar1 = *piVar1 + -1;\n        UNLOCK();\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = (int *)(local_3c + -4);" (assignment_expression "piVar1 = (int *)(local_3c + -4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(local_3c + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_3c + -4)" (( "(") (binary_expression "local_3c + -4" (identifier "local_3c") (+ "+") (number_literal "-4")) () ")")))) (; ";")) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (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 (iVar2 < 1) {\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);\n      }" ({ "{") (expression_statement "FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);" (call_expression "FUN_002036f0((undefined *)(local_3c + -0xc),&local_41)" (identifier "FUN_002036f0") (argument_list "((undefined *)(local_3c + -0xc),&local_41)" (( "(") (cast_expression "(undefined *)(local_3c + -0xc)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_3c + -0xc)" (( "(") (binary_expression "local_3c + -0xc" (identifier "local_3c") (+ "+") (number_literal "-0xc")) () ")"))) (, ",") (pointer_expression "&local_41" (& "&") (identifier "local_41")) () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n    *param_9 = local_40;\n  }" (else "else") (compound_statement "{\n    *param_9 = local_40;\n  }" ({ "{") (expression_statement "*param_9 = local_40;" (assignment_expression "*param_9 = local_40" (pointer_expression "*param_9" (* "*") (identifier "param_9")) (= "=") (identifier "local_40")) (; ";")) (} "}")))) (expression_statement "*param_1 = local_54;" (assignment_expression "*param_1 = local_54" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "local_54")) (; ";")) (expression_statement "param_1[1] = local_50;" (assignment_expression "param_1[1] = local_50" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_50")) (; ";")) (if_statement "if (local_20 != (code *)0x0) {\n    (*local_20)(&local_38);\n  }" (if "if") (parenthesized_expression "(local_20 != (code *)0x0)" (( "(") (binary_expression "local_20 != (code *)0x0" (identifier "local_20") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (*local_20)(&local_38);\n  }" ({ "{") (expression_statement "(*local_20)(&local_38);" (call_expression "(*local_20)(&local_38)" (parenthesized_expression "(*local_20)" (( "(") (pointer_expression "*local_20" (* "*") (identifier "local_20")) () ")")) (argument_list "(&local_38)" (( "(") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::__facet_shims::(anonymous
   namespace)::money_get_shim<wchar_t>::do_get(std::istreambuf_iterator<wchar_t,
   std::char_traits<wchar_t> >, std::istreambuf_iterator<wchar_t, std::char_traits<wchar_t> >, bool,
   std::ios_base&, std::_Ios_Iostate&, std::wstring&) const */

var_2 *
std::__facet_shims::(anonymous_namespace)::money_get_shim<type_2>::var_1
          (var_2 *var_3,var_4 var_9,var_2 param_3,var_2 param_4,var_2 param_5,
          var_2 param_6,undefined1 param_7,var_2 param_8,var_4 *var_5,var_6 *var_7)

{
  int *piVar1;
  int var_16;
  var_6 *this;
  type_1 *paVar3;
  var_2 local_54;
  var_2 local_50;
  type_1 local_41;
  int var_10;
  int var_14;
  type_2 *local_38;
  type_3 local_34;
  type_4 *var_11;
  
  this = (var_6 *)&var_10;
  var_11 = (type_4 *)0x0;
  var_10 = 0;
                    /* try { // try from 001c211e to 001c2122 has its CatchHandler @ 001c21fa */
  var_8<type_2>
            (&local_54,0,*(var_2 *)(var_9 + 8),param_3,param_4,param_5,param_6,param_7,
             param_8,this,0,&local_38);
  if (var_10 == 0) {
    if (var_11 == (type_4 *)0x0) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */
      var_12("uninitialized __any_string");
    }
    paVar3 = &local_41;
    this = (var_6 *)&var_14;
                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */
    std::wstring::var_6(this,local_38,local_34,paVar3);
                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */
    std::wstring::var_13(var_7,this);
    if ((type_1 *)(var_14 + -0xc) != (type_1 *)PTR__S_empty_rep_storage_00301d58) {
      if (var_15 == (type_5 *)0x0) {
        var_16 = *(int *)(var_14 + -4);
        *(int *)(var_14 + -4) = var_16 + -1;
      }
      else {
        var_17();
        piVar1 = (int *)(var_14 + -4);
        var_16 = *piVar1;
        *piVar1 = *piVar1 + -1;
        var_18();
      }
      if (var_16 < 1) {
        std::wstring::_Rep::var_19((type_1 *)(var_14 + -0xc));
        this = (var_6 *)paVar3;
      }
    }
  }
  else {
    *var_5 = var_10;
  }
  *var_3 = local_54;
  var_3[1] = local_50;
  if (var_11 != (type_4 *)0x0) {
    (*var_11)(&local_38,this);
  }
  return var_3;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

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

{
  int *piVar1;
  int iVar2;
  undefined4 local_54;
  undefined4 local_50;
  undefined1 local_41;
  int local_40;
  int local_3c;
  undefined4 local_38;
  undefined4 local_34;
  code *local_20;
  
  local_20 = (code *)0x0;
  local_40 = 0;
                    /* try { // try from 001c211e to 001c2122 has its CatchHandler @ 001c21fa */
  FUN_001bec60(&local_54,0,*(undefined4 *)(param_2 + 8),param_3,param_4,param_5,param_6,param_7,
               param_8,&local_40,0,&local_38);
  if (local_40 == 0) {
    if (local_20 == (code *)0x0) {
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 001c21f5 to 001c21f9 has its CatchHandler @ 001c21fa */
      FUN_001c60a0("uninitialized __any_string");
    }
                    /* try { // try from 001c2188 to 001c218c has its CatchHandler @ 001c21fa */
    FUN_00205570(&local_3c,local_38,local_34,&local_41);
                    /* try { // try from 001c2195 to 001c2199 has its CatchHandler @ 001c2201 */
    FUN_002028c0(param_10,&local_3c);
    if ((undefined *)(local_3c + -0xc) != PTR_DAT_00301d58) {
      if (PTR___pthread_key_create_00301f24 == (undefined *)0x0) {
        iVar2 = *(int *)(local_3c + -4);
        *(int *)(local_3c + -4) = iVar2 + -1;
      }
      else {
        LOCK();
        piVar1 = (int *)(local_3c + -4);
        iVar2 = *piVar1;
        *piVar1 = *piVar1 + -1;
        UNLOCK();
      }
      if (iVar2 < 1) {
        FUN_002036f0((undefined *)(local_3c + -0xc),&local_41);
      }
    }
  }
  else {
    *param_9 = local_40;
  }
  *param_1 = local_54;
  param_1[1] = local_50;
  if (local_20 != (code *)0x0) {
    (*local_20)(&local_38);
  }
  return param_1;
}

