
/* std::wistream::seekg(std::fpos<__mbstate_t>) */

wistream * std::wistream::seekg(wistream *param_1,undefined8 param_2,undefined8 param_3)

{
  long lVar1;
  sentry local_19;
  
  wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),
              *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) &
              ~_S_eofbit);
  sentry::sentry(&local_19,param_1,true);
  if ((local_19 != (sentry)0x0) &&
     (((byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5) == 0)) {
                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */
    lVar1 = (**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28))
                      (*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8),param_2,
                       param_3,8);
    if (lVar1 == -1) {
      wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),
                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)
                  | _S_failbit);
    }
  }
  return param_1;
}



long * FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)

{
  long *plVar1;
  long lVar2;
  char local_19;
  
  lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);
  FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);
  FUN_00299dd0(&local_19,param_1,1);
  if ((local_19 != '\0') &&
     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {
    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */
    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);
    if (lVar2 == -1) {
      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);
    }
  }
  return param_1;
}


PUSH R12
MOV R12,RSI
PUSH RBP
MOV RBP,RDX
PUSH RBX
MOV RBX,RDI
SUB RSP,0x10
MOV RAX,qword ptr [RDI]
ADD RDI,qword ptr [RAX + -0x18]
MOV ESI,dword ptr [RDI + 0x20]
AND ESI,0xfffffffd
CALL 0x0029d320
LEA RDI,[RSP + 0xf]
MOV EDX,0x1
MOV RSI,RBX
CALL 0x00299dd0
CMP byte ptr [RSP + 0xf],0x0
JZ 0x0029b46a
MOV RAX,qword ptr [RBX]
MOV RCX,qword ptr [RAX + -0x18]
ADD RCX,RBX
TEST byte ptr [RCX + 0x20],0x5
JNZ 0x0029b46a
MOV RDI,qword ptr [RCX + 0xe8]
MOV RSI,R12
MOV RDX,RBP
MOV ECX,0x8
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x28]
CMP RAX,-0x1
JZ 0x0029b480
ADD RSP,0x10
MOV RAX,RBX
POP RBX
POP RBP
POP R12
RET
MOV RAX,qword ptr [RBX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
MOV ESI,dword ptr [RDI + 0x20]
OR ESI,0x4
CALL 0x0029d320
JMP 0x0029b46a
(translation_unit "long * FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long *plVar1;\n  long lVar2;\n  char local_19;\n  \n  lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);\n  FUN_00299dd0(&local_19,param_1,1);\n  if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */\n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "long * FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long *plVar1;\n  long lVar2;\n  char local_19;\n  \n  lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);\n  FUN_00299dd0(&local_19,param_1,1);\n  if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */\n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)" * (function_declarator "FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)" identifier (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) )))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  char local_19;\n  \n  lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);\n  FUN_00299dd0(&local_19,param_1,1);\n  if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */\n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char local_19;" primitive_type identifier ;) (expression_statement "lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);" (assignment_expression "lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18)" identifier = (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))))) ;) (expression_statement "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);" (call_expression "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd)" identifier (argument_list "(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd)" ( identifier , (binary_expression "*(uint *)(lVar2 + 0x20) & 0xfffffffd" (pointer_expression "*(uint *)(lVar2 + 0x20)" * (cast_expression "(uint *)(lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))) & number_literal) ))) ;) (expression_statement "FUN_00299dd0(&local_19,param_1,1);" (call_expression "FUN_00299dd0(&local_19,param_1,1)" identifier (argument_list "(&local_19,param_1,1)" ( (pointer_expression "&local_19" & identifier) , identifier , number_literal ))) ;) (if_statement "if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */\n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }" if (parenthesized_expression "((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0))" ( (binary_expression "(local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)" (parenthesized_expression "(local_19 != '\0')" ( (binary_expression "local_19 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)" ( (binary_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0" (parenthesized_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5)" ( (binary_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5" (pointer_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" * (cast_expression "(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0x20" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */\n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }" { (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) comment (expression_statement "lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);" (assignment_expression "lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8)" identifier = (call_expression "(**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8)" (parenthesized_expression "(**(code **)(*plVar1 + 0x28))" ( (pointer_expression "**(code **)(*plVar1 + 0x28)" * (pointer_expression "*(code **)(*plVar1 + 0x28)" * (cast_expression "(code **)(*plVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x28)" ( (binary_expression "*plVar1 + 0x28" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_2,param_3,8)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }" if (parenthesized_expression "(lVar2 == -1)" ( (binary_expression "lVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }" { (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);" (call_expression "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4)" identifier (argument_list "(lVar2,*(uint *)(lVar2 + 0x20) | 4)" ( identifier , (binary_expression "*(uint *)(lVar2 + 0x20) | 4" (pointer_expression "*(uint *)(lVar2 + 0x20)" * (cast_expression "(uint *)(lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wistream::seekg(std::fpos<__mbstate_t>) */\n\nwistream * std::wistream::seekg(wistream *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  sentry local_19;\n  \n  wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n              *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) &\n              ~_S_eofbit);\n  sentry::sentry(&local_19,param_1,true);\n  if ((local_19 != (sentry)0x0) &&\n     (((byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5) == 0)) {\n                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */\n    lVar1 = (**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28))\n                      (*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8),param_2,\n                       param_3,8);\n    if (lVar1 == -1) {\n      wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit);\n    }\n  }\n  return param_1;\n}\n\n" comment (ERROR "wistream * std::" (binary_expression "wistream * std" identifier * identifier) : :) (labeled_statement "wistream::seekg(wistream *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  sentry local_19;\n  \n  wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n              *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) &\n              ~_S_eofbit);\n  sentry::sentry(&local_19,param_1,true);\n  if ((local_19 != (sentry)0x0) &&\n     (((byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5) == 0)) {\n                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */\n    lVar1 = (**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28))\n                      (*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8),param_2,\n                       param_3,8);\n    if (lVar1 == -1) {\n      wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit);\n    }\n  }\n  return param_1;\n}" statement_identifier : (ERROR ":seekg(wistream *param_1,undefined8 param_2,undefined8 param_3)" : (call_expression "seekg(wistream *param_1,undefined8 param_2,undefined8 param_3)" identifier (argument_list "(wistream *param_1,undefined8 param_2,undefined8 param_3)" ( (binary_expression "wistream *param_1" identifier * identifier) , identifier (ERROR "param_2" identifier) , identifier (ERROR "param_3" identifier) )))) (compound_statement "{\n  long lVar1;\n  sentry local_19;\n  \n  wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n              *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) &\n              ~_S_eofbit);\n  sentry::sentry(&local_19,param_1,true);\n  if ((local_19 != (sentry)0x0) &&\n     (((byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5) == 0)) {\n                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */\n    lVar1 = (**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28))\n                      (*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8),param_2,\n                       param_3,8);\n    if (lVar1 == -1) {\n      wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit);\n    }\n  }\n  return param_1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "sentry local_19;" type_identifier identifier ;) (labeled_statement "wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n              *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) &\n              ~_S_eofbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n              *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) &\n              ~_S_eofbit);" (call_expression "clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n              *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) &\n              ~_S_eofbit)" identifier (argument_list "((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n              *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) &\n              ~_S_eofbit)" ( (cast_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20) &\n              ~_S_eofbit" (pointer_expression "*(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" * (cast_expression "(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" ( (binary_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20" (cast_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) & (unary_expression "~_S_eofbit" ~ identifier)) ))) ;)) (labeled_statement "sentry::sentry(&local_19,param_1,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(&local_19,param_1,true);" (call_expression "sentry(&local_19,param_1,true)" identifier (argument_list "(&local_19,param_1,true)" ( (pointer_expression "&local_19" & identifier) , identifier , true ))) ;)) (if_statement "if ((local_19 != (sentry)0x0) &&\n     (((byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5) == 0)) {\n                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */\n    lVar1 = (**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28))\n                      (*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8),param_2,\n                       param_3,8);\n    if (lVar1 == -1) {\n      wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit);\n    }\n  }" if (parenthesized_expression "((local_19 != (sentry)0x0) &&\n     (((byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5) == 0))" ( (binary_expression "(local_19 != (sentry)0x0) &&\n     (((byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5) == 0)" (parenthesized_expression "(local_19 != (sentry)0x0)" ( (binary_expression "local_19 != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) && (parenthesized_expression "(((byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5) == 0)" ( (binary_expression "((byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5) == 0" (parenthesized_expression "((byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5)" ( (binary_expression "(byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20] & 5" (cast_expression "(byte)param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_1[*(long *)(*(long *)param_1 + -0x18) + 0x20]" identifier [ (binary_expression "*(long *)(*(long *)param_1 + -0x18) + 0x20" (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) + number_literal) ])) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */\n    lVar1 = (**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28))\n                      (*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8),param_2,\n                       param_3,8);\n    if (lVar1 == -1) {\n      wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit);\n    }\n  }" { comment (expression_statement "lVar1 = (**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28))\n                      (*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8),param_2,\n                       param_3,8);" (assignment_expression "lVar1 = (**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28))\n                      (*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8),param_2,\n                       param_3,8)" identifier = (call_expression "(**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28))\n                      (*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8),param_2,\n                       param_3,8)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28))" ( (pointer_expression "**(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28)" * (pointer_expression "*(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28)" * (cast_expression "(code **)(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28)" ( (binary_expression "**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8) + 0x28" (pointer_expression "**(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" * (pointer_expression "*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8" (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8),param_2,\n                       param_3,8)" ( (pointer_expression "*(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8)" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18) + 0xe8" (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) )))) , identifier , identifier , number_literal )))) ;) (if_statement "if (lVar1 == -1) {\n      wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit);\n    }" if (parenthesized_expression "(lVar1 == -1)" ( (binary_expression "lVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit);\n    }" { (labeled_statement "wios::clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit);" (call_expression "clear((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit)" identifier (argument_list "((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit)" ( (cast_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)\n                  | _S_failbit" (pointer_expression "*(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" * (cast_expression "(_Ios_Iostate *)((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20)" ( (binary_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18)) + 0x20" (cast_expression "(wios *)(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(long *)(*(long *)param_1 + -0x18))" ( (binary_expression "param_1 + *(long *)(*(long *)param_1 + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)param_1 + -0x18)" * (cast_expression "(long *)(*(long *)param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)param_1 + -0x18)" ( (binary_expression "*(long *)param_1 + -0x18" (pointer_expression "*(long *)param_1" * (cast_expression "(long *)param_1" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | identifier) ))) ;)) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "long * FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long *plVar1;\n  long lVar2;\n  char local_19;\n  \n  lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);\n  FUN_00299dd0(&local_19,param_1,1);\n  if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "long * FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long *plVar1;\n  long lVar2;\n  char local_19;\n  \n  lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);\n  FUN_00299dd0(&local_19,param_1,1);\n  if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)" * (function_declarator "FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)" identifier (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) )))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  char local_19;\n  \n  lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);\n  FUN_00299dd0(&local_19,param_1,1);\n  if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }\n  return param_1;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char local_19;" primitive_type identifier ;) (expression_statement "lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);" (assignment_expression "lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18)" identifier = (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))))) ;) (expression_statement "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);" (call_expression "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd)" identifier (argument_list "(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd)" ( identifier , (binary_expression "*(uint *)(lVar2 + 0x20) & 0xfffffffd" (pointer_expression "*(uint *)(lVar2 + 0x20)" * (cast_expression "(uint *)(lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))) & number_literal) ))) ;) (expression_statement "FUN_00299dd0(&local_19,param_1,1);" (call_expression "FUN_00299dd0(&local_19,param_1,1)" identifier (argument_list "(&local_19,param_1,1)" ( (pointer_expression "&local_19" & identifier) , identifier , number_literal ))) ;) (if_statement "if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }" if (parenthesized_expression "((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0))" ( (binary_expression "(local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)" (parenthesized_expression "(local_19 != '\0')" ( (binary_expression "local_19 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)" ( (binary_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0" (parenthesized_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5)" ( (binary_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5" (pointer_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" * (cast_expression "(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0x20" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }" { (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" identifier = (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);" (assignment_expression "lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8)" identifier = (call_expression "(**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8)" (parenthesized_expression "(**(code **)(*plVar1 + 0x28))" ( (pointer_expression "**(code **)(*plVar1 + 0x28)" * (pointer_expression "*(code **)(*plVar1 + 0x28)" * (cast_expression "(code **)(*plVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x28)" ( (binary_expression "*plVar1 + 0x28" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_2,param_3,8)" ( identifier , identifier , identifier , number_literal )))) ;) (if_statement "if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }" if (parenthesized_expression "(lVar2 == -1)" ( (binary_expression "lVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }" { (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);" (call_expression "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4)" identifier (argument_list "(lVar2,*(uint *)(lVar2 + 0x20) | 4)" ( identifier , (binary_expression "*(uint *)(lVar2 + 0x20) | 4" (pointer_expression "*(uint *)(lVar2 + 0x20)" * (cast_expression "(uint *)(lVar2 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x20)" ( (binary_expression "lVar2 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) )))) & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (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 ( IDENT , IDENT , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "long * FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long *plVar1;\n  long lVar2;\n  char local_19;\n  \n  lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);\n  FUN_00299dd0(&local_19,param_1,1);\n  if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)" (* "*") (function_declarator "FUN_0029b400(long *param_1,undefined8 param_2,undefined8 param_3)" (identifier "FUN_0029b400") (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")")))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  char local_19;\n  \n  lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);\n  FUN_00299dd0(&local_19,param_1,1);\n  if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "char local_19;" (primitive_type "char") (identifier "local_19") (; ";")) (expression_statement "lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);" (assignment_expression "lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18)" (identifier "lVar2") (= "=") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))))) (; ";")) (expression_statement "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);" (call_expression "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd)" (identifier "FUN_0029d320") (argument_list "(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd)" (( "(") (identifier "lVar2") (, ",") (binary_expression "*(uint *)(lVar2 + 0x20) & 0xfffffffd" (pointer_expression "*(uint *)(lVar2 + 0x20)" (* "*") (cast_expression "(uint *)(lVar2 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x20)" (( "(") (binary_expression "lVar2 + 0x20" (identifier "lVar2") (+ "+") (number_literal "0x20")) () ")")))) (& "&") (number_literal "0xfffffffd")) () ")"))) (; ";")) (expression_statement "FUN_00299dd0(&local_19,param_1,1);" (call_expression "FUN_00299dd0(&local_19,param_1,1)" (identifier "FUN_00299dd0") (argument_list "(&local_19,param_1,1)" (( "(") (pointer_expression "&local_19" (& "&") (identifier "local_19")) (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if ((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }" (if "if") (parenthesized_expression "((local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0))" (( "(") (binary_expression "(local_19 != '\0') &&\n     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)" (parenthesized_expression "(local_19 != '\0')" (( "(") (binary_expression "local_19 != '\0'" (identifier "local_19") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)" (( "(") (binary_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0" (parenthesized_expression "(*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5)" (( "(") (binary_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5" (pointer_expression "*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" (* "*") (cast_expression "(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20)" (( "(") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0x20" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")"))))) (+ "+") (number_literal "0x20")) () ")")))) (& "&") (number_literal "5")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);\n                    \n    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);\n    if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }\n  }" ({ "{") (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (* "*") (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (( "(") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")"))))) (+ "+") (number_literal "0xe8")) () ")"))))) (; ";")) (expression_statement "lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);" (assignment_expression "lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8)" (identifier "lVar2") (= "=") (call_expression "(**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8)" (parenthesized_expression "(**(code **)(*plVar1 + 0x28))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x28)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x28)" (* "*") (cast_expression "(code **)(*plVar1 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x28)" (( "(") (binary_expression "*plVar1 + 0x28" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(plVar1,param_2,param_3,8)" (( "(") (identifier "plVar1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "8") () ")")))) (; ";")) (if_statement "if (lVar2 == -1) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }" (if "if") (parenthesized_expression "(lVar2 == -1)" (( "(") (binary_expression "lVar2 == -1" (identifier "lVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);\n    }" ({ "{") (expression_statement "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar2") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (expression_statement "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);" (call_expression "FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4)" (identifier "FUN_0029d320") (argument_list "(lVar2,*(uint *)(lVar2 + 0x20) | 4)" (( "(") (identifier "lVar2") (, ",") (binary_expression "*(uint *)(lVar2 + 0x20) | 4" (pointer_expression "*(uint *)(lVar2 + 0x20)" (* "*") (cast_expression "(uint *)(lVar2 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x20)" (( "(") (binary_expression "lVar2 + 0x20" (identifier "lVar2") (+ "+") (number_literal "0x20")) () ")")))) (| "|") (number_literal "4")) () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wistream::seekg(std::fpos<__mbstate_t>) */

wistream * std::wistream::seekg(wistream *var_2,undefined8 param_2,undefined8 param_3)

{
  long var_4;
  type_1 var_3;
  
  wios::var_1((type_2 *)(var_2 + *(long *)(*(long *)var_2 + -0x18)),
              *(type_3 *)((type_2 *)(var_2 + *(long *)(*(long *)var_2 + -0x18)) + 0x20) &
              ~_S_eofbit);
  sentry::type_1(&var_3,var_2,true);
  if ((var_3 != (type_1)0x0) &&
     (((type_4)var_2[*(long *)(*(long *)var_2 + -0x18) + 0x20] & 5) == 0)) {
                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */
    var_4 = (**(type_5 **)(**(long **)(var_2 + *(long *)(*(long *)var_2 + -0x18) + 0xe8) + 0x28))
                      (*(long **)(var_2 + *(long *)(*(long *)var_2 + -0x18) + 0xe8),param_2,
                       param_3,8);
    if (var_4 == -1) {
      wios::var_1((type_2 *)(var_2 + *(long *)(*(long *)var_2 + -0x18)),
                  *(type_3 *)((type_2 *)(var_2 + *(long *)(*(long *)var_2 + -0x18)) + 0x20)
                  | var_5);
    }
  }
  return var_2;
}


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

long * MASKED(long *param_1,undefined8 param_2,undefined8 param_3)

{
  long *plVar1;
  long lVar2;
  char local_19;
  
  lVar2 = (long)param_1 + *(long *)(*param_1 + -0x18);
  FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) & 0xfffffffd);
  FUN_00299dd0(&local_19,param_1,1);
  if ((local_19 != '\0') &&
     ((*(byte *)((long)param_1 + *(long *)(*param_1 + -0x18) + 0x20) & 5) == 0)) {
    plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8);
                    /* try { // try from 0029b461 to 0029b463 has its CatchHandler @ 0029b497 */
    lVar2 = (**(code **)(*plVar1 + 0x28))(plVar1,param_2,param_3,8);
    if (lVar2 == -1) {
      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
      FUN_0029d320(lVar2,*(uint *)(lVar2 + 0x20) | 4);
    }
  }
  return param_1;
}

