
/* std::istream& std::istream::_M_extract<void*>(void*&) */

istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)

{
  istream *piVar1;
  int *piVar2;
  undefined1 auStack_28 [8];
  _Ios_Iostate local_20;
  sentry local_1c [16];
  
  sentry::sentry(local_1c,this,false);
  if (local_1c[0] != (sentry)0x0) {
    local_20 = _S_goodbit;
    piVar1 = this + *(int *)(*(int *)this + -0xc);
    piVar2 = *(int **)(piVar1 + 0x84);
    if (piVar2 == (int *)0x0) {
                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */
      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();
      return piVar1;
    }
                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */
    (**(code **)(*piVar2 + 0x30))
              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,
               &local_20,param_1);
    if (local_20 != _S_goodbit) {
      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),
                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))
      ;
      return this;
    }
  }
  return this;
}



/* std::istream& std::istream::_M_extract<void*>(void*&) */

istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)

{
  istream *piVar1;
  int *piVar2;
  undefined1 auStack_28 [8];
  uint local_20;
  sentry local_1c [16];
  
  sentry::sentry(local_1c,this,false);
  if (local_1c[0] != (sentry)0x0) {
    local_20 = 0;
    piVar1 = this + *(int *)(*(int *)this + -0xc);
    piVar2 = *(int **)(piVar1 + 0x84);
    if (piVar2 == (int *)0x0) {
                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */
      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();
      return piVar1;
    }
                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */
    (**(code **)(*piVar2 + 0x30))
              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,
               &local_20,param_1);
    if (local_20 != 0) {
      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),
                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));
      return this;
    }
  }
  return this;
}


