
/* std::locale::TEMPNAMEPLACEHOLDERVALUE(std::locale const&) */

locale * __thiscall std::locale::operator=(locale *this,locale *param_1)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  _Impl *this_00;
  
  puVar1 = PTR___pthread_key_create_0043667c;
  piVar3 = *(int **)param_1;
  if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
    this_00 = *(_Impl **)this;
    *piVar3 = *piVar3 + 1;
  }
  else {
    SYNC(0);
    *piVar3 = *piVar3 + 1;
    SYNC(0);
    this_00 = *(_Impl **)this;
    if (puVar1 != (undefined *)0x0) {
      SYNC(0);
      iVar2 = *(int *)this_00;
      *(int *)this_00 = iVar2 + -1;
      SYNC(0);
      goto joined_r0x002b92b4;
    }
  }
  iVar2 = *(int *)this_00;
  *(int *)this_00 = iVar2 + -1;
joined_r0x002b92b4:
  if (iVar2 != 1) {
    *(undefined4 *)this = *(undefined4 *)param_1;
    return this;
  }
  _Impl::~_Impl(this_00);
  operator_delete(this_00);
  *(undefined4 *)this = *(undefined4 *)param_1;
  return this;
}



/* std::locale::TEMPNAMEPLACEHOLDERVALUE(std::locale const&) */

locale * __thiscall std::locale::operator=(locale *this,locale *param_1)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  _Impl *this_00;
  
  puVar1 = PTR___pthread_key_create_0043667c;
  piVar3 = *(int **)param_1;
  if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
    this_00 = *(_Impl **)this;
    *piVar3 = *piVar3 + 1;
  }
  else {
    SYNC(0);
    *piVar3 = *piVar3 + 1;
    SYNC(0);
    this_00 = *(_Impl **)this;
    if (puVar1 != (undefined *)0x0) {
      SYNC(0);
      iVar2 = *(int *)this_00;
      *(int *)this_00 = iVar2 + -1;
      SYNC(0);
      goto joined_r0x002b92b4;
    }
  }
  iVar2 = *(int *)this_00;
  *(int *)this_00 = iVar2 + -1;
joined_r0x002b92b4:
  if (iVar2 != 1) {
    *(undefined4 *)this = *(undefined4 *)param_1;
    return this;
  }
  _Impl::~_Impl(this_00);
  operator_delete(this_00);
  *(undefined4 *)this = *(undefined4 *)param_1;
  return this;
}


