
/* std::istream::getline(char*, long) */

void __thiscall std::istream::getline(istream *this,char *param_1,long param_2)

{
  ctype<char> *this_00;
  ctype<char> cVar1;
  
  this_00 = *(ctype<char> **)(this + *(long *)(*(long *)this + -0x18) + 0xf0);
  if (this_00 != (ctype<char> *)0x0) {
    if (this_00[0x38] == (ctype<char>)0x0) {
      ctype<char>::_M_widen_init(this_00);
      cVar1 = (ctype<char>)0xa;
      if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {
        cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);
      }
    }
    else {
      cVar1 = this_00[0x43];
    }
    getline(this,param_1,param_2,(char)cVar1);
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_bad_cast();
}



void FUN_002faa70(long *param_1,undefined8 param_2,undefined8 param_3)

{
  long *plVar1;
  char cVar2;
  int iVar3;
  undefined8 extraout_RDX;
  
  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);
  if (plVar1 != (long *)0x0) {
    if ((char)plVar1[7] == '\0') {
      FUN_00319ac0(plVar1);
      iVar3 = 10;
      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {
        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);
        iVar3 = (int)cVar2;
      }
    }
    else {
      iVar3 = (int)*(char *)((long)plVar1 + 0x43);
    }
    FUN_00321c90(param_1,param_2,param_3,iVar3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00319450();
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + -0x18]
MOV RBX,qword ptr [RDI + RAX*0x1 + 0xf0]
TEST RBX,RBX
JZ 0x002faaec
CMP byte ptr [RBX + 0x38],0x0
MOV RBP,RDI
MOV R12,RSI
MOV R13,RDX
JZ 0x002faac0
MOVSX ECX,byte ptr [RBX + 0x43]
ADD RSP,0x8
MOV RDX,R13
MOV RSI,R12
MOV RDI,RBP
POP RBX
POP RBP
POP R12
POP R13
JMP 0x00321c90
MOV RDI,RBX
CALL 0x00319ac0
MOV RAX,qword ptr [RBX]
MOV ECX,0xa
MOV RAX,qword ptr [RAX + 0x30]
CMP RAX,qword ptr [0x0043dfd8]
JZ 0x002faaa1
MOV ESI,0xa
MOV RDI,RBX
CALL RAX
MOVSX ECX,AL
JMP 0x002faaa1
CALL 0x00319450
(translation_unit "void FUN_002faa70(long *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long *plVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 extraout_RDX;\n  \n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);\n  if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319450();\n}\n\n" (function_definition "void FUN_002faa70(long *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long *plVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 extraout_RDX;\n  \n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);\n  if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319450();\n}" primitive_type (function_declarator "FUN_002faa70(long *param_1,undefined8 param_2,undefined8 param_3)" identifier (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 extraout_RDX;\n  \n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);\n  if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00319450();\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 extraout_RDX;" type_identifier identifier ;) (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" identifier = (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\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    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }" { (if_statement "if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }" if (parenthesized_expression "((char)plVar1[7] == '\0')" ( (binary_expression "(char)plVar1[7] == '\0'" (cast_expression "(char)plVar1[7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "plVar1[7]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }" { (expression_statement "FUN_00319ac0(plVar1);" (call_expression "FUN_00319ac0(plVar1)" identifier (argument_list "(plVar1)" ( identifier ))) ;) (expression_statement "iVar3 = 10;" (assignment_expression "iVar3 = 10" identifier = number_literal) ;) (if_statement "if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }" if (parenthesized_expression "(*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8)" ( (binary_expression "*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8" (pointer_expression "*(code **)(*plVar1 + 0x30)" * (cast_expression "(code **)(*plVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x30)" ( (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" * identifier) + number_literal) )))) != (cast_expression "(code *)PTR_FUN_0043dfd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }" { (expression_statement "cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);" (assignment_expression "cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10)" identifier = (call_expression "(**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10)" (parenthesized_expression "(**(code **)(*plVar1 + 0x30))" ( (pointer_expression "**(code **)(*plVar1 + 0x30)" * (pointer_expression "*(code **)(*plVar1 + 0x30)" * (cast_expression "(code **)(*plVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x30)" ( (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,10,extraout_RDX,10)" ( identifier , number_literal , identifier , number_literal )))) ;) (expression_statement "iVar3 = (int)cVar2;" (assignment_expression "iVar3 = (int)cVar2" identifier = (cast_expression "(int)cVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) }) (else_clause "else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }" else (compound_statement "{\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }" { (expression_statement "iVar3 = (int)*(char *)((long)plVar1 + 0x43);" (assignment_expression "iVar3 = (int)*(char *)((long)plVar1 + 0x43)" identifier = (cast_expression "(int)*(char *)((long)plVar1 + 0x43)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)((long)plVar1 + 0x43)" * (cast_expression "(char *)((long)plVar1 + 0x43)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar1 + 0x43)" ( (binary_expression "(long)plVar1 + 0x43" (cast_expression "(long)plVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) ;) }))) (expression_statement "FUN_00321c90(param_1,param_2,param_3,iVar3);" (call_expression "FUN_00321c90(param_1,param_2,param_3,iVar3)" identifier (argument_list "(param_1,param_2,param_3,iVar3)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_00319450();" (call_expression "FUN_00319450()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* std::istream::getline(char*, long) */\n\nvoid __thiscall std::istream::getline(istream *this,char *param_1,long param_2)\n\n{\n  ctype<char> *this_00;\n  ctype<char> cVar1;\n  \n  this_00 = *(ctype<char> **)(this + *(long *)(*(long *)this + -0x18) + 0xf0);\n  if (this_00 != (ctype<char> *)0x0) {\n    if (this_00[0x38] == (ctype<char>)0x0) {\n      ctype<char>::_M_widen_init(this_00);\n      cVar1 = (ctype<char>)0xa;\n      if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n        cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);\n      }\n    }\n    else {\n      cVar1 = this_00[0x43];\n    }\n    getline(this,param_1,param_2,(char)cVar1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_bad_cast();\n}\n\n" comment (function_definition "void __thiscall std::istream::getline(istream *this,char *param_1,long param_2)\n\n{\n  ctype<char> *this_00;\n  ctype<char> cVar1;\n  \n  this_00 = *(ctype<char> **)(this + *(long *)(*(long *)this + -0x18) + 0xf0);\n  if (this_00 != (ctype<char> *)0x0) {\n    if (this_00[0x38] == (ctype<char>)0x0) {\n      ctype<char>::_M_widen_init(this_00);\n      cVar1 = (ctype<char>)0xa;\n      if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n        cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);\n      }\n    }\n    else {\n      cVar1 = this_00[0x43];\n    }\n    getline(this,param_1,param_2,(char)cVar1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_bad_cast();\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::istream::" identifier : : identifier : :) (function_declarator "getline(istream *this,char *param_1,long param_2)" identifier (parameter_list "(istream *this,char *param_1,long param_2)" ( (parameter_declaration "istream *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  ctype<char> *this_00;\n  ctype<char> cVar1;\n  \n  this_00 = *(ctype<char> **)(this + *(long *)(*(long *)this + -0x18) + 0xf0);\n  if (this_00 != (ctype<char> *)0x0) {\n    if (this_00[0x38] == (ctype<char>)0x0) {\n      ctype<char>::_M_widen_init(this_00);\n      cVar1 = (ctype<char>)0xa;\n      if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n        cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);\n      }\n    }\n    else {\n      cVar1 = this_00[0x43];\n    }\n    getline(this,param_1,param_2,(char)cVar1);\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_bad_cast();\n}" { (expression_statement "ctype<char> *this_00;" (binary_expression "ctype<char> *this_00" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*this_00" * identifier)) ;) (expression_statement "ctype<char> cVar1;" (binary_expression "ctype<char> cVar1" (binary_expression "ctype<char" identifier < identifier) > identifier) ;) (expression_statement "this_00 = *(ctype<char> **)(this + *(long *)(*(long *)this + -0x18) + 0xf0);" (assignment_expression "this_00 = *(ctype<char> **)(this + *(long *)(*(long *)this + -0x18) + 0xf0)" identifier = (pointer_expression "*(ctype<char> **)(this + *(long *)(*(long *)this + -0x18) + 0xf0)" * (call_expression "(ctype<char> **)(this + *(long *)(*(long *)this + -0x18) + 0xf0)" (parenthesized_expression "(ctype<char> **)" ( (binary_expression "ctype<char> **" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "**" * (pointer_expression "*" * identifier))) )) (argument_list "(this + *(long *)(*(long *)this + -0x18) + 0xf0)" ( (binary_expression "this + *(long *)(*(long *)this + -0x18) + 0xf0" (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) ))))) ;) (if_statement "if (this_00 != (ctype<char> *)0x0) {\n    if (this_00[0x38] == (ctype<char>)0x0) {\n      ctype<char>::_M_widen_init(this_00);\n      cVar1 = (ctype<char>)0xa;\n      if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n        cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);\n      }\n    }\n    else {\n      cVar1 = this_00[0x43];\n    }\n    getline(this,param_1,param_2,(char)cVar1);\n    return;\n  }" if (parenthesized_expression "(this_00 != (ctype<char> *)0x0)" ( (binary_expression "this_00 != (ctype<char> *)0x0)" identifier != (parenthesized_expression "(ctype<char> *)0x0)" ( (binary_expression "ctype<char> *)0x0" (binary_expression "ctype<char" identifier < identifier) > (pointer_expression "*)0x0" * (ERROR ")" )) number_literal)) ))) )) (compound_statement "{\n    if (this_00[0x38] == (ctype<char>)0x0) {\n      ctype<char>::_M_widen_init(this_00);\n      cVar1 = (ctype<char>)0xa;\n      if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n        cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);\n      }\n    }\n    else {\n      cVar1 = this_00[0x43];\n    }\n    getline(this,param_1,param_2,(char)cVar1);\n    return;\n  }" { (if_statement "if (this_00[0x38] == (ctype<char>)0x0) {\n      ctype<char>::_M_widen_init(this_00);\n      cVar1 = (ctype<char>)0xa;\n      if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n        cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);\n      }\n    }\n    else {\n      cVar1 = this_00[0x43];\n    }" if (parenthesized_expression "(this_00[0x38] == (ctype<char>)0x0)" ( (binary_expression "this_00[0x38] == (ctype<char>)0x0)" (subscript_expression "this_00[0x38]" identifier [ number_literal ]) == (parenthesized_expression "(ctype<char>)0x0)" ( (binary_expression "ctype<char>)0x0" (binary_expression "ctype<char" identifier < identifier) > (ERROR ")" )) number_literal) ))) )) (compound_statement "{\n      ctype<char>::_M_widen_init(this_00);\n      cVar1 = (ctype<char>)0xa;\n      if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n        cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);\n      }\n    }" { (expression_statement "ctype<char>::_M_widen_init(this_00);" (binary_expression "ctype<char>::_M_widen_init(this_00)" (binary_expression "ctype<char" identifier < identifier) > (ERROR "::" : :) (call_expression "_M_widen_init(this_00)" identifier (argument_list "(this_00)" ( identifier )))) ;) (expression_statement "cVar1 = (ctype<char>)0xa;" (assignment_expression "cVar1 = (ctype<char>)0xa" identifier = (parenthesized_expression "(ctype<char>)0xa" ( (binary_expression "ctype<char>)0xa" (binary_expression "ctype<char" identifier < identifier) > (ERROR ")" )) number_literal) ))) ;) (if_statement "if (*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8) {\n        cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);\n      }" if (parenthesized_expression "(*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8)" ( (binary_expression "*(code **)(*(long *)this_00 + 0x30) != (code *)PTR_do_widen_0043dfd8" (pointer_expression "*(code **)(*(long *)this_00 + 0x30)" * (cast_expression "(code **)(*(long *)this_00 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this_00 + 0x30)" ( (binary_expression "*(long *)this_00 + 0x30" (pointer_expression "*(long *)this_00" * (cast_expression "(long *)this_00" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) != (cast_expression "(code *)PTR_do_widen_0043dfd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);\n      }" { (expression_statement "cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10);" (assignment_expression "cVar1 = (ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10)" identifier = (call_expression "(ctype<char>)(**(code **)(*(long *)this_00 + 0x30))(this_00,10)" (call_expression "(ctype<char>)(**(code **)(*(long *)this_00 + 0x30))" (parenthesized_expression "(ctype<char>)" ( (binary_expression "ctype<char>" (binary_expression "ctype<char" identifier < identifier) > identifier) )) (argument_list "(**(code **)(*(long *)this_00 + 0x30))" ( (pointer_expression "**(code **)(*(long *)this_00 + 0x30)" * (pointer_expression "*(code **)(*(long *)this_00 + 0x30)" * (cast_expression "(code **)(*(long *)this_00 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this_00 + 0x30)" ( (binary_expression "*(long *)this_00 + 0x30" (pointer_expression "*(long *)this_00" * (cast_expression "(long *)this_00" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) (argument_list "(this_00,10)" ( identifier , number_literal )))) ;) })) }) (else_clause "else {\n      cVar1 = this_00[0x43];\n    }" else (compound_statement "{\n      cVar1 = this_00[0x43];\n    }" { (expression_statement "cVar1 = this_00[0x43];" (assignment_expression "cVar1 = this_00[0x43]" identifier = (subscript_expression "this_00[0x43]" identifier [ number_literal ])) ;) }))) (expression_statement "getline(this,param_1,param_2,(char)cVar1);" (call_expression "getline(this,param_1,param_2,(char)cVar1)" identifier (argument_list "(this,param_1,param_2,(char)cVar1)" ( identifier , identifier , identifier , (cast_expression "(char)cVar1" ( (type_descriptor "char" primitive_type) ) identifier) ))) ;) (return_statement "return;" return ;) })) comment (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void FUN_002faa70(long *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long *plVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 extraout_RDX;\n  \n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);\n  if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }\n                    \n  FUN_00319450();\n}\n\n" (function_definition "void FUN_002faa70(long *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long *plVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 extraout_RDX;\n  \n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);\n  if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }\n                    \n  FUN_00319450();\n}" primitive_type (function_declarator "FUN_002faa70(long *param_1,undefined8 param_2,undefined8 param_3)" identifier (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 extraout_RDX;\n  \n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);\n  if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }\n                    \n  FUN_00319450();\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 extraout_RDX;" type_identifier identifier ;) (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" identifier = (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) ;) (if_statement "if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\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    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }" { (if_statement "if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }" if (parenthesized_expression "((char)plVar1[7] == '\0')" ( (binary_expression "(char)plVar1[7] == '\0'" (cast_expression "(char)plVar1[7]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "plVar1[7]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }" { (expression_statement "FUN_00319ac0(plVar1);" (call_expression "FUN_00319ac0(plVar1)" identifier (argument_list "(plVar1)" ( identifier ))) ;) (expression_statement "iVar3 = 10;" (assignment_expression "iVar3 = 10" identifier = number_literal) ;) (if_statement "if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }" if (parenthesized_expression "(*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8)" ( (binary_expression "*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8" (pointer_expression "*(code **)(*plVar1 + 0x30)" * (cast_expression "(code **)(*plVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x30)" ( (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" * identifier) + number_literal) )))) != (cast_expression "(code *)PTR_FUN_0043dfd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }" { (expression_statement "cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);" (assignment_expression "cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10)" identifier = (call_expression "(**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10)" (parenthesized_expression "(**(code **)(*plVar1 + 0x30))" ( (pointer_expression "**(code **)(*plVar1 + 0x30)" * (pointer_expression "*(code **)(*plVar1 + 0x30)" * (cast_expression "(code **)(*plVar1 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x30)" ( (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,10,extraout_RDX,10)" ( identifier , number_literal , identifier , number_literal )))) ;) (expression_statement "iVar3 = (int)cVar2;" (assignment_expression "iVar3 = (int)cVar2" identifier = (cast_expression "(int)cVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) }) (else_clause "else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }" else (compound_statement "{\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }" { (expression_statement "iVar3 = (int)*(char *)((long)plVar1 + 0x43);" (assignment_expression "iVar3 = (int)*(char *)((long)plVar1 + 0x43)" identifier = (cast_expression "(int)*(char *)((long)plVar1 + 0x43)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)((long)plVar1 + 0x43)" * (cast_expression "(char *)((long)plVar1 + 0x43)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar1 + 0x43)" ( (binary_expression "(long)plVar1 + 0x43" (cast_expression "(long)plVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))))) ;) }))) (expression_statement "FUN_00321c90(param_1,param_2,param_3,iVar3);" (call_expression "FUN_00321c90(param_1,param_2,param_3,iVar3)" identifier (argument_list "(param_1,param_2,param_3,iVar3)" ( identifier , identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00319450();" (call_expression "FUN_00319450()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void FUN_002faa70(long *param_1,undefined8 param_2,undefined8 param_3)\n\n{\n  long *plVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 extraout_RDX;\n  \n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);\n  if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }\n                    \n  FUN_00319450();\n}" (primitive_type "void") (function_declarator "FUN_002faa70(long *param_1,undefined8 param_2,undefined8 param_3)" (identifier "FUN_002faa70") (parameter_list "(long *param_1,undefined8 param_2,undefined8 param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  long *plVar1;\n  char cVar2;\n  int iVar3;\n  undefined8 extraout_RDX;\n  \n  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);\n  if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }\n                    \n  FUN_00319450();\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined8 extraout_RDX;" (type_identifier "undefined8") (identifier "extraout_RDX") (; ";")) (expression_statement "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);" (assignment_expression "plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" (identifier "plVar1") (= "=") (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" (* "*") (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0)" (( "(") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")"))))) (+ "+") (number_literal "0xf0")) () ")"))))) (; ";")) (if_statement "if (plVar1 != (long *)0x0) {\n    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\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    if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }\n    FUN_00321c90(param_1,param_2,param_3,iVar3);\n    return;\n  }" ({ "{") (if_statement "if ((char)plVar1[7] == '\0') {\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }\n    else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }" (if "if") (parenthesized_expression "((char)plVar1[7] == '\0')" (( "(") (binary_expression "(char)plVar1[7] == '\0'" (cast_expression "(char)plVar1[7]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "plVar1[7]" (identifier "plVar1") ([ "[") (number_literal "7") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      FUN_00319ac0(plVar1);\n      iVar3 = 10;\n      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }\n    }" ({ "{") (expression_statement "FUN_00319ac0(plVar1);" (call_expression "FUN_00319ac0(plVar1)" (identifier "FUN_00319ac0") (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")"))) (; ";")) (expression_statement "iVar3 = 10;" (assignment_expression "iVar3 = 10" (identifier "iVar3") (= "=") (number_literal "10")) (; ";")) (if_statement "if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }" (if "if") (parenthesized_expression "(*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8)" (( "(") (binary_expression "*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8" (pointer_expression "*(code **)(*plVar1 + 0x30)" (* "*") (cast_expression "(code **)(*plVar1 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x30)" (( "(") (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x30")) () ")")))) (!= "!=") (cast_expression "(code *)PTR_FUN_0043dfd8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0043dfd8"))) () ")")) (compound_statement "{\n        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);\n        iVar3 = (int)cVar2;\n      }" ({ "{") (expression_statement "cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);" (assignment_expression "cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10)" (identifier "cVar2") (= "=") (call_expression "(**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10)" (parenthesized_expression "(**(code **)(*plVar1 + 0x30))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x30)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x30)" (* "*") (cast_expression "(code **)(*plVar1 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x30)" (( "(") (binary_expression "*plVar1 + 0x30" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(plVar1,10,extraout_RDX,10)" (( "(") (identifier "plVar1") (, ",") (number_literal "10") (, ",") (identifier "extraout_RDX") (, ",") (number_literal "10") () ")")))) (; ";")) (expression_statement "iVar3 = (int)cVar2;" (assignment_expression "iVar3 = (int)cVar2" (identifier "iVar3") (= "=") (cast_expression "(int)cVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar2"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }" (else "else") (compound_statement "{\n      iVar3 = (int)*(char *)((long)plVar1 + 0x43);\n    }" ({ "{") (expression_statement "iVar3 = (int)*(char *)((long)plVar1 + 0x43);" (assignment_expression "iVar3 = (int)*(char *)((long)plVar1 + 0x43)" (identifier "iVar3") (= "=") (cast_expression "(int)*(char *)((long)plVar1 + 0x43)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(char *)((long)plVar1 + 0x43)" (* "*") (cast_expression "(char *)((long)plVar1 + 0x43)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar1 + 0x43)" (( "(") (binary_expression "(long)plVar1 + 0x43" (cast_expression "(long)plVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar1")) (+ "+") (number_literal "0x43")) () ")")))))) (; ";")) (} "}")))) (expression_statement "FUN_00321c90(param_1,param_2,param_3,iVar3);" (call_expression "FUN_00321c90(param_1,param_2,param_3,iVar3)" (identifier "FUN_00321c90") (argument_list "(param_1,param_2,param_3,iVar3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00319450();" (call_expression "FUN_00319450()" (identifier "FUN_00319450") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* std::istream::getline(char*, long) */

void __thiscall std::type_1::function_1(type_1 *var_4,char *param_1,long param_2)

{
  var_1<var_2> *var_5;
  var_1<var_2> var_3;
  
  var_5 = *(var_1<var_2> **var_7)(var_4 + *(long *)(*(long *)var_4 + -0x18) + 0xf0);
  if (var_5 != (var_1<var_2> *)0x0) {
    if (var_5[0x38] == (var_1<var_2>)0x0) {
      var_1<var_2>::var_6(var_5);
      var_3 = (var_1<var_2>)0xa;
      if (*(type_2 **)(*(long *)var_5 + 0x30) != (type_2 *)PTR_do_widen_0043dfd8) {
        var_3 = (var_1<var_2>var_7)(**(type_2 **)(*(long *)var_5 + 0x30))(var_5,10);
      }
    }
    else {
      var_3 = var_5[0x43];
    }
    function_1(var_4,param_1,param_2,(char)var_3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_8();
}


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

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

{
  long *plVar1;
  char cVar2;
  int iVar3;
  undefined8 extraout_RDX;
  
  plVar1 = *(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xf0);
  if (plVar1 != (long *)0x0) {
    if ((char)plVar1[7] == '\0') {
      FUN_00319ac0(plVar1);
      iVar3 = 10;
      if (*(code **)(*plVar1 + 0x30) != (code *)PTR_FUN_0043dfd8) {
        cVar2 = (**(code **)(*plVar1 + 0x30))(plVar1,10,extraout_RDX,10);
        iVar3 = (int)cVar2;
      }
    }
    else {
      iVar3 = (int)*(char *)((long)plVar1 + 0x43);
    }
    FUN_00321c90(param_1,param_2,param_3,iVar3);
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00319450();
}

