
/* std::istream::readsome(char*, int) */

undefined4 std::istream::readsome(char *param_1,int param_2)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  int in_a2;
  undefined4 in_a3;
  int in_t9;
  int iVar4;
  sentry local_20 [16];
  
  iVar4 = in_t9 + 0x156fa8;
  param_1[4] = '\0';
  param_1[5] = '\0';
  param_1[6] = '\0';
  param_1[7] = '\0';
  sentry::sentry(local_20,(istream *)param_1,true);
  if (local_20[0] != (sentry)0x0) {
    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);
    iVar1 = piVar3[3] - piVar3[2];
    if (iVar1 == 0) {
                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */
      iVar1 = (**(code **)(*piVar3 + 0x1c))();
    }
    if (0 < iVar1) {
      if (iVar1 <= in_a2) {
        in_a2 = iVar1;
      }
                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */
      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))
                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,
                         in_a3,iVar4);
      *(undefined4 *)(param_1 + 4) = uVar2;
      return uVar2;
    }
    if (iVar1 == -1) {
      ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),
                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |
                 _S_eofbit);
    }
  }
  return *(undefined4 *)(param_1 + 4);
}



undefined4 FUN_002e3228(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  int in_t9;
  int iVar4;
  sentry local_20 [16];
  
  iVar4 = in_t9 + 0x156fa8;
  *(undefined4 *)(param_1 + 4) = 0;
  std::istream::sentry::sentry(local_20,param_1,true);
  if (local_20[0] != (sentry)0x0) {
    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);
    iVar1 = piVar3[3] - piVar3[2];
    if (iVar1 == 0) {
                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */
      iVar1 = (**(code **)(*piVar3 + 0x1c))();
    }
    if (0 < iVar1) {
      if (iVar1 <= param_3) {
        param_3 = iVar1;
      }
                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */
      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))
                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,
                         param_3,param_4,iVar4);
      *(undefined4 *)(param_1 + 4) = uVar2;
      return uVar2;
    }
    if (iVar1 == -1) {
      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),
                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);
    }
  }
  return *(undefined4 *)(param_1 + 4);
}


