
/* std::_V2::error_category::_M_message(int) const */

error_category * __thiscall std::_V2::error_category::_M_message(error_category *this,int param_1)

{
  int *piVar1;
  int iVar2;
  undefined4 in_register_00000034;
  char *local_10;
  
  (**(code **)(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18))(&local_10);
                    /* try { // try from 0033129f to 003312a3 has its CatchHandler @ 003312f3 */
  __sso_string::__sso_string((__sso_string *)this,local_10,*(ulong *)(local_10 + -0x18));
  if ((allocator *)(local_10 + -0x18) != (allocator *)PTR__S_empty_rep_storage_0045bc38) {
    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {
      iVar2 = *(int *)(local_10 + -8);
      *(int *)(local_10 + -8) = iVar2 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(local_10 + -8);
      iVar2 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar2 < 1) {
      std::string::_Rep::_M_destroy((allocator *)(local_10 + -0x18));
    }
  }
  return this;
}



undefined8 FUN_00331280(undefined8 param_1,long *param_2)

{
  int *piVar1;
  int iVar2;
  undefined1 local_11;
  long local_10;
  
  (**(code **)(*param_2 + 0x18))(&local_10);
                    /* try { // try from 0033129f to 003312a3 has its CatchHandler @ 003312f3 */
  FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));
  if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {
    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {
      iVar2 = *(int *)(local_10 + -8);
      *(int *)(local_10 + -8) = iVar2 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(local_10 + -8);
      iVar2 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar2 < 1) {
      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);
    }
  }
  return param_1;
}