lui gp,0x18
addiu gp,gp,0xfdc
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,-0x3b54(gp)
lw v1,0x0(a1)
sw gp,0x10(sp)
sw s0,0x1c(sp)
or s0,a0,zero
sw ra,0x24(sp)
beq v0,zero,0x002b9290
_sw s1,0x20(sp)
sync 0x0
ll at,0x0(v1)
addiu at,at,0x1
sc at,0x0(v1)
beq at,zero,0x002b9228
_nop
sync 0x0
beq v0,zero,0x002b92a4
_lw s1,0x0(s0)
sync 0x0
ll v0,0x0(s1)
addiu at,v0,-0x1
sc at,0x0(s1)
beq at,zero,0x002b924c
_nop
sync 0x0
li v1,0x1
beq v0,v1,0x002b92bc
_lw t9,-0x4430(gp)
lw v1,0x0(a1)
or v0,s0,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
sw v1,0x0(s0)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw a0,0x0(v1)
lw s1,0x0(s0)
addiu a0,a0,0x1
bne v0,zero,0x002b9248
_sw a0,0x0(v1)
lw v0,0x0(s1)
addiu v1,v0,-0x1
sw v1,0x0(s1)
li v1,0x1
bne v0,v1,0x002b9270
_lw t9,-0x4430(gp)
or a0,s1,zero
bal 0x002b8f60
_sw a1,0x2c(sp)
lw gp,0x10(sp)
lw t9,-0x7f44(gp)
bal 0x002b5e40
_or a0,s1,zero
or v0,s0,zero
lw a1,0x2c(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw v1,0x0(a1)
sw v1,0x0(s0)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "/* std::locale::TEMPNAMEPLACEHOLDERVALUE(std::locale const&) */\n\nlocale * __thiscall std::locale::operator=(locale *this,locale *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  _Impl *this_00;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  piVar3 = *(int **)param_1;\n  if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }\n  iVar2 = *(int *)this_00;\n  *(int *)this_00 = iVar2 + -1;\njoined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  *(undefined4 *)this = *(undefined4 *)param_1;\n  return this;\n}\n\n" comment (ERROR "locale * __thiscall std::locale::operator=(locale *this,locale *param_1)" (binary_expression "locale * __thiscall std::locale::operator=(locale *this,locale *param_1)" identifier * (assignment_expression "__thiscall std::locale::operator=(locale *this,locale *param_1)" identifier (ERROR "std::locale::operator" identifier : : identifier : : identifier) = (parenthesized_expression "(locale *this,locale *param_1)" ( (comma_expression "locale *this,locale *param_1" (binary_expression "locale *this" identifier * identifier) , (binary_expression "locale *param_1" identifier * identifier)) ))))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  _Impl *this_00;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  piVar3 = *(int **)param_1;\n  if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }\n  iVar2 = *(int *)this_00;\n  *(int *)this_00 = iVar2 + -1;\njoined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  *(undefined4 *)this = *(undefined4 *)param_1;\n  return this;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "_Impl *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" identifier = identifier) ;) (expression_statement "piVar3 = *(int **)param_1;" (assignment_expression "piVar3 = *(int **)param_1" identifier = (pointer_expression "*(int **)param_1" * (cast_expression "(int **)param_1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\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    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }" { (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))) ;) (expression_statement "*piVar3 = *piVar3 + 1;" (assignment_expression "*piVar3 = *piVar3 + 1" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + 1" (pointer_expression "*piVar3" * identifier) + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }" else (compound_statement "{\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "*piVar3 = *piVar3 + 1;" (assignment_expression "*piVar3 = *piVar3 + 1" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + 1" (pointer_expression "*piVar3" * identifier) + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (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 (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)this_00;" (assignment_expression "iVar2 = *(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 = iVar2 + -1;" (assignment_expression "*(int *)this_00 = iVar2 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (goto_statement "goto joined_r0x002b92b4;" goto statement_identifier ;) })) }))) (expression_statement "iVar2 = *(int *)this_00;" (assignment_expression "iVar2 = *(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 = iVar2 + -1;" (assignment_expression "*(int *)this_00 = iVar2 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (labeled_statement "joined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" statement_identifier : (if_statement "if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" if (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" { (expression_statement "*(undefined4 *)this = *(undefined4 *)param_1;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)param_1" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return this;" return identifier ;) }))) (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 ))) ;) (expression_statement "*(undefined4 *)this = *(undefined4 *)param_1;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)param_1" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return this;" return identifier ;) }))
(translation_unit "/* std::locale::TEMPNAMEPLACEHOLDERVALUE(std::locale const&) */\n\nlocale * __thiscall std::locale::operator=(locale *this,locale *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  _Impl *this_00;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  piVar3 = *(int **)param_1;\n  if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }\n  iVar2 = *(int *)this_00;\n  *(int *)this_00 = iVar2 + -1;\njoined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  *(undefined4 *)this = *(undefined4 *)param_1;\n  return this;\n}\n\n" comment (ERROR "locale * __thiscall std::locale::operator=(locale *this,locale *param_1)" (binary_expression "locale * __thiscall std::locale::operator=(locale *this,locale *param_1)" identifier * (assignment_expression "__thiscall std::locale::operator=(locale *this,locale *param_1)" identifier (ERROR "std::locale::operator" identifier : : identifier : : identifier) = (parenthesized_expression "(locale *this,locale *param_1)" ( (comma_expression "locale *this,locale *param_1" (binary_expression "locale *this" identifier * identifier) , (binary_expression "locale *param_1" identifier * identifier)) ))))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  _Impl *this_00;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  piVar3 = *(int **)param_1;\n  if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }\n  iVar2 = *(int *)this_00;\n  *(int *)this_00 = iVar2 + -1;\njoined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  *(undefined4 *)this = *(undefined4 *)param_1;\n  return this;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "_Impl *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" identifier = identifier) ;) (expression_statement "piVar3 = *(int **)param_1;" (assignment_expression "piVar3 = *(int **)param_1" identifier = (pointer_expression "*(int **)param_1" * (cast_expression "(int **)param_1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\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    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }" { (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))) ;) (expression_statement "*piVar3 = *piVar3 + 1;" (assignment_expression "*piVar3 = *piVar3 + 1" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + 1" (pointer_expression "*piVar3" * identifier) + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }" else (compound_statement "{\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "*piVar3 = *piVar3 + 1;" (assignment_expression "*piVar3 = *piVar3 + 1" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + 1" (pointer_expression "*piVar3" * identifier) + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (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 (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)this_00;" (assignment_expression "iVar2 = *(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 = iVar2 + -1;" (assignment_expression "*(int *)this_00 = iVar2 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (goto_statement "goto joined_r0x002b92b4;" goto statement_identifier ;) })) }))) (expression_statement "iVar2 = *(int *)this_00;" (assignment_expression "iVar2 = *(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 = iVar2 + -1;" (assignment_expression "*(int *)this_00 = iVar2 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (labeled_statement "joined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" statement_identifier : (if_statement "if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" if (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" { (expression_statement "*(undefined4 *)this = *(undefined4 *)param_1;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)param_1" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return this;" return identifier ;) }))) (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 ))) ;) (expression_statement "*(undefined4 *)this = *(undefined4 *)param_1;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)param_1" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return this;" return identifier ;) }))
(translation_unit "locale * __thiscall std::locale::operator=(locale *this,locale *param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  _Impl *this_00;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  piVar3 = *(int **)param_1;\n  if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }\n  iVar2 = *(int *)this_00;\n  *(int *)this_00 = iVar2 + -1;\njoined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  *(undefined4 *)this = *(undefined4 *)param_1;\n  return this;\n}\n\n" (ERROR "locale * __thiscall std::locale::operator=(locale *this,locale *param_1)" (binary_expression "locale * __thiscall std::locale::operator=(locale *this,locale *param_1)" identifier * (assignment_expression "__thiscall std::locale::operator=(locale *this,locale *param_1)" identifier (ERROR "std::locale::operator" identifier : : identifier : : identifier) = (parenthesized_expression "(locale *this,locale *param_1)" ( (comma_expression "locale *this,locale *param_1" (binary_expression "locale *this" identifier * identifier) , (binary_expression "locale *param_1" identifier * identifier)) ))))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  _Impl *this_00;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  piVar3 = *(int **)param_1;\n  if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }\n  iVar2 = *(int *)this_00;\n  *(int *)this_00 = iVar2 + -1;\njoined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  *(undefined4 *)this = *(undefined4 *)param_1;\n  return this;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "_Impl *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" identifier = identifier) ;) (expression_statement "piVar3 = *(int **)param_1;" (assignment_expression "piVar3 = *(int **)param_1" identifier = (pointer_expression "*(int **)param_1" * (cast_expression "(int **)param_1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\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    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }" { (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))) ;) (expression_statement "*piVar3 = *piVar3 + 1;" (assignment_expression "*piVar3 = *piVar3 + 1" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + 1" (pointer_expression "*piVar3" * identifier) + number_literal)) ;) }) (else_clause "else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }" else (compound_statement "{\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "*piVar3 = *piVar3 + 1;" (assignment_expression "*piVar3 = *piVar3 + 1" (pointer_expression "*piVar3" * identifier) = (binary_expression "*piVar3 + 1" (pointer_expression "*piVar3" * identifier) + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (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 (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }" { (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "iVar2 = *(int *)this_00;" (assignment_expression "iVar2 = *(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 = iVar2 + -1;" (assignment_expression "*(int *)this_00 = iVar2 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (goto_statement "goto joined_r0x002b92b4;" goto statement_identifier ;) })) }))) (expression_statement "iVar2 = *(int *)this_00;" (assignment_expression "iVar2 = *(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 = iVar2 + -1;" (assignment_expression "*(int *)this_00 = iVar2 + -1" (pointer_expression "*(int *)this_00" * (cast_expression "(int *)this_00" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (labeled_statement "joined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" statement_identifier : (if_statement "if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" if (parenthesized_expression "(iVar2 != 1)" ( (binary_expression "iVar2 != 1" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" { (expression_statement "*(undefined4 *)this = *(undefined4 *)param_1;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)param_1" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return this;" return identifier ;) }))) (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 ))) ;) (expression_statement "*(undefined4 *)this = *(undefined4 *)param_1;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)param_1" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (return_statement "return this;" return identifier ;) }))
(translation_unit (ERROR (binary_expression IDENT * (assignment_expression IDENT (ERROR IDENT : : IDENT : : IDENT) = (parenthesized_expression ( (comma_expression (binary_expression IDENT * IDENT) , (binary_expression IDENT * IDENT)) ))))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = 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 * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (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 (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 ))) ;) (goto_statement goto statement_identifier ;) })) }))) (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)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (return_statement return IDENT ;) }))) (labeled_statement statement_identifier : (ERROR :) (expression_statement (unary_expression ~ (call_expression IDENT (argument_list ( IDENT )))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (return_statement return IDENT ;) }))
(ERROR "locale * __thiscall std::locale::operator=(locale *this,locale *param_1)" (binary_expression "locale * __thiscall std::locale::operator=(locale *this,locale *param_1)" (identifier "locale") (* "*") (assignment_expression "__thiscall std::locale::operator=(locale *this,locale *param_1)" (identifier "__thiscall") (ERROR "std::locale::operator" (identifier "std") (: ":") (: ":") (identifier "locale") (: ":") (: ":") (identifier "operator")) (= "=") (parenthesized_expression "(locale *this,locale *param_1)" (( "(") (comma_expression "locale *this,locale *param_1" (binary_expression "locale *this" (identifier "locale") (* "*") (identifier "this")) (, ",") (binary_expression "locale *param_1" (identifier "locale") (* "*") (identifier "param_1"))) () ")"))))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  _Impl *this_00;\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  piVar3 = *(int **)param_1;\n  if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }\n  iVar2 = *(int *)this_00;\n  *(int *)this_00 = iVar2 + -1;\njoined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }\n  _Impl::~_Impl(this_00);\n  operator_delete(this_00);\n  *(undefined4 *)this = *(undefined4 *)param_1;\n  return this;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "_Impl *this_00;" (type_identifier "_Impl") (pointer_declarator "*this_00" (* "*") (identifier "this_00")) (; ";")) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" (identifier "puVar1") (= "=") (identifier "PTR___pthread_key_create_0043667c")) (; ";")) (expression_statement "piVar3 = *(int **)param_1;" (assignment_expression "piVar3 = *(int **)param_1" (identifier "piVar3") (= "=") (pointer_expression "*(int **)param_1" (* "*") (cast_expression "(int **)param_1" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "param_1")))) (; ";")) (if_statement "if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {\n    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }\n  else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\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    this_00 = *(_Impl **)this;\n    *piVar3 = *piVar3 + 1;\n  }" ({ "{") (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")))) (; ";")) (expression_statement "*piVar3 = *piVar3 + 1;" (assignment_expression "*piVar3 = *piVar3 + 1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (binary_expression "*piVar3 + 1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }" (else "else") (compound_statement "{\n    SYNC(0);\n    *piVar3 = *piVar3 + 1;\n    SYNC(0);\n    this_00 = *(_Impl **)this;\n    if (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }\n  }" ({ "{") (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "*piVar3 = *piVar3 + 1;" (assignment_expression "*piVar3 = *piVar3 + 1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (binary_expression "*piVar3 + 1" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (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 (puVar1 != (undefined *)0x0) {\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }" (if "if") (parenthesized_expression "(puVar1 != (undefined *)0x0)" (( "(") (binary_expression "puVar1 != (undefined *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      SYNC(0);\n      iVar2 = *(int *)this_00;\n      *(int *)this_00 = iVar2 + -1;\n      SYNC(0);\n      goto joined_r0x002b92b4;\n    }" ({ "{") (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)this_00;" (assignment_expression "iVar2 = *(int *)this_00" (identifier "iVar2") (= "=") (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 = iVar2 + -1;" (assignment_expression "*(int *)this_00 = iVar2 + -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 "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "SYNC(0);" (call_expression "SYNC(0)" (identifier "SYNC") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (goto_statement "goto joined_r0x002b92b4;" (goto "goto") (statement_identifier "joined_r0x002b92b4") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar2 = *(int *)this_00;" (assignment_expression "iVar2 = *(int *)this_00" (identifier "iVar2") (= "=") (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 = iVar2 + -1;" (assignment_expression "*(int *)this_00 = iVar2 + -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 "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (labeled_statement "joined_r0x002b92b4:\n  if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" (statement_identifier "joined_r0x002b92b4") (: ":") (if_statement "if (iVar2 != 1) {\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" (if "if") (parenthesized_expression "(iVar2 != 1)" (( "(") (binary_expression "iVar2 != 1" (identifier "iVar2") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n    *(undefined4 *)this = *(undefined4 *)param_1;\n    return this;\n  }" ({ "{") (expression_statement "*(undefined4 *)this = *(undefined4 *)param_1;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)param_1" (pointer_expression "*(undefined4 *)this" (* "*") (cast_expression "(undefined4 *)this" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (= "=") (pointer_expression "*(undefined4 *)param_1" (* "*") (cast_expression "(undefined4 *)param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")))) (; ";")) (return_statement "return this;" (return "return") (identifier "this") (; ";")) (} "}")))) (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") () ")"))) (; ";")) (expression_statement "*(undefined4 *)this = *(undefined4 *)param_1;" (assignment_expression "*(undefined4 *)this = *(undefined4 *)param_1" (pointer_expression "*(undefined4 *)this" (* "*") (cast_expression "(undefined4 *)this" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (= "=") (pointer_expression "*(undefined4 *)param_1" (* "*") (cast_expression "(undefined4 *)param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1")))) (; ";")) (return_statement "return this;" (return "return") (identifier "this") (; ";")) (} "}"))
(translation_unit (ERROR (binary_expression left: (identifier) right: (assignment_expression left: (identifier) (ERROR (identifier) (identifier) (identifier)) right: (parenthesized_expression (comma_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier))))))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (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: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (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: (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 (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)))) (goto_statement label: (statement_identifier))))))) (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)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (return_statement (identifier))))) (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)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (return_statement (identifier))))

