
/* std::istream::TEMPNAMEPLACEHOLDERVALUE(double&) */

istream * __thiscall std::istream::operator>>(istream *this,double *param_1)

{
  long *plVar1;
  istream *piVar2;
  sentry sStack_1d;
  _Ios_Iostate _Stack_1c;
  
  sentry::sentry(&sStack_1d,this,false);
  if (sStack_1d != (sentry)0x0) {
    _Stack_1c = _S_goodbit;
    piVar2 = this + *(long *)(*(long *)this + -0x18);
    plVar1 = *(long **)(piVar2 + 0x100);
    if (plVar1 == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
      __throw_bad_cast();
    }
    (**(code **)(*plVar1 + 0x50))
              (plVar1,*(undefined8 *)(piVar2 + 0xe8),0xffffffff,0,0xffffffff,piVar2,&_Stack_1c,
               param_1);
    if (_Stack_1c != _S_goodbit) {
      ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),
                 _Stack_1c |
                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));
      return this;
    }
  }
  return this;
}



long * thunk_FUN_002994a0(long *param_1,undefined8 param_2)

{
  long *plVar1;
  long lVar2;
  char cStack_1d;
  uint uStack_1c;
  
  FUN_00296fe0(&cStack_1d,param_1,0);
  if (cStack_1d != '\0') {
    uStack_1c = 0;
    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
    plVar1 = *(long **)(lVar2 + 0x100);
    if (plVar1 == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_002b5510();
    }
    (**(code **)(*plVar1 + 0x50))
              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);
    if (uStack_1c != 0) {
      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);
      return param_1;
    }
  }
  return param_1;
}


