
/* std::ios::move(std::ios&) */

void __thiscall std::ios::move(ios *this,ios *param_1)

{
  ios iVar1;
  undefined4 uVar2;
  int in_t9;
  
  (**(code **)(in_t9 + 0x15eccc))();
  _M_cache_locale(this,(locale *)(this + 0x6c));
  uVar2 = *(undefined4 *)(param_1 + 0x70);
  *(undefined4 *)(param_1 + 0x70) = 0;
  *(undefined4 *)(this + 0x70) = uVar2;
  this[0x74] = param_1[0x74];
  iVar1 = param_1[0x75];
  *(undefined4 *)(this + 0x78) = 0;
  this[0x75] = iVar1;
  return;
}



void FUN_00366640(ios *param_1,int param_2)

{
  ios iVar1;
  undefined4 uVar2;
  int in_t9;
  
  (**(code **)(in_t9 + 0x15eccc))();
  std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));
  uVar2 = *(undefined4 *)(param_2 + 0x70);
  *(undefined4 *)(param_2 + 0x70) = 0;
  *(undefined4 *)(param_1 + 0x70) = uVar2;
  param_1[0x74] = *(ios *)(param_2 + 0x74);
  iVar1 = *(ios *)(param_2 + 0x75);
  *(undefined4 *)(param_1 + 0x78) = 0;
  param_1[0x75] = iVar1;
  return;
}


