
/* std::wistream::read(wchar_t*, int) */

wchar_t * std::wistream::read(wchar_t *param_1,int param_2)

{
  int *piVar1;
  wios *this;
  int in_a2;
  undefined4 in_a3;
  int in_t9;
  int iVar2;
  sentry local_20 [16];
  
  iVar2 = in_t9 + 0x166668;
  param_1[2] = L'\0';
  param_1[3] = L'\0';
  sentry::sentry(local_20,(wistream *)param_1,true);
  if (local_20[0] != (sentry)0x0) {
    piVar1 = *(int **)((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);
                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */
    iVar2 = (**(code **)(*piVar1 + 0x20))(piVar1,param_2,in_a2,in_a3,iVar2);
    *(int *)(param_1 + 2) = iVar2;
    if (in_a2 != iVar2) {
      this = (wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc));
      wios::clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit));
      return param_1;
    }
  }
  return param_1;
}



wistream * FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)

{
  int in_t9;
  int iVar1;
  sentry local_20 [16];
  
  iVar1 = in_t9 + 0x166668;
  *(undefined4 *)(param_1 + 4) = 0;
  std::wistream::sentry::sentry(local_20,param_1,true);
  if (local_20[0] != (sentry)0x0) {
                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */
    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))
                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,
                       param_4,iVar1);
    *(int *)(param_1 + 4) = iVar1;
    if (param_3 != iVar1) {
      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),
                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);
      return param_1;
    }
  }
  return param_1;
}