JMP 0x002994a0
(translation_unit "long * thunk_FUN_002994a0(long *param_1,undefined8 param_2)\n\n{\n  long *plVar1;\n  long lVar2;\n  char cStack_1d;\n  uint uStack_1c;\n  \n  FUN_00296fe0(&cStack_1d,param_1,0);\n  if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "long * thunk_FUN_002994a0(long *param_1,undefined8 param_2)\n\n{\n  long *plVar1;\n  long lVar2;\n  char cStack_1d;\n  uint uStack_1c;\n  \n  FUN_00296fe0(&cStack_1d,param_1,0);\n  if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* thunk_FUN_002994a0(long *param_1,undefined8 param_2)" * (function_declarator "thunk_FUN_002994a0(long *param_1,undefined8 param_2)" identifier (parameter_list "(long *param_1,undefined8 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) )))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  char cStack_1d;\n  uint uStack_1c;\n  \n  FUN_00296fe0(&cStack_1d,param_1,0);\n  if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\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 cStack_1d;" primitive_type identifier ;) (declaration "uint uStack_1c;" type_identifier identifier ;) (expression_statement "FUN_00296fe0(&cStack_1d,param_1,0);" (call_expression "FUN_00296fe0(&cStack_1d,param_1,0)" identifier (argument_list "(&cStack_1d,param_1,0)" ( (pointer_expression "&cStack_1d" & identifier) , identifier , number_literal ))) ;) (if_statement "if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }" if (parenthesized_expression "(cStack_1d != '\0')" ( (binary_expression "cStack_1d != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }" { (expression_statement "uStack_1c = 0;" (assignment_expression "uStack_1c = 0" identifier = number_literal) ;) (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 "plVar1 = *(long **)(lVar2 + 0x100);" (assignment_expression "plVar1 = *(long **)(lVar2 + 0x100)" identifier = (pointer_expression "*(long **)(lVar2 + 0x100)" * (cast_expression "(long **)(lVar2 + 0x100)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x100)" ( (binary_expression "lVar2 + 0x100" identifier + number_literal) ))))) ;) (if_statement "if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_002b5510();\n    }" if (parenthesized_expression "(plVar1 == (long *)0x0)" ( (binary_expression "plVar1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_002b5510();\n    }" { comment (expression_statement "FUN_002b5510();" (call_expression "FUN_002b5510()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "(**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);" (call_expression "(**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c)" ( identifier , (pointer_expression "*(undefined8 *)(lVar2 + 0xe8)" * (cast_expression "(undefined8 *)(lVar2 + 0xe8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xe8)" ( (binary_expression "lVar2 + 0xe8" identifier + number_literal) )))) , number_literal , number_literal , number_literal , identifier , (pointer_expression "&uStack_1c" & identifier) ))) ;) (if_statement "if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }" if (parenthesized_expression "(uStack_1c != 0)" ( (binary_expression "uStack_1c != 0" identifier != number_literal) )) (compound_statement "{\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\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_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);" (call_expression "FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2)" identifier (argument_list "(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2)" ( identifier , (binary_expression "uStack_1c | *(uint *)(lVar2 + 0x20)" identifier | (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) ))))) , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::istream::TEMPNAMEPLACEHOLDERVALUE(double&) */\n\nistream * __thiscall std::istream::operator>>(istream *this,double *param_1)\n\n{\n  long *plVar1;\n  istream *piVar2;\n  sentry sStack_1d;\n  _Ios_Iostate _Stack_1c;\n  \n  sentry::sentry(&sStack_1d,this,false);\n  if (sStack_1d != (sentry)0x0) {\n    _Stack_1c = _S_goodbit;\n    piVar2 = this + *(long *)(*(long *)this + -0x18);\n    plVar1 = *(long **)(piVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(piVar2 + 0xe8),0xffffffff,0,0xffffffff,piVar2,&_Stack_1c,\n               param_1);\n    if (_Stack_1c != _S_goodbit) {\n      ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                 _Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }\n  }\n  return this;\n}\n\n" comment (ERROR "istream * __thiscall std::istream::operator>>(istream *this,double *param_1)" (binary_expression "istream * __thiscall std::istream::operator>>(istream *this,double *param_1)" (binary_expression "istream * __thiscall" identifier * identifier) (ERROR "std::istream::operator" identifier : : identifier : : identifier) >> (parenthesized_expression "(istream *this,double *param_1)" ( (comma_expression "istream *this,double *param_1" (binary_expression "istream *this" identifier * identifier) , (binary_expression "double *param_1" identifier * identifier)) )))) (compound_statement "{\n  long *plVar1;\n  istream *piVar2;\n  sentry sStack_1d;\n  _Ios_Iostate _Stack_1c;\n  \n  sentry::sentry(&sStack_1d,this,false);\n  if (sStack_1d != (sentry)0x0) {\n    _Stack_1c = _S_goodbit;\n    piVar2 = this + *(long *)(*(long *)this + -0x18);\n    plVar1 = *(long **)(piVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(piVar2 + 0xe8),0xffffffff,0,0xffffffff,piVar2,&_Stack_1c,\n               param_1);\n    if (_Stack_1c != _S_goodbit) {\n      ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                 _Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }\n  }\n  return this;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "istream *piVar2;" type_identifier (pointer_declarator "*piVar2" * identifier) ;) (declaration "sentry sStack_1d;" type_identifier identifier ;) (declaration "_Ios_Iostate _Stack_1c;" type_identifier identifier ;) (labeled_statement "sentry::sentry(&sStack_1d,this,false);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(&sStack_1d,this,false);" (call_expression "sentry(&sStack_1d,this,false)" identifier (argument_list "(&sStack_1d,this,false)" ( (pointer_expression "&sStack_1d" & identifier) , identifier , false ))) ;)) (if_statement "if (sStack_1d != (sentry)0x0) {\n    _Stack_1c = _S_goodbit;\n    piVar2 = this + *(long *)(*(long *)this + -0x18);\n    plVar1 = *(long **)(piVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(piVar2 + 0xe8),0xffffffff,0,0xffffffff,piVar2,&_Stack_1c,\n               param_1);\n    if (_Stack_1c != _S_goodbit) {\n      ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                 _Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }\n  }" if (parenthesized_expression "(sStack_1d != (sentry)0x0)" ( (binary_expression "sStack_1d != (sentry)0x0" identifier != (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) (compound_statement "{\n    _Stack_1c = _S_goodbit;\n    piVar2 = this + *(long *)(*(long *)this + -0x18);\n    plVar1 = *(long **)(piVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(piVar2 + 0xe8),0xffffffff,0,0xffffffff,piVar2,&_Stack_1c,\n               param_1);\n    if (_Stack_1c != _S_goodbit) {\n      ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                 _Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }\n  }" { (expression_statement "_Stack_1c = _S_goodbit;" (assignment_expression "_Stack_1c = _S_goodbit" identifier = identifier) ;) (expression_statement "piVar2 = this + *(long *)(*(long *)this + -0x18);" (assignment_expression "piVar2 = this + *(long *)(*(long *)this + -0x18)" identifier = (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "plVar1 = *(long **)(piVar2 + 0x100);" (assignment_expression "plVar1 = *(long **)(piVar2 + 0x100)" identifier = (pointer_expression "*(long **)(piVar2 + 0x100)" * (cast_expression "(long **)(piVar2 + 0x100)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(piVar2 + 0x100)" ( (binary_expression "piVar2 + 0x100" identifier + number_literal) ))))) ;) (if_statement "if (plVar1 == (long *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }" if (parenthesized_expression "(plVar1 == (long *)0x0)" ( (binary_expression "plVar1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __throw_bad_cast();\n    }" { comment (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "(**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(piVar2 + 0xe8),0xffffffff,0,0xffffffff,piVar2,&_Stack_1c,\n               param_1);" (call_expression "(**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(piVar2 + 0xe8),0xffffffff,0,0xffffffff,piVar2,&_Stack_1c,\n               param_1)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,*(undefined8 *)(piVar2 + 0xe8),0xffffffff,0,0xffffffff,piVar2,&_Stack_1c,\n               param_1)" ( identifier , (pointer_expression "*(undefined8 *)(piVar2 + 0xe8)" * (cast_expression "(undefined8 *)(piVar2 + 0xe8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0xe8)" ( (binary_expression "piVar2 + 0xe8" identifier + number_literal) )))) , number_literal , number_literal , number_literal , identifier , (pointer_expression "&_Stack_1c" & identifier) , identifier ))) ;) (if_statement "if (_Stack_1c != _S_goodbit) {\n      ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                 _Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }" if (parenthesized_expression "(_Stack_1c != _S_goodbit)" ( (binary_expression "_Stack_1c != _S_goodbit" identifier != identifier) )) (compound_statement "{\n      ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                 _Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));\n      return this;\n    }" { (labeled_statement "ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                 _Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                 _Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20));" (call_expression "clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                 _Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20))" identifier (argument_list "((ios *)(this + *(long *)(*(long *)this + -0x18)),\n                 _Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20))" ( (cast_expression "(ios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "_Stack_1c |\n                 *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" identifier | (pointer_expression "*(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" * (cast_expression "(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" ( (binary_expression "(ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20" (cast_expression "(ios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) ))))) ))) ;)) (return_statement "return this;" return identifier ;) })) })) (return_statement "return this;" return identifier ;) }))
(translation_unit "long * thunk_FUN_002994a0(long *param_1,undefined8 param_2)\n\n{\n  long *plVar1;\n  long lVar2;\n  char cStack_1d;\n  uint uStack_1c;\n  \n  FUN_00296fe0(&cStack_1d,param_1,0);\n  if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" (function_definition "long * thunk_FUN_002994a0(long *param_1,undefined8 param_2)\n\n{\n  long *plVar1;\n  long lVar2;\n  char cStack_1d;\n  uint uStack_1c;\n  \n  FUN_00296fe0(&cStack_1d,param_1,0);\n  if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }\n  return param_1;\n}" (sized_type_specifier "long" long) (pointer_declarator "* thunk_FUN_002994a0(long *param_1,undefined8 param_2)" * (function_declarator "thunk_FUN_002994a0(long *param_1,undefined8 param_2)" identifier (parameter_list "(long *param_1,undefined8 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) )))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  char cStack_1d;\n  uint uStack_1c;\n  \n  FUN_00296fe0(&cStack_1d,param_1,0);\n  if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\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 cStack_1d;" primitive_type identifier ;) (declaration "uint uStack_1c;" type_identifier identifier ;) (expression_statement "FUN_00296fe0(&cStack_1d,param_1,0);" (call_expression "FUN_00296fe0(&cStack_1d,param_1,0)" identifier (argument_list "(&cStack_1d,param_1,0)" ( (pointer_expression "&cStack_1d" & identifier) , identifier , number_literal ))) ;) (if_statement "if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }" if (parenthesized_expression "(cStack_1d != '\0')" ( (binary_expression "cStack_1d != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }" { (expression_statement "uStack_1c = 0;" (assignment_expression "uStack_1c = 0" identifier = number_literal) ;) (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 "plVar1 = *(long **)(lVar2 + 0x100);" (assignment_expression "plVar1 = *(long **)(lVar2 + 0x100)" identifier = (pointer_expression "*(long **)(lVar2 + 0x100)" * (cast_expression "(long **)(lVar2 + 0x100)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x100)" ( (binary_expression "lVar2 + 0x100" identifier + number_literal) ))))) ;) (if_statement "if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }" if (parenthesized_expression "(plVar1 == (long *)0x0)" ( (binary_expression "plVar1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n      FUN_002b5510();\n    }" { (expression_statement "FUN_002b5510();" (call_expression "FUN_002b5510()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "(**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);" (call_expression "(**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" ( (pointer_expression "**(code **)(*plVar1 + 0x50)" * (pointer_expression "*(code **)(*plVar1 + 0x50)" * (cast_expression "(code **)(*plVar1 + 0x50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x50)" ( (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c)" ( identifier , (pointer_expression "*(undefined8 *)(lVar2 + 0xe8)" * (cast_expression "(undefined8 *)(lVar2 + 0xe8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0xe8)" ( (binary_expression "lVar2 + 0xe8" identifier + number_literal) )))) , number_literal , number_literal , number_literal , identifier , (pointer_expression "&uStack_1c" & identifier) ))) ;) (if_statement "if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }" if (parenthesized_expression "(uStack_1c != 0)" ( (binary_expression "uStack_1c != 0" identifier != number_literal) )) (compound_statement "{\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\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_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);" (call_expression "FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2)" identifier (argument_list "(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2)" ( identifier , (binary_expression "uStack_1c | *(uint *)(lVar2 + 0x20)" identifier | (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) ))))) , identifier ))) ;) (return_statement "return param_1;" return identifier ;) })) })) (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) )))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (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 , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , LIT , IDENT , (pointer_expression & IDENT) ))) ;) (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 IDENT | (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , IDENT ))) ;) (return_statement return IDENT ;) })) })) (return_statement return IDENT ;) })))
(function_definition "long * thunk_FUN_002994a0(long *param_1,undefined8 param_2)\n\n{\n  long *plVar1;\n  long lVar2;\n  char cStack_1d;\n  uint uStack_1c;\n  \n  FUN_00296fe0(&cStack_1d,param_1,0);\n  if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }\n  return param_1;\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* thunk_FUN_002994a0(long *param_1,undefined8 param_2)" (* "*") (function_declarator "thunk_FUN_002994a0(long *param_1,undefined8 param_2)" (identifier "thunk_FUN_002994a0") (parameter_list "(long *param_1,undefined8 param_2)" (( "(") (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")) () ")")))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  char cStack_1d;\n  uint uStack_1c;\n  \n  FUN_00296fe0(&cStack_1d,param_1,0);\n  if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\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 cStack_1d;" (primitive_type "char") (identifier "cStack_1d") (; ";")) (declaration "uint uStack_1c;" (type_identifier "uint") (identifier "uStack_1c") (; ";")) (expression_statement "FUN_00296fe0(&cStack_1d,param_1,0);" (call_expression "FUN_00296fe0(&cStack_1d,param_1,0)" (identifier "FUN_00296fe0") (argument_list "(&cStack_1d,param_1,0)" (( "(") (pointer_expression "&cStack_1d" (& "&") (identifier "cStack_1d")) (, ",") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (cStack_1d != '\0') {\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(cStack_1d != '\0')" (( "(") (binary_expression "cStack_1d != '\0'" (identifier "cStack_1d") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uStack_1c = 0;\n    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n    plVar1 = *(long **)(lVar2 + 0x100);\n    if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }\n    (**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);\n    if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "uStack_1c = 0;" (assignment_expression "uStack_1c = 0" (identifier "uStack_1c") (= "=") (number_literal "0")) (; ";")) (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 "plVar1 = *(long **)(lVar2 + 0x100);" (assignment_expression "plVar1 = *(long **)(lVar2 + 0x100)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)(lVar2 + 0x100)" (* "*") (cast_expression "(long **)(lVar2 + 0x100)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + 0x100)" (( "(") (binary_expression "lVar2 + 0x100" (identifier "lVar2") (+ "+") (number_literal "0x100")) () ")"))))) (; ";")) (if_statement "if (plVar1 == (long *)0x0) {\n                    \n      FUN_002b5510();\n    }" (if "if") (parenthesized_expression "(plVar1 == (long *)0x0)" (( "(") (binary_expression "plVar1 == (long *)0x0" (identifier "plVar1") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n      FUN_002b5510();\n    }" ({ "{") (expression_statement "FUN_002b5510();" (call_expression "FUN_002b5510()" (identifier "FUN_002b5510") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "(**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);" (call_expression "(**(code **)(*plVar1 + 0x50))\n              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c)" (parenthesized_expression "(**(code **)(*plVar1 + 0x50))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x50)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x50)" (* "*") (cast_expression "(code **)(*plVar1 + 0x50)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x50)" (( "(") (binary_expression "*plVar1 + 0x50" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (argument_list "(plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c)" (( "(") (identifier "plVar1") (, ",") (pointer_expression "*(undefined8 *)(lVar2 + 0xe8)" (* "*") (cast_expression "(undefined8 *)(lVar2 + 0xe8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0xe8)" (( "(") (binary_expression "lVar2 + 0xe8" (identifier "lVar2") (+ "+") (number_literal "0xe8")) () ")")))) (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0") (, ",") (number_literal "0xffffffff") (, ",") (identifier "lVar2") (, ",") (pointer_expression "&uStack_1c" (& "&") (identifier "uStack_1c")) () ")"))) (; ";")) (if_statement "if (uStack_1c != 0) {\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\n    }" (if "if") (parenthesized_expression "(uStack_1c != 0)" (( "(") (binary_expression "uStack_1c != 0" (identifier "uStack_1c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;\n      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);\n      return param_1;\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_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);" (call_expression "FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2)" (identifier "FUN_0029c920") (argument_list "(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2)" (( "(") (identifier "lVar2") (, ",") (binary_expression "uStack_1c | *(uint *)(lVar2 + 0x20)" (identifier "uStack_1c") (| "|") (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")) () ")"))))) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::istream::TEMPNAMEPLACEHOLDERVALUE(double&) */

type_1 * __thiscall std::type_1::operator>>(type_1 *var_2,double *param_1)

{
  long *var_4;
  type_1 *var_3;
  type_2 var_1;
  type_3 var_6;
  
  sentry::type_2(&var_1,var_2,false);
  if (var_1 != (type_2)0x0) {
    var_6 = var_7;
    var_3 = var_2 + *(long *)(*(long *)var_2 + -0x18);
    var_4 = *(long **)(var_3 + 0x100);
    if (var_4 == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_5();
    }
    (**(type_4 **)(*var_4 + 0x50))
              (var_4,*(type_5 *)(var_3 + 0xe8),0xffffffff,0,0xffffffff,var_3,&var_6,
               param_1);
    if (var_6 != var_7) {
      ios::var_8((type_6 *)(var_2 + *(long *)(*(long *)var_2 + -0x18)),
                 var_6 |
                 *(type_3 *)((type_6 *)(var_2 + *(long *)(*(long *)var_2 + -0x18)) + 0x20));
      return var_2;
    }
  }
  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))))) 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)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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 (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (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) (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))))) (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: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (identifier)))) (return_statement (identifier)))))) (return_statement (identifier)))))

long * MASKED(long *param_1,undefined8 param_2)

{
  long *plVar1;
  long lVar2;
  char cStack_1d;
  uint uStack_1c;
  
  FUN_00296fe0(&cStack_1d,param_1,0);
  if (cStack_1d != '\0') {
    uStack_1c = 0;
    lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
    plVar1 = *(long **)(lVar2 + 0x100);
    if (plVar1 == (long *)0x0) {
                    /* WARNING: Subroutine does not return */
      FUN_002b5510();
    }
    (**(code **)(*plVar1 + 0x50))
              (plVar1,*(undefined8 *)(lVar2 + 0xe8),0xffffffff,0,0xffffffff,lVar2,&uStack_1c);
    if (uStack_1c != 0) {
      lVar2 = *(long *)(*param_1 + -0x18) + (long)param_1;
      FUN_0029c920(lVar2,uStack_1c | *(uint *)(lVar2 + 0x20),param_2);
      return param_1;
    }
  }
  return param_1;
}

