
/* std::locale::~locale() */

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

{
  int iVar1;
  _Impl *this_00;
  
  this_00 = *(_Impl **)this;
  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {
    iVar1 = *(int *)this_00;
    *(int *)this_00 = iVar1 + -1;
  }
  else {
    SYNC(0);
    iVar1 = *(int *)this_00;
    *(int *)this_00 = iVar1 + -1;
    SYNC(0);
  }
  if (iVar1 != 1) {
    return;
  }
  _Impl::~_Impl(this_00);
  operator_delete(this_00);
  return;
}



/* std::locale::~locale() */

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

{
  int iVar1;
  _Impl *this_00;
  
  this_00 = *(_Impl **)this;
  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {
    iVar1 = *(int *)this_00;
    *(int *)this_00 = iVar1 + -1;
  }
  else {
    SYNC(0);
    iVar1 = *(int *)this_00;
    *(int *)this_00 = iVar1 + -1;
    SYNC(0);
  }
  if (iVar1 != 1) {
    return;
  }
  _Impl::~_Impl(this_00);
  operator_delete(this_00);
  return;
}


lui gp,0x19
addiu gp,gp,0x4ea4
addu gp,gp,t9
addiu sp,sp,-0x20
lw v0,-0x37a0(gp)
sw gp,0x10(sp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
beq v0,zero,0x003343fc
_lw s0,0x0(a0)
sync 0x0
ll v0,0x0(s0)
addiu at,v0,-0x1
sc at,0x0(s0)
beq at,zero,0x003343c8
_nop
sync 0x0
li v1,0x1
beq v0,v1,0x00334418
_lw t9,-0x40a0(gp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw v0,0x0(s0)
addiu v1,v0,-0x1
sw v1,0x0(s0)
li v1,0x1
bne v0,v1,0x003343f0
_lw ra,0x1c(sp)
lw t9,-0x40a0(gp)
bal 0x00334000
_or a0,s0,zero
or a0,s0,zero
lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7f44(gp)
b 0x00330ee0
_addiu sp,sp,0x20
(translation_unit "/* std::locale::~locale() */\n\nvoid __thiscall std::locale::~locale(locale *this)\n\n{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::locale::~locale(locale *this)\n\n{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::locale::~" identifier : : identifier : : ~) (function_declarator "locale(locale *this)" identifier (parameter_list "(locale *this)" ( (parameter_declaration "locale *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "_Impl *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "this_00 = *(_Impl **)this;" (assignment_expression "this_00 = *(_Impl **)this" identifier = (pointer_expression "*(_Impl **)this" * (cast_expression "(_Impl **)this" ( (type_descriptor "_Impl **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" if (parenthesized_expression "(PTR___pthread_key_create_004c5aa0 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }" { (expression_statement "iVar1 = *(int *)this_00;" (assignment_expression "iVar1 = *(int *)this_00" identifier = (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)this_00 = iVar1 + -1;" (assignment_expression "*(int *)this_00 = iVar1 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" else (compound_statement "{\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar1 = *(int *)this_00;" (assignment_expression "iVar1 = *(int *)this_00" identifier = (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)this_00 = iVar1 + -1;" (assignment_expression "*(int *)this_00 = iVar1 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar1 != 1) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "_Impl::~_Impl(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "~_Impl(this_00);" (unary_expression "~_Impl(this_00)" ~ (call_expression "_Impl(this_00)" identifier (argument_list "(this_00)" ( identifier )))) ;)) (expression_statement "operator_delete(this_00);" (call_expression "operator_delete(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::locale::~locale() */\n\nvoid __thiscall std::locale::~locale(locale *this)\n\n{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::locale::~locale(locale *this)\n\n{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::locale::~" identifier : : identifier : : ~) (function_declarator "locale(locale *this)" identifier (parameter_list "(locale *this)" ( (parameter_declaration "locale *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "_Impl *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "this_00 = *(_Impl **)this;" (assignment_expression "this_00 = *(_Impl **)this" identifier = (pointer_expression "*(_Impl **)this" * (cast_expression "(_Impl **)this" ( (type_descriptor "_Impl **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" if (parenthesized_expression "(PTR___pthread_key_create_004c5aa0 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }" { (expression_statement "iVar1 = *(int *)this_00;" (assignment_expression "iVar1 = *(int *)this_00" identifier = (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)this_00 = iVar1 + -1;" (assignment_expression "*(int *)this_00 = iVar1 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" else (compound_statement "{\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar1 = *(int *)this_00;" (assignment_expression "iVar1 = *(int *)this_00" identifier = (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)this_00 = iVar1 + -1;" (assignment_expression "*(int *)this_00 = iVar1 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar1 != 1) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "_Impl::~_Impl(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "~_Impl(this_00);" (unary_expression "~_Impl(this_00)" ~ (call_expression "_Impl(this_00)" identifier (argument_list "(this_00)" ( identifier )))) ;)) (expression_statement "operator_delete(this_00);" (call_expression "operator_delete(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __thiscall std::locale::~locale(locale *this)\n\n{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}\n\n" (function_definition "void __thiscall std::locale::~locale(locale *this)\n\n{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::locale::~" identifier : : identifier : : ~) (function_declarator "locale(locale *this)" identifier (parameter_list "(locale *this)" ( (parameter_declaration "locale *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "_Impl *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "this_00 = *(_Impl **)this;" (assignment_expression "this_00 = *(_Impl **)this" identifier = (pointer_expression "*(_Impl **)this" * (cast_expression "(_Impl **)this" ( (type_descriptor "_Impl **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" if (parenthesized_expression "(PTR___pthread_key_create_004c5aa0 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }" { (expression_statement "iVar1 = *(int *)this_00;" (assignment_expression "iVar1 = *(int *)this_00" identifier = (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)this_00 = iVar1 + -1;" (assignment_expression "*(int *)this_00 = iVar1 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" else (compound_statement "{\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar1 = *(int *)this_00;" (assignment_expression "iVar1 = *(int *)this_00" identifier = (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)this_00 = iVar1 + -1;" (assignment_expression "*(int *)this_00 = iVar1 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) }))) (if_statement "if (iVar1 != 1) {\n    return;\n  }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "_Impl::~_Impl(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "~_Impl(this_00);" (unary_expression "~_Impl(this_00)" ~ (call_expression "_Impl(this_00)" identifier (argument_list "(this_00)" ( identifier )))) ;)) (expression_statement "operator_delete(this_00);" (call_expression "operator_delete(this_00)" identifier (argument_list "(this_00)" ( 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 (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (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 *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (ERROR :) (expression_statement (unary_expression ~ (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __thiscall std::locale::~locale(locale *this)\n\n{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::locale::~" (identifier "std") (: ":") (: ":") (identifier "locale") (: ":") (: ":") (~ "~")) (function_declarator "locale(locale *this)" (identifier "locale") (parameter_list "(locale *this)" (( "(") (parameter_declaration "locale *this" (type_identifier "locale") (pointer_declarator "*this" (* "*") (identifier "this"))) () ")"))) (compound_statement "{\n  int iVar1;\n  _Impl *this_00;\n  \n  this_00 = *(_Impl **)this;\n  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }\n  if (iVar1 != 1) {\n    return;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "_Impl *this_00;" (type_identifier "_Impl") (pointer_declarator "*this_00" (* "*") (identifier "this_00")) (; ";")) (expression_statement "this_00 = *(_Impl **)this;" (assignment_expression "this_00 = *(_Impl **)this" (identifier "this_00") (= "=") (pointer_expression "*(_Impl **)this" (* "*") (cast_expression "(_Impl **)this" (( "(") (type_descriptor "_Impl **" (type_identifier "_Impl") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (; ";")) (if_statement "if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }\n  else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_004c5aa0 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_004c5aa0 == (undefined *)0x0" (identifier "PTR___pthread_key_create_004c5aa0") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)this_00;" (assignment_expression "iVar1 = *(int *)this_00" (identifier "iVar1") (= "=") (pointer_expression "*(int *)this_00" (* "*") (cast_expression "(int *)this_00" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this_00")))) (; ";")) (expression_statement "*(int *)this_00 = iVar1 + -1;" (assignment_expression "*(int *)this_00 = iVar1 + -1" (pointer_expression "*(int *)this_00" (* "*") (cast_expression "(int *)this_00" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this_00"))) (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" (else "else") (compound_statement "{\n    SYNC(0);\n    iVar1 = *(int *)this_00;\n    *(int *)this_00 = iVar1 + -1;\n    SYNC(0);\n  }" ({ "{") (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)this_00;" (assignment_expression "iVar1 = *(int *)this_00" (identifier "iVar1") (= "=") (pointer_expression "*(int *)this_00" (* "*") (cast_expression "(int *)this_00" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this_00")))) (; ";")) (expression_statement "*(int *)this_00 = iVar1 + -1;" (assignment_expression "*(int *)this_00 = iVar1 + -1" (pointer_expression "*(int *)this_00" (* "*") (cast_expression "(int *)this_00" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this_00"))) (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar1 != 1) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "_Impl::~_Impl(this_00);" (statement_identifier "_Impl") (: ":") (ERROR ":" (: ":")) (expression_statement "~_Impl(this_00);" (unary_expression "~_Impl(this_00)" (~ "~") (call_expression "_Impl(this_00)" (identifier "_Impl") (argument_list "(this_00)" (( "(") (identifier "this_00") () ")")))) (; ";"))) (expression_statement "operator_delete(this_00);" (call_expression "operator_delete(this_00)" (identifier "operator_delete") (argument_list "(this_00)" (( "(") (identifier "this_00") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::locale::~locale() */

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

{
  int var_2;
  type_1 *this_00;
  
  this_00 = *(type_1 **)this;
  if (var_1 == (type_2 *)0x0) {
    var_2 = *(int *)this_00;
    *(int *)this_00 = var_2 + -1;
  }
  else {
    var_3(0);
    var_2 = *(int *)this_00;
    *(int *)this_00 = var_2 + -1;
    var_3(0);
  }
  if (var_2 != 1) {
    return;
  }
  _Impl::~type_1(this_00);
  var_4(this_00);
  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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (binary_expression left: (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: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (binary_expression left: (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 (return_statement))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (unary_expression argument: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

/* std::locale::MASKED() */

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

{
  int iVar1;
  _Impl *this_00;
  
  this_00 = *(_Impl **)this;
  if (PTR___pthread_key_create_004c5aa0 == (undefined *)0x0) {
    iVar1 = *(int *)this_00;
    *(int *)this_00 = iVar1 + -1;
  }
  else {
    SYNC(0);
    iVar1 = *(int *)this_00;
    *(int *)this_00 = iVar1 + -1;
    SYNC(0);
  }
  if (iVar1 != 1) {
    return;
  }
  _Impl::~_Impl(this_00);
  operator_delete(this_00);
  return;
}