/* std::locale::TEMPNAMEPLACEHOLDERVALUE(std::locale const&) */

locale * __thiscall std::locale::MASKED(locale *this,locale *param_1)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  _Impl *this_00;
  
  puVar1 = PTR___pthread_key_create_0043667c;
  piVar3 = *(int **)param_1;
  if (PTR___pthread_key_create_0043667c == (undefined *)0x0) {
    this_00 = *(_Impl **)this;
    *piVar3 = *piVar3 + 1;
  }
  else {
    SYNC(0);
    *piVar3 = *piVar3 + 1;
    SYNC(0);
    this_00 = *(_Impl **)this;
    if (puVar1 != (undefined *)0x0) {
      SYNC(0);
      iVar2 = *(int *)this_00;
      *(int *)this_00 = iVar2 + -1;
      SYNC(0);
      goto joined_r0x002b92b4;
    }
  }
  iVar2 = *(int *)this_00;
  *(int *)this_00 = iVar2 + -1;
joined_r0x002b92b4:
  if (iVar2 != 1) {
    *(undefined4 *)this = *(undefined4 *)param_1;
    return this;
  }
  _Impl::~_Impl(this_00);
  operator_delete(this_00);
  *(undefined4 *)this = *(undefined4 *)param_1;
  return this;
}

