
/* std::ifstream::ifstream(std::ifstream&&) */

void __thiscall std::ifstream::ifstream(ifstream *this,ifstream *param_1)

{
  ios_base iVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int *in_a2;
  ios_base *this_00;
  ios_base *piVar7;
  
  iVar2 = *(int *)(param_1 + 4);
  iVar4 = *(int *)(iVar2 + -0xc);
  iVar6 = in_a2[1];
  *(int *)this = iVar2;
  iVar5 = *in_a2;
  *(undefined4 *)(this + iVar4) = *(undefined4 *)(param_1 + 8);
  *(int *)(this + 4) = iVar6;
  this_00 = (ios_base *)(this + *(int *)(iVar2 + -0xc));
  piVar7 = (ios_base *)((int)in_a2 + *(int *)(iVar5 + -0xc));
  ios_base::_M_move(this_00,piVar7);
  ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));
  uVar3 = *(undefined4 *)(piVar7 + 0x70);
  *(undefined4 *)(piVar7 + 0x70) = 0;
  *(undefined4 *)(this_00 + 0x70) = uVar3;
  this_00[0x74] = piVar7[0x74];
  iVar1 = piVar7[0x75];
  *(undefined4 *)(this_00 + 0x78) = 0;
  iVar2 = *(int *)param_1;
  this_00[0x75] = iVar1;
  in_a2[1] = 0;
  *(int *)this = iVar2;
                    /* try { // try from 0036bda4 to 0036bdab has its CatchHandler @ 0036bde0 */
  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0xc);
  filebuf::filebuf((filebuf *)(this + 8),(filebuf *)(in_a2 + 2));
  *(filebuf **)(this + *(int *)(*(int *)this + -0xc) + 0x78) = (filebuf *)(this + 8);
  return;
}



void FUN_0036bcc4(int *param_1,int *param_2,int *param_3)

{
  ios_base iVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  ios_base *this;
  ios_base *piVar7;
  
  iVar2 = param_2[1];
  iVar4 = *(int *)(iVar2 + -0xc);
  iVar6 = param_3[1];
  *param_1 = iVar2;
  iVar5 = *param_3;
  *(int *)((int)param_1 + iVar4) = param_2[2];
  param_1[1] = iVar6;
  this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));
  piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));
  std::ios_base::_M_move(this,piVar7);
  std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));
  uVar3 = *(undefined4 *)(piVar7 + 0x70);
  *(undefined4 *)(piVar7 + 0x70) = 0;
  *(undefined4 *)(this + 0x70) = uVar3;
  this[0x74] = piVar7[0x74];
  iVar1 = piVar7[0x75];
  *(undefined4 *)(this + 0x78) = 0;
  iVar2 = *param_2;
  this[0x75] = iVar1;
  param_3[1] = 0;
  *param_1 = iVar2;
                    /* try { // try from 0036bda4 to 0036bdab has its CatchHandler @ 0036bde0 */
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];
  std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));
  *(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);
  return;
}


