
/* std::logic_error::~logic_error() */

void __thiscall std::logic_error::~logic_error(logic_error *this)

{
  bool bVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *(int *)(this + 4);
  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;
  *(undefined **)this = PTR_vtable_004362d4 + 8;
  if (bVar1) {
    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
      iVar2 = *(int *)(iVar3 + -4);
      *(int *)(iVar3 + -4) = iVar2 + -1;
    }
    else {
      SYNC(0);
      iVar2 = *(int *)(iVar3 + -4);
      *(int *)(iVar3 + -4) = iVar2 + -1;
      SYNC(0);
    }
    if (iVar2 < 1) {
      std::string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));
    }
  }
  (*(code *)PTR__exception_004336e8)(this);
  return;
}



/* std::logic_error::~logic_error() */

void __thiscall std::logic_error::~logic_error(logic_error *this)

{
  bool bVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *(int *)(this + 4);
  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;
  *(undefined **)this = PTR_vtable_004362d4 + 8;
  if (bVar1) {
    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
      iVar2 = *(int *)(iVar3 + -4);
      *(int *)(iVar3 + -4) = iVar2 + -1;
    }
    else {
      SYNC(0);
      iVar2 = *(int *)(iVar3 + -4);
      *(int *)(iVar3 + -4) = iVar2 + -1;
      SYNC(0);
    }
    if (iVar2 < 1) {
      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));
    }
  }
  (*(code *)PTR__exception_004336e8)(this);
  return;
}