PUSH RBX
MOV RBX,RDI
SUB RSP,0x10
MOV RAX,qword ptr [RSI]
LEA RDI,[RSP + 0x8]
CALL qword ptr [RAX + 0x18]
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,RBX
MOV RDX,qword ptr [RSI + -0x18]
CALL 0x0034d810
MOV RAX,qword ptr [RSP + 0x8]
LEA RDI,[RAX + -0x18]
CMP RDI,qword ptr [0x0045bc38]
JNZ 0x003312c0
ADD RSP,0x10
MOV RAX,RBX
POP RBX
RET
CMP qword ptr [0x0045bee8],0x0
JZ 0x003312e8
MOV EDX,0xffffffff
XADD.LOCK dword ptr [RAX + -0x8],EDX
TEST EDX,EDX
JG 0x003312b6
LEA RSI,[RSP + 0x7]
CALL 0x00324c30
JMP 0x003312b6
MOV EDX,dword ptr [RAX + -0x8]
LEA ECX,[RDX + -0x1]
MOV dword ptr [RAX + -0x8],ECX
JMP 0x003312d4
(translation_unit "undefined8 FUN_00331280(undefined8 param_1,long *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined1 local_11;\n  long local_10;\n  \n  (**(code **)(*param_2 + 0x18))(&local_10);\n                    /* try { // try from 0033129f to 003312a3 has its CatchHandler @ 003312f3 */\n  FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));\n  if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "undefined8 FUN_00331280(undefined8 param_1,long *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined1 local_11;\n  long local_10;\n  \n  (**(code **)(*param_2 + 0x18))(&local_10);\n                    /* try { // try from 0033129f to 003312a3 has its CatchHandler @ 003312f3 */\n  FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));\n  if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }\n  return param_1;\n}" type_identifier (function_declarator "FUN_00331280(undefined8 param_1,long *param_2)" identifier (parameter_list "(undefined8 param_1,long *param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined1 local_11;\n  long local_10;\n  \n  (**(code **)(*param_2 + 0x18))(&local_10);\n                    /* try { // try from 0033129f to 003312a3 has its CatchHandler @ 003312f3 */\n  FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));\n  if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 local_11;" type_identifier identifier ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "(**(code **)(*param_2 + 0x18))(&local_10);" (call_expression "(**(code **)(*param_2 + 0x18))(&local_10)" (parenthesized_expression "(**(code **)(*param_2 + 0x18))" ( (pointer_expression "**(code **)(*param_2 + 0x18)" * (pointer_expression "*(code **)(*param_2 + 0x18)" * (cast_expression "(code **)(*param_2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x18)" ( (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) ))) ;) comment (expression_statement "FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));" (call_expression "FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18))" identifier (argument_list "(param_1,local_10,*(undefined8 *)(local_10 + -0x18))" ( identifier , identifier , (pointer_expression "*(undefined8 *)(local_10 + -0x18)" * (cast_expression "(undefined8 *)(local_10 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -0x18)" ( (binary_expression "local_10 + -0x18" identifier + number_literal) )))) ))) ;) (if_statement "if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }" if (parenthesized_expression "((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38)" ( (binary_expression "(undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38" (cast_expression "(undefined *)(local_10 + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -0x18)" ( (binary_expression "local_10 + -0x18" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_0045bee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0045bee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }" { (expression_statement "iVar2 = *(int *)(local_10 + -8);" (assignment_expression "iVar2 = *(int *)(local_10 + -8)" identifier = (pointer_expression "*(int *)(local_10 + -8)" * (cast_expression "(int *)(local_10 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -8)" ( (binary_expression "local_10 + -8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(local_10 + -8) = iVar2 + -1;" (assignment_expression "*(int *)(local_10 + -8) = iVar2 + -1" (pointer_expression "*(int *)(local_10 + -8)" * (cast_expression "(int *)(local_10 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -8)" ( (binary_expression "local_10 + -8" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_10 + -8);" (assignment_expression "piVar1 = (int *)(local_10 + -8)" identifier = (cast_expression "(int *)(local_10 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -8)" ( (binary_expression "local_10 + -8" 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      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }" { (expression_statement "thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);" (call_expression "thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11)" identifier (argument_list "((undefined *)(local_10 + -0x18),&local_11)" ( (cast_expression "(undefined *)(local_10 + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -0x18)" ( (binary_expression "local_10 + -0x18" identifier + number_literal) ))) , (pointer_expression "&local_11" & identifier) ))) ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::_V2::error_category::_M_message(int) const */\n\nerror_category * __thiscall std::_V2::error_category::_M_message(error_category *this,int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 in_register_00000034;\n  char *local_10;\n  \n  (**(code **)(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18))(&local_10);\n                    /* try { // try from 0033129f to 003312a3 has its CatchHandler @ 003312f3 */\n  __sso_string::__sso_string((__sso_string *)this,local_10,*(ulong *)(local_10 + -0x18));\n  if ((allocator *)(local_10 + -0x18) != (allocator *)PTR__S_empty_rep_storage_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(local_10 + -0x18));\n    }\n  }\n  return this;\n}\n\n" comment (ERROR "error_category * __thiscall std::_V2::error_category::_M_message(error_category *this," (binary_expression "error_category * __thiscall std::_V2::error_category::_M_message(error_category *this" (binary_expression "error_category * __thiscall" identifier * identifier) (ERROR "std::_V2::error_category::_M_message(error_category" identifier : : identifier : : identifier : : identifier ( identifier) * identifier) ,) (function_definition "int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 in_register_00000034;\n  char *local_10;\n  \n  (**(code **)(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18))(&local_10);\n                    /* try { // try from 0033129f to 003312a3 has its CatchHandler @ 003312f3 */\n  __sso_string::__sso_string((__sso_string *)this,local_10,*(ulong *)(local_10 + -0x18));\n  if ((allocator *)(local_10 + -0x18) != (allocator *)PTR__S_empty_rep_storage_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(local_10 + -0x18));\n    }\n  }\n  return this;\n}" primitive_type identifier (ERROR ")" )) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 in_register_00000034;\n  char *local_10;\n  \n  (**(code **)(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18))(&local_10);\n                    /* try { // try from 0033129f to 003312a3 has its CatchHandler @ 003312f3 */\n  __sso_string::__sso_string((__sso_string *)this,local_10,*(ulong *)(local_10 + -0x18));\n  if ((allocator *)(local_10 + -0x18) != (allocator *)PTR__S_empty_rep_storage_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(local_10 + -0x18));\n    }\n  }\n  return this;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 in_register_00000034;" type_identifier identifier ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (expression_statement "(**(code **)(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18))(&local_10);" (call_expression "(**(code **)(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18))(&local_10)" (parenthesized_expression "(**(code **)(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18))" ( (pointer_expression "**(code **)(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18)" * (pointer_expression "*(code **)(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18)" * (cast_expression "(code **)(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)CONCAT44(in_register_00000034,param_1) + 0x18)" ( (binary_expression "*(long *)CONCAT44(in_register_00000034,param_1) + 0x18" (pointer_expression "*(long *)CONCAT44(in_register_00000034,param_1)" * (cast_expression "(long *)CONCAT44(in_register_00000034,param_1)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "CONCAT44(in_register_00000034,param_1)" identifier (argument_list "(in_register_00000034,param_1)" ( identifier , identifier ))))) + number_literal) ))))) )) (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) ))) ;) comment (labeled_statement "__sso_string::__sso_string((__sso_string *)this,local_10,*(ulong *)(local_10 + -0x18));" statement_identifier : (ERROR ":" :) (expression_statement "__sso_string((__sso_string *)this,local_10,*(ulong *)(local_10 + -0x18));" (call_expression "__sso_string((__sso_string *)this,local_10,*(ulong *)(local_10 + -0x18))" identifier (argument_list "((__sso_string *)this,local_10,*(ulong *)(local_10 + -0x18))" ( (cast_expression "(__sso_string *)this" ( (type_descriptor "__sso_string *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (pointer_expression "*(ulong *)(local_10 + -0x18)" * (cast_expression "(ulong *)(local_10 + -0x18)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -0x18)" ( (binary_expression "local_10 + -0x18" identifier + number_literal) )))) ))) ;)) (if_statement "if ((allocator *)(local_10 + -0x18) != (allocator *)PTR__S_empty_rep_storage_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(local_10 + -0x18));\n    }\n  }" if (parenthesized_expression "((allocator *)(local_10 + -0x18) != (allocator *)PTR__S_empty_rep_storage_0045bc38)" ( (binary_expression "(allocator *)(local_10 + -0x18) != (allocator *)PTR__S_empty_rep_storage_0045bc38" (cast_expression "(allocator *)(local_10 + -0x18)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -0x18)" ( (binary_expression "local_10 + -0x18" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_0045bc38" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(local_10 + -0x18));\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_0045bee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0045bee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }" { (expression_statement "iVar2 = *(int *)(local_10 + -8);" (assignment_expression "iVar2 = *(int *)(local_10 + -8)" identifier = (pointer_expression "*(int *)(local_10 + -8)" * (cast_expression "(int *)(local_10 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -8)" ( (binary_expression "local_10 + -8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(local_10 + -8) = iVar2 + -1;" (assignment_expression "*(int *)(local_10 + -8) = iVar2 + -1" (pointer_expression "*(int *)(local_10 + -8)" * (cast_expression "(int *)(local_10 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -8)" ( (binary_expression "local_10 + -8" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_10 + -8);" (assignment_expression "piVar1 = (int *)(local_10 + -8)" identifier = (cast_expression "(int *)(local_10 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -8)" ( (binary_expression "local_10 + -8" 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::string::_Rep::_M_destroy((allocator *)(local_10 + -0x18));\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      std::string::_Rep::_M_destroy((allocator *)(local_10 + -0x18));\n    }" { (labeled_statement "std::string::_Rep::_M_destroy((allocator *)(local_10 + -0x18));" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_destroy((allocator *)(local_10 + -0x18));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(local_10 + -0x18));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(local_10 + -0x18));" (call_expression "_M_destroy((allocator *)(local_10 + -0x18))" identifier (argument_list "((allocator *)(local_10 + -0x18))" ( (cast_expression "(allocator *)(local_10 + -0x18)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -0x18)" ( (binary_expression "local_10 + -0x18" identifier + number_literal) ))) ))) ;)))) })) })) (return_statement "return this;" return identifier ;) })))
(translation_unit "undefined8 FUN_00331280(undefined8 param_1,long *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined1 local_11;\n  long local_10;\n  \n  (**(code **)(*param_2 + 0x18))(&local_10);\n                    \n  FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));\n  if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "undefined8 FUN_00331280(undefined8 param_1,long *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined1 local_11;\n  long local_10;\n  \n  (**(code **)(*param_2 + 0x18))(&local_10);\n                    \n  FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));\n  if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }\n  return param_1;\n}" type_identifier (function_declarator "FUN_00331280(undefined8 param_1,long *param_2)" identifier (parameter_list "(undefined8 param_1,long *param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined1 local_11;\n  long local_10;\n  \n  (**(code **)(*param_2 + 0x18))(&local_10);\n                    \n  FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));\n  if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 local_11;" type_identifier identifier ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "(**(code **)(*param_2 + 0x18))(&local_10);" (call_expression "(**(code **)(*param_2 + 0x18))(&local_10)" (parenthesized_expression "(**(code **)(*param_2 + 0x18))" ( (pointer_expression "**(code **)(*param_2 + 0x18)" * (pointer_expression "*(code **)(*param_2 + 0x18)" * (cast_expression "(code **)(*param_2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 0x18)" ( (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )) (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) ))) ;) (expression_statement "FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));" (call_expression "FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18))" identifier (argument_list "(param_1,local_10,*(undefined8 *)(local_10 + -0x18))" ( identifier , identifier , (pointer_expression "*(undefined8 *)(local_10 + -0x18)" * (cast_expression "(undefined8 *)(local_10 + -0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -0x18)" ( (binary_expression "local_10 + -0x18" identifier + number_literal) )))) ))) ;) (if_statement "if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }" if (parenthesized_expression "((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38)" ( (binary_expression "(undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38" (cast_expression "(undefined *)(local_10 + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -0x18)" ( (binary_expression "local_10 + -0x18" identifier + number_literal) ))) != identifier) )) (compound_statement "{\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" if (parenthesized_expression "(PTR___pthread_key_create_0045bee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0045bee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }" { (expression_statement "iVar2 = *(int *)(local_10 + -8);" (assignment_expression "iVar2 = *(int *)(local_10 + -8)" identifier = (pointer_expression "*(int *)(local_10 + -8)" * (cast_expression "(int *)(local_10 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -8)" ( (binary_expression "local_10 + -8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(local_10 + -8) = iVar2 + -1;" (assignment_expression "*(int *)(local_10 + -8) = iVar2 + -1" (pointer_expression "*(int *)(local_10 + -8)" * (cast_expression "(int *)(local_10 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -8)" ( (binary_expression "local_10 + -8" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" else (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = (int *)(local_10 + -8);" (assignment_expression "piVar1 = (int *)(local_10 + -8)" identifier = (cast_expression "(int *)(local_10 + -8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -8)" ( (binary_expression "local_10 + -8" 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      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }" { (expression_statement "thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);" (call_expression "thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11)" identifier (argument_list "((undefined *)(local_10 + -0x18),&local_11)" ( (cast_expression "(undefined *)(local_10 + -0x18)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_10 + -0x18)" ( (binary_expression "local_10 + -0x18" identifier + number_literal) ))) , (pointer_expression "&local_11" & identifier) ))) ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (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) ))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "undefined8 FUN_00331280(undefined8 param_1,long *param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined1 local_11;\n  long local_10;\n  \n  (**(code **)(*param_2 + 0x18))(&local_10);\n                    \n  FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));\n  if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }\n  return param_1;\n}" (type_identifier "undefined8") (function_declarator "FUN_00331280(undefined8 param_1,long *param_2)" (identifier "FUN_00331280") (parameter_list "(undefined8 param_1,long *param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined1 local_11;\n  long local_10;\n  \n  (**(code **)(*param_2 + 0x18))(&local_10);\n                    \n  FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));\n  if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\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 "undefined1 local_11;" (type_identifier "undefined1") (identifier "local_11") (; ";")) (declaration "long local_10;" (sized_type_specifier "long" (long "long")) (identifier "local_10") (; ";")) (expression_statement "(**(code **)(*param_2 + 0x18))(&local_10);" (call_expression "(**(code **)(*param_2 + 0x18))(&local_10)" (parenthesized_expression "(**(code **)(*param_2 + 0x18))" (( "(") (pointer_expression "**(code **)(*param_2 + 0x18)" (* "*") (pointer_expression "*(code **)(*param_2 + 0x18)" (* "*") (cast_expression "(code **)(*param_2 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 0x18)" (( "(") (binary_expression "*param_2 + 0x18" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(&local_10)" (( "(") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")"))) (; ";")) (expression_statement "FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));" (call_expression "FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18))" (identifier "FUN_0034d810") (argument_list "(param_1,local_10,*(undefined8 *)(local_10 + -0x18))" (( "(") (identifier "param_1") (, ",") (identifier "local_10") (, ",") (pointer_expression "*(undefined8 *)(local_10 + -0x18)" (* "*") (cast_expression "(undefined8 *)(local_10 + -0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_10 + -0x18)" (( "(") (binary_expression "local_10 + -0x18" (identifier "local_10") (+ "+") (number_literal "-0x18")) () ")")))) () ")"))) (; ";")) (if_statement "if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }" (if "if") (parenthesized_expression "((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38)" (( "(") (binary_expression "(undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38" (cast_expression "(undefined *)(local_10 + -0x18)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_10 + -0x18)" (( "(") (binary_expression "local_10 + -0x18" (identifier "local_10") (+ "+") (number_literal "-0x18")) () ")"))) (!= "!=") (identifier "PTR_DAT_0045bc38")) () ")")) (compound_statement "{\n    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }\n    if (iVar2 < 1) {\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }\n  }" ({ "{") (if_statement "if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }\n    else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_0045bee8 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_0045bee8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_0045bee8") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar2 = *(int *)(local_10 + -8);\n      *(int *)(local_10 + -8) = iVar2 + -1;\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(local_10 + -8);" (assignment_expression "iVar2 = *(int *)(local_10 + -8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(local_10 + -8)" (* "*") (cast_expression "(int *)(local_10 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_10 + -8)" (( "(") (binary_expression "local_10 + -8" (identifier "local_10") (+ "+") (number_literal "-8")) () ")"))))) (; ";")) (expression_statement "*(int *)(local_10 + -8) = iVar2 + -1;" (assignment_expression "*(int *)(local_10 + -8) = iVar2 + -1" (pointer_expression "*(int *)(local_10 + -8)" (* "*") (cast_expression "(int *)(local_10 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_10 + -8)" (( "(") (binary_expression "local_10 + -8" (identifier "local_10") (+ "+") (number_literal "-8")) () ")")))) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\n      iVar2 = *piVar1;\n      *piVar1 = *piVar1 + -1;\n      UNLOCK();\n    }" (else "else") (compound_statement "{\n      LOCK();\n      piVar1 = (int *)(local_10 + -8);\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_10 + -8);" (assignment_expression "piVar1 = (int *)(local_10 + -8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(local_10 + -8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_10 + -8)" (( "(") (binary_expression "local_10 + -8" (identifier "local_10") (+ "+") (number_literal "-8")) () ")")))) (; ";")) (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      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);\n    }" ({ "{") (expression_statement "thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);" (call_expression "thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11)" (identifier "thunk_FUN_002f1e60") (argument_list "((undefined *)(local_10 + -0x18),&local_11)" (( "(") (cast_expression "(undefined *)(local_10 + -0x18)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_10 + -0x18)" (( "(") (binary_expression "local_10 + -0x18" (identifier "local_10") (+ "+") (number_literal "-0x18")) () ")"))) (, ",") (pointer_expression "&local_11" (& "&") (identifier "local_11")) () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::_V2::error_category::_M_message(int) const */

error_category * __thiscall std::_V2::error_category::_M_message(error_category *this,int function_1)

{
  int *piVar1;
  int var_5;
  type_1 in_register_00000034;
  char *var_3;
  
  (**(type_2 **)(*(long *)var_1(in_register_00000034,function_1) + 0x18))(&var_3);
                    /* try { // try from 0033129f to 003312a3 has its CatchHandler @ 003312f3 */
  __sso_string::var_2((var_2 *)this,var_3,*(type_3 *)(var_3 + -0x18));
  if ((type_4 *)(var_3 + -0x18) != (type_4 *)PTR__S_empty_rep_storage_0045bc38) {
    if (var_4 == (type_5 *)0x0) {
      var_5 = *(int *)(var_3 + -8);
      *(int *)(var_3 + -8) = var_5 + -1;
    }
    else {
      var_6();
      piVar1 = (int *)(var_3 + -8);
      var_5 = *piVar1;
      *piVar1 = *piVar1 + -1;
      var_7();
    }
    if (var_5 < 1) {
      std::string::_Rep::var_8((type_4 *)(var_3 + -0x18));
    }
  }
  return this;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator 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: (sized_type_specifier) declarator: (identifier)) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (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))))))))) (return_statement (identifier)))))

undefined8 MASKED(undefined8 param_1,long *param_2)

{
  int *piVar1;
  int iVar2;
  undefined1 local_11;
  long local_10;
  
  (**(code **)(*param_2 + 0x18))(&local_10);
                    /* try { // try from 0033129f to 003312a3 has its CatchHandler @ 003312f3 */
  FUN_0034d810(param_1,local_10,*(undefined8 *)(local_10 + -0x18));
  if ((undefined *)(local_10 + -0x18) != PTR_DAT_0045bc38) {
    if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {
      iVar2 = *(int *)(local_10 + -8);
      *(int *)(local_10 + -8) = iVar2 + -1;
    }
    else {
      LOCK();
      piVar1 = (int *)(local_10 + -8);
      iVar2 = *piVar1;
      *piVar1 = *piVar1 + -1;
      UNLOCK();
    }
    if (iVar2 < 1) {
      thunk_FUN_002f1e60((undefined *)(local_10 + -0x18),&local_11);
    }
  }
  return param_1;
}