lui gp,0x16
addiu gp,gp,0x6668
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x40c4(gp)
sw s0,0x28(sp)
or s0,a0,zero
sw s1,0x2c(sp)
addiu a0,sp,0x18
sw gp,0x10(sp)
or s1,a2,zero
li a2,0x1
sw s2,0x30(sp)
sw ra,0x34(sp)
or s2,a1,zero
sw zero,0x4(s0)
bal 0x00361358
_or a1,s0,zero
lbu v0,0x18(sp)
beq v0,zero,0x00362c64
_lw ra,0x34(sp)
lw v0,0x0(s0)
or a2,s1,zero
lw v0,-0xc(v0)
addu v0,s0,v0
lw v0,0x7c(v0)
or a0,v0,zero
lw v0,0x0(v0)
lw t9,0x20(v0)
jalr t9
_or a1,s2,zero
lw gp,0x10(sp)
bne s1,v0,0x00362c7c
_sw v0,0x4(s0)
lw ra,0x34(sp)
or v0,s0,zero
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x38
lw v0,0x0(s0)
lw t9,-0x40c0(gp)
lw v0,-0xc(v0)
addu v0,s0,v0
or a0,v0,zero
lw a1,0x14(v0)
bal 0x003667f4
_ori a1,a1,0x6
or v0,s0,zero
lw ra,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "wistream * FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int in_t9;\n  int iVar1;\n  sentry local_20 [16];\n  \n  iVar1 = in_t9 + 0x166668;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::wistream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */\n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "wistream * FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int in_t9;\n  int iVar1;\n  sentry local_20 [16];\n  \n  iVar1 = in_t9 + 0x166668;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::wistream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */\n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" * (function_declarator "FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "wistream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) )))) (compound_statement "{\n  int in_t9;\n  int iVar1;\n  sentry local_20 [16];\n  \n  iVar1 = in_t9 + 0x166668;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::wistream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */\n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "int in_t9;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "sentry local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = in_t9 + 0x166668;" (assignment_expression "iVar1 = in_t9 + 0x166668" identifier = (binary_expression "in_t9 + 0x166668" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "std::wistream::sentry::sentry(local_20,param_1,true);" statement_identifier : (ERROR ":" :) (labeled_statement "wistream::sentry::sentry(local_20,param_1,true);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(local_20,param_1,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_20,param_1,true);" (call_expression "sentry(local_20,param_1,true)" identifier (argument_list "(local_20,param_1,true)" ( identifier , identifier , true ))) ;)))) (if_statement "if (local_20[0] != (sentry)0x0) {\n                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */\n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }" if (parenthesized_expression "(local_20[0] != (sentry)0x0)" ( (binary_expression "local_20[0] != (sentry)0x0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */\n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }" { comment (expression_statement "iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);" (assignment_expression "iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1)" identifier = (call_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))" ( (pointer_expression "**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" * (pointer_expression "*(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" * (cast_expression "(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" ( (binary_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20" (pointer_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" * (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1)" ( (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) , identifier , identifier , identifier , identifier )))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (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) )))) = identifier) ;) (if_statement "if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }" if (parenthesized_expression "(param_3 != iVar1)" ( (binary_expression "param_3 != iVar1" identifier != identifier) )) (compound_statement "{\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }" { (labeled_statement "std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);" statement_identifier : (ERROR ":" :) (labeled_statement "wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);" statement_identifier : (ERROR ":" :) (expression_statement "clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);" (call_expression "clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6)" identifier (argument_list "((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6)" ( (cast_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6" (pointer_expression "*(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" * (cast_expression "(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (binary_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14" (cast_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | number_literal) ))) ;))) (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wistream::read(wchar_t*, int) */\n\nwchar_t * std::wistream::read(wchar_t *param_1,int param_2)\n\n{\n  int *piVar1;\n  wios *this;\n  int in_a2;\n  undefined4 in_a3;\n  int in_t9;\n  int iVar2;\n  sentry local_20 [16];\n  \n  iVar2 = in_t9 + 0x166668;\n  param_1[2] = L'\0';\n  param_1[3] = L'\0';\n  sentry::sentry(local_20,(wistream *)param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */\n    iVar2 = (**(code **)(*piVar1 + 0x20))(piVar1,param_2,in_a2,in_a3,iVar2);\n    *(int *)(param_1 + 2) = iVar2;\n    if (in_a2 != iVar2) {\n      this = (wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc));\n      wios::clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit));\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" comment (ERROR "wchar_t * std::" (binary_expression "wchar_t * std" identifier * identifier) : :) (labeled_statement "wistream::read(wchar_t *param_1,int param_2)\n\n{\n  int *piVar1;\n  wios *this;\n  int in_a2;\n  undefined4 in_a3;\n  int in_t9;\n  int iVar2;\n  sentry local_20 [16];\n  \n  iVar2 = in_t9 + 0x166668;\n  param_1[2] = L'\0';\n  param_1[3] = L'\0';\n  sentry::sentry(local_20,(wistream *)param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */\n    iVar2 = (**(code **)(*piVar1 + 0x20))(piVar1,param_2,in_a2,in_a3,iVar2);\n    *(int *)(param_1 + 2) = iVar2;\n    if (in_a2 != iVar2) {\n      this = (wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc));\n      wios::clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit));\n      return param_1;\n    }\n  }\n  return param_1;\n}" statement_identifier : (ERROR ":read(wchar_t *param_1,int param_2)" : (call_expression "read(wchar_t *param_1,int param_2)" identifier (argument_list "(wchar_t *param_1,int param_2)" ( (binary_expression "wchar_t *param_1" identifier * identifier) , (ERROR "int" identifier) identifier )))) (compound_statement "{\n  int *piVar1;\n  wios *this;\n  int in_a2;\n  undefined4 in_a3;\n  int in_t9;\n  int iVar2;\n  sentry local_20 [16];\n  \n  iVar2 = in_t9 + 0x166668;\n  param_1[2] = L'\0';\n  param_1[3] = L'\0';\n  sentry::sentry(local_20,(wistream *)param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */\n    iVar2 = (**(code **)(*piVar1 + 0x20))(piVar1,param_2,in_a2,in_a3,iVar2);\n    *(int *)(param_1 + 2) = iVar2;\n    if (in_a2 != iVar2) {\n      this = (wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc));\n      wios::clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit));\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "wios *this;" type_identifier (pointer_declarator "*this" * identifier) ;) (declaration "int in_a2;" primitive_type identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "sentry local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = in_t9 + 0x166668;" (assignment_expression "iVar2 = in_t9 + 0x166668" identifier = (binary_expression "in_t9 + 0x166668" identifier + number_literal)) ;) (expression_statement "param_1[2] = L'\0';" (assignment_expression "param_1[2] = L'\0'" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (char_literal "L'\0'" L' escape_sequence ')) ;) (expression_statement "param_1[3] = L'\0';" (assignment_expression "param_1[3] = L'\0'" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (char_literal "L'\0'" L' escape_sequence ')) ;) (labeled_statement "sentry::sentry(local_20,(wistream *)param_1,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_20,(wistream *)param_1,true);" (call_expression "sentry(local_20,(wistream *)param_1,true)" identifier (argument_list "(local_20,(wistream *)param_1,true)" ( identifier , (cast_expression "(wistream *)param_1" ( (type_descriptor "wistream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , true ))) ;)) (if_statement "if (local_20[0] != (sentry)0x0) {\n    piVar1 = *(int **)((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */\n    iVar2 = (**(code **)(*piVar1 + 0x20))(piVar1,param_2,in_a2,in_a3,iVar2);\n    *(int *)(param_1 + 2) = iVar2;\n    if (in_a2 != iVar2) {\n      this = (wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc));\n      wios::clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit));\n      return param_1;\n    }\n  }" if (parenthesized_expression "(local_20[0] != (sentry)0x0)" ( (binary_expression "local_20[0] != (sentry)0x0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    piVar1 = *(int **)((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);\n                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */\n    iVar2 = (**(code **)(*piVar1 + 0x20))(piVar1,param_2,in_a2,in_a3,iVar2);\n    *(int *)(param_1 + 2) = iVar2;\n    if (in_a2 != iVar2) {\n      this = (wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc));\n      wios::clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit));\n      return param_1;\n    }\n  }" { (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*(int *)param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) comment (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x20))(piVar1,param_2,in_a2,in_a3,iVar2);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x20))(piVar1,param_2,in_a2,in_a3,iVar2)" identifier = (call_expression "(**(code **)(*piVar1 + 0x20))(piVar1,param_2,in_a2,in_a3,iVar2)" (parenthesized_expression "(**(code **)(*piVar1 + 0x20))" ( (pointer_expression "**(code **)(*piVar1 + 0x20)" * (pointer_expression "*(code **)(*piVar1 + 0x20)" * (cast_expression "(code **)(*piVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x20)" ( (binary_expression "*piVar1 + 0x20" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1,param_2,in_a2,in_a3,iVar2)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "*(int *)(param_1 + 2) = iVar2;" (assignment_expression "*(int *)(param_1 + 2) = iVar2" (pointer_expression "*(int *)(param_1 + 2)" * (cast_expression "(int *)(param_1 + 2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) = identifier) ;) (if_statement "if (in_a2 != iVar2) {\n      this = (wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc));\n      wios::clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit));\n      return param_1;\n    }" if (parenthesized_expression "(in_a2 != iVar2)" ( (binary_expression "in_a2 != iVar2" identifier != identifier) )) (compound_statement "{\n      this = (wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc));\n      wios::clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit));\n      return param_1;\n    }" { (expression_statement "this = (wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc));" (assignment_expression "this = (wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc))" identifier = (cast_expression "(wios *)((int)param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*(int *)param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (labeled_statement "wios::clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit));" statement_identifier : (ERROR ":" :) (expression_statement "clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit));" (call_expression "clear(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit))" identifier (argument_list "(this,*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit))" ( identifier , (binary_expression "*(_Ios_Iostate *)(this + 0x14) | (_S_failbit|_S_eofbit)" (pointer_expression "*(_Ios_Iostate *)(this + 0x14)" * (cast_expression "(_Ios_Iostate *)(this + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) | (parenthesized_expression "(_S_failbit|_S_eofbit)" ( (binary_expression "_S_failbit|_S_eofbit" identifier | identifier) ))) ))) ;)) (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "wistream * FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int in_t9;\n  int iVar1;\n  sentry local_20 [16];\n  \n  iVar1 = in_t9 + 0x166668;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::wistream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n                    \n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "wistream * FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int in_t9;\n  int iVar1;\n  sentry local_20 [16];\n  \n  iVar1 = in_t9 + 0x166668;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::wistream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n                    \n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }\n  return param_1;\n}" type_identifier (pointer_declarator "* FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" * (function_declarator "FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "wistream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) )))) (compound_statement "{\n  int in_t9;\n  int iVar1;\n  sentry local_20 [16];\n  \n  iVar1 = in_t9 + 0x166668;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::wistream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n                    \n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "int in_t9;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "sentry local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = in_t9 + 0x166668;" (assignment_expression "iVar1 = in_t9 + 0x166668" identifier = (binary_expression "in_t9 + 0x166668" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "std::wistream::sentry::sentry(local_20,param_1,true);" statement_identifier : (ERROR ":" :) (labeled_statement "wistream::sentry::sentry(local_20,param_1,true);" statement_identifier : (ERROR ":" :) (labeled_statement "sentry::sentry(local_20,param_1,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_20,param_1,true);" (call_expression "sentry(local_20,param_1,true)" identifier (argument_list "(local_20,param_1,true)" ( identifier , identifier , true ))) ;)))) (if_statement "if (local_20[0] != (sentry)0x0) {\n                    \n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }" if (parenthesized_expression "(local_20[0] != (sentry)0x0)" ( (binary_expression "local_20[0] != (sentry)0x0" (subscript_expression "local_20[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n                    \n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }" { (expression_statement "iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);" (assignment_expression "iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1)" identifier = (call_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))" ( (pointer_expression "**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" * (pointer_expression "*(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" * (cast_expression "(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" ( (binary_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20" (pointer_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" * (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1)" ( (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) , identifier , identifier , identifier , identifier )))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (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) )))) = identifier) ;) (if_statement "if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }" if (parenthesized_expression "(param_3 != iVar1)" ( (binary_expression "param_3 != iVar1" identifier != identifier) )) (compound_statement "{\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }" { (labeled_statement "std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);" statement_identifier : (ERROR ":" :) (labeled_statement "wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);" statement_identifier : (ERROR ":" :) (expression_statement "clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);" (call_expression "clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6)" identifier (argument_list "((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6)" ( (cast_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6" (pointer_expression "*(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" * (cast_expression "(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (binary_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14" (cast_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | number_literal) ))) ;))) (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (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) ;) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (labeled_statement statement_identifier : (ERROR :) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , BOOL ))) ;)))) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (cast_expression ( (type_descriptor TYPE) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) + LIT) )))) , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (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 + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) ))) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))))) ))) + LIT) )))) | LIT) ))) ;))) (return_statement return IDENT ;) })) })) (return_statement return IDENT ;) })))
(function_definition "wistream * FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int in_t9;\n  int iVar1;\n  sentry local_20 [16];\n  \n  iVar1 = in_t9 + 0x166668;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::wistream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n                    \n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }\n  return param_1;\n}" (type_identifier "wistream") (pointer_declarator "* FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" (* "*") (function_declarator "FUN_00362bd8(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" (identifier "FUN_00362bd8") (parameter_list "(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" (( "(") (parameter_declaration "wistream *param_1" (type_identifier "wistream") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")")))) (compound_statement "{\n  int in_t9;\n  int iVar1;\n  sentry local_20 [16];\n  \n  iVar1 = in_t9 + 0x166668;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::wistream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n                    \n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "int in_t9;" (primitive_type "int") (identifier "in_t9") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "sentry local_20 [16];" (type_identifier "sentry") (array_declarator "local_20 [16]" (identifier "local_20") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "iVar1 = in_t9 + 0x166668;" (assignment_expression "iVar1 = in_t9 + 0x166668" (identifier "iVar1") (= "=") (binary_expression "in_t9 + 0x166668" (identifier "in_t9") (+ "+") (number_literal "0x166668"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (labeled_statement "std::wistream::sentry::sentry(local_20,param_1,true);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wistream::sentry::sentry(local_20,param_1,true);" (statement_identifier "wistream") (: ":") (ERROR ":" (: ":")) (labeled_statement "sentry::sentry(local_20,param_1,true);" (statement_identifier "sentry") (: ":") (ERROR ":" (: ":")) (expression_statement "sentry(local_20,param_1,true);" (call_expression "sentry(local_20,param_1,true)" (identifier "sentry") (argument_list "(local_20,param_1,true)" (( "(") (identifier "local_20") (, ",") (identifier "param_1") (, ",") (true "true") () ")"))) (; ";"))))) (if_statement "if (local_20[0] != (sentry)0x0) {\n                    \n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(local_20[0] != (sentry)0x0)" (( "(") (binary_expression "local_20[0] != (sentry)0x0" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (!= "!=") (cast_expression "(sentry)0x0" (( "(") (type_descriptor "sentry" (type_identifier "sentry")) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);\n    *(int *)(param_1 + 4) = iVar1;\n    if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1);" (assignment_expression "iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))\n                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20)" (( "(") (binary_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20" (pointer_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" (* "*") (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" (* "*") (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x7c")) () ")"))))) (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,\n                       param_4,iVar1)" (( "(") (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" (* "*") (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x7c")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "*(int *)(param_1 + 4) = iVar1;" (assignment_expression "*(int *)(param_1 + 4) = iVar1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (param_3 != iVar1) {\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }" (if "if") (parenthesized_expression "(param_3 != iVar1)" (( "(") (binary_expression "param_3 != iVar1" (identifier "param_3") (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);\n      return param_1;\n    }" ({ "{") (labeled_statement "std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);" (statement_identifier "wios") (: ":") (ERROR ":" (: ":")) (expression_statement "clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);" (call_expression "clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6)" (identifier "clear") (argument_list "((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6)" (( "(") (cast_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" (( "(") (type_descriptor "wios *" (type_identifier "wios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) () ")"))) (, ",") (binary_expression "*(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6" (pointer_expression "*(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" (* "*") (cast_expression "(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" (( "(") (binary_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14" (cast_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" (( "(") (type_descriptor "wios *" (type_identifier "wios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" (identifier "param_1") (+ "+") (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" (* "*") (cast_expression "(int *)(*(int *)param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)param_1 + -0xc)" (( "(") (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" (* "*") (cast_expression "(int *)param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (+ "+") (number_literal "-0xc")) () ")"))))) () ")"))) (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "6")) () ")"))) (; ";")))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (true))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))) right: (number_literal))))) (identifier) (identifier) (identifier) (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: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))))) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))))) right: (number_literal))))) right: (number_literal))))))) (return_statement (identifier)))))) (return_statement (identifier)))))

wistream * MASKED(wistream *param_1,undefined4 param_2,int param_3,undefined4 param_4)

{
  int in_t9;
  int iVar1;
  sentry local_20 [16];
  
  iVar1 = in_t9 + 0x166668;
  *(undefined4 *)(param_1 + 4) = 0;
  std::wistream::sentry::sentry(local_20,param_1,true);
  if (local_20[0] != (sentry)0x0) {
                    /* try { // try from 00362c4c to 00362c53 has its CatchHandler @ 00362cb8 */
    iVar1 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c) + 0x20))
                      (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c),param_2,param_3,
                       param_4,iVar1);
    *(int *)(param_1 + 4) = iVar1;
    if (param_3 != iVar1) {
      std::wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),
                       *(uint *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 6);
      return param_1;
    }
  }
  return param_1;
}