lui gp,0x12
addiu gp,gp,-0x19f0
addu gp,gp,t9
addiu sp,sp,-0x28
lw v1,0x4(a0)
lw v0,-0x3efc(gp)
lw a1,-0x7f00(gp)
sw s0,0x20(sp)
or s0,a0,zero
addiu v0,v0,0x8
sw gp,0x10(sp)
addiu a0,v1,-0xc
sw ra,0x24(sp)
bne a0,a1,0x0031bc18
_sw v0,0x0(s0)
lw t9,-0x6ae8(gp)
jalr t9
_or a0,s0,zero
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw v0,-0x3b54(gp)
beq v0,zero,0x0031bc5c
_nop
sync 0x0
ll v0,-0x4(v1)
addiu at,v0,-0x1
sc at,-0x4(v1)
beq at,zero,0x0031bc28
_nop
sync 0x0
bgtz v0,0x0031bc00
_lw t9,-0x6ae8(gp)
lw t9,-0x7f84(gp)
bal 0x002fbc7c
_addiu a1,sp,0x18
b 0x0031bbfc
_lw gp,0x10(sp)
lw v0,-0x4(v1)
addiu a1,v0,-0x1
b 0x0031bc40
_sw a1,-0x4(v1)
(translation_unit "/* std::logic_error::~logic_error() */\n\nvoid __thiscall std::logic_error::~logic_error(logic_error *this)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::logic_error::~logic_error(logic_error *this)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::logic_error::~" identifier : : identifier : : ~) (function_declarator "logic_error(logic_error *this)" identifier (parameter_list "(logic_error *this)" ( (parameter_declaration "logic_error *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(this + 4);" (assignment_expression "iVar3 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;" (assignment_expression "bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" identifier = (binary_expression "(allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar3 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -0xc)" ( (binary_expression "iVar3 + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined **)this = PTR_vtable_004362d4 + 8;" (assignment_expression "*(undefined **)this = PTR_vtable_004362d4 + 8" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_vtable_004362d4 + 8" identifier + number_literal)) ;) (if_statement "if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }" { (expression_statement "iVar2 = *(int *)(iVar3 + -4);" (assignment_expression "iVar2 = *(int *)(iVar3 + -4)" identifier = (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar3 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" else (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)(iVar3 + -4);" (assignment_expression "iVar2 = *(int *)(iVar3 + -4)" identifier = (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar3 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }" { (labeled_statement "string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(iVar3 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(iVar3 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar3 + -0xc))" identifier (argument_list "((allocator *)(iVar3 + -0xc))" ( (cast_expression "(allocator *)(iVar3 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -0xc)" ( (binary_expression "iVar3 + -0xc" identifier + number_literal) ))) ))) ;))) })) })) (expression_statement "(*(code *)PTR__exception_004336e8)(this);" (call_expression "(*(code *)PTR__exception_004336e8)(this)" (parenthesized_expression "(*(code *)PTR__exception_004336e8)" ( (pointer_expression "*(code *)PTR__exception_004336e8" * (cast_expression "(code *)PTR__exception_004336e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::logic_error::~logic_error() */\n\nvoid __thiscall std::logic_error::~logic_error(logic_error *this)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::logic_error::~logic_error(logic_error *this)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::logic_error::~" identifier : : identifier : : ~) (function_declarator "logic_error(logic_error *this)" identifier (parameter_list "(logic_error *this)" ( (parameter_declaration "logic_error *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(this + 4);" (assignment_expression "iVar3 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;" (assignment_expression "bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" identifier = (binary_expression "(allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar3 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -0xc)" ( (binary_expression "iVar3 + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined **)this = PTR_vtable_004362d4 + 8;" (assignment_expression "*(undefined **)this = PTR_vtable_004362d4 + 8" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_vtable_004362d4 + 8" identifier + number_literal)) ;) (if_statement "if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }" { (expression_statement "iVar2 = *(int *)(iVar3 + -4);" (assignment_expression "iVar2 = *(int *)(iVar3 + -4)" identifier = (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar3 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" else (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)(iVar3 + -4);" (assignment_expression "iVar2 = *(int *)(iVar3 + -4)" identifier = (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar3 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar2 < 1) {\n      std::string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      std::string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }" { (labeled_statement "std::string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(iVar3 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(iVar3 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar3 + -0xc))" identifier (argument_list "((allocator *)(iVar3 + -0xc))" ( (cast_expression "(allocator *)(iVar3 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -0xc)" ( (binary_expression "iVar3 + -0xc" identifier + number_literal) ))) ))) ;)))) })) })) (expression_statement "(*(code *)PTR__exception_004336e8)(this);" (call_expression "(*(code *)PTR__exception_004336e8)(this)" (parenthesized_expression "(*(code *)PTR__exception_004336e8)" ( (pointer_expression "*(code *)PTR__exception_004336e8" * (cast_expression "(code *)PTR__exception_004336e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __thiscall std::logic_error::~logic_error(logic_error *this)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}\n\n" (function_definition "void __thiscall std::logic_error::~logic_error(logic_error *this)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::logic_error::~" identifier : : identifier : : ~) (function_declarator "logic_error(logic_error *this)" identifier (parameter_list "(logic_error *this)" ( (parameter_declaration "logic_error *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(this + 4);" (assignment_expression "iVar3 = *(int *)(this + 4)" identifier = (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))))) ;) (expression_statement "bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;" (assignment_expression "bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" identifier = (binary_expression "(allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar3 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -0xc)" ( (binary_expression "iVar3 + -0xc" identifier + number_literal) ))) != (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined **)this = PTR_vtable_004362d4 + 8;" (assignment_expression "*(undefined **)this = PTR_vtable_004362d4 + 8" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "PTR_vtable_004362d4 + 8" identifier + number_literal)) ;) (if_statement "if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }" { (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }" { (expression_statement "iVar2 = *(int *)(iVar3 + -4);" (assignment_expression "iVar2 = *(int *)(iVar3 + -4)" identifier = (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar3 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" else (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)(iVar3 + -4);" (assignment_expression "iVar2 = *(int *)(iVar3 + -4)" identifier = (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar3 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar3 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar3 + -4)" * (cast_expression "(int *)(iVar3 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -4)" ( (binary_expression "iVar3 + -4" identifier + number_literal) )))) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }" { (labeled_statement "string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));" statement_identifier : (ERROR ":" :) (labeled_statement "_Rep::_M_destroy((allocator *)(iVar3 + -0xc));" statement_identifier : (ERROR ":" :) (expression_statement "_M_destroy((allocator *)(iVar3 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar3 + -0xc))" identifier (argument_list "((allocator *)(iVar3 + -0xc))" ( (cast_expression "(allocator *)(iVar3 + -0xc)" ( (type_descriptor "allocator *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + -0xc)" ( (binary_expression "iVar3 + -0xc" identifier + number_literal) ))) ))) ;))) })) })) (expression_statement "(*(code *)PTR__exception_004336e8)(this);" (call_expression "(*(code *)PTR__exception_004336e8)(this)" (parenthesized_expression "(*(code *)PTR__exception_004336e8)" ( (pointer_expression "*(code *)PTR__exception_004336e8" * (cast_expression "(code *)PTR__exception_004336e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : : ~) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( 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 ( LIT ))) ;) (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)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;))) })) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __thiscall std::logic_error::~logic_error(logic_error *this)\n\n{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::logic_error::~" (identifier "std") (: ":") (: ":") (identifier "logic_error") (: ":") (: ":") (~ "~")) (function_declarator "logic_error(logic_error *this)" (identifier "logic_error") (parameter_list "(logic_error *this)" (( "(") (parameter_declaration "logic_error *this" (type_identifier "logic_error") (pointer_declarator "*this" (* "*") (identifier "this"))) () ")"))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar3 = *(int *)(this + 4);\n  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;\n  *(undefined **)this = PTR_vtable_004362d4 + 8;\n  if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }\n  (*(code *)PTR__exception_004336e8)(this);\n  return;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = *(int *)(this + 4);" (assignment_expression "iVar3 = *(int *)(this + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(this + 4)" (* "*") (cast_expression "(int *)(this + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 4)" (( "(") (binary_expression "this + 4" (identifier "this") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;" (assignment_expression "bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (identifier "bVar1") (= "=") (binary_expression "(allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0" (cast_expression "(allocator *)(iVar3 + -0xc)" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -0xc)" (( "(") (binary_expression "iVar3 + -0xc" (identifier "iVar3") (+ "+") (number_literal "-0xc")) () ")"))) (!= "!=") (cast_expression "(allocator *)PTR__S_empty_rep_storage_004322d0" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__S_empty_rep_storage_004322d0")))) (; ";")) (expression_statement "*(undefined **)this = PTR_vtable_004362d4 + 8;" (assignment_expression "*(undefined **)this = PTR_vtable_004362d4 + 8" (pointer_expression "*(undefined **)this" (* "*") (cast_expression "(undefined **)this" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))) (= "=") (binary_expression "PTR_vtable_004362d4 + 8" (identifier "PTR_vtable_004362d4") (+ "+") (number_literal "8"))) (; ";")) (if_statement "if (bVar1) {\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }\n    if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }\n  }" ({ "{") (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }\n    else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_0043667c == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_0043667c == (undefined *)0x0" (identifier "PTR___pthread_key_create_0043667c") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(iVar3 + -4);" (assignment_expression "iVar2 = *(int *)(iVar3 + -4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar3 + -4)" (* "*") (cast_expression "(int *)(iVar3 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -4)" (( "(") (binary_expression "iVar3 + -4" (identifier "iVar3") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar3 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar3 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar3 + -4)" (* "*") (cast_expression "(int *)(iVar3 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -4)" (( "(") (binary_expression "iVar3 + -4" (identifier "iVar3") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" (else "else") (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)(iVar3 + -4);\n      *(int *)(iVar3 + -4) = iVar2 + -1;\n      SYNC(0);\n    }" ({ "{") (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(iVar3 + -4);" (assignment_expression "iVar2 = *(int *)(iVar3 + -4)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar3 + -4)" (* "*") (cast_expression "(int *)(iVar3 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -4)" (( "(") (binary_expression "iVar3 + -4" (identifier "iVar3") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar3 + -4) = iVar2 + -1;" (assignment_expression "*(int *)(iVar3 + -4) = iVar2 + -1" (pointer_expression "*(int *)(iVar3 + -4)" (* "*") (cast_expression "(int *)(iVar3 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -4)" (( "(") (binary_expression "iVar3 + -4" (identifier "iVar3") (+ "+") (number_literal "-4")) () ")")))) (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar2 < 1) {\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));\n    }" ({ "{") (labeled_statement "string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));" (statement_identifier "string") (: ":") (ERROR ":" (: ":")) (labeled_statement "_Rep::_M_destroy((allocator *)(iVar3 + -0xc));" (statement_identifier "_Rep") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_destroy((allocator *)(iVar3 + -0xc));" (call_expression "_M_destroy((allocator *)(iVar3 + -0xc))" (identifier "_M_destroy") (argument_list "((allocator *)(iVar3 + -0xc))" (( "(") (cast_expression "(allocator *)(iVar3 + -0xc)" (( "(") (type_descriptor "allocator *" (type_identifier "allocator") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + -0xc)" (( "(") (binary_expression "iVar3 + -0xc" (identifier "iVar3") (+ "+") (number_literal "-0xc")) () ")"))) () ")"))) (; ";")))) (} "}"))) (} "}"))) (expression_statement "(*(code *)PTR__exception_004336e8)(this);" (call_expression "(*(code *)PTR__exception_004336e8)(this)" (parenthesized_expression "(*(code *)PTR__exception_004336e8)" (( "(") (pointer_expression "*(code *)PTR__exception_004336e8" (* "*") (cast_expression "(code *)PTR__exception_004336e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__exception_004336e8"))) () ")")) (argument_list "(this)" (( "(") (identifier "this") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::logic_error::~logic_error() */

void __thiscall std::function_1::~function_1(function_1 *var_1)

{
  bool bVar1;
  int var_5;
  int var_2;
  
  var_2 = *(int *)(var_1 + 4);
  bVar1 = (type_1 *)(var_2 + -0xc) != (type_1 *)PTR__S_empty_rep_storage_004322d0;
  *(type_2 **)var_1 = var_3 + 8;
  if (bVar1) {
    if (var_4 == (type_2 *)0x0) {
      var_5 = *(int *)(var_2 + -4);
      *(int *)(var_2 + -4) = var_5 + -1;
    }
    else {
      var_6(0);
      var_5 = *(int *)(var_2 + -4);
      *(int *)(var_2 + -4) = var_5 + -1;
      var_6(0);
    }
    if (var_5 < 1) {
      std::string::_Rep::var_7((type_1 *)(var_2 + -0xc));
    }
  }
  (*(type_3 *)PTR__exception_004336e8)(var_1);
  return;
}


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

/* std::logic_error::MASKED() */

void __thiscall std::logic_error::MASKED(logic_error *this)

{
  bool bVar1;
  int iVar2;
  int iVar3;
  
  iVar3 = *(int *)(this + 4);
  bVar1 = (allocator *)(iVar3 + -0xc) != (allocator *)PTR__S_empty_rep_storage_004322d0;
  *(undefined **)this = PTR_vtable_004362d4 + 8;
  if (bVar1) {
    if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
      iVar2 = *(int *)(iVar3 + -4);
      *(int *)(iVar3 + -4) = iVar2 + -1;
    }
    else {
      SYNC(0);
      iVar2 = *(int *)(iVar3 + -4);
      *(int *)(iVar3 + -4) = iVar2 + -1;
      SYNC(0);
    }
    if (iVar2 < 1) {
      string::_Rep::_M_destroy((allocator *)(iVar3 + -0xc));
    }
  }
  (*(code *)PTR__exception_004336e8)(this);
  return;
}