lui gp,0x17
addiu gp,gp,-0x7838
addu gp,gp,t9
addiu sp,sp,-0x68
lw t9,-0x40c8(gp)
or a2,zero,zero
sw s0,0x5c(sp)
or s0,a0,zero
addiu a0,sp,0x4c
sw gp,0x28(sp)
sw s1,0x60(sp)
or s1,a1,zero
sw ra,0x64(sp)
bal 0x0035c7e8
_or a1,s0,zero
lbu v0,0x4c(sp)
beq v0,zero,0x00360b30
_lw gp,0x28(sp)
lw v0,0x0(s0)
sw zero,0x48(sp)
lw v0,-0xc(v0)
addu v0,s0,v0
lw a1,0x84(v0)
beq a1,zero,0x00360b7c
_li v1,-0x1
lw t1,0x0(a1)
addiu a0,sp,0x48
lw t0,0x78(v0)
sw s1,0x20(sp)
li a3,-0x1
sw a0,0x1c(sp)
addiu a0,sp,0x40
sw v0,0x18(sp)
sw zero,0x10(sp)
sw v1,0x14(sp)
sw t0,0x38(sp)
sw v1,0x3c(sp)
sw zero,0x30(sp)
sw v1,0x34(sp)
lw t9,0x30(t1)
jalr t9
_or a2,t0,zero
lw gp,0x28(sp)
lw v0,0x48(sp)
bne v0,zero,0x00360b48
_lw t9,-0x6f88(gp)
lw ra,0x64(sp)
or v0,s0,zero
lw s1,0x60(sp)
lw s0,0x5c(sp)
jr ra
_addiu sp,sp,0x68
lw v1,0x0(s0)
lw v1,-0xc(v1)
addu v1,s0,v1
or a0,v1,zero
lw a1,0x14(v1)
bal 0x00365b38
_or a1,v0,a1
or v0,s0,zero
lw ra,0x64(sp)
lw s1,0x60(sp)
lw s0,0x5c(sp)
jr ra
_addiu sp,sp,0x68
lw t9,-0x6f84(gp)
jalr t9
_nop
(translation_unit "/* std::istream& std::istream::_M_extract<void*>(void*&) */\n\nistream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)\n\n{\n  istream *piVar1;\n  int *piVar2;\n  undefined1 auStack_28 [8];\n  uint local_20;\n  sentry local_1c [16];\n  \n  sentry::sentry(local_1c,this,false);\n  if (local_1c[0] != (sentry)0x0) {\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */\n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }\n  return this;\n}\n\n" comment (ERROR "istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)" (binary_expression "istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)" (binary_expression "istream * __thiscall std::istream::_M_extract<void" (binary_expression "istream * __thiscall" identifier * identifier) (ERROR "std::istream::_M_extract" identifier : : identifier : : identifier) < identifier) (ERROR "*" *) > (parenthesized_expression "(istream *this,void **param_1)" ( (comma_expression "istream *this,void **param_1" (binary_expression "istream *this" identifier * identifier) , (binary_expression "void **param_1" identifier * (pointer_expression "*param_1" * identifier))) )))) (compound_statement "{\n  istream *piVar1;\n  int *piVar2;\n  undefined1 auStack_28 [8];\n  uint local_20;\n  sentry local_1c [16];\n  \n  sentry::sentry(local_1c,this,false);\n  if (local_1c[0] != (sentry)0x0) {\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */\n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }\n  return this;\n}" { (declaration "istream *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined1 auStack_28 [8];" type_identifier (array_declarator "auStack_28 [8]" identifier [ number_literal ]) ;) (declaration "uint local_20;" type_identifier identifier ;) (declaration "sentry local_1c [16];" type_identifier (array_declarator "local_1c [16]" identifier [ number_literal ]) ;) (labeled_statement "sentry::sentry(local_1c,this,false);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_1c,this,false);" (call_expression "sentry(local_1c,this,false)" identifier (argument_list "(local_1c,this,false)" ( identifier , identifier , false ))) ;)) (if_statement "if (local_1c[0] != (sentry)0x0) {\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */\n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }" if (parenthesized_expression "(local_1c[0] != (sentry)0x0)" ( (binary_expression "local_1c[0] != (sentry)0x0" (subscript_expression "local_1c[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */\n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "piVar1 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "piVar1 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "piVar2 = *(int **)(piVar1 + 0x84);" (assignment_expression "piVar2 = *(int **)(piVar1 + 0x84)" identifier = (pointer_expression "*(int **)(piVar1 + 0x84)" * (cast_expression "(int **)(piVar1 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1 + 0x84)" ( (binary_expression "piVar1 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }" { comment (expression_statement "piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (cast_expression "(istream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" ( (type_descriptor "istream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" ( (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" * (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar1;" return identifier ;) })) comment (expression_statement "(**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);" (call_expression "(**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1)" (parenthesized_expression "(**(code **)(*piVar2 + 0x30))" ( (pointer_expression "**(code **)(*piVar2 + 0x30)" * (pointer_expression "*(code **)(*piVar2 + 0x30)" * (cast_expression "(code **)(*piVar2 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x30)" ( (binary_expression "*piVar2 + 0x30" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(piVar1 + 0x78)" * (cast_expression "(undefined4 *)(piVar1 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 0x78)" ( (binary_expression "piVar1 + 0x78" identifier + number_literal) )))) , number_literal , number_literal , number_literal , identifier , (pointer_expression "&local_20" & identifier) , identifier ))) ;) (if_statement "if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }" { (labeled_statement "ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" (call_expression "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" identifier (argument_list "((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" ( (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" identifier | (pointer_expression "*(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" * (cast_expression "(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (binary_expression "(ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14" (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) ))))) ))) ;)) (return_statement "return this;" return identifier ;) })) })) (return_statement "return this;" return identifier ;) }))
(translation_unit "/* std::istream& std::istream::_M_extract<void*>(void*&) */\n\nistream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)\n\n{\n  istream *piVar1;\n  int *piVar2;\n  undefined1 auStack_28 [8];\n  _Ios_Iostate local_20;\n  sentry local_1c [16];\n  \n  sentry::sentry(local_1c,this,false);\n  if (local_1c[0] != (sentry)0x0) {\n    local_20 = _S_goodbit;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */\n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != _S_goodbit) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))\n      ;\n      return this;\n    }\n  }\n  return this;\n}\n\n" comment (ERROR "istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)" (binary_expression "istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)" (binary_expression "istream * __thiscall std::istream::_M_extract<void" (binary_expression "istream * __thiscall" identifier * identifier) (ERROR "std::istream::_M_extract" identifier : : identifier : : identifier) < identifier) (ERROR "*" *) > (parenthesized_expression "(istream *this,void **param_1)" ( (comma_expression "istream *this,void **param_1" (binary_expression "istream *this" identifier * identifier) , (binary_expression "void **param_1" identifier * (pointer_expression "*param_1" * identifier))) )))) (compound_statement "{\n  istream *piVar1;\n  int *piVar2;\n  undefined1 auStack_28 [8];\n  _Ios_Iostate local_20;\n  sentry local_1c [16];\n  \n  sentry::sentry(local_1c,this,false);\n  if (local_1c[0] != (sentry)0x0) {\n    local_20 = _S_goodbit;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */\n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != _S_goodbit) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))\n      ;\n      return this;\n    }\n  }\n  return this;\n}" { (declaration "istream *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined1 auStack_28 [8];" type_identifier (array_declarator "auStack_28 [8]" identifier [ number_literal ]) ;) (declaration "_Ios_Iostate local_20;" type_identifier identifier ;) (declaration "sentry local_1c [16];" type_identifier (array_declarator "local_1c [16]" identifier [ number_literal ]) ;) (labeled_statement "sentry::sentry(local_1c,this,false);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_1c,this,false);" (call_expression "sentry(local_1c,this,false)" identifier (argument_list "(local_1c,this,false)" ( identifier , identifier , false ))) ;)) (if_statement "if (local_1c[0] != (sentry)0x0) {\n    local_20 = _S_goodbit;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */\n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != _S_goodbit) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))\n      ;\n      return this;\n    }\n  }" if (parenthesized_expression "(local_1c[0] != (sentry)0x0)" ( (binary_expression "local_1c[0] != (sentry)0x0" (subscript_expression "local_1c[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    local_20 = _S_goodbit;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */\n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != _S_goodbit) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))\n      ;\n      return this;\n    }\n  }" { (expression_statement "local_20 = _S_goodbit;" (assignment_expression "local_20 = _S_goodbit" identifier = identifier) ;) (expression_statement "piVar1 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "piVar1 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "piVar2 = *(int **)(piVar1 + 0x84);" (assignment_expression "piVar2 = *(int **)(piVar1 + 0x84)" identifier = (pointer_expression "*(int **)(piVar1 + 0x84)" * (cast_expression "(int **)(piVar1 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1 + 0x84)" ( (binary_expression "piVar1 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */\n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }" { comment (expression_statement "piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (cast_expression "(istream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" ( (type_descriptor "istream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" ( (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" * (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar1;" return identifier ;) })) comment (expression_statement "(**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);" (call_expression "(**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1)" (parenthesized_expression "(**(code **)(*piVar2 + 0x30))" ( (pointer_expression "**(code **)(*piVar2 + 0x30)" * (pointer_expression "*(code **)(*piVar2 + 0x30)" * (cast_expression "(code **)(*piVar2 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x30)" ( (binary_expression "*piVar2 + 0x30" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(piVar1 + 0x78)" * (cast_expression "(undefined4 *)(piVar1 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 0x78)" ( (binary_expression "piVar1 + 0x78" identifier + number_literal) )))) , number_literal , number_literal , number_literal , identifier , (pointer_expression "&local_20" & identifier) , identifier ))) ;) (if_statement "if (local_20 != _S_goodbit) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))\n      ;\n      return this;\n    }" if (parenthesized_expression "(local_20 != _S_goodbit)" ( (binary_expression "local_20 != _S_goodbit" identifier != identifier) )) (compound_statement "{\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))\n      ;\n      return this;\n    }" { (labeled_statement "ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))\n      ;" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))\n      ;" (call_expression "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" identifier (argument_list "((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" ( (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "local_20 | *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" identifier | (pointer_expression "*(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" * (cast_expression "(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (binary_expression "(ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14" (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) ))))) ))) ;)) (return_statement "return this;" return identifier ;) })) })) (return_statement "return this;" return identifier ;) }))
(translation_unit "istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)\n\n{\n  istream *piVar1;\n  int *piVar2;\n  undefined1 auStack_28 [8];\n  uint local_20;\n  sentry local_1c [16];\n  \n  sentry::sentry(local_1c,this,false);\n  if (local_1c[0] != (sentry)0x0) {\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    \n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }\n  return this;\n}\n\n" (ERROR "istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)" (binary_expression "istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)" (binary_expression "istream * __thiscall std::istream::_M_extract<void" (binary_expression "istream * __thiscall" identifier * identifier) (ERROR "std::istream::_M_extract" identifier : : identifier : : identifier) < identifier) (ERROR "*" *) > (parenthesized_expression "(istream *this,void **param_1)" ( (comma_expression "istream *this,void **param_1" (binary_expression "istream *this" identifier * identifier) , (binary_expression "void **param_1" identifier * (pointer_expression "*param_1" * identifier))) )))) (compound_statement "{\n  istream *piVar1;\n  int *piVar2;\n  undefined1 auStack_28 [8];\n  uint local_20;\n  sentry local_1c [16];\n  \n  sentry::sentry(local_1c,this,false);\n  if (local_1c[0] != (sentry)0x0) {\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    \n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }\n  return this;\n}" { (declaration "istream *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined1 auStack_28 [8];" type_identifier (array_declarator "auStack_28 [8]" identifier [ number_literal ]) ;) (declaration "uint local_20;" type_identifier identifier ;) (declaration "sentry local_1c [16];" type_identifier (array_declarator "local_1c [16]" identifier [ number_literal ]) ;) (labeled_statement "sentry::sentry(local_1c,this,false);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_1c,this,false);" (call_expression "sentry(local_1c,this,false)" identifier (argument_list "(local_1c,this,false)" ( identifier , identifier , false ))) ;)) (if_statement "if (local_1c[0] != (sentry)0x0) {\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    \n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }" if (parenthesized_expression "(local_1c[0] != (sentry)0x0)" ( (binary_expression "local_1c[0] != (sentry)0x0" (subscript_expression "local_1c[0]" identifier [ number_literal ]) != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    \n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (expression_statement "piVar1 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "piVar1 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "piVar2 = *(int **)(piVar1 + 0x84);" (assignment_expression "piVar2 = *(int **)(piVar1 + 0x84)" identifier = (pointer_expression "*(int **)(piVar1 + 0x84)" * (cast_expression "(int **)(piVar1 + 0x84)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar1 + 0x84)" ( (binary_expression "piVar1 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }" { (expression_statement "piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" identifier = (cast_expression "(istream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" ( (type_descriptor "istream *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" ( (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" * (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (return_statement "return piVar1;" return identifier ;) })) (expression_statement "(**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);" (call_expression "(**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1)" (parenthesized_expression "(**(code **)(*piVar2 + 0x30))" ( (pointer_expression "**(code **)(*piVar2 + 0x30)" * (pointer_expression "*(code **)(*piVar2 + 0x30)" * (cast_expression "(code **)(*piVar2 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + 0x30)" ( (binary_expression "*piVar2 + 0x30" (pointer_expression "*piVar2" * identifier) + number_literal) ))))) )) (argument_list "(auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1)" ( identifier , identifier , (pointer_expression "*(undefined4 *)(piVar1 + 0x78)" * (cast_expression "(undefined4 *)(piVar1 + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 0x78)" ( (binary_expression "piVar1 + 0x78" identifier + number_literal) )))) , number_literal , number_literal , number_literal , identifier , (pointer_expression "&local_20" & identifier) , identifier ))) ;) (if_statement "if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }" if (parenthesized_expression "(local_20 != 0)" ( (binary_expression "local_20 != 0" identifier != number_literal) )) (compound_statement "{\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }" { (labeled_statement "ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" (call_expression "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" identifier (argument_list "((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" ( (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" identifier | (pointer_expression "*(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" * (cast_expression "(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (binary_expression "(ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14" (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) ))))) ))) ;)) (return_statement "return this;" return identifier ;) })) })) (return_statement "return this;" return identifier ;) }))
(translation_unit (ERROR (binary_expression (binary_expression (binary_expression IDENT * IDENT) (ERROR IDENT : : IDENT : : IDENT) < IDENT) (ERROR *) > (parenthesized_expression ( (comma_expression (binary_expression IDENT * IDENT) , (binary_expression IDENT * (pointer_expression * IDENT))) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = (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) )))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , LIT , IDENT , (pointer_expression & IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 IDENT | (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) ))))) ))) ;)) (return_statement return IDENT ;) })) })) (return_statement return IDENT ;) }))
(ERROR "istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)" (binary_expression "istream * __thiscall std::istream::_M_extract<void*>(istream *this,void **param_1)" (binary_expression "istream * __thiscall std::istream::_M_extract<void" (binary_expression "istream * __thiscall" (identifier "istream") (* "*") (identifier "__thiscall")) (ERROR "std::istream::_M_extract" (identifier "std") (: ":") (: ":") (identifier "istream") (: ":") (: ":") (identifier "_M_extract")) (< "<") (identifier "void")) (ERROR "*" (* "*")) (> ">") (parenthesized_expression "(istream *this,void **param_1)" (( "(") (comma_expression "istream *this,void **param_1" (binary_expression "istream *this" (identifier "istream") (* "*") (identifier "this")) (, ",") (binary_expression "void **param_1" (identifier "void") (* "*") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")")))) (compound_statement "{\n  istream *piVar1;\n  int *piVar2;\n  undefined1 auStack_28 [8];\n  uint local_20;\n  sentry local_1c [16];\n  \n  sentry::sentry(local_1c,this,false);\n  if (local_1c[0] != (sentry)0x0) {\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    \n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }\n  return this;\n}" ({ "{") (declaration "istream *piVar1;" (type_identifier "istream") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined1 auStack_28 [8];" (type_identifier "undefined1") (array_declarator "auStack_28 [8]" (identifier "auStack_28") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "uint local_20;" (type_identifier "uint") (identifier "local_20") (; ";")) (declaration "sentry local_1c [16];" (type_identifier "sentry") (array_declarator "local_1c [16]" (identifier "local_1c") ([ "[") (number_literal "16") (] "]")) (; ";")) (labeled_statement "sentry::sentry(local_1c,this,false);" (statement_identifier "sentry") (: ":") (ERROR ":" (: ":")) (expression_statement "sentry(local_1c,this,false);" (call_expression "sentry(local_1c,this,false)" (identifier "sentry") (argument_list "(local_1c,this,false)" (( "(") (identifier "local_1c") (, ",") (identifier "this") (, ",") (false "false") () ")"))) (; ";"))) (if_statement "if (local_1c[0] != (sentry)0x0) {\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    \n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }" (if "if") (parenthesized_expression "(local_1c[0] != (sentry)0x0)" (( "(") (binary_expression "local_1c[0] != (sentry)0x0" (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]")) (!= "!=") (cast_expression "(sentry)0x0" (( "(") (type_descriptor "sentry" (type_identifier "sentry")) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_20 = 0;\n    piVar1 = this + *(int *)(*(int *)this + -0xc);\n    piVar2 = *(int **)(piVar1 + 0x84);\n    if (piVar2 == (int *)0x0) {\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }\n                    \n    (**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);\n    if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }\n  }" ({ "{") (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "piVar1 = this + *(int *)(*(int *)this + -0xc)" (identifier "piVar1") (= "=") (binary_expression "this + *(int *)(*(int *)this + -0xc)" (identifier "this") (+ "+") (pointer_expression "*(int *)(*(int *)this + -0xc)" (* "*") (cast_expression "(int *)(*(int *)this + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + -0xc)" (( "(") (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (expression_statement "piVar2 = *(int **)(piVar1 + 0x84);" (assignment_expression "piVar2 = *(int **)(piVar1 + 0x84)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(piVar1 + 0x84)" (* "*") (cast_expression "(int **)(piVar1 + 0x84)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(piVar1 + 0x84)" (( "(") (binary_expression "piVar1 + 0x84" (identifier "piVar1") (+ "+") (number_literal "0x84")) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();\n      return piVar1;\n    }" ({ "{") (expression_statement "piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();" (assignment_expression "piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" (identifier "piVar1") (= "=") (cast_expression "(istream *)(*(code *)PTR___throw_bad_cast_004c22bc)()" (( "(") (type_descriptor "istream *" (type_identifier "istream") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___throw_bad_cast_004c22bc)()" (parenthesized_expression "(*(code *)PTR___throw_bad_cast_004c22bc)" (( "(") (pointer_expression "*(code *)PTR___throw_bad_cast_004c22bc" (* "*") (cast_expression "(code *)PTR___throw_bad_cast_004c22bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___throw_bad_cast_004c22bc"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (expression_statement "(**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1);" (call_expression "(**(code **)(*piVar2 + 0x30))\n              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1)" (parenthesized_expression "(**(code **)(*piVar2 + 0x30))" (( "(") (pointer_expression "**(code **)(*piVar2 + 0x30)" (* "*") (pointer_expression "*(code **)(*piVar2 + 0x30)" (* "*") (cast_expression "(code **)(*piVar2 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar2 + 0x30)" (( "(") (binary_expression "*piVar2 + 0x30" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,\n               &local_20,param_1)" (( "(") (identifier "auStack_28") (, ",") (identifier "piVar2") (, ",") (pointer_expression "*(undefined4 *)(piVar1 + 0x78)" (* "*") (cast_expression "(undefined4 *)(piVar1 + 0x78)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 0x78)" (( "(") (binary_expression "piVar1 + 0x78" (identifier "piVar1") (+ "+") (number_literal "0x78")) () ")")))) (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0") (, ",") (number_literal "0xffffffff") (, ",") (identifier "piVar1") (, ",") (pointer_expression "&local_20" (& "&") (identifier "local_20")) (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (local_20 != 0) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }" (if "if") (parenthesized_expression "(local_20 != 0)" (( "(") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));\n      return this;\n    }" ({ "{") (labeled_statement "ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" (statement_identifier "ios") (: ":") (ERROR ":" (: ":")) (expression_statement "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));" (call_expression "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" (identifier "clear") (argument_list "((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14))" (( "(") (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" (( "(") (binary_expression "this + *(int *)(*(int *)this + -0xc)" (identifier "this") (+ "+") (pointer_expression "*(int *)(*(int *)this + -0xc)" (* "*") (cast_expression "(int *)(*(int *)this + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + -0xc)" (( "(") (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (number_literal "-0xc")) () ")"))))) () ")"))) (, ",") (binary_expression "local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" (identifier "local_20") (| "|") (pointer_expression "*(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" (* "*") (cast_expression "(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" (( "(") (binary_expression "(ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14" (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" (( "(") (type_descriptor "ios *" (type_identifier "ios") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" (( "(") (binary_expression "this + *(int *)(*(int *)this + -0xc)" (identifier "this") (+ "+") (pointer_expression "*(int *)(*(int *)this + -0xc)" (* "*") (cast_expression "(int *)(*(int *)this + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + -0xc)" (( "(") (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (number_literal "-0xc")) () ")"))))) () ")"))) (+ "+") (number_literal "0x14")) () ")"))))) () ")"))) (; ";"))) (return_statement "return this;" (return "return") (identifier "this") (; ";")) (} "}"))) (} "}"))) (return_statement "return this;" (return "return") (identifier "this") (; ";")) (} "}"))

/* std::istream& std::istream::_M_extract<void*>(void*&) */

type_1 * __thiscall std::type_1::_M_extract<void*>(type_1 *var_1,void **param_1)

{
  type_1 *var_2;
  int *var_3;
  type_2 auStack_28 [8];
  type_3 var_4;
  type_4 local_1c [16];
  
  sentry::type_4(local_1c,var_1,false);
  if (local_1c[0] != (type_4)0x0) {
    var_4 = var_5;
    var_2 = var_1 + *(int *)(*(int *)var_1 + -0xc);
    var_3 = *(int **)(var_2 + 0x84);
    if (var_3 == (int *)0x0) {
                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */
      var_2 = (type_1 *)(*(type_5 *)PTR___throw_bad_cast_004c22bc)();
      return var_2;
    }
                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */
    (**(type_5 **)(*var_3 + 0x30))
              (auStack_28,var_3,*(type_6 *)(var_2 + 0x78),0xffffffff,0,0xffffffff,var_2,
               &var_4,param_1);
    if (var_4 != var_5) {
      ios::var_6((type_7 *)(var_1 + *(int *)(*(int *)var_1 + -0xc)),
                 var_4 | *(type_3 *)((type_7 *)(var_1 + *(int *)(*(int *)var_1 + -0xc)) + 0x14))
      ;
      return var_1;
    }
  }
  return var_1;
}


(translation_unit (ERROR (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) (ERROR (identifier) (identifier) (identifier)) right: (identifier)) (ERROR) right: (parenthesized_expression (comma_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (labeled_statement label: (statement_identifier) (ERROR) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (false))))) (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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)))))))) (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (return_statement (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (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))))) (number_literal) (number_literal) (number_literal) (identifier) (pointer_expression argument: (identifier)) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (identifier) right: (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)))))))))) (return_statement (identifier)))))) (return_statement (identifier))))

/* std::istream& std::istream::MASKED(void*&) */

istream * __thiscall std::istream::MASKED(istream *this,void **param_1)

{
  istream *piVar1;
  int *piVar2;
  undefined1 auStack_28 [8];
  uint local_20;
  sentry local_1c [16];
  
  sentry::sentry(local_1c,this,false);
  if (local_1c[0] != (sentry)0x0) {
    local_20 = 0;
    piVar1 = this + *(int *)(*(int *)this + -0xc);
    piVar2 = *(int **)(piVar1 + 0x84);
    if (piVar2 == (int *)0x0) {
                    /* try { // try from 00360b80 to 00360b87 has its CatchHandler @ 00360b88 */
      piVar1 = (istream *)(*(code *)PTR___throw_bad_cast_004c22bc)();
      return piVar1;
    }
                    /* try { // try from 00360b18 to 00360b1f has its CatchHandler @ 00360b88 */
    (**(code **)(*piVar2 + 0x30))
              (auStack_28,piVar2,*(undefined4 *)(piVar1 + 0x78),0xffffffff,0,0xffffffff,piVar1,
               &local_20,param_1);
    if (local_20 != 0) {
      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),
                 local_20 | *(uint *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14));
      return this;
    }
  }
  return this;
}

