
/* std::ofstream::TEMPNAMEPLACEHOLDERVALUE(std::ofstream&&) */

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

{
  ios iVar1;
  undefined4 uVar2;
  ios *this_00;
  ios_base *this_01;
  
  this_01 = (ios_base *)(this + *(int *)(*(int *)this + -0xc));
  this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));
  ios_base::_M_swap(this_01,(ios_base *)this_00);
  ios::_M_cache_locale((ios *)this_01,(locale *)(this_01 + 0x6c));
  ios::_M_cache_locale(this_00,(locale *)(this_00 + 0x6c));
  uVar2 = *(undefined4 *)(this_01 + 0x70);
  *(undefined4 *)(this_01 + 0x70) = *(undefined4 *)(this_00 + 0x70);
  *(undefined4 *)(this_00 + 0x70) = uVar2;
  iVar1 = *(ios *)(this_01 + 0x74);
  *(ios *)(this_01 + 0x74) = this_00[0x74];
  this_00[0x74] = iVar1;
  iVar1 = *(ios *)(this_01 + 0x75);
  *(ios *)(this_01 + 0x75) = this_00[0x75];
  this_00[0x75] = iVar1;
  filebuf::operator=((filebuf *)(this + 4),(filebuf *)(param_1 + 4));
  return this;
}



int * FUN_0036cf98(int *param_1,int *param_2)

{
  ios iVar1;
  undefined4 uVar2;
  ios *this;
  ios_base *this_00;
  
  this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));
  this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));
  std::ios_base::_M_swap(this_00,(ios_base *)this);
  std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));
  std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));
  uVar2 = *(undefined4 *)(this_00 + 0x70);
  *(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);
  *(undefined4 *)(this + 0x70) = uVar2;
  iVar1 = *(ios *)(this_00 + 0x74);
  *(ios *)(this_00 + 0x74) = this[0x74];
  this[0x74] = iVar1;
  iVar1 = *(ios *)(this_00 + 0x75);
  *(ios *)(this_00 + 0x75) = this[0x75];
  this[0x75] = iVar1;
  std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));
  return param_1;
}