lui gp,0x15
addiu gp,gp,0x6fa8
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x4458(gp)
sw s0,0x28(sp)
or s0,a0,zero
sw gp,0x10(sp)
addiu a0,sp,0x18
sw s1,0x2c(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 0x002e1748
_or a1,s0,zero
lbu v0,0x18(sp)
beq v0,zero,0x002e3340
_lw gp,0x10(sp)
lw v0,0x0(s0)
lw v0,-0xc(v0)
addu v0,s0,v0
lw a0,0x78(v0)
lw v0,0xc(a0)
lw a2,0x8(a0)
subu v0,v0,a2
beq v0,zero,0x002e335c
_nop
blez v0,0x002e3378
_li v1,-0x1
lw v1,0x0(s0)
slt a2,s1,v0
movz s1,v0,a2
or a1,s2,zero
lw v0,-0xc(v1)
addu v0,s0,v0
lw v0,0x78(v0)
or a0,v0,zero
lw v0,0x0(v0)
lw t9,0x20(v0)
jalr t9
_or a2,s1,zero
lw ra,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
sw v0,0x4(s0)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x38
lw ra,0x34(sp)
lw v0,0x4(s0)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x38
lw v0,0x0(a0)
lw t9,0x1c(v0)
jalr t9
_nop
bgtz v0,0x002e32a8
_lw gp,0x10(sp)
li v1,-0x1
bne v0,v1,0x002e3340
_lw t9,-0x7184(gp)
lw v0,0x0(s0)
lw v0,-0xc(v0)
addu v0,s0,v0
or a0,v0,zero
lw a1,0x14(v0)
bal 0x002eaa98
_ori a1,a1,0x2
b 0x002e3344
_lw ra,0x34(sp)
(translation_unit "undefined4 FUN_002e3228(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::istream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}\n\n" (function_definition "undefined4 FUN_002e3228(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::istream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}" type_identifier (function_declarator "FUN_002e3228(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "istream *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 iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::istream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "sentry local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "iVar4 = in_t9 + 0x156fa8;" (assignment_expression "iVar4 = in_t9 + 0x156fa8" identifier = (binary_expression "in_t9 + 0x156fa8" 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::istream::sentry::sentry(local_20,param_1,true);" statement_identifier : (ERROR ":" :) (labeled_statement "istream::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    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\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    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }" { (expression_statement "piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);" (assignment_expression "piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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) ))))) ;) (expression_statement "iVar1 = piVar3[3] - piVar3[2];" (assignment_expression "iVar1 = piVar3[3] - piVar3[2]" identifier = (binary_expression "piVar3[3] - piVar3[2]" (subscript_expression "piVar3[3]" identifier [ number_literal ]) - (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }" { comment (expression_statement "iVar1 = (**(code **)(*piVar3 + 0x1c))();" (assignment_expression "iVar1 = (**(code **)(*piVar3 + 0x1c))()" identifier = (call_expression "(**(code **)(*piVar3 + 0x1c))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x1c))" ( (pointer_expression "**(code **)(*piVar3 + 0x1c)" * (pointer_expression "*(code **)(*piVar3 + 0x1c)" * (cast_expression "(code **)(*piVar3 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x1c)" ( (binary_expression "*piVar3 + 0x1c" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) })) (if_statement "if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }" { (if_statement "if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }" if (parenthesized_expression "(iVar1 <= param_3)" ( (binary_expression "iVar1 <= param_3" identifier <= identifier) )) (compound_statement "{\n        param_3 = iVar1;\n      }" { (expression_statement "param_3 = iVar1;" (assignment_expression "param_3 = iVar1" identifier = identifier) ;) })) comment (expression_statement "uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);" (assignment_expression "uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4)" identifier = (call_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))" ( (pointer_expression "**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" * (pointer_expression "*(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" * (cast_expression "(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" ( (binary_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20" (pointer_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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) + 0x78),param_2,\n                         param_3,param_4,iVar4)" ( (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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 "*(undefined4 *)(param_1 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar2" (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) )))) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }" { (labeled_statement "std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);" statement_identifier : (ERROR ":" :) (labeled_statement "ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);" (call_expression "clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2)" identifier (argument_list "((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2)" ( (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2" (pointer_expression "*(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" * (cast_expression "(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (binary_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14" (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | number_literal) ))) ;))) })) })) (return_statement "return *(undefined4 *)(param_1 + 4);" return (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) )))) ;) })))
(translation_unit "/* std::istream::readsome(char*, int) */\n\nundefined4 std::istream::readsome(char *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_a2;\n  undefined4 in_a3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  sentry::sentry(local_20,(istream *)param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= in_a2) {\n        in_a2 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,\n                         in_a3,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}\n\n" comment (function_definition "undefined4 std::istream::readsome(char *param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_a2;\n  undefined4 in_a3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  sentry::sentry(local_20,(istream *)param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= in_a2) {\n        in_a2 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,\n                         in_a3,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}" type_identifier (ERROR "std::istream::" identifier : : identifier : :) (function_declarator "readsome(char *param_1,int param_2)" identifier (parameter_list "(char *param_1,int param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_a2;\n  undefined4 in_a3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  sentry::sentry(local_20,(istream *)param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= in_a2) {\n        in_a2 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,\n                         in_a3,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int in_a2;" primitive_type identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "sentry local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "iVar4 = in_t9 + 0x156fa8;" (assignment_expression "iVar4 = in_t9 + 0x156fa8" identifier = (binary_expression "in_t9 + 0x156fa8" identifier + number_literal)) ;) (expression_statement "param_1[4] = '\0';" (assignment_expression "param_1[4] = '\0'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[5] = '\0';" (assignment_expression "param_1[5] = '\0'" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[6] = '\0';" (assignment_expression "param_1[6] = '\0'" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[7] = '\0';" (assignment_expression "param_1[7] = '\0'" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (labeled_statement "sentry::sentry(local_20,(istream *)param_1,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_20,(istream *)param_1,true);" (call_expression "sentry(local_20,(istream *)param_1,true)" identifier (argument_list "(local_20,(istream *)param_1,true)" ( identifier , (cast_expression "(istream *)param_1" ( (type_descriptor "istream *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , true ))) ;)) (if_statement "if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= in_a2) {\n        in_a2 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,\n                         in_a3,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit);\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    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= in_a2) {\n        in_a2 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,\n                         in_a3,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit);\n    }\n  }" { (expression_statement "piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);" (assignment_expression "piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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) ))))) ;) (expression_statement "iVar1 = piVar3[3] - piVar3[2];" (assignment_expression "iVar1 = piVar3[3] - piVar3[2]" identifier = (binary_expression "piVar3[3] - piVar3[2]" (subscript_expression "piVar3[3]" identifier [ number_literal ]) - (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (iVar1 == 0) {\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */\n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }" { comment (expression_statement "iVar1 = (**(code **)(*piVar3 + 0x1c))();" (assignment_expression "iVar1 = (**(code **)(*piVar3 + 0x1c))()" identifier = (call_expression "(**(code **)(*piVar3 + 0x1c))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x1c))" ( (pointer_expression "**(code **)(*piVar3 + 0x1c)" * (pointer_expression "*(code **)(*piVar3 + 0x1c)" * (cast_expression "(code **)(*piVar3 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x1c)" ( (binary_expression "*piVar3 + 0x1c" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) })) (if_statement "if (0 < iVar1) {\n      if (iVar1 <= in_a2) {\n        in_a2 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,\n                         in_a3,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if (iVar1 <= in_a2) {\n        in_a2 = iVar1;\n      }\n                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */\n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,\n                         in_a3,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }" { (if_statement "if (iVar1 <= in_a2) {\n        in_a2 = iVar1;\n      }" if (parenthesized_expression "(iVar1 <= in_a2)" ( (binary_expression "iVar1 <= in_a2" identifier <= identifier) )) (compound_statement "{\n        in_a2 = iVar1;\n      }" { (expression_statement "in_a2 = iVar1;" (assignment_expression "in_a2 = iVar1" identifier = identifier) ;) })) comment (expression_statement "uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,\n                         in_a3,iVar4);" (assignment_expression "uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,\n                         in_a3,iVar4)" identifier = (call_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,in_a2,\n                         in_a3,iVar4)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))" ( (pointer_expression "**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" * (pointer_expression "*(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" * (cast_expression "(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" ( (binary_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20" (pointer_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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) + 0x78),param_2,in_a2,\n                         in_a3,iVar4)" ( (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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 "*(undefined4 *)(param_1 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar2" (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) )))) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (iVar1 == -1) {\n      ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit);\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit);\n    }" { (labeled_statement "ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit);" (call_expression "clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit)" identifier (argument_list "((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit)" ( (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                 _S_eofbit" (pointer_expression "*(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" * (cast_expression "(_Ios_Iostate *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (binary_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14" (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | identifier) ))) ;)) })) })) (return_statement "return *(undefined4 *)(param_1 + 4);" return (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) )))) ;) })))
(translation_unit "undefined4 FUN_002e3228(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::istream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}\n\n" (function_definition "undefined4 FUN_002e3228(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::istream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}" type_identifier (function_declarator "FUN_002e3228(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "istream *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 iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::istream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "sentry local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "iVar4 = in_t9 + 0x156fa8;" (assignment_expression "iVar4 = in_t9 + 0x156fa8" identifier = (binary_expression "in_t9 + 0x156fa8" 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::istream::sentry::sentry(local_20,param_1,true);" statement_identifier : (ERROR ":" :) (labeled_statement "istream::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    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\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    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }" { (expression_statement "piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);" (assignment_expression "piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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) ))))) ;) (expression_statement "iVar1 = piVar3[3] - piVar3[2];" (assignment_expression "iVar1 = piVar3[3] - piVar3[2]" identifier = (binary_expression "piVar3[3] - piVar3[2]" (subscript_expression "piVar3[3]" identifier [ number_literal ]) - (subscript_expression "piVar3[2]" identifier [ number_literal ]))) ;) (if_statement "if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }" { (expression_statement "iVar1 = (**(code **)(*piVar3 + 0x1c))();" (assignment_expression "iVar1 = (**(code **)(*piVar3 + 0x1c))()" identifier = (call_expression "(**(code **)(*piVar3 + 0x1c))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x1c))" ( (pointer_expression "**(code **)(*piVar3 + 0x1c)" * (pointer_expression "*(code **)(*piVar3 + 0x1c)" * (cast_expression "(code **)(*piVar3 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x1c)" ( (binary_expression "*piVar3 + 0x1c" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) })) (if_statement "if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }" { (if_statement "if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }" if (parenthesized_expression "(iVar1 <= param_3)" ( (binary_expression "iVar1 <= param_3" identifier <= identifier) )) (compound_statement "{\n        param_3 = iVar1;\n      }" { (expression_statement "param_3 = iVar1;" (assignment_expression "param_3 = iVar1" identifier = identifier) ;) })) (expression_statement "uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);" (assignment_expression "uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4)" identifier = (call_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))" ( (pointer_expression "**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" * (pointer_expression "*(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" * (cast_expression "(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" ( (binary_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20" (pointer_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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) + 0x78),param_2,\n                         param_3,param_4,iVar4)" ( (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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 "*(undefined4 *)(param_1 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar2" (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) )))) = identifier) ;) (return_statement "return uVar2;" return identifier ;) })) (if_statement "if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }" { (labeled_statement "std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);" statement_identifier : (ERROR ":" :) (labeled_statement "ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);" (call_expression "clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2)" identifier (argument_list "((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2)" ( (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2" (pointer_expression "*(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" * (cast_expression "(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (binary_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14" (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | number_literal) ))) ;))) })) })) (return_statement "return *(undefined4 *)(param_1 + 4);" return (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) )))) ;) })))
(translation_unit (function_definition TYPE (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 (pointer_declarator * IDENT) ;) (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 = (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) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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 * IDENT) + LIT) ))))) )) (argument_list ( )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (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) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })))
(function_definition "undefined4 FUN_002e3228(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::istream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}" (type_identifier "undefined4") (function_declarator "FUN_002e3228(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" (identifier "FUN_002e3228") (parameter_list "(istream *param_1,undefined4 param_2,int param_3,undefined4 param_4)" (( "(") (parameter_declaration "istream *param_1" (type_identifier "istream") (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 iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  int in_t9;\n  int iVar4;\n  sentry local_20 [16];\n  \n  iVar4 = in_t9 + 0x156fa8;\n  *(undefined4 *)(param_1 + 4) = 0;\n  std::istream::sentry::sentry(local_20,param_1,true);\n  if (local_20[0] != (sentry)0x0) {\n    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }\n  return *(undefined4 *)(param_1 + 4);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int in_t9;" (primitive_type "int") (identifier "in_t9") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "sentry local_20 [16];" (type_identifier "sentry") (array_declarator "local_20 [16]" (identifier "local_20") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "iVar4 = in_t9 + 0x156fa8;" (assignment_expression "iVar4 = in_t9 + 0x156fa8" (identifier "iVar4") (= "=") (binary_expression "in_t9 + 0x156fa8" (identifier "in_t9") (+ "+") (number_literal "0x156fa8"))) (; ";")) (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::istream::sentry::sentry(local_20,param_1,true);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "istream::sentry::sentry(local_20,param_1,true);" (statement_identifier "istream") (: ":") (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    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\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    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);\n    iVar1 = piVar3[3] - piVar3[2];\n    if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }\n    if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }\n    if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }\n  }" ({ "{") (expression_statement "piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);" (assignment_expression "piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (* "*") (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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 "0x78")) () ")"))))) (; ";")) (expression_statement "iVar1 = piVar3[3] - piVar3[2];" (assignment_expression "iVar1 = piVar3[3] - piVar3[2]" (identifier "iVar1") (= "=") (binary_expression "piVar3[3] - piVar3[2]" (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (- "-") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (iVar1 == 0) {\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      iVar1 = (**(code **)(*piVar3 + 0x1c))();\n    }" ({ "{") (expression_statement "iVar1 = (**(code **)(*piVar3 + 0x1c))();" (assignment_expression "iVar1 = (**(code **)(*piVar3 + 0x1c))()" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*piVar3 + 0x1c))()" (parenthesized_expression "(**(code **)(*piVar3 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar3 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x1c)" (( "(") (binary_expression "*piVar3 + 0x1c" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (if_statement "if (0 < iVar1) {\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }\n                    \n      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);\n      *(undefined4 *)(param_1 + 4) = uVar2;\n      return uVar2;\n    }" ({ "{") (if_statement "if (iVar1 <= param_3) {\n        param_3 = iVar1;\n      }" (if "if") (parenthesized_expression "(iVar1 <= param_3)" (( "(") (binary_expression "iVar1 <= param_3" (identifier "iVar1") (<= "<=") (identifier "param_3")) () ")")) (compound_statement "{\n        param_3 = iVar1;\n      }" ({ "{") (expression_statement "param_3 = iVar1;" (assignment_expression "param_3 = iVar1" (identifier "param_3") (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4);" (assignment_expression "uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4)" (identifier "uVar2") (= "=") (call_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))\n                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20)" (( "(") (binary_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20" (pointer_expression "**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (* "*") (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (* "*") (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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 "0x78")) () ")"))))) (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,\n                         param_3,param_4,iVar4)" (( "(") (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (* "*") (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78)" (( "(") (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78" (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 "0x78")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar2" (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")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (if_statement "if (iVar1 == -1) {\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);\n    }" ({ "{") (labeled_statement "std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);" (statement_identifier "std") (: ":") (ERROR ":" (: ":")) (labeled_statement "ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);" (statement_identifier "ios") (: ":") (ERROR ":" (: ":")) (expression_statement "clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);" (call_expression "clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2)" (identifier "clear") (argument_list "((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2)" (( "(") (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" (( "(") (type_descriptor "ios *" (type_identifier "ios") (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 *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2" (pointer_expression "*(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" (* "*") (cast_expression "(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" (( "(") (binary_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14" (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" (( "(") (type_descriptor "ios *" (type_identifier "ios") (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 "2")) () ")"))) (; ";")))) (} "}"))) (} "}"))) (return_statement "return *(undefined4 *)(param_1 + 4);" (return "return") (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")) () ")")))) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) 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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (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: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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: (identifier)) right: (number_literal))))))) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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 (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)))))))))

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

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  int in_t9;
  int iVar4;
  sentry local_20 [16];
  
  iVar4 = in_t9 + 0x156fa8;
  *(undefined4 *)(param_1 + 4) = 0;
  std::istream::sentry::sentry(local_20,param_1,true);
  if (local_20[0] != (sentry)0x0) {
    piVar3 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78);
    iVar1 = piVar3[3] - piVar3[2];
    if (iVar1 == 0) {
                    /* try { // try from 002e3364 to 002e336b has its CatchHandler @ 002e32f4 */
      iVar1 = (**(code **)(*piVar3 + 0x1c))();
    }
    if (0 < iVar1) {
      if (iVar1 <= param_3) {
        param_3 = iVar1;
      }
                    /* try { // try from 002e32d0 to 002e32d7 has its CatchHandler @ 002e32f4 */
      uVar2 = (**(code **)(**(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78) + 0x20))
                        (*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x78),param_2,
                         param_3,param_4,iVar4);
      *(undefined4 *)(param_1 + 4) = uVar2;
      return uVar2;
    }
    if (iVar1 == -1) {
      std::ios::clear((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),
                      *(uint *)((ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) | 2);
    }
  }
  return *(undefined4 *)(param_1 + 4);
}