lui gp,0x16
addiu gp,gp,-0x2a84
addu gp,gp,t9
lw v0,0x4(a1)
addiu sp,sp,-0x38
lw t9,-0x3f34(gp)
sw gp,0x10(sp)
sw s4,0x2c(sp)
or s4,a1,zero
sw s3,0x28(sp)
or s3,a2,zero
sw ra,0x34(sp)
sw s5,0x30(sp)
addiu s5,a0,0x8
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
or s0,a0,zero
lw v1,-0xc(v0)
lw a1,0x4(a2)
sw v0,0x0(a0)
lw a0,0x0(s3)
addu v1,s0,v1
lw a2,0x8(s4)
sw a2,0x0(v1)
sw a1,0x4(s0)
lw s1,-0xc(v0)
lw s2,-0xc(a0)
addu s1,s0,s1
addu s2,s3,s2
or a0,s1,zero
bal 0x00388e7c
_or a1,s2,zero
addiu a1,s1,0x6c
lw gp,0x10(sp)
lw t9,-0x3f30(gp)
bal 0x00366004
_or a0,s1,zero
addiu a1,s3,0x8
lw v0,0x70(s2)
or a0,s5,zero
lw gp,0x10(sp)
sw zero,0x70(s2)
sw v0,0x70(s1)
lb v0,0x74(s2)
lw t9,-0x3da0(gp)
sb v0,0x74(s1)
lbu v1,0x75(s2)
sw zero,0x78(s1)
lw v0,0x0(s4)
sb v1,0x75(s1)
sw zero,0x4(s3)
sw v0,0x0(s0)
lw v0,-0xc(v0)
lw v1,0xc(s4)
addu v0,s0,v0
bal 0x00368f74
_sw v1,0x0(v0)
lw v0,0x0(s0)
lw ra,0x34(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw v0,-0xc(v0)
lw s2,0x24(sp)
lw s1,0x20(sp)
addu s0,s0,v0
sw s5,0x78(s0)
lw s5,0x30(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "void FUN_0036bcc4(int *param_1,int *param_2,int *param_3)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  ios_base *this;\n  ios_base *piVar7;\n  \n  iVar2 = param_2[1];\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = param_3[1];\n  *param_1 = iVar2;\n  iVar5 = *param_3;\n  *(int *)((int)param_1 + iVar4) = param_2[2];\n  param_1[1] = iVar6;\n  this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));\n  std::ios_base::_M_move(this,piVar7);\n  std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar3;\n  this[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  iVar2 = *param_2;\n  this[0x75] = iVar1;\n  param_3[1] = 0;\n  *param_1 = iVar2;\n                    /* try { // try from 0036bda4 to 0036bdab has its CatchHandler @ 0036bde0 */\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));\n  *(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);\n  return;\n}\n\n" (function_definition "void FUN_0036bcc4(int *param_1,int *param_2,int *param_3)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  ios_base *this;\n  ios_base *piVar7;\n  \n  iVar2 = param_2[1];\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = param_3[1];\n  *param_1 = iVar2;\n  iVar5 = *param_3;\n  *(int *)((int)param_1 + iVar4) = param_2[2];\n  param_1[1] = iVar6;\n  this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));\n  std::ios_base::_M_move(this,piVar7);\n  std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar3;\n  this[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  iVar2 = *param_2;\n  this[0x75] = iVar1;\n  param_3[1] = 0;\n  *param_1 = iVar2;\n                    /* try { // try from 0036bda4 to 0036bdab has its CatchHandler @ 0036bde0 */\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));\n  *(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);\n  return;\n}" primitive_type (function_declarator "FUN_0036bcc4(int *param_1,int *param_2,int *param_3)" identifier (parameter_list "(int *param_1,int *param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  ios_base *this;\n  ios_base *piVar7;\n  \n  iVar2 = param_2[1];\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = param_3[1];\n  *param_1 = iVar2;\n  iVar5 = *param_3;\n  *(int *)((int)param_1 + iVar4) = param_2[2];\n  param_1[1] = iVar6;\n  this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));\n  std::ios_base::_M_move(this,piVar7);\n  std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar3;\n  this[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  iVar2 = *param_2;\n  this[0x75] = iVar1;\n  param_3[1] = 0;\n  *param_1 = iVar2;\n                    /* try { // try from 0036bda4 to 0036bdab has its CatchHandler @ 0036bde0 */\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));\n  *(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);\n  return;\n}" { (declaration "ios_base iVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "ios_base *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "ios_base *piVar7;" type_identifier (pointer_declarator "*piVar7" * identifier) ;) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar4 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = param_3[1];" (assignment_expression "iVar6 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*(int *)((int)param_1 + iVar4) = param_2[2];" (assignment_expression "*(int *)((int)param_1 + iVar4) = param_2[2]" (pointer_expression "*(int *)((int)param_1 + iVar4)" * (cast_expression "(int *)((int)param_1 + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar4)" ( (binary_expression "(int)param_1 + iVar4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar6;" (assignment_expression "param_1[1] = iVar6" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));" (assignment_expression "this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc))" identifier = (cast_expression "(ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) ;) (expression_statement "piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));" (assignment_expression "piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc))" identifier = (cast_expression "(ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc))" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + *(int *)(iVar5 + -0xc))" ( (binary_expression "(int)param_3 + *(int *)(iVar5 + -0xc)" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar5 + -0xc)" * (cast_expression "(int *)(iVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) ))))) )))) ;) (labeled_statement "std::ios_base::_M_move(this,piVar7);" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::_M_move(this,piVar7);" statement_identifier : (ERROR ":" :) (expression_statement "_M_move(this,piVar7);" (call_expression "_M_move(this,piVar7)" identifier (argument_list "(this,piVar7)" ( identifier , identifier ))) ;))) (labeled_statement "std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale((ios *)this,(locale *)(this + 0x6c));" (call_expression "_M_cache_locale((ios *)this,(locale *)(this + 0x6c))" identifier (argument_list "((ios *)this,(locale *)(this + 0x6c))" ( (cast_expression "(ios *)this" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) 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 "uVar3 = *(undefined4 *)(piVar7 + 0x70);" (assignment_expression "uVar3 = *(undefined4 *)(piVar7 + 0x70)" identifier = (pointer_expression "*(undefined4 *)(piVar7 + 0x70)" * (cast_expression "(undefined4 *)(piVar7 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar7 + 0x70)" ( (binary_expression "piVar7 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(piVar7 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(piVar7 + 0x70) = 0" (pointer_expression "*(undefined4 *)(piVar7 + 0x70)" * (cast_expression "(undefined4 *)(piVar7 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar7 + 0x70)" ( (binary_expression "piVar7 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x70) = uVar3;" (assignment_expression "*(undefined4 *)(this + 0x70) = uVar3" (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] = piVar7[0x74];" (assignment_expression "this[0x74] = piVar7[0x74]" (subscript_expression "this[0x74]" identifier [ number_literal ]) = (subscript_expression "piVar7[0x74]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = piVar7[0x75];" (assignment_expression "iVar1 = piVar7[0x75]" identifier = (subscript_expression "piVar7[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 "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "this[0x75] = iVar1;" (assignment_expression "this[0x75] = iVar1" (subscript_expression "this[0x75]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) comment (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (labeled_statement "std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));" (call_expression "filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2))" identifier (argument_list "((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2))" ( (cast_expression "(filebuf *)(param_1 + 2)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) , (cast_expression "(filebuf *)(param_3 + 2)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 2)" ( (binary_expression "param_3 + 2" identifier + number_literal) ))) ))) ;))) (expression_statement "*(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);" (assignment_expression "*(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2)" (pointer_expression "*(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "filebuf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (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) ))))) + number_literal) )))) = (cast_expression "(filebuf *)(param_1 + 2)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::ifstream::ifstream(std::ifstream&&) */\n\nvoid __thiscall std::ifstream::ifstream(ifstream *this,ifstream *param_1)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *in_a2;\n  ios_base *this_00;\n  ios_base *piVar7;\n  \n  iVar2 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = in_a2[1];\n  *(int *)this = iVar2;\n  iVar5 = *in_a2;\n  *(undefined4 *)(this + iVar4) = *(undefined4 *)(param_1 + 8);\n  *(int *)(this + 4) = iVar6;\n  this_00 = (ios_base *)(this + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)in_a2 + *(int *)(iVar5 + -0xc));\n  ios_base::_M_move(this_00,piVar7);\n  ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this_00 + 0x70) = uVar3;\n  this_00[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this_00 + 0x78) = 0;\n  iVar2 = *(int *)param_1;\n  this_00[0x75] = iVar1;\n  in_a2[1] = 0;\n  *(int *)this = iVar2;\n                    /* try { // try from 0036bda4 to 0036bdab has its CatchHandler @ 0036bde0 */\n  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0xc);\n  filebuf::filebuf((filebuf *)(this + 8),(filebuf *)(in_a2 + 2));\n  *(filebuf **)(this + *(int *)(*(int *)this + -0xc) + 0x78) = (filebuf *)(this + 8);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ifstream::ifstream(ifstream *this,ifstream *param_1)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *in_a2;\n  ios_base *this_00;\n  ios_base *piVar7;\n  \n  iVar2 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = in_a2[1];\n  *(int *)this = iVar2;\n  iVar5 = *in_a2;\n  *(undefined4 *)(this + iVar4) = *(undefined4 *)(param_1 + 8);\n  *(int *)(this + 4) = iVar6;\n  this_00 = (ios_base *)(this + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)in_a2 + *(int *)(iVar5 + -0xc));\n  ios_base::_M_move(this_00,piVar7);\n  ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this_00 + 0x70) = uVar3;\n  this_00[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this_00 + 0x78) = 0;\n  iVar2 = *(int *)param_1;\n  this_00[0x75] = iVar1;\n  in_a2[1] = 0;\n  *(int *)this = iVar2;\n                    /* try { // try from 0036bda4 to 0036bdab has its CatchHandler @ 0036bde0 */\n  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0xc);\n  filebuf::filebuf((filebuf *)(this + 8),(filebuf *)(in_a2 + 2));\n  *(filebuf **)(this + *(int *)(*(int *)this + -0xc) + 0x78) = (filebuf *)(this + 8);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ifstream::" identifier : : identifier : :) (function_declarator "ifstream(ifstream *this,ifstream *param_1)" identifier (parameter_list "(ifstream *this,ifstream *param_1)" ( (parameter_declaration "ifstream *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ifstream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int *in_a2;\n  ios_base *this_00;\n  ios_base *piVar7;\n  \n  iVar2 = *(int *)(param_1 + 4);\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = in_a2[1];\n  *(int *)this = iVar2;\n  iVar5 = *in_a2;\n  *(undefined4 *)(this + iVar4) = *(undefined4 *)(param_1 + 8);\n  *(int *)(this + 4) = iVar6;\n  this_00 = (ios_base *)(this + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)in_a2 + *(int *)(iVar5 + -0xc));\n  ios_base::_M_move(this_00,piVar7);\n  ios::_M_cache_locale((ios *)this_00,(locale *)(this_00 + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this_00 + 0x70) = uVar3;\n  this_00[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this_00 + 0x78) = 0;\n  iVar2 = *(int *)param_1;\n  this_00[0x75] = iVar1;\n  in_a2[1] = 0;\n  *(int *)this = iVar2;\n                    /* try { // try from 0036bda4 to 0036bdab has its CatchHandler @ 0036bde0 */\n  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0xc);\n  filebuf::filebuf((filebuf *)(this + 8),(filebuf *)(in_a2 + 2));\n  *(filebuf **)(this + *(int *)(*(int *)this + -0xc) + 0x78) = (filebuf *)(this + 8);\n  return;\n}" { (declaration "ios_base iVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int *in_a2;" primitive_type (pointer_declarator "*in_a2" * identifier) ;) (declaration "ios_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "ios_base *piVar7;" type_identifier (pointer_declarator "*piVar7" * identifier) ;) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar4 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = in_a2[1];" (assignment_expression "iVar6 = in_a2[1]" identifier = (subscript_expression "in_a2[1]" identifier [ number_literal ])) ;) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "iVar5 = *in_a2;" (assignment_expression "iVar5 = *in_a2" identifier = (pointer_expression "*in_a2" * identifier)) ;) (expression_statement "*(undefined4 *)(this + iVar4) = *(undefined4 *)(param_1 + 8);" (assignment_expression "*(undefined4 *)(this + iVar4) = *(undefined4 *)(param_1 + 8)" (pointer_expression "*(undefined4 *)(this + iVar4)" * (cast_expression "(undefined4 *)(this + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar4)" ( (binary_expression "this + iVar4" identifier + identifier) )))) = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(this + 4) = iVar6;" (assignment_expression "*(int *)(this + 4) = iVar6" (pointer_expression "*(int *)(this + 4)" * (cast_expression "(int *)(this + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "this_00 = (ios_base *)(this + *(int *)(iVar2 + -0xc));" (assignment_expression "this_00 = (ios_base *)(this + *(int *)(iVar2 + -0xc))" identifier = (cast_expression "(ios_base *)(this + *(int *)(iVar2 + -0xc))" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar2 + -0xc))" ( (binary_expression "this + *(int *)(iVar2 + -0xc)" identifier + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) ;) (expression_statement "piVar7 = (ios_base *)((int)in_a2 + *(int *)(iVar5 + -0xc));" (assignment_expression "piVar7 = (ios_base *)((int)in_a2 + *(int *)(iVar5 + -0xc))" identifier = (cast_expression "(ios_base *)((int)in_a2 + *(int *)(iVar5 + -0xc))" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)in_a2 + *(int *)(iVar5 + -0xc))" ( (binary_expression "(int)in_a2 + *(int *)(iVar5 + -0xc)" (cast_expression "(int)in_a2" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar5 + -0xc)" * (cast_expression "(int *)(iVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) ))))) )))) ;) (labeled_statement "ios_base::_M_move(this_00,piVar7);" statement_identifier : (ERROR ":" :) (expression_statement "_M_move(this_00,piVar7);" (call_expression "_M_move(this_00,piVar7)" identifier (argument_list "(this_00,piVar7)" ( identifier , identifier ))) ;)) (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) ))) ))) ;)) (expression_statement "uVar3 = *(undefined4 *)(piVar7 + 0x70);" (assignment_expression "uVar3 = *(undefined4 *)(piVar7 + 0x70)" identifier = (pointer_expression "*(undefined4 *)(piVar7 + 0x70)" * (cast_expression "(undefined4 *)(piVar7 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar7 + 0x70)" ( (binary_expression "piVar7 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(piVar7 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(piVar7 + 0x70) = 0" (pointer_expression "*(undefined4 *)(piVar7 + 0x70)" * (cast_expression "(undefined4 *)(piVar7 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar7 + 0x70)" ( (binary_expression "piVar7 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this_00 + 0x70) = uVar3;" (assignment_expression "*(undefined4 *)(this_00 + 0x70) = uVar3" (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 "this_00[0x74] = piVar7[0x74];" (assignment_expression "this_00[0x74] = piVar7[0x74]" (subscript_expression "this_00[0x74]" identifier [ number_literal ]) = (subscript_expression "piVar7[0x74]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = piVar7[0x75];" (assignment_expression "iVar1 = piVar7[0x75]" identifier = (subscript_expression "piVar7[0x75]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(this_00 + 0x78) = 0;" (assignment_expression "*(undefined4 *)(this_00 + 0x78) = 0" (pointer_expression "*(undefined4 *)(this_00 + 0x78)" * (cast_expression "(undefined4 *)(this_00 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x78)" ( (binary_expression "this_00 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = *(int *)param_1;" (assignment_expression "iVar2 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "this_00[0x75] = iVar1;" (assignment_expression "this_00[0x75] = iVar1" (subscript_expression "this_00[0x75]" identifier [ number_literal ]) = identifier) ;) (expression_statement "in_a2[1] = 0;" (assignment_expression "in_a2[1] = 0" (subscript_expression "in_a2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) comment (expression_statement "*(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "*(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0xc)" (pointer_expression "*(undefined4 *)(this + *(int *)(iVar2 + -0xc))" * (cast_expression "(undefined4 *)(this + *(int *)(iVar2 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar2 + -0xc))" ( (binary_expression "this + *(int *)(iVar2 + -0xc)" identifier + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (labeled_statement "filebuf::filebuf((filebuf *)(this + 8),(filebuf *)(in_a2 + 2));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(this + 8),(filebuf *)(in_a2 + 2));" (call_expression "filebuf((filebuf *)(this + 8),(filebuf *)(in_a2 + 2))" identifier (argument_list "((filebuf *)(this + 8),(filebuf *)(in_a2 + 2))" ( (cast_expression "(filebuf *)(this + 8)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) , (cast_expression "(filebuf *)(in_a2 + 2)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a2 + 2)" ( (binary_expression "in_a2 + 2" identifier + number_literal) ))) ))) ;)) (expression_statement "*(filebuf **)(this + *(int *)(*(int *)this + -0xc) + 0x78) = (filebuf *)(this + 8);" (assignment_expression "*(filebuf **)(this + *(int *)(*(int *)this + -0xc) + 0x78) = (filebuf *)(this + 8)" (pointer_expression "*(filebuf **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" * (cast_expression "(filebuf **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" ( (type_descriptor "filebuf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x78)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x78" (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) ))))) + number_literal) )))) = (cast_expression "(filebuf *)(this + 8)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0036bcc4(int *param_1,int *param_2,int *param_3)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  ios_base *this;\n  ios_base *piVar7;\n  \n  iVar2 = param_2[1];\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = param_3[1];\n  *param_1 = iVar2;\n  iVar5 = *param_3;\n  *(int *)((int)param_1 + iVar4) = param_2[2];\n  param_1[1] = iVar6;\n  this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));\n  std::ios_base::_M_move(this,piVar7);\n  std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar3;\n  this[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  iVar2 = *param_2;\n  this[0x75] = iVar1;\n  param_3[1] = 0;\n  *param_1 = iVar2;\n                    \n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));\n  *(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);\n  return;\n}\n\n" (function_definition "void FUN_0036bcc4(int *param_1,int *param_2,int *param_3)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  ios_base *this;\n  ios_base *piVar7;\n  \n  iVar2 = param_2[1];\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = param_3[1];\n  *param_1 = iVar2;\n  iVar5 = *param_3;\n  *(int *)((int)param_1 + iVar4) = param_2[2];\n  param_1[1] = iVar6;\n  this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));\n  std::ios_base::_M_move(this,piVar7);\n  std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar3;\n  this[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  iVar2 = *param_2;\n  this[0x75] = iVar1;\n  param_3[1] = 0;\n  *param_1 = iVar2;\n                    \n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));\n  *(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);\n  return;\n}" primitive_type (function_declarator "FUN_0036bcc4(int *param_1,int *param_2,int *param_3)" identifier (parameter_list "(int *param_1,int *param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  ios_base *this;\n  ios_base *piVar7;\n  \n  iVar2 = param_2[1];\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = param_3[1];\n  *param_1 = iVar2;\n  iVar5 = *param_3;\n  *(int *)((int)param_1 + iVar4) = param_2[2];\n  param_1[1] = iVar6;\n  this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));\n  std::ios_base::_M_move(this,piVar7);\n  std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar3;\n  this[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  iVar2 = *param_2;\n  this[0x75] = iVar1;\n  param_3[1] = 0;\n  *param_1 = iVar2;\n                    \n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));\n  *(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);\n  return;\n}" { (declaration "ios_base iVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "ios_base *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "ios_base *piVar7;" type_identifier (pointer_declarator "*piVar7" * identifier) ;) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar4 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = param_3[1];" (assignment_expression "iVar6 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "*(int *)((int)param_1 + iVar4) = param_2[2];" (assignment_expression "*(int *)((int)param_1 + iVar4) = param_2[2]" (pointer_expression "*(int *)((int)param_1 + iVar4)" * (cast_expression "(int *)((int)param_1 + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar4)" ( (binary_expression "(int)param_1 + iVar4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar6;" (assignment_expression "param_1[1] = iVar6" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));" (assignment_expression "this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc))" identifier = (cast_expression "(ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) ;) (expression_statement "piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));" (assignment_expression "piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc))" identifier = (cast_expression "(ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc))" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_3 + *(int *)(iVar5 + -0xc))" ( (binary_expression "(int)param_3 + *(int *)(iVar5 + -0xc)" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar5 + -0xc)" * (cast_expression "(int *)(iVar5 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -0xc)" ( (binary_expression "iVar5 + -0xc" identifier + number_literal) ))))) )))) ;) (labeled_statement "std::ios_base::_M_move(this,piVar7);" statement_identifier : (ERROR ":" :) (labeled_statement "ios_base::_M_move(this,piVar7);" statement_identifier : (ERROR ":" :) (expression_statement "_M_move(this,piVar7);" (call_expression "_M_move(this,piVar7)" identifier (argument_list "(this,piVar7)" ( identifier , identifier ))) ;))) (labeled_statement "std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));" statement_identifier : (ERROR ":" :) (labeled_statement "ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "_M_cache_locale((ios *)this,(locale *)(this + 0x6c));" (call_expression "_M_cache_locale((ios *)this,(locale *)(this + 0x6c))" identifier (argument_list "((ios *)this,(locale *)(this + 0x6c))" ( (cast_expression "(ios *)this" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) 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 "uVar3 = *(undefined4 *)(piVar7 + 0x70);" (assignment_expression "uVar3 = *(undefined4 *)(piVar7 + 0x70)" identifier = (pointer_expression "*(undefined4 *)(piVar7 + 0x70)" * (cast_expression "(undefined4 *)(piVar7 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar7 + 0x70)" ( (binary_expression "piVar7 + 0x70" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(piVar7 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(piVar7 + 0x70) = 0" (pointer_expression "*(undefined4 *)(piVar7 + 0x70)" * (cast_expression "(undefined4 *)(piVar7 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar7 + 0x70)" ( (binary_expression "piVar7 + 0x70" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x70) = uVar3;" (assignment_expression "*(undefined4 *)(this + 0x70) = uVar3" (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] = piVar7[0x74];" (assignment_expression "this[0x74] = piVar7[0x74]" (subscript_expression "this[0x74]" identifier [ number_literal ]) = (subscript_expression "piVar7[0x74]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = piVar7[0x75];" (assignment_expression "iVar1 = piVar7[0x75]" identifier = (subscript_expression "piVar7[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 "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "this[0x75] = iVar1;" (assignment_expression "this[0x75] = iVar1" (subscript_expression "this[0x75]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (labeled_statement "std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));" (call_expression "filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2))" identifier (argument_list "((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2))" ( (cast_expression "(filebuf *)(param_1 + 2)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) , (cast_expression "(filebuf *)(param_3 + 2)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 2)" ( (binary_expression "param_3 + 2" identifier + number_literal) ))) ))) ;))) (expression_statement "*(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);" (assignment_expression "*(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2)" (pointer_expression "*(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "filebuf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (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) ))))) + number_literal) )))) = (cast_expression "(filebuf *)(param_1 + 2)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_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 IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 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 IDENT + LIT) ))))) )))) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , 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) ))) ))) ;))) (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 ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_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 IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (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 IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_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) ))))) + LIT) )))) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (return_statement return ;) })))
(function_definition "void FUN_0036bcc4(int *param_1,int *param_2,int *param_3)\n\n{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  ios_base *this;\n  ios_base *piVar7;\n  \n  iVar2 = param_2[1];\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = param_3[1];\n  *param_1 = iVar2;\n  iVar5 = *param_3;\n  *(int *)((int)param_1 + iVar4) = param_2[2];\n  param_1[1] = iVar6;\n  this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));\n  std::ios_base::_M_move(this,piVar7);\n  std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar3;\n  this[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  iVar2 = *param_2;\n  this[0x75] = iVar1;\n  param_3[1] = 0;\n  *param_1 = iVar2;\n                    \n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));\n  *(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0036bcc4(int *param_1,int *param_2,int *param_3)" (identifier "FUN_0036bcc4") (parameter_list "(int *param_1,int *param_2,int *param_3)" (( "(") (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"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  ios_base iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  ios_base *this;\n  ios_base *piVar7;\n  \n  iVar2 = param_2[1];\n  iVar4 = *(int *)(iVar2 + -0xc);\n  iVar6 = param_3[1];\n  *param_1 = iVar2;\n  iVar5 = *param_3;\n  *(int *)((int)param_1 + iVar4) = param_2[2];\n  param_1[1] = iVar6;\n  this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));\n  piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));\n  std::ios_base::_M_move(this,piVar7);\n  std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));\n  uVar3 = *(undefined4 *)(piVar7 + 0x70);\n  *(undefined4 *)(piVar7 + 0x70) = 0;\n  *(undefined4 *)(this + 0x70) = uVar3;\n  this[0x74] = piVar7[0x74];\n  iVar1 = piVar7[0x75];\n  *(undefined4 *)(this + 0x78) = 0;\n  iVar2 = *param_2;\n  this[0x75] = iVar1;\n  param_3[1] = 0;\n  *param_1 = iVar2;\n                    \n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];\n  std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));\n  *(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);\n  return;\n}" ({ "{") (declaration "ios_base iVar1;" (type_identifier "ios_base") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "ios_base *this;" (type_identifier "ios_base") (pointer_declarator "*this" (* "*") (identifier "this")) (; ";")) (declaration "ios_base *piVar7;" (type_identifier "ios_base") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" (identifier "iVar2") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar4 = *(int *)(iVar2 + -0xc)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (expression_statement "iVar6 = param_3[1];" (assignment_expression "iVar6 = param_3[1]" (identifier "iVar6") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar5 = *param_3;" (assignment_expression "iVar5 = *param_3" (identifier "iVar5") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "*(int *)((int)param_1 + iVar4) = param_2[2];" (assignment_expression "*(int *)((int)param_1 + iVar4) = param_2[2]" (pointer_expression "*(int *)((int)param_1 + iVar4)" (* "*") (cast_expression "(int *)((int)param_1 + iVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar4)" (( "(") (binary_expression "(int)param_1 + iVar4" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "iVar4")) () ")")))) (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[1] = iVar6;" (assignment_expression "param_1[1] = iVar6" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));" (assignment_expression "this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc))" (identifier "this") (= "=") (cast_expression "(ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (; ";")) (expression_statement "piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));" (assignment_expression "piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc))" (identifier "piVar7") (= "=") (cast_expression "(ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc))" (( "(") (type_descriptor "ios_base *" (type_identifier "ios_base") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_3 + *(int *)(iVar5 + -0xc))" (( "(") (binary_expression "(int)param_3 + *(int *)(iVar5 + -0xc)" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (+ "+") (pointer_expression "*(int *)(iVar5 + -0xc)" (* "*") (cast_expression "(int *)(iVar5 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -0xc)" (( "(") (binary_expression "iVar5 + -0xc" (identifier "iVar5") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (; ";")) (labeled_statement "std::ios_base::_M_move(this,piVar7);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios_base::_M_move(this,piVar7);" (statement_identifier "ios_base") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_move(this,piVar7);" (call_expression "_M_move(this,piVar7)" (identifier "_M_move") (argument_list "(this,piVar7)" (( "(") (identifier "this") (, ",") (identifier "piVar7") () ")"))) (; ";")))) (labeled_statement "std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));" (statement_identifier "ios") (: ":") (ERROR ":" (: ":")) (expression_statement "_M_cache_locale((ios *)this,(locale *)(this + 0x6c));" (call_expression "_M_cache_locale((ios *)this,(locale *)(this + 0x6c))" (identifier "_M_cache_locale") (argument_list "((ios *)this,(locale *)(this + 0x6c))" (( "(") (cast_expression "(ios *)this" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (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 "uVar3 = *(undefined4 *)(piVar7 + 0x70);" (assignment_expression "uVar3 = *(undefined4 *)(piVar7 + 0x70)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(piVar7 + 0x70)" (* "*") (cast_expression "(undefined4 *)(piVar7 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar7 + 0x70)" (( "(") (binary_expression "piVar7 + 0x70" (identifier "piVar7") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(piVar7 + 0x70) = 0;" (assignment_expression "*(undefined4 *)(piVar7 + 0x70) = 0" (pointer_expression "*(undefined4 *)(piVar7 + 0x70)" (* "*") (cast_expression "(undefined4 *)(piVar7 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar7 + 0x70)" (( "(") (binary_expression "piVar7 + 0x70" (identifier "piVar7") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(this + 0x70) = uVar3;" (assignment_expression "*(undefined4 *)(this + 0x70) = uVar3" (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 "uVar3")) (; ";")) (expression_statement "this[0x74] = piVar7[0x74];" (assignment_expression "this[0x74] = piVar7[0x74]" (subscript_expression "this[0x74]" (identifier "this") ([ "[") (number_literal "0x74") (] "]")) (= "=") (subscript_expression "piVar7[0x74]" (identifier "piVar7") ([ "[") (number_literal "0x74") (] "]"))) (; ";")) (expression_statement "iVar1 = piVar7[0x75];" (assignment_expression "iVar1 = piVar7[0x75]" (identifier "iVar1") (= "=") (subscript_expression "piVar7[0x75]" (identifier "piVar7") ([ "[") (number_literal "0x75") (] "]"))) (; ";")) (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 "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x78)" (( "(") (binary_expression "this + 0x78" (identifier "this") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" (identifier "iVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "this[0x75] = iVar1;" (assignment_expression "this[0x75] = iVar1" (subscript_expression "this[0x75]" (identifier "this") ([ "[") (number_literal "0x75") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "param_3[1] = 0;" (assignment_expression "param_3[1] = 0" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (labeled_statement "std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));" (statement_identifier "filebuf") (: ":") (ERROR ":" (: ":")) (expression_statement "filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));" (call_expression "filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2))" (identifier "filebuf") (argument_list "((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2))" (( "(") (cast_expression "(filebuf *)(param_1 + 2)" (( "(") (type_descriptor "filebuf *" (type_identifier "filebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (, ",") (cast_expression "(filebuf *)(param_3 + 2)" (( "(") (type_descriptor "filebuf *" (type_identifier "filebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 2)" (( "(") (binary_expression "param_3 + 2" (identifier "param_3") (+ "+") (number_literal "2")) () ")"))) () ")"))) (; ";")))) (expression_statement "*(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);" (assignment_expression "*(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2)" (pointer_expression "*(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (* "*") (cast_expression "(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (type_descriptor "filebuf **" (type_identifier "filebuf") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (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")) () ")"))))) (+ "+") (number_literal "0x78")) () ")")))) (= "=") (cast_expression "(filebuf *)(param_1 + 2)" (( "(") (type_descriptor "filebuf *" (type_identifier "filebuf") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ifstream::ifstream(std::ifstream&&) */

void __thiscall std::function_1::function_1(function_1 *var_3,function_1 *var_1)

{
  type_1 iVar1;
  int var_2;
  type_2 uVar3;
  int var_4;
  int var_5;
  int iVar6;
  int *var_11;
  type_1 *var_8;
  type_1 *var_9;
  
  var_2 = *(int *)(var_1 + 4);
  var_4 = *(int *)(var_2 + -0xc);
  iVar6 = var_11[1];
  *(int *)var_3 = var_2;
  var_5 = *var_11;
  *(type_2 *)(var_3 + var_4) = *(type_2 *)(var_1 + 8);
  *(int *)(var_3 + 4) = iVar6;
  var_8 = (type_1 *)(var_3 + *(int *)(var_2 + -0xc));
  var_9 = (type_1 *)((int)var_11 + *(int *)(var_5 + -0xc));
  ios_base::var_6(var_8,var_9);
  ios::var_7((type_3 *)var_8,(type_4 *)(var_8 + 0x6c));
  uVar3 = *(type_2 *)(var_9 + 0x70);
  *(type_2 *)(var_9 + 0x70) = 0;
  *(type_2 *)(var_8 + 0x70) = uVar3;
  var_8[0x74] = var_9[0x74];
  iVar1 = var_9[0x75];
  *(type_2 *)(var_8 + 0x78) = 0;
  var_2 = *(int *)var_1;
  var_8[0x75] = iVar1;
  var_11[1] = 0;
  *(int *)var_3 = var_2;
                    /* try { // try from 0036bda4 to 0036bdab has its CatchHandler @ 0036bde0 */
  *(type_2 *)(var_3 + *(int *)(var_2 + -0xc)) = *(type_2 *)(var_1 + 0xc);
  filebuf::var_10((var_10 *)(var_3 + 8),(var_10 *)(var_11 + 2));
  *(var_10 **)(var_3 + *(int *)(*(int *)var_3 + -0xc) + 0x78) = (var_10 *)(var_3 + 8);
  return;
}


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

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

{
  ios_base iVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  ios_base *this;
  ios_base *piVar7;
  
  iVar2 = param_2[1];
  iVar4 = *(int *)(iVar2 + -0xc);
  iVar6 = param_3[1];
  *param_1 = iVar2;
  iVar5 = *param_3;
  *(int *)((int)param_1 + iVar4) = param_2[2];
  param_1[1] = iVar6;
  this = (ios_base *)((int)param_1 + *(int *)(iVar2 + -0xc));
  piVar7 = (ios_base *)((int)param_3 + *(int *)(iVar5 + -0xc));
  std::ios_base::_M_move(this,piVar7);
  std::ios::_M_cache_locale((ios *)this,(locale *)(this + 0x6c));
  uVar3 = *(undefined4 *)(piVar7 + 0x70);
  *(undefined4 *)(piVar7 + 0x70) = 0;
  *(undefined4 *)(this + 0x70) = uVar3;
  this[0x74] = piVar7[0x74];
  iVar1 = piVar7[0x75];
  *(undefined4 *)(this + 0x78) = 0;
  iVar2 = *param_2;
  this[0x75] = iVar1;
  param_3[1] = 0;
  *param_1 = iVar2;
                    /* try { // try from 0036bda4 to 0036bdab has its CatchHandler @ 0036bde0 */
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[3];
  std::filebuf::filebuf((filebuf *)(param_1 + 2),(filebuf *)(param_3 + 2));
  *(filebuf **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78) = (filebuf *)(param_1 + 2);
  return;
}