lui gp,0x16
addiu gp,gp,-0x3d58
addu gp,gp,t9
lw v1,0x0(a0)
addiu sp,sp,-0x30
lw v0,0x0(a1)
lw t9,-0x3f2c(gp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lw s1,-0xc(v1)
lw s0,-0xc(v0)
sw ra,0x2c(sp)
addu s1,a0,s1
sw s3,0x28(sp)
addu s0,a1,s0
sw s2,0x24(sp)
sw gp,0x10(sp)
or s2,a0,zero
or s3,a1,zero
or a0,s1,zero
bal 0x00388fa4
_or a1,s0,zero
addiu a1,s1,0x6c
lw gp,0x10(sp)
lw t9,-0x3f30(gp)
bal 0x00366004
_or a0,s1,zero
addiu a1,s0,0x6c
lw gp,0x10(sp)
lw t9,-0x3f30(gp)
bal 0x00366004
_or a0,s0,zero
addiu a1,s3,0x4
lw v0,0x70(s1)
addiu a0,s2,0x4
lw v1,0x70(s0)
lw gp,0x10(sp)
sw v1,0x70(s1)
sw v0,0x70(s0)
lb v0,0x74(s1)
lb v1,0x74(s0)
lw t9,-0x3d9c(gp)
sb v1,0x74(s1)
sb v0,0x74(s0)
lbu v1,0x75(s0)
lbu v0,0x75(s1)
sb v1,0x75(s1)
bal 0x00369ac8
_sb v0,0x75(s0)
or v0,s2,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int * FUN_0036cf98(int *param_1,int *param_2)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  ios *this;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));\n  std::ios_base::_M_swap(this_00,(ios_base *)this);\n  std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(this_00 + 0x70);\n  *(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);\n  *(undefined4 *)(this + 0x70) = uVar2;\n  iVar1 = *(ios *)(this_00 + 0x74);\n  *(ios *)(this_00 + 0x74) = this[0x74];\n  this[0x74] = iVar1;\n  iVar1 = *(ios *)(this_00 + 0x75);\n  *(ios *)(this_00 + 0x75) = this[0x75];\n  this[0x75] = iVar1;\n  std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));\n  return param_1;\n}\n\n" (function_definition "int * FUN_0036cf98(int *param_1,int *param_2)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  ios *this;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));\n  std::ios_base::_M_swap(this_00,(ios_base *)this);\n  std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(this_00 + 0x70);\n  *(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);\n  *(undefined4 *)(this + 0x70) = uVar2;\n  iVar1 = *(ios *)(this_00 + 0x74);\n  *(ios *)(this_00 + 0x74) = this[0x74];\n  this[0x74] = iVar1;\n  iVar1 = *(ios *)(this_00 + 0x75);\n  *(ios *)(this_00 + 0x75) = this[0x75];\n  this[0x75] = iVar1;\n  std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0036cf98(int *param_1,int *param_2)" * (function_declarator "FUN_0036cf98(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  ios iVar1;\n  undefined4 uVar2;\n  ios *this;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));\n  std::ios_base::_M_swap(this_00,(ios_base *)this);\n  std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(this_00 + 0x70);\n  *(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);\n  *(undefined4 *)(this + 0x70) = uVar2;\n  iVar1 = *(ios *)(this_00 + 0x74);\n  *(ios *)(this_00 + 0x74) = this[0x74];\n  this[0x74] = iVar1;\n  iVar1 = *(ios *)(this_00 + 0x75);\n  *(ios *)(this_00 + 0x75) = this[0x75];\n  this[0x75] = iVar1;\n  std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));\n  return param_1;\n}" { (declaration "ios iVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "ios *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "ios_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc))" identifier = (cast_expression "(ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) ;) (expression_statement "this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));" (assignment_expression "this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc))" identifier = (cast_expression "(ios *)((int)param_2 + *(int *)(*param_2 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + *(int *)(*param_2 + -0xc))" ( (binary_expression "(int)param_2 + *(int *)(*param_2 + -0xc)" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_2 + -0xc)" * (cast_expression "(int *)(*param_2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + -0xc)" ( (binary_expression "*param_2 + -0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )))) ;) (labeled_statement "std::ios_base::_M_swap(this_00,(ios_base *)this);" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::_M_swap(this_00,(ios_base *)this);" statement_identifier : (ERROR ":" :) (expression_statement "_M_swap(this_00,(ios_base *)this);" (call_expression "_M_swap(this_00,(ios_base *)this)" identifier (argument_list "(this_00,(ios_base *)this)" ( identifier , (cast_expression "(ios_base *)this" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;))) (labeled_statement "std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));" (call_expression "_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c))" identifier (argument_list "((ios *)this_00,(locale *)(this_00 + 0x6c))" ( (cast_expression "(ios *)this_00" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(locale *)(this_00 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x6c)" ( (binary_expression "this_00 + 0x6c" identifier + number_literal) ))) ))) ;))) (labeled_statement "std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::_M_cache_locale(this,(locale *)(this + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale(this,(locale *)(this + 0x6c));" (call_expression "_M_cache_locale(this,(locale *)(this + 0x6c))" identifier (argument_list "(this,(locale *)(this + 0x6c))" ( identifier , (cast_expression "(locale *)(this + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x6c)" ( (binary_expression "this + 0x6c" identifier + number_literal) ))) ))) ;))) (expression_statement "uVar2 = *(undefined4 *)(this_00 + 0x70);" (assignment_expression "uVar2 = *(undefined4 *)(this_00 + 0x70)" identifier = (pointer_expression "*(undefined4 *)(this_00 + 0x70)" * (cast_expression "(undefined4 *)(this_00 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x70)" ( (binary_expression "this_00 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);" (assignment_expression "*(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70)" (pointer_expression "*(undefined4 *)(this_00 + 0x70)" * (cast_expression "(undefined4 *)(this_00 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x70)" ( (binary_expression "this_00 + 0x70" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(this + 0x70)" * (cast_expression "(undefined4 *)(this + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x70)" ( (binary_expression "this + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0x70) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0x70) = uVar2" (pointer_expression "*(undefined4 *)(this + 0x70)" * (cast_expression "(undefined4 *)(this + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x70)" ( (binary_expression "this + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(ios *)(this_00 + 0x74);" (assignment_expression "iVar1 = *(ios *)(this_00 + 0x74)" identifier = (pointer_expression "*(ios *)(this_00 + 0x74)" * (cast_expression "(ios *)(this_00 + 0x74)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x74)" ( (binary_expression "this_00 + 0x74" identifier + number_literal) ))))) ;) (expression_statement "*(ios *)(this_00 + 0x74) = this[0x74];" (assignment_expression "*(ios *)(this_00 + 0x74) = this[0x74]" (pointer_expression "*(ios *)(this_00 + 0x74)" * (cast_expression "(ios *)(this_00 + 0x74)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x74)" ( (binary_expression "this_00 + 0x74" identifier + number_literal) )))) = (subscript_expression "this[0x74]" identifier [ number_literal ])) ;) (expression_statement "this[0x74] = iVar1;" (assignment_expression "this[0x74] = iVar1" (subscript_expression "this[0x74]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = *(ios *)(this_00 + 0x75);" (assignment_expression "iVar1 = *(ios *)(this_00 + 0x75)" identifier = (pointer_expression "*(ios *)(this_00 + 0x75)" * (cast_expression "(ios *)(this_00 + 0x75)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x75)" ( (binary_expression "this_00 + 0x75" identifier + number_literal) ))))) ;) (expression_statement "*(ios *)(this_00 + 0x75) = this[0x75];" (assignment_expression "*(ios *)(this_00 + 0x75) = this[0x75]" (pointer_expression "*(ios *)(this_00 + 0x75)" * (cast_expression "(ios *)(this_00 + 0x75)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x75)" ( (binary_expression "this_00 + 0x75" identifier + number_literal) )))) = (subscript_expression "this[0x75]" identifier [ number_literal ])) ;) (expression_statement "this[0x75] = iVar1;" (assignment_expression "this[0x75] = iVar1" (subscript_expression "this[0x75]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));" statement_identifier : (ERROR ":" :) (expression_statement "operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));" (assignment_expression "operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1))" identifier = (parenthesized_expression "((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1))" ( (comma_expression "(filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1)" (cast_expression "(filebuf *)(param_1 + 1)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) , (cast_expression "(filebuf *)(param_2 + 1)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) ))) ;))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::ofstream::TEMPNAMEPLACEHOLDERVALUE(std::ofstream&&) */\n\nofstream * __thiscall std::ofstream::operator=(ofstream *this,ofstream *param_1)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  ios *this_00;\n  ios_base *this_01;\n  \n  this_01 = (ios_base *)(this + *(int *)(*(int *)this + -0xc));\n  this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));\n  ios_base::_M_swap(this_01,(ios_base *)this_00);\n  ios::_M_cache_locale((ios *)this_01,(locale *)(this_01 + 0x6c));\n  ios::_M_cache_locale(this_00,(locale *)(this_00 + 0x6c));\n  uVar2 = *(undefined4 *)(this_01 + 0x70);\n  *(undefined4 *)(this_01 + 0x70) = *(undefined4 *)(this_00 + 0x70);\n  *(undefined4 *)(this_00 + 0x70) = uVar2;\n  iVar1 = *(ios *)(this_01 + 0x74);\n  *(ios *)(this_01 + 0x74) = this_00[0x74];\n  this_00[0x74] = iVar1;\n  iVar1 = *(ios *)(this_01 + 0x75);\n  *(ios *)(this_01 + 0x75) = this_00[0x75];\n  this_00[0x75] = iVar1;\n  filebuf::operator=((filebuf *)(this + 4),(filebuf *)(param_1 + 4));\n  return this;\n}\n\n" comment (ERROR "ofstream * __thiscall std::ofstream::operator=(ofstream *this,ofstream *param_1)" (binary_expression "ofstream * __thiscall std::ofstream::operator=(ofstream *this,ofstream *param_1)" identifier * (assignment_expression "__thiscall std::ofstream::operator=(ofstream *this,ofstream *param_1)" identifier (ERROR "std::ofstream::operator" identifier : : identifier : : identifier) = (parenthesized_expression "(ofstream *this,ofstream *param_1)" ( (comma_expression "ofstream *this,ofstream *param_1" (binary_expression "ofstream *this" identifier * identifier) , (binary_expression "ofstream *param_1" identifier * identifier)) ))))) (compound_statement "{\n  ios iVar1;\n  undefined4 uVar2;\n  ios *this_00;\n  ios_base *this_01;\n  \n  this_01 = (ios_base *)(this + *(int *)(*(int *)this + -0xc));\n  this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));\n  ios_base::_M_swap(this_01,(ios_base *)this_00);\n  ios::_M_cache_locale((ios *)this_01,(locale *)(this_01 + 0x6c));\n  ios::_M_cache_locale(this_00,(locale *)(this_00 + 0x6c));\n  uVar2 = *(undefined4 *)(this_01 + 0x70);\n  *(undefined4 *)(this_01 + 0x70) = *(undefined4 *)(this_00 + 0x70);\n  *(undefined4 *)(this_00 + 0x70) = uVar2;\n  iVar1 = *(ios *)(this_01 + 0x74);\n  *(ios *)(this_01 + 0x74) = this_00[0x74];\n  this_00[0x74] = iVar1;\n  iVar1 = *(ios *)(this_01 + 0x75);\n  *(ios *)(this_01 + 0x75) = this_00[0x75];\n  this_00[0x75] = iVar1;\n  filebuf::operator=((filebuf *)(this + 4),(filebuf *)(param_1 + 4));\n  return this;\n}" { (declaration "ios iVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "ios *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "ios_base *this_01;" type_identifier (pointer_declarator "*this_01" * identifier) ;) (expression_statement "this_01 = (ios_base *)(this + *(int *)(*(int *)this + -0xc));" (assignment_expression "this_01 = (ios_base *)(this + *(int *)(*(int *)this + -0xc))" identifier = (cast_expression "(ios_base *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (expression_statement "this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));" (assignment_expression "this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" identifier = (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (labeled_statement "ios_base::_M_swap(this_01,(ios_base *)this_00);" statement_identifier : (ERROR ":" :) (expression_statement "_M_swap(this_01,(ios_base *)this_00);" (call_expression "_M_swap(this_01,(ios_base *)this_00)" identifier (argument_list "(this_01,(ios_base *)this_00)" ( identifier , (cast_expression "(ios_base *)this_00" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (labeled_statement "ios::_M_cache_locale((ios *)this_01,(locale *)(this_01 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale((ios *)this_01,(locale *)(this_01 + 0x6c));" (call_expression "_M_cache_locale((ios *)this_01,(locale *)(this_01 + 0x6c))" identifier (argument_list "((ios *)this_01,(locale *)(this_01 + 0x6c))" ( (cast_expression "(ios *)this_01" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(locale *)(this_01 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_01 + 0x6c)" ( (binary_expression "this_01 + 0x6c" identifier + number_literal) ))) ))) ;)) (labeled_statement "ios::_M_cache_locale(this_00,(locale *)(this_00 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale(this_00,(locale *)(this_00 + 0x6c));" (call_expression "_M_cache_locale(this_00,(locale *)(this_00 + 0x6c))" identifier (argument_list "(this_00,(locale *)(this_00 + 0x6c))" ( identifier , (cast_expression "(locale *)(this_00 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x6c)" ( (binary_expression "this_00 + 0x6c" identifier + number_literal) ))) ))) ;)) (expression_statement "uVar2 = *(undefined4 *)(this_01 + 0x70);" (assignment_expression "uVar2 = *(undefined4 *)(this_01 + 0x70)" identifier = (pointer_expression "*(undefined4 *)(this_01 + 0x70)" * (cast_expression "(undefined4 *)(this_01 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_01 + 0x70)" ( (binary_expression "this_01 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this_01 + 0x70) = *(undefined4 *)(this_00 + 0x70);" (assignment_expression "*(undefined4 *)(this_01 + 0x70) = *(undefined4 *)(this_00 + 0x70)" (pointer_expression "*(undefined4 *)(this_01 + 0x70)" * (cast_expression "(undefined4 *)(this_01 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_01 + 0x70)" ( (binary_expression "this_01 + 0x70" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(this_00 + 0x70)" * (cast_expression "(undefined4 *)(this_00 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x70)" ( (binary_expression "this_00 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this_00 + 0x70) = uVar2;" (assignment_expression "*(undefined4 *)(this_00 + 0x70) = uVar2" (pointer_expression "*(undefined4 *)(this_00 + 0x70)" * (cast_expression "(undefined4 *)(this_00 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x70)" ( (binary_expression "this_00 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(ios *)(this_01 + 0x74);" (assignment_expression "iVar1 = *(ios *)(this_01 + 0x74)" identifier = (pointer_expression "*(ios *)(this_01 + 0x74)" * (cast_expression "(ios *)(this_01 + 0x74)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_01 + 0x74)" ( (binary_expression "this_01 + 0x74" identifier + number_literal) ))))) ;) (expression_statement "*(ios *)(this_01 + 0x74) = this_00[0x74];" (assignment_expression "*(ios *)(this_01 + 0x74) = this_00[0x74]" (pointer_expression "*(ios *)(this_01 + 0x74)" * (cast_expression "(ios *)(this_01 + 0x74)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_01 + 0x74)" ( (binary_expression "this_01 + 0x74" identifier + number_literal) )))) = (subscript_expression "this_00[0x74]" identifier [ number_literal ])) ;) (expression_statement "this_00[0x74] = iVar1;" (assignment_expression "this_00[0x74] = iVar1" (subscript_expression "this_00[0x74]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = *(ios *)(this_01 + 0x75);" (assignment_expression "iVar1 = *(ios *)(this_01 + 0x75)" identifier = (pointer_expression "*(ios *)(this_01 + 0x75)" * (cast_expression "(ios *)(this_01 + 0x75)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_01 + 0x75)" ( (binary_expression "this_01 + 0x75" identifier + number_literal) ))))) ;) (expression_statement "*(ios *)(this_01 + 0x75) = this_00[0x75];" (assignment_expression "*(ios *)(this_01 + 0x75) = this_00[0x75]" (pointer_expression "*(ios *)(this_01 + 0x75)" * (cast_expression "(ios *)(this_01 + 0x75)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_01 + 0x75)" ( (binary_expression "this_01 + 0x75" identifier + number_literal) )))) = (subscript_expression "this_00[0x75]" identifier [ number_literal ])) ;) (expression_statement "this_00[0x75] = iVar1;" (assignment_expression "this_00[0x75] = iVar1" (subscript_expression "this_00[0x75]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "filebuf::operator=((filebuf *)(this + 4),(filebuf *)(param_1 + 4));" statement_identifier : (ERROR ":" :) (expression_statement "operator=((filebuf *)(this + 4),(filebuf *)(param_1 + 4));" (assignment_expression "operator=((filebuf *)(this + 4),(filebuf *)(param_1 + 4))" identifier = (parenthesized_expression "((filebuf *)(this + 4),(filebuf *)(param_1 + 4))" ( (comma_expression "(filebuf *)(this + 4),(filebuf *)(param_1 + 4)" (cast_expression "(filebuf *)(this + 4)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))) , (cast_expression "(filebuf *)(param_1 + 4)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ))) ;)) (return_statement "return this;" return identifier ;) }))
(translation_unit "int * FUN_0036cf98(int *param_1,int *param_2)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  ios *this;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));\n  std::ios_base::_M_swap(this_00,(ios_base *)this);\n  std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(this_00 + 0x70);\n  *(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);\n  *(undefined4 *)(this + 0x70) = uVar2;\n  iVar1 = *(ios *)(this_00 + 0x74);\n  *(ios *)(this_00 + 0x74) = this[0x74];\n  this[0x74] = iVar1;\n  iVar1 = *(ios *)(this_00 + 0x75);\n  *(ios *)(this_00 + 0x75) = this[0x75];\n  this[0x75] = iVar1;\n  std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));\n  return param_1;\n}\n\n" (function_definition "int * FUN_0036cf98(int *param_1,int *param_2)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  ios *this;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));\n  std::ios_base::_M_swap(this_00,(ios_base *)this);\n  std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(this_00 + 0x70);\n  *(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);\n  *(undefined4 *)(this + 0x70) = uVar2;\n  iVar1 = *(ios *)(this_00 + 0x74);\n  *(ios *)(this_00 + 0x74) = this[0x74];\n  this[0x74] = iVar1;\n  iVar1 = *(ios *)(this_00 + 0x75);\n  *(ios *)(this_00 + 0x75) = this[0x75];\n  this[0x75] = iVar1;\n  std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));\n  return param_1;\n}" primitive_type (pointer_declarator "* FUN_0036cf98(int *param_1,int *param_2)" * (function_declarator "FUN_0036cf98(int *param_1,int *param_2)" identifier (parameter_list "(int *param_1,int *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  ios iVar1;\n  undefined4 uVar2;\n  ios *this;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));\n  std::ios_base::_M_swap(this_00,(ios_base *)this);\n  std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(this_00 + 0x70);\n  *(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);\n  *(undefined4 *)(this + 0x70) = uVar2;\n  iVar1 = *(ios *)(this_00 + 0x74);\n  *(ios *)(this_00 + 0x74) = this[0x74];\n  this[0x74] = iVar1;\n  iVar1 = *(ios *)(this_00 + 0x75);\n  *(ios *)(this_00 + 0x75) = this[0x75];\n  this[0x75] = iVar1;\n  std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));\n  return param_1;\n}" { (declaration "ios iVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "ios *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "ios_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc))" identifier = (cast_expression "(ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) ;) (expression_statement "this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));" (assignment_expression "this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc))" identifier = (cast_expression "(ios *)((int)param_2 + *(int *)(*param_2 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + *(int *)(*param_2 + -0xc))" ( (binary_expression "(int)param_2 + *(int *)(*param_2 + -0xc)" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_2 + -0xc)" * (cast_expression "(int *)(*param_2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + -0xc)" ( (binary_expression "*param_2 + -0xc" (pointer_expression "*param_2" * identifier) + number_literal) ))))) )))) ;) (labeled_statement "std::ios_base::_M_swap(this_00,(ios_base *)this);" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::_M_swap(this_00,(ios_base *)this);" statement_identifier : (ERROR ":" :) (expression_statement "_M_swap(this_00,(ios_base *)this);" (call_expression "_M_swap(this_00,(ios_base *)this)" identifier (argument_list "(this_00,(ios_base *)this)" ( identifier , (cast_expression "(ios_base *)this" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;))) (labeled_statement "std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));" (call_expression "_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c))" identifier (argument_list "((ios *)this_00,(locale *)(this_00 + 0x6c))" ( (cast_expression "(ios *)this_00" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(locale *)(this_00 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x6c)" ( (binary_expression "this_00 + 0x6c" identifier + number_literal) ))) ))) ;))) (labeled_statement "std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::_M_cache_locale(this,(locale *)(this + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale(this,(locale *)(this + 0x6c));" (call_expression "_M_cache_locale(this,(locale *)(this + 0x6c))" identifier (argument_list "(this,(locale *)(this + 0x6c))" ( identifier , (cast_expression "(locale *)(this + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x6c)" ( (binary_expression "this + 0x6c" identifier + number_literal) ))) ))) ;))) (expression_statement "uVar2 = *(undefined4 *)(this_00 + 0x70);" (assignment_expression "uVar2 = *(undefined4 *)(this_00 + 0x70)" identifier = (pointer_expression "*(undefined4 *)(this_00 + 0x70)" * (cast_expression "(undefined4 *)(this_00 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x70)" ( (binary_expression "this_00 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);" (assignment_expression "*(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70)" (pointer_expression "*(undefined4 *)(this_00 + 0x70)" * (cast_expression "(undefined4 *)(this_00 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x70)" ( (binary_expression "this_00 + 0x70" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(this + 0x70)" * (cast_expression "(undefined4 *)(this + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x70)" ( (binary_expression "this + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0x70) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0x70) = uVar2" (pointer_expression "*(undefined4 *)(this + 0x70)" * (cast_expression "(undefined4 *)(this + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x70)" ( (binary_expression "this + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(ios *)(this_00 + 0x74);" (assignment_expression "iVar1 = *(ios *)(this_00 + 0x74)" identifier = (pointer_expression "*(ios *)(this_00 + 0x74)" * (cast_expression "(ios *)(this_00 + 0x74)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x74)" ( (binary_expression "this_00 + 0x74" identifier + number_literal) ))))) ;) (expression_statement "*(ios *)(this_00 + 0x74) = this[0x74];" (assignment_expression "*(ios *)(this_00 + 0x74) = this[0x74]" (pointer_expression "*(ios *)(this_00 + 0x74)" * (cast_expression "(ios *)(this_00 + 0x74)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x74)" ( (binary_expression "this_00 + 0x74" identifier + number_literal) )))) = (subscript_expression "this[0x74]" identifier [ number_literal ])) ;) (expression_statement "this[0x74] = iVar1;" (assignment_expression "this[0x74] = iVar1" (subscript_expression "this[0x74]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = *(ios *)(this_00 + 0x75);" (assignment_expression "iVar1 = *(ios *)(this_00 + 0x75)" identifier = (pointer_expression "*(ios *)(this_00 + 0x75)" * (cast_expression "(ios *)(this_00 + 0x75)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x75)" ( (binary_expression "this_00 + 0x75" identifier + number_literal) ))))) ;) (expression_statement "*(ios *)(this_00 + 0x75) = this[0x75];" (assignment_expression "*(ios *)(this_00 + 0x75) = this[0x75]" (pointer_expression "*(ios *)(this_00 + 0x75)" * (cast_expression "(ios *)(this_00 + 0x75)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x75)" ( (binary_expression "this_00 + 0x75" identifier + number_literal) )))) = (subscript_expression "this[0x75]" identifier [ number_literal ])) ;) (expression_statement "this[0x75] = iVar1;" (assignment_expression "this[0x75] = iVar1" (subscript_expression "this[0x75]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));" statement_identifier : (ERROR ":" :) (expression_statement "operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));" (assignment_expression "operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1))" identifier = (parenthesized_expression "((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1))" ( (comma_expression "(filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1)" (cast_expression "(filebuf *)(param_1 + 1)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) , (cast_expression "(filebuf *)(param_2 + 1)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) )))) ))) ;))) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )))) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) ))) ;))) (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 *)) ) IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;))) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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) )))) = (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) )))) = 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (assignment_expression IDENT = (parenthesized_expression ( (comma_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;))) (return_statement return IDENT ;) })))
(function_definition "int * FUN_0036cf98(int *param_1,int *param_2)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  ios *this;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));\n  std::ios_base::_M_swap(this_00,(ios_base *)this);\n  std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(this_00 + 0x70);\n  *(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);\n  *(undefined4 *)(this + 0x70) = uVar2;\n  iVar1 = *(ios *)(this_00 + 0x74);\n  *(ios *)(this_00 + 0x74) = this[0x74];\n  this[0x74] = iVar1;\n  iVar1 = *(ios *)(this_00 + 0x75);\n  *(ios *)(this_00 + 0x75) = this[0x75];\n  this[0x75] = iVar1;\n  std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* FUN_0036cf98(int *param_1,int *param_2)" (* "*") (function_declarator "FUN_0036cf98(int *param_1,int *param_2)" (identifier "FUN_0036cf98") (parameter_list "(int *param_1,int *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  ios iVar1;\n  undefined4 uVar2;\n  ios *this;\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));\n  std::ios_base::_M_swap(this_00,(ios_base *)this);\n  std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(this_00 + 0x70);\n  *(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);\n  *(undefined4 *)(this + 0x70) = uVar2;\n  iVar1 = *(ios *)(this_00 + 0x74);\n  *(ios *)(this_00 + 0x74) = this[0x74];\n  this[0x74] = iVar1;\n  iVar1 = *(ios *)(this_00 + 0x75);\n  *(ios *)(this_00 + 0x75) = this[0x75];\n  this[0x75] = iVar1;\n  std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));\n  return param_1;\n}" ({ "{") (declaration "ios iVar1;" (type_identifier "ios") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "ios *this;" (type_identifier "ios") (pointer_declarator "*this" (* "*") (identifier "this")) (; ";")) (declaration "ios_base *this_00;" (type_identifier "ios_base") (pointer_declarator "*this_00" (* "*") (identifier "this_00")) (; ";")) (expression_statement "this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc))" (identifier "this_00") (= "=") (cast_expression "(ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (; ";")) (expression_statement "this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));" (assignment_expression "this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc))" (identifier "this") (= "=") (cast_expression "(ios *)((int)param_2 + *(int *)(*param_2 + -0xc))" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + *(int *)(*param_2 + -0xc))" (( "(") (binary_expression "(int)param_2 + *(int *)(*param_2 + -0xc)" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (pointer_expression "*(int *)(*param_2 + -0xc)" (* "*") (cast_expression "(int *)(*param_2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + -0xc)" (( "(") (binary_expression "*param_2 + -0xc" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (; ";")) (labeled_statement "std::ios_base::_M_swap(this_00,(ios_base *)this);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios_base::_M_swap(this_00,(ios_base *)this);" (statement_identifier "ios_base") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_swap(this_00,(ios_base *)this);" (call_expression "_M_swap(this_00,(ios_base *)this)" (identifier "_M_swap") (argument_list "(this_00,(ios_base *)this)" (( "(") (identifier "this_00") (, ",") (cast_expression "(ios_base *)this" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this")) () ")"))) (; ";")))) (labeled_statement "std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));" (statement_identifier "ios") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));" (call_expression "_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c))" (identifier "_M_cache_locale") (argument_list "((ios *)this_00,(locale *)(this_00 + 0x6c))" (( "(") (cast_expression "(ios *)this_00" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this_00")) (, ",") (cast_expression "(locale *)(this_00 + 0x6c)" (( "(") (type_descriptor "locale *" (type_identifier "locale") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this_00 + 0x6c)" (( "(") (binary_expression "this_00 + 0x6c" (identifier "this_00") (+ "+") (number_literal "0x6c")) () ")"))) () ")"))) (; ";")))) (labeled_statement "std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios::_M_cache_locale(this,(locale *)(this + 0x6c));" (statement_identifier "ios") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_cache_locale(this,(locale *)(this + 0x6c));" (call_expression "_M_cache_locale(this,(locale *)(this + 0x6c))" (identifier "_M_cache_locale") (argument_list "(this,(locale *)(this + 0x6c))" (( "(") (identifier "this") (, ",") (cast_expression "(locale *)(this + 0x6c)" (( "(") (type_descriptor "locale *" (type_identifier "locale") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x6c)" (( "(") (binary_expression "this + 0x6c" (identifier "this") (+ "+") (number_literal "0x6c")) () ")"))) () ")"))) (; ";")))) (expression_statement "uVar2 = *(undefined4 *)(this_00 + 0x70);" (assignment_expression "uVar2 = *(undefined4 *)(this_00 + 0x70)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(this_00 + 0x70)" (* "*") (cast_expression "(undefined4 *)(this_00 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this_00 + 0x70)" (( "(") (binary_expression "this_00 + 0x70" (identifier "this_00") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);" (assignment_expression "*(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70)" (pointer_expression "*(undefined4 *)(this_00 + 0x70)" (* "*") (cast_expression "(undefined4 *)(this_00 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this_00 + 0x70)" (( "(") (binary_expression "this_00 + 0x70" (identifier "this_00") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(this + 0x70)" (* "*") (cast_expression "(undefined4 *)(this + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x70)" (( "(") (binary_expression "this + 0x70" (identifier "this") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(this + 0x70) = uVar2;" (assignment_expression "*(undefined4 *)(this + 0x70) = uVar2" (pointer_expression "*(undefined4 *)(this + 0x70)" (* "*") (cast_expression "(undefined4 *)(this + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x70)" (( "(") (binary_expression "this + 0x70" (identifier "this") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar1 = *(ios *)(this_00 + 0x74);" (assignment_expression "iVar1 = *(ios *)(this_00 + 0x74)" (identifier "iVar1") (= "=") (pointer_expression "*(ios *)(this_00 + 0x74)" (* "*") (cast_expression "(ios *)(this_00 + 0x74)" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this_00 + 0x74)" (( "(") (binary_expression "this_00 + 0x74" (identifier "this_00") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (expression_statement "*(ios *)(this_00 + 0x74) = this[0x74];" (assignment_expression "*(ios *)(this_00 + 0x74) = this[0x74]" (pointer_expression "*(ios *)(this_00 + 0x74)" (* "*") (cast_expression "(ios *)(this_00 + 0x74)" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this_00 + 0x74)" (( "(") (binary_expression "this_00 + 0x74" (identifier "this_00") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (subscript_expression "this[0x74]" (identifier "this") ([ "[") (number_literal "0x74") (] "]"))) (; ";")) (expression_statement "this[0x74] = iVar1;" (assignment_expression "this[0x74] = iVar1" (subscript_expression "this[0x74]" (identifier "this") ([ "[") (number_literal "0x74") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "iVar1 = *(ios *)(this_00 + 0x75);" (assignment_expression "iVar1 = *(ios *)(this_00 + 0x75)" (identifier "iVar1") (= "=") (pointer_expression "*(ios *)(this_00 + 0x75)" (* "*") (cast_expression "(ios *)(this_00 + 0x75)" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this_00 + 0x75)" (( "(") (binary_expression "this_00 + 0x75" (identifier "this_00") (+ "+") (number_literal "0x75")) () ")"))))) (; ";")) (expression_statement "*(ios *)(this_00 + 0x75) = this[0x75];" (assignment_expression "*(ios *)(this_00 + 0x75) = this[0x75]" (pointer_expression "*(ios *)(this_00 + 0x75)" (* "*") (cast_expression "(ios *)(this_00 + 0x75)" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this_00 + 0x75)" (( "(") (binary_expression "this_00 + 0x75" (identifier "this_00") (+ "+") (number_literal "0x75")) () ")")))) (= "=") (subscript_expression "this[0x75]" (identifier "this") ([ "[") (number_literal "0x75") (] "]"))) (; ";")) (expression_statement "this[0x75] = iVar1;" (assignment_expression "this[0x75] = iVar1" (subscript_expression "this[0x75]" (identifier "this") ([ "[") (number_literal "0x75") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (labeled_statement "std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));" (statement_identifier "filebuf") (: ":") (ERROR ":" (: ":")) (expression_statement "operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));" (assignment_expression "operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1))" (identifier "operator") (= "=") (parenthesized_expression "((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1))" (( "(") (comma_expression "(filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1)" (cast_expression "(filebuf *)(param_1 + 1)" (( "(") (type_descriptor "filebuf *" (type_identifier "filebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (, ",") (cast_expression "(filebuf *)(param_2 + 1)" (( "(") (type_descriptor "filebuf *" (type_identifier "filebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")")))) () ")"))) (; ";")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (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: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (assignment_expression left: (identifier) right: (parenthesized_expression (comma_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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (return_statement (identifier)))))

int * MASKED(int *param_1,int *param_2)

{
  ios iVar1;
  undefined4 uVar2;
  ios *this;
  ios_base *this_00;
  
  this_00 = (ios_base *)((int)param_1 + *(int *)(*param_1 + -0xc));
  this = (ios *)((int)param_2 + *(int *)(*param_2 + -0xc));
  std::ios_base::_M_swap(this_00,(ios_base *)this);
  std::ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));
  std::ios::_M_cache_locale(this,(locale *)(this + 0x6c));
  uVar2 = *(undefined4 *)(this_00 + 0x70);
  *(undefined4 *)(this_00 + 0x70) = *(undefined4 *)(this + 0x70);
  *(undefined4 *)(this + 0x70) = uVar2;
  iVar1 = *(ios *)(this_00 + 0x74);
  *(ios *)(this_00 + 0x74) = this[0x74];
  this[0x74] = iVar1;
  iVar1 = *(ios *)(this_00 + 0x75);
  *(ios *)(this_00 + 0x75) = this[0x75];
  this[0x75] = iVar1;
  std::filebuf::operator=((filebuf *)(param_1 + 1),(filebuf *)(param_2 + 1));
  return param_1;
}