lui gp,0x16
addiu gp,gp,0x2c00
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x3f34(gp)
sw ra,0x24(sp)
sw s1,0x20(sp)
or s1,a1,zero
sw s0,0x1c(sp)
sw gp,0x10(sp)
jalr t9
_or s0,a0,zero
addiu a1,s0,0x6c
lw gp,0x10(sp)
lw t9,-0x3f30(gp)
bal 0x00366004
_or a0,s0,zero
lw v0,0x70(s1)
sw zero,0x70(s1)
sw v0,0x70(s0)
lb v0,0x74(s1)
sb v0,0x74(s0)
lbu v0,0x75(s1)
lw ra,0x24(sp)
lw s1,0x20(sp)
sw zero,0x78(s0)
sb v0,0x75(s0)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_00366640(ios *param_1,int param_2)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));\n  uVar2 = *(undefined4 *)(param_2 + 0x70);\n  *(undefined4 *)(param_2 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x70) = uVar2;\n  param_1[0x74] = *(ios *)(param_2 + 0x74);\n  iVar1 = *(ios *)(param_2 + 0x75);\n  *(undefined4 *)(param_1 + 0x78) = 0;\n  param_1[0x75] = iVar1;\n  return;\n}\n\n" (function_definition "void FUN_00366640(ios *param_1,int param_2)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));\n  uVar2 = *(undefined4 *)(param_2 + 0x70);\n  *(undefined4 *)(param_2 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x70) = uVar2;\n  param_1[0x74] = *(ios *)(param_2 + 0x74);\n  iVar1 = *(ios *)(param_2 + 0x75);\n  *(undefined4 *)(param_1 + 0x78) = 0;\n  param_1[0x75] = iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_00366640(ios *param_1,int param_2)" identifier (parameter_list "(ios *param_1,int param_2)" ( (parameter_declaration "ios *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));\n  uVar2 = *(undefined4 *)(param_2 + 0x70);\n  *(undefined4 *)(param_2 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x70) = uVar2;\n  param_1[0x74] = *(ios *)(param_2 + 0x74);\n  iVar1 = *(ios *)(param_2 + 0x75);\n  *(undefined4 *)(param_1 + 0x78) = 0;\n  param_1[0x75] = iVar1;\n  return;\n}" { (declaration "ios iVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "(**(code **)(in_t9 + 0x15eccc))();" (call_expression "(**(code **)(in_t9 + 0x15eccc))()" (parenthesized_expression "(**(code **)(in_t9 + 0x15eccc))" ( (pointer_expression "**(code **)(in_t9 + 0x15eccc)" * (pointer_expression "*(code **)(in_t9 + 0x15eccc)" * (cast_expression "(code **)(in_t9 + 0x15eccc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x15eccc)" ( (binary_expression "in_t9 + 0x15eccc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (labeled_statement "std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));" (call_expression "_M_cache_locale(param_1,(locale *)(param_1 + 0x6c))" identifier (argument_list "(param_1,(locale *)(param_1 + 0x6c))" ( identifier , (cast_expression "(locale *)(param_1 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))) ))) ;))) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x70);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x70)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x70)" * (cast_expression "(undefined4 *)(param_2 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x70)" ( (binary_expression "param_2 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x70)" * (cast_expression "(undefined4 *)(param_2 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x70)" ( (binary_expression "param_2 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_1[0x74] = *(ios *)(param_2 + 0x74);" (assignment_expression "param_1[0x74] = *(ios *)(param_2 + 0x74)" (subscript_expression "param_1[0x74]" identifier [ number_literal ]) = (pointer_expression "*(ios *)(param_2 + 0x74)" * (cast_expression "(ios *)(param_2 + 0x74)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x74)" ( (binary_expression "param_2 + 0x74" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(ios *)(param_2 + 0x75);" (assignment_expression "iVar1 = *(ios *)(param_2 + 0x75)" identifier = (pointer_expression "*(ios *)(param_2 + 0x75)" * (cast_expression "(ios *)(param_2 + 0x75)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x75)" ( (binary_expression "param_2 + 0x75" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x78) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x78) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x78)" * (cast_expression "(undefined4 *)(param_1 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x75] = iVar1;" (assignment_expression "param_1[0x75] = iVar1" (subscript_expression "param_1[0x75]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::ios::move(std::ios&) */\n\nvoid __thiscall std::ios::move(ios *this,ios *param_1)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  _M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(param_1 + 0x70);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar2;\n  this[0x74] = param_1[0x74];\n  iVar1 = param_1[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  this[0x75] = iVar1;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ios::move(ios *this,ios *param_1)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  _M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(param_1 + 0x70);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar2;\n  this[0x74] = param_1[0x74];\n  iVar1 = param_1[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  this[0x75] = iVar1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios::" identifier : : identifier : :) (function_declarator "move(ios *this,ios *param_1)" identifier (parameter_list "(ios *this,ios *param_1)" ( (parameter_declaration "ios *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ios *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  _M_cache_locale(this,(locale *)(this + 0x6c));\n  uVar2 = *(undefined4 *)(param_1 + 0x70);\n  *(undefined4 *)(param_1 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar2;\n  this[0x74] = param_1[0x74];\n  iVar1 = param_1[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  this[0x75] = iVar1;\n  return;\n}" { (declaration "ios iVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "(**(code **)(in_t9 + 0x15eccc))();" (call_expression "(**(code **)(in_t9 + 0x15eccc))()" (parenthesized_expression "(**(code **)(in_t9 + 0x15eccc))" ( (pointer_expression "**(code **)(in_t9 + 0x15eccc)" * (pointer_expression "*(code **)(in_t9 + 0x15eccc)" * (cast_expression "(code **)(in_t9 + 0x15eccc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x15eccc)" ( (binary_expression "in_t9 + 0x15eccc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (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 *)(param_1 + 0x70);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x70)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = 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 "this[0x74] = param_1[0x74];" (assignment_expression "this[0x74] = param_1[0x74]" (subscript_expression "this[0x74]" identifier [ number_literal ]) = (subscript_expression "param_1[0x74]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = param_1[0x75];" (assignment_expression "iVar1 = param_1[0x75]" identifier = (subscript_expression "param_1[0x75]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(this + 0x78) = 0;" (assignment_expression "*(undefined4 *)(this + 0x78) = 0" (pointer_expression "*(undefined4 *)(this + 0x78)" * (cast_expression "(undefined4 *)(this + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x78)" ( (binary_expression "this + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "this[0x75] = iVar1;" (assignment_expression "this[0x75] = iVar1" (subscript_expression "this[0x75]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00366640(ios *param_1,int param_2)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));\n  uVar2 = *(undefined4 *)(param_2 + 0x70);\n  *(undefined4 *)(param_2 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x70) = uVar2;\n  param_1[0x74] = *(ios *)(param_2 + 0x74);\n  iVar1 = *(ios *)(param_2 + 0x75);\n  *(undefined4 *)(param_1 + 0x78) = 0;\n  param_1[0x75] = iVar1;\n  return;\n}\n\n" (function_definition "void FUN_00366640(ios *param_1,int param_2)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));\n  uVar2 = *(undefined4 *)(param_2 + 0x70);\n  *(undefined4 *)(param_2 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x70) = uVar2;\n  param_1[0x74] = *(ios *)(param_2 + 0x74);\n  iVar1 = *(ios *)(param_2 + 0x75);\n  *(undefined4 *)(param_1 + 0x78) = 0;\n  param_1[0x75] = iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_00366640(ios *param_1,int param_2)" identifier (parameter_list "(ios *param_1,int param_2)" ( (parameter_declaration "ios *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));\n  uVar2 = *(undefined4 *)(param_2 + 0x70);\n  *(undefined4 *)(param_2 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x70) = uVar2;\n  param_1[0x74] = *(ios *)(param_2 + 0x74);\n  iVar1 = *(ios *)(param_2 + 0x75);\n  *(undefined4 *)(param_1 + 0x78) = 0;\n  param_1[0x75] = iVar1;\n  return;\n}" { (declaration "ios iVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "(**(code **)(in_t9 + 0x15eccc))();" (call_expression "(**(code **)(in_t9 + 0x15eccc))()" (parenthesized_expression "(**(code **)(in_t9 + 0x15eccc))" ( (pointer_expression "**(code **)(in_t9 + 0x15eccc)" * (pointer_expression "*(code **)(in_t9 + 0x15eccc)" * (cast_expression "(code **)(in_t9 + 0x15eccc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x15eccc)" ( (binary_expression "in_t9 + 0x15eccc" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (labeled_statement "std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));" (call_expression "_M_cache_locale(param_1,(locale *)(param_1 + 0x6c))" identifier (argument_list "(param_1,(locale *)(param_1 + 0x6c))" ( identifier , (cast_expression "(locale *)(param_1 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))) ))) ;))) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x70);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x70)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x70)" * (cast_expression "(undefined4 *)(param_2 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x70)" ( (binary_expression "param_2 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x70)" * (cast_expression "(undefined4 *)(param_2 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x70)" ( (binary_expression "param_2 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_1[0x74] = *(ios *)(param_2 + 0x74);" (assignment_expression "param_1[0x74] = *(ios *)(param_2 + 0x74)" (subscript_expression "param_1[0x74]" identifier [ number_literal ]) = (pointer_expression "*(ios *)(param_2 + 0x74)" * (cast_expression "(ios *)(param_2 + 0x74)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x74)" ( (binary_expression "param_2 + 0x74" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(ios *)(param_2 + 0x75);" (assignment_expression "iVar1 = *(ios *)(param_2 + 0x75)" identifier = (pointer_expression "*(ios *)(param_2 + 0x75)" * (cast_expression "(ios *)(param_2 + 0x75)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x75)" ( (binary_expression "param_2 + 0x75" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x78) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x78) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x78)" * (cast_expression "(undefined4 *)(param_1 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x75] = iVar1;" (assignment_expression "param_1[0x75] = iVar1" (subscript_expression "param_1[0x75]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))) ;) (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) )))) = 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 (subscript_expression IDENT [ LIT ]) = (pointer_expression * (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) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_00366640(ios *param_1,int param_2)\n\n{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));\n  uVar2 = *(undefined4 *)(param_2 + 0x70);\n  *(undefined4 *)(param_2 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x70) = uVar2;\n  param_1[0x74] = *(ios *)(param_2 + 0x74);\n  iVar1 = *(ios *)(param_2 + 0x75);\n  *(undefined4 *)(param_1 + 0x78) = 0;\n  param_1[0x75] = iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00366640(ios *param_1,int param_2)" (identifier "FUN_00366640") (parameter_list "(ios *param_1,int param_2)" (( "(") (parameter_declaration "ios *param_1" (type_identifier "ios") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  ios iVar1;\n  undefined4 uVar2;\n  int in_t9;\n  \n  (**(code **)(in_t9 + 0x15eccc))();\n  std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));\n  uVar2 = *(undefined4 *)(param_2 + 0x70);\n  *(undefined4 *)(param_2 + 0x70) = 0;\n  *(undefined4 *)(param_1 + 0x70) = uVar2;\n  param_1[0x74] = *(ios *)(param_2 + 0x74);\n  iVar1 = *(ios *)(param_2 + 0x75);\n  *(undefined4 *)(param_1 + 0x78) = 0;\n  param_1[0x75] = iVar1;\n  return;\n}" ({ "{") (declaration "ios iVar1;" (type_identifier "ios") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int in_t9;" (primitive_type "int") (identifier "in_t9") (; ";")) (expression_statement "(**(code **)(in_t9 + 0x15eccc))();" (call_expression "(**(code **)(in_t9 + 0x15eccc))()" (parenthesized_expression "(**(code **)(in_t9 + 0x15eccc))" (( "(") (pointer_expression "**(code **)(in_t9 + 0x15eccc)" (* "*") (pointer_expression "*(code **)(in_t9 + 0x15eccc)" (* "*") (cast_expression "(code **)(in_t9 + 0x15eccc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_t9 + 0x15eccc)" (( "(") (binary_expression "in_t9 + 0x15eccc" (identifier "in_t9") (+ "+") (number_literal "0x15eccc")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));" (statement_identifier "ios") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));" (call_expression "_M_cache_locale(param_1,(locale *)(param_1 + 0x6c))" (identifier "_M_cache_locale") (argument_list "(param_1,(locale *)(param_1 + 0x6c))" (( "(") (identifier "param_1") (, ",") (cast_expression "(locale *)(param_1 + 0x6c)" (( "(") (type_descriptor "locale *" (type_identifier "locale") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))) () ")"))) (; ";")))) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x70);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x70)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x70)" (( "(") (binary_expression "param_2 + 0x70" (identifier "param_2") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x70) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x70)" (( "(") (binary_expression "param_2 + 0x70" (identifier "param_2") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x70) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = uVar2" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "param_1[0x74] = *(ios *)(param_2 + 0x74);" (assignment_expression "param_1[0x74] = *(ios *)(param_2 + 0x74)" (subscript_expression "param_1[0x74]" (identifier "param_1") ([ "[") (number_literal "0x74") (] "]")) (= "=") (pointer_expression "*(ios *)(param_2 + 0x74)" (* "*") (cast_expression "(ios *)(param_2 + 0x74)" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x74)" (( "(") (binary_expression "param_2 + 0x74" (identifier "param_2") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(ios *)(param_2 + 0x75);" (assignment_expression "iVar1 = *(ios *)(param_2 + 0x75)" (identifier "iVar1") (= "=") (pointer_expression "*(ios *)(param_2 + 0x75)" (* "*") (cast_expression "(ios *)(param_2 + 0x75)" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x75)" (( "(") (binary_expression "param_2 + 0x75" (identifier "param_2") (+ "+") (number_literal "0x75")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x78) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x78) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x78)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x78)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x75] = iVar1;" (assignment_expression "param_1[0x75] = iVar1" (subscript_expression "param_1[0x75]" (identifier "param_1") ([ "[") (number_literal "0x75") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ios::move(std::ios&) */

void __thiscall std::type_1::function_1(type_1 *var_3,type_1 *var_4)

{
  type_1 iVar1;
  type_2 uVar2;
  int var_1;
  
  (**(type_3 **)(var_1 + 0x15eccc))();
  var_2(var_3,(type_4 *)(var_3 + 0x6c));
  uVar2 = *(type_2 *)(var_4 + 0x70);
  *(type_2 *)(var_4 + 0x70) = 0;
  *(type_2 *)(var_3 + 0x70) = uVar2;
  var_3[0x74] = var_4[0x74];
  iVar1 = var_4[0x75];
  *(type_2 *)(var_3 + 0x78) = 0;
  var_3[0x75] = iVar1;
  return;
}


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

void MASKED(ios *param_1,int param_2)

{
  ios iVar1;
  undefined4 uVar2;
  int in_t9;
  
  (**(code **)(in_t9 + 0x15eccc))();
  std::ios::_M_cache_locale(param_1,(locale *)(param_1 + 0x6c));
  uVar2 = *(undefined4 *)(param_2 + 0x70);
  *(undefined4 *)(param_2 + 0x70) = 0;
  *(undefined4 *)(param_1 + 0x70) = uVar2;
  param_1[0x74] = *(ios *)(param_2 + 0x74);
  iVar1 = *(ios *)(param_2 + 0x75);
  *(undefined4 *)(param_1 + 0x78) = 0;
  param_1[0x75] = iVar1;
  return;
}

