
/* std::istream::sync() */

undefined4 __thiscall std::istream::sync(istream *this)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  sentry local_1d [13];
  
  __x86_get_pc_thunk_di();
  sentry::sentry(local_1d,this,true);
  if ((local_1d[0] == (sentry)0x0) ||
     (piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78), piVar1 == (int *)0x0)) {
    uVar3 = 0xffffffff;
  }
  else {
                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */
    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);
    if (iVar2 == -1) {
      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),
                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit
                );
      uVar3 = 0xffffffff;
    }
    else {
      uVar3 = 0;
    }
  }
  return uVar3;
}



undefined4 FUN_001a5620(int *param_1)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  char local_1d [13];
  
  FUN_0004fb7e();
  FUN_001a4090(local_1d,param_1,1);
  if ((local_1d[0] == '\0') ||
     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {
    uVar3 = 0xffffffff;
  }
  else {
                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */
    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);
    if (iVar2 == -1) {
      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);
      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);
      uVar3 = 0xffffffff;
    }
    else {
      uVar3 = 0;
    }
  }
  return uVar3;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x0004fb7e
ADD EDI,0x15c9d7
PUSH ESI
LEA EAX,[EBP + -0x19]
PUSH EBX
SUB ESP,0x30
MOV ESI,dword ptr [EBP + 0x8]
PUSH 0x1
PUSH ESI
MOV EBX,EDI
PUSH EAX
CALL 0x001a4090
ADD ESP,0x10
CMP byte ptr [EBP + -0x19],0x0
JZ 0x001a56a0
MOV EAX,dword ptr [ESI]
MOV EAX,dword ptr [EAX + -0xc]
MOV EAX,dword ptr [ESI + EAX*0x1 + 0x78]
TEST EAX,EAX
JZ 0x001a56a0
MOV EDX,dword ptr [EAX]
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDX + 0x18]
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x001a56a7
XOR EAX,EAX
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,0xffffffff
JMP 0x001a566e
MOV EDX,dword ptr [ESI]
SUB ESP,0x8
MOV dword ptr [EBP + -0x2c],EAX
ADD ESI,dword ptr [EDX + -0xc]
MOV EDX,dword ptr [ESI + 0x14]
OR EDX,0x1
PUSH EDX
PUSH ESI
CALL 0x001aa5f0
ADD ESP,0x10
MOV EAX,dword ptr [EBP + -0x2c]
JMP 0x001a566e
(translation_unit "undefined4 FUN_001a5620(int *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char local_1d [13];\n  \n  FUN_0004fb7e();\n  FUN_001a4090(local_1d,param_1,1);\n  if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_001a5620(int *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char local_1d [13];\n  \n  FUN_0004fb7e();\n  FUN_001a4090(local_1d,param_1,1);\n  if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_001a5620(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char local_1d [13];\n  \n  FUN_0004fb7e();\n  FUN_001a4090(local_1d,param_1,1);\n  if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char local_1d [13];" primitive_type (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "FUN_0004fb7e();" (call_expression "FUN_0004fb7e()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_001a4090(local_1d,param_1,1);" (call_expression "FUN_001a4090(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" if (parenthesized_expression "((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0))" ( (binary_expression "(local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)" (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)" ( (comma_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) , (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    uVar3 = 0xffffffff;\n  }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" else (compound_statement "{\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" { comment (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x18))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x18))" ( (pointer_expression "**(code **)(*piVar1 + 0x18)" * (pointer_expression "*(code **)(*piVar1 + 0x18)" * (cast_expression "(code **)(*piVar1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x18)" ( (binary_expression "*piVar1 + 0x18" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }" { (expression_statement "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);" (assignment_expression "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc)" identifier = (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))))) ;) (expression_statement "FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);" (call_expression "FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1)" identifier (argument_list "(iVar2,*(uint *)(iVar2 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(iVar2 + 0x14) | 1" (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = 0;\n    }" else (compound_statement "{\n      uVar3 = 0;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* std::istream::sync() */\n\nundefined4 __thiscall std::istream::sync(istream *this)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  sentry local_1d [13];\n  \n  __x86_get_pc_thunk_di();\n  sentry::sentry(local_1d,this,true);\n  if ((local_1d[0] == (sentry)0x0) ||\n     (piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                );\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}\n\n" comment (function_definition "undefined4 __thiscall std::istream::sync(istream *this)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  sentry local_1d [13];\n  \n  __x86_get_pc_thunk_di();\n  sentry::sentry(local_1d,this,true);\n  if ((local_1d[0] == (sentry)0x0) ||\n     (piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                );\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::istream::" identifier : : identifier : :) (function_declarator "sync(istream *this)" identifier (parameter_list "(istream *this)" ( (parameter_declaration "istream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  sentry local_1d [13];\n  \n  __x86_get_pc_thunk_di();\n  sentry::sentry(local_1d,this,true);\n  if ((local_1d[0] == (sentry)0x0) ||\n     (piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                );\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "sentry local_1d [13];" type_identifier (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (labeled_statement "sentry::sentry(local_1d,this,true);" statement_identifier : (ERROR ":" :) (expression_statement "sentry(local_1d,this,true);" (call_expression "sentry(local_1d,this,true)" identifier (argument_list "(local_1d,this,true)" ( identifier , identifier , true ))) ;)) (if_statement "if ((local_1d[0] == (sentry)0x0) ||\n     (piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                );\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" if (parenthesized_expression "((local_1d[0] == (sentry)0x0) ||\n     (piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78), piVar1 == (int *)0x0))" ( (binary_expression "(local_1d[0] == (sentry)0x0) ||\n     (piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78), piVar1 == (int *)0x0)" (parenthesized_expression "(local_1d[0] == (sentry)0x0)" ( (binary_expression "local_1d[0] == (sentry)0x0" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) )) || (parenthesized_expression "(piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78), piVar1 == (int *)0x0)" ( (comma_expression "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78), piVar1 == (int *)0x0" (assignment_expression "piVar1 = *(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" * (cast_expression "(int **)(this + *(int *)(*(int *)this + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc) + 0x78)" ( (binary_expression "this + *(int *)(*(int *)this + -0xc) + 0x78" (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) , (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    uVar3 = 0xffffffff;\n  }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                );\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" else (compound_statement "{\n                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */\n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                );\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" { comment (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x18))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x18))" ( (pointer_expression "**(code **)(*piVar1 + 0x18)" * (pointer_expression "*(code **)(*piVar1 + 0x18)" * (cast_expression "(code **)(*piVar1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x18)" ( (binary_expression "*piVar1 + 0x18" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) {\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                );\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                );\n      uVar3 = 0xffffffff;\n    }" { (labeled_statement "ios::clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                );" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                );" (call_expression "clear((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                )" identifier (argument_list "((ios *)(this + *(int *)(*(int *)this + -0xc)),\n                 *(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit\n                )" ( (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14) | _S_badbit" (pointer_expression "*(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" * (cast_expression "(_Ios_Iostate *)((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14)" ( (binary_expression "(ios *)(this + *(int *)(*(int *)this + -0xc)) + 0x14" (cast_expression "(ios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | identifier) ))) ;)) (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = 0;\n    }" else (compound_statement "{\n      uVar3 = 0;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "undefined4 FUN_001a5620(int *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char local_1d [13];\n  \n  FUN_0004fb7e();\n  FUN_001a4090(local_1d,param_1,1);\n  if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_001a5620(int *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char local_1d [13];\n  \n  FUN_0004fb7e();\n  FUN_001a4090(local_1d,param_1,1);\n  if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_001a5620(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char local_1d [13];\n  \n  FUN_0004fb7e();\n  FUN_001a4090(local_1d,param_1,1);\n  if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char local_1d [13];" primitive_type (array_declarator "local_1d [13]" identifier [ number_literal ]) ;) (expression_statement "FUN_0004fb7e();" (call_expression "FUN_0004fb7e()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_001a4090(local_1d,param_1,1);" (call_expression "FUN_001a4090(local_1d,param_1,1)" identifier (argument_list "(local_1d,param_1,1)" ( identifier , identifier , number_literal ))) ;) (if_statement "if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" if (parenthesized_expression "((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0))" ( (binary_expression "(local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)" (parenthesized_expression "(local_1d[0] == '\0')" ( (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)" ( (comma_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) , (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    uVar3 = 0xffffffff;\n  }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" else (compound_statement "{\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" { (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x18))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x18))" ( (pointer_expression "**(code **)(*piVar1 + 0x18)" * (pointer_expression "*(code **)(*piVar1 + 0x18)" * (cast_expression "(code **)(*piVar1 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x18)" ( (binary_expression "*piVar1 + 0x18" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }" { (expression_statement "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);" (assignment_expression "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc)" identifier = (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))))) ;) (expression_statement "FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);" (call_expression "FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1)" identifier (argument_list "(iVar2,*(uint *)(iVar2 + 0x14) | 1)" ( identifier , (binary_expression "*(uint *)(iVar2 + 0x14) | 1" (pointer_expression "*(uint *)(iVar2 + 0x14)" * (cast_expression "(uint *)(iVar2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n      uVar3 = 0;\n    }" else (compound_statement "{\n      uVar3 = 0;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_001a5620(int *param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char local_1d [13];\n  \n  FUN_0004fb7e();\n  FUN_001a4090(local_1d,param_1,1);\n  if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_001a5620(int *param_1)" (identifier "FUN_001a5620") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  char local_1d [13];\n  \n  FUN_0004fb7e();\n  FUN_001a4090(local_1d,param_1,1);\n  if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char local_1d [13];" (primitive_type "char") (array_declarator "local_1d [13]" (identifier "local_1d") ([ "[") (number_literal "13") (] "]")) (; ";")) (expression_statement "FUN_0004fb7e();" (call_expression "FUN_0004fb7e()" (identifier "FUN_0004fb7e") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_001a4090(local_1d,param_1,1);" (call_expression "FUN_001a4090(local_1d,param_1,1)" (identifier "FUN_001a4090") (argument_list "(local_1d,param_1,1)" (( "(") (identifier "local_1d") (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (if_statement "if ((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {\n    uVar3 = 0xffffffff;\n  }\n  else {\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" (if "if") (parenthesized_expression "((local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0))" (( "(") (binary_expression "(local_1d[0] == '\0') ||\n     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)" (parenthesized_expression "(local_1d[0] == '\0')" (( "(") (binary_expression "local_1d[0] == '\0'" (subscript_expression "local_1d[0]" (identifier "local_1d") ([ "[") (number_literal "0") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)" (( "(") (comma_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (* "*") (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x78" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "0x78")) () ")"))))) (, ",") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    uVar3 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" (else "else") (compound_statement "{\n                    \n    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);\n    if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }\n  }" ({ "{") (expression_statement "iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*piVar1 + 0x18))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x18))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x18)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x18)" (* "*") (cast_expression "(code **)(*piVar1 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x18)" (( "(") (binary_expression "*piVar1 + 0x18" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }\n    else {\n      uVar3 = 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);\n      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);\n      uVar3 = 0xffffffff;\n    }" ({ "{") (expression_statement "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);" (assignment_expression "iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc)" (identifier "iVar2") (= "=") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (expression_statement "FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);" (call_expression "FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1)" (identifier "FUN_001aa5f0") (argument_list "(iVar2,*(uint *)(iVar2 + 0x14) | 1)" (( "(") (identifier "iVar2") (, ",") (binary_expression "*(uint *)(iVar2 + 0x14) | 1" (pointer_expression "*(uint *)(iVar2 + 0x14)" (* "*") (cast_expression "(uint *)(iVar2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = 0;\n    }" (else "else") (compound_statement "{\n      uVar3 = 0;\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* std::istream::sync() */

type_1 __thiscall std::type_2::function_1(type_2 *var_2)

{
  int *var_3;
  int var_4;
  type_1 uVar3;
  type_3 local_1d [13];
  
  var_1();
  sentry::type_3(local_1d,var_2,true);
  if ((local_1d[0] == (type_3)0x0) ||
     (var_3 = *(int **)(var_2 + *(int *)(*(int *)var_2 + -0xc) + 0x78), var_3 == (int *)0x0)) {
    uVar3 = 0xffffffff;
  }
  else {
                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */
    var_4 = (**(type_4 **)(*var_3 + 0x18))(var_3);
    if (var_4 == -1) {
      ios::var_5((type_5 *)(var_2 + *(int *)(*(int *)var_2 + -0xc)),
                 *(type_6 *)((type_5 *)(var_2 + *(int *)(*(int *)var_2 + -0xc)) + 0x14) | var_6
                );
      uVar3 = 0xffffffff;
    }
    else {
      uVar3 = 0;
    }
  }
  return uVar3;
}


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

undefined4 MASKED(int *param_1)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  char local_1d [13];
  
  FUN_0004fb7e();
  FUN_001a4090(local_1d,param_1,1);
  if ((local_1d[0] == '\0') ||
     (piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x78), piVar1 == (int *)0x0)) {
    uVar3 = 0xffffffff;
  }
  else {
                    /* try { // try from 001a5661 to 001a5663 has its CatchHandler @ 001a56c7 */
    iVar2 = (**(code **)(*piVar1 + 0x18))(piVar1);
    if (iVar2 == -1) {
      iVar2 = (int)param_1 + *(int *)(*param_1 + -0xc);
      FUN_001aa5f0(iVar2,*(uint *)(iVar2 + 0x14) | 1);
      uVar3 = 0xffffffff;
    }
    else {
      uVar3 = 0;
    }
  }
  return uVar3;
}

