
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ostream::sentry::sentry(std::ostream&) */

void __thiscall std::ostream::sentry::sentry(sentry *this,ostream *param_1)

{
  int iVar1;
  ios *this_00;
  _Ios_Iostate _Var2;
  
  iVar1 = *(int *)param_1;
  *this = (sentry)0x0;
  iVar1 = *(int *)(iVar1 + -0xc);
  *(ostream **)(this + 4) = param_1;
  this_00 = (ios *)(param_1 + iVar1);
  _Var2 = *(_Ios_Iostate *)(this_00 + 0x14);
  if (*(ostream **)(this_00 + 0x70) != (ostream *)0x0) {
    if (_Var2 != _S_goodbit) goto LAB_001f3e33;
    flush(*(ostream **)(this_00 + 0x70));
    this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));
    _Var2 = *(_Ios_Iostate *)(this_00 + 0x14);
  }
  if (_Var2 == _S_goodbit) {
    *this = (sentry)0x1;
    return;
  }
LAB_001f3e33:
  ios::clear(this_00,_Var2 | _S_failbit);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_001f3e00(undefined1 *param_1,int *param_2)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = *param_2;
  *param_1 = 0;
  iVar1 = *(int *)(iVar1 + -0xc);
  *(int **)(param_1 + 4) = param_2;
  iVar1 = iVar1 + (int)param_2;
  uVar2 = *(uint *)(iVar1 + 0x14);
  if (*(int *)(iVar1 + 0x70) != 0) {
    if (uVar2 != 0) goto LAB_001f3e33;
    FUN_001f3600(*(int *)(iVar1 + 0x70));
    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);
    uVar2 = *(uint *)(iVar1 + 0x14);
  }
  if (uVar2 == 0) {
    *param_1 = 1;
    return;
  }
LAB_001f3e33:
  FUN_00210c00(iVar1,uVar2 | 4);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x14]
CALL 0x00035840
ADD EBX,0x19b1f4
MOV EDI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESI]
MOV byte ptr [EDI],0x0
MOV ECX,dword ptr [EAX + -0xc]
MOV dword ptr [EDI + 0x4],ESI
ADD ECX,ESI
MOV EAX,ECX
MOV ECX,dword ptr [ECX + 0x70]
MOV EDX,dword ptr [EAX + 0x14]
TEST ECX,ECX
JZ 0x001f3e66
TEST EDX,EDX
JZ 0x001f3e50
SUB ESP,0x8
OR EDX,0x4
PUSH EDX
PUSH EAX
CALL 0x00210c00
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH ECX
CALL 0x001f3600
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
ADD ESI,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [ESI + 0x14]
MOV EAX,ESI
TEST EDX,EDX
JNZ 0x001f3e33
MOV byte ptr [EDI],0x1
POP EBX
POP ESI
POP EDI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001f3e00(undefined1 *param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = 0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(int **)(param_1 + 4) = param_2;\n  iVar1 = iVar1 + (int)param_2;\n  uVar2 = *(uint *)(iVar1 + 0x14);\n  if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }\n  if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }\nLAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);\n  return;\n}\n\n" comment (function_definition "void FUN_001f3e00(undefined1 *param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = 0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(int **)(param_1 + 4) = param_2;\n  iVar1 = iVar1 + (int)param_2;\n  uVar2 = *(uint *)(iVar1 + 0x14);\n  if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }\n  if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }\nLAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);\n  return;\n}" primitive_type (function_declarator "FUN_001f3e00(undefined1 *param_1,int *param_2)" identifier (parameter_list "(undefined1 *param_1,int *param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = 0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(int **)(param_1 + 4) = param_2;\n  iVar1 = iVar1 + (int)param_2;\n  uVar2 = *(uint *)(iVar1 + 0x14);\n  if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }\n  if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }\nLAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "iVar1 = *(int *)(iVar1 + -0xc);" (assignment_expression "iVar1 = *(int *)(iVar1 + -0xc)" identifier = (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 4) = param_2;" (assignment_expression "*(int **)(param_1 + 4) = param_2" (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = iVar1 + (int)param_2;" (assignment_expression "iVar1 = iVar1 + (int)param_2" identifier = (binary_expression "iVar1 + (int)param_2" identifier + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "uVar2 = *(uint *)(iVar1 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar1 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x70) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x70) != 0" (pointer_expression "*(int *)(iVar1 + 0x70)" * (cast_expression "(int *)(iVar1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x70)" ( (binary_expression "iVar1 + 0x70" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }" { (if_statement "if (uVar2 != 0) goto LAB_001f3e33;" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001f3e33;" goto statement_identifier ;)) (expression_statement "FUN_001f3600(*(int *)(iVar1 + 0x70));" (call_expression "FUN_001f3600(*(int *)(iVar1 + 0x70))" identifier (argument_list "(*(int *)(iVar1 + 0x70))" ( (pointer_expression "*(int *)(iVar1 + 0x70)" * (cast_expression "(int *)(iVar1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x70)" ( (binary_expression "iVar1 + 0x70" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);" (assignment_expression "iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc)" identifier = (binary_expression "(int)param_2 + *(int *)(*param_2 + -0xc)" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_2 + -0xc)" * (cast_expression "(int *)(*param_2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + -0xc)" ( (binary_expression "*param_2 + -0xc" (pointer_expression "*param_2" * identifier) + number_literal) )))))) ;) (expression_statement "uVar2 = *(uint *)(iVar1 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar1 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) })) (if_statement "if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_1 = 1;\n    return;\n  }" { (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);" statement_identifier : (expression_statement "FUN_00210c00(iVar1,uVar2 | 4);" (call_expression "FUN_00210c00(iVar1,uVar2 | 4)" identifier (argument_list "(iVar1,uVar2 | 4)" ( identifier , (binary_expression "uVar2 | 4" identifier | number_literal) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::ostream::sentry::sentry(std::ostream&) */\n\nvoid __thiscall std::ostream::sentry::sentry(sentry *this,ostream *param_1)\n\n{\n  int iVar1;\n  ios *this_00;\n  _Ios_Iostate _Var2;\n  \n  iVar1 = *(int *)param_1;\n  *this = (sentry)0x0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(ostream **)(this + 4) = param_1;\n  this_00 = (ios *)(param_1 + iVar1);\n  _Var2 = *(_Ios_Iostate *)(this_00 + 0x14);\n  if (*(ostream **)(this_00 + 0x70) != (ostream *)0x0) {\n    if (_Var2 != _S_goodbit) goto LAB_001f3e33;\n    flush(*(ostream **)(this_00 + 0x70));\n    this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));\n    _Var2 = *(_Ios_Iostate *)(this_00 + 0x14);\n  }\n  if (_Var2 == _S_goodbit) {\n    *this = (sentry)0x1;\n    return;\n  }\nLAB_001f3e33:\n  ios::clear(this_00,_Var2 | _S_failbit);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ostream::sentry::sentry(sentry *this,ostream *param_1)\n\n{\n  int iVar1;\n  ios *this_00;\n  _Ios_Iostate _Var2;\n  \n  iVar1 = *(int *)param_1;\n  *this = (sentry)0x0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(ostream **)(this + 4) = param_1;\n  this_00 = (ios *)(param_1 + iVar1);\n  _Var2 = *(_Ios_Iostate *)(this_00 + 0x14);\n  if (*(ostream **)(this_00 + 0x70) != (ostream *)0x0) {\n    if (_Var2 != _S_goodbit) goto LAB_001f3e33;\n    flush(*(ostream **)(this_00 + 0x70));\n    this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));\n    _Var2 = *(_Ios_Iostate *)(this_00 + 0x14);\n  }\n  if (_Var2 == _S_goodbit) {\n    *this = (sentry)0x1;\n    return;\n  }\nLAB_001f3e33:\n  ios::clear(this_00,_Var2 | _S_failbit);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ostream::sentry::" identifier : : identifier : : identifier : :) (function_declarator "sentry(sentry *this,ostream *param_1)" identifier (parameter_list "(sentry *this,ostream *param_1)" ( (parameter_declaration "sentry *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ostream *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  ios *this_00;\n  _Ios_Iostate _Var2;\n  \n  iVar1 = *(int *)param_1;\n  *this = (sentry)0x0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(ostream **)(this + 4) = param_1;\n  this_00 = (ios *)(param_1 + iVar1);\n  _Var2 = *(_Ios_Iostate *)(this_00 + 0x14);\n  if (*(ostream **)(this_00 + 0x70) != (ostream *)0x0) {\n    if (_Var2 != _S_goodbit) goto LAB_001f3e33;\n    flush(*(ostream **)(this_00 + 0x70));\n    this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));\n    _Var2 = *(_Ios_Iostate *)(this_00 + 0x14);\n  }\n  if (_Var2 == _S_goodbit) {\n    *this = (sentry)0x1;\n    return;\n  }\nLAB_001f3e33:\n  ios::clear(this_00,_Var2 | _S_failbit);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ios *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "_Ios_Iostate _Var2;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)param_1;" (assignment_expression "iVar1 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*this = (sentry)0x0;" (assignment_expression "*this = (sentry)0x0" (pointer_expression "*this" * identifier) = (cast_expression "(sentry)0x0" ( (type_descriptor "sentry" type_identifier) ) number_literal)) ;) (expression_statement "iVar1 = *(int *)(iVar1 + -0xc);" (assignment_expression "iVar1 = *(int *)(iVar1 + -0xc)" identifier = (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "*(ostream **)(this + 4) = param_1;" (assignment_expression "*(ostream **)(this + 4) = param_1" (pointer_expression "*(ostream **)(this + 4)" * (cast_expression "(ostream **)(this + 4)" ( (type_descriptor "ostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "this_00 = (ios *)(param_1 + iVar1);" (assignment_expression "this_00 = (ios *)(param_1 + iVar1)" identifier = (cast_expression "(ios *)(param_1 + iVar1)" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar1)" ( (binary_expression "param_1 + iVar1" identifier + identifier) )))) ;) (expression_statement "_Var2 = *(_Ios_Iostate *)(this_00 + 0x14);" (assignment_expression "_Var2 = *(_Ios_Iostate *)(this_00 + 0x14)" identifier = (pointer_expression "*(_Ios_Iostate *)(this_00 + 0x14)" * (cast_expression "(_Ios_Iostate *)(this_00 + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x14)" ( (binary_expression "this_00 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(ostream **)(this_00 + 0x70) != (ostream *)0x0) {\n    if (_Var2 != _S_goodbit) goto LAB_001f3e33;\n    flush(*(ostream **)(this_00 + 0x70));\n    this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));\n    _Var2 = *(_Ios_Iostate *)(this_00 + 0x14);\n  }" if (parenthesized_expression "(*(ostream **)(this_00 + 0x70) != (ostream *)0x0)" ( (binary_expression "*(ostream **)(this_00 + 0x70) != (ostream *)0x0" (pointer_expression "*(ostream **)(this_00 + 0x70)" * (cast_expression "(ostream **)(this_00 + 0x70)" ( (type_descriptor "ostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this_00 + 0x70)" ( (binary_expression "this_00 + 0x70" identifier + number_literal) )))) != (cast_expression "(ostream *)0x0" ( (type_descriptor "ostream *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (_Var2 != _S_goodbit) goto LAB_001f3e33;\n    flush(*(ostream **)(this_00 + 0x70));\n    this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));\n    _Var2 = *(_Ios_Iostate *)(this_00 + 0x14);\n  }" { (if_statement "if (_Var2 != _S_goodbit) goto LAB_001f3e33;" if (parenthesized_expression "(_Var2 != _S_goodbit)" ( (binary_expression "_Var2 != _S_goodbit" identifier != identifier) )) (goto_statement "goto LAB_001f3e33;" goto statement_identifier ;)) (expression_statement "flush(*(ostream **)(this_00 + 0x70));" (call_expression "flush(*(ostream **)(this_00 + 0x70))" identifier (argument_list "(*(ostream **)(this_00 + 0x70))" ( (pointer_expression "*(ostream **)(this_00 + 0x70)" * (cast_expression "(ostream **)(this_00 + 0x70)" ( (type_descriptor "ostream **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this_00 + 0x70)" ( (binary_expression "this_00 + 0x70" identifier + number_literal) )))) ))) ;) (expression_statement "this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc));" (assignment_expression "this_00 = (ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" identifier = (cast_expression "(ios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (expression_statement "_Var2 = *(_Ios_Iostate *)(this_00 + 0x14);" (assignment_expression "_Var2 = *(_Ios_Iostate *)(this_00 + 0x14)" identifier = (pointer_expression "*(_Ios_Iostate *)(this_00 + 0x14)" * (cast_expression "(_Ios_Iostate *)(this_00 + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_00 + 0x14)" ( (binary_expression "this_00 + 0x14" identifier + number_literal) ))))) ;) })) (if_statement "if (_Var2 == _S_goodbit) {\n    *this = (sentry)0x1;\n    return;\n  }" if (parenthesized_expression "(_Var2 == _S_goodbit)" ( (binary_expression "_Var2 == _S_goodbit" identifier == identifier) )) (compound_statement "{\n    *this = (sentry)0x1;\n    return;\n  }" { (expression_statement "*this = (sentry)0x1;" (assignment_expression "*this = (sentry)0x1" (pointer_expression "*this" * identifier) = (cast_expression "(sentry)0x1" ( (type_descriptor "sentry" type_identifier) ) number_literal)) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_001f3e33:\n  ios::clear(this_00,_Var2 | _S_failbit);" statement_identifier : (labeled_statement "ios::clear(this_00,_Var2 | _S_failbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_00,_Var2 | _S_failbit);" (call_expression "clear(this_00,_Var2 | _S_failbit)" identifier (argument_list "(this_00,_Var2 | _S_failbit)" ( identifier , (binary_expression "_Var2 | _S_failbit" identifier | identifier) ))) ;))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001f3e00(undefined1 *param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = 0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(int **)(param_1 + 4) = param_2;\n  iVar1 = iVar1 + (int)param_2;\n  uVar2 = *(uint *)(iVar1 + 0x14);\n  if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }\n  if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }\nLAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);\n  return;\n}\n\n" (function_definition "void FUN_001f3e00(undefined1 *param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = 0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(int **)(param_1 + 4) = param_2;\n  iVar1 = iVar1 + (int)param_2;\n  uVar2 = *(uint *)(iVar1 + 0x14);\n  if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }\n  if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }\nLAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);\n  return;\n}" primitive_type (function_declarator "FUN_001f3e00(undefined1 *param_1,int *param_2)" identifier (parameter_list "(undefined1 *param_1,int *param_2)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = 0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(int **)(param_1 + 4) = param_2;\n  iVar1 = iVar1 + (int)param_2;\n  uVar2 = *(uint *)(iVar1 + 0x14);\n  if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }\n  if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }\nLAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "iVar1 = *(int *)(iVar1 + -0xc);" (assignment_expression "iVar1 = *(int *)(iVar1 + -0xc)" identifier = (pointer_expression "*(int *)(iVar1 + -0xc)" * (cast_expression "(int *)(iVar1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -0xc)" ( (binary_expression "iVar1 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 4) = param_2;" (assignment_expression "*(int **)(param_1 + 4) = param_2" (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = iVar1 + (int)param_2;" (assignment_expression "iVar1 = iVar1 + (int)param_2" identifier = (binary_expression "iVar1 + (int)param_2" identifier + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "uVar2 = *(uint *)(iVar1 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar1 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x70) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x70) != 0" (pointer_expression "*(int *)(iVar1 + 0x70)" * (cast_expression "(int *)(iVar1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x70)" ( (binary_expression "iVar1 + 0x70" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }" { (if_statement "if (uVar2 != 0) goto LAB_001f3e33;" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001f3e33;" goto statement_identifier ;)) (expression_statement "FUN_001f3600(*(int *)(iVar1 + 0x70));" (call_expression "FUN_001f3600(*(int *)(iVar1 + 0x70))" identifier (argument_list "(*(int *)(iVar1 + 0x70))" ( (pointer_expression "*(int *)(iVar1 + 0x70)" * (cast_expression "(int *)(iVar1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x70)" ( (binary_expression "iVar1 + 0x70" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);" (assignment_expression "iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc)" identifier = (binary_expression "(int)param_2 + *(int *)(*param_2 + -0xc)" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_2 + -0xc)" * (cast_expression "(int *)(*param_2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + -0xc)" ( (binary_expression "*param_2 + -0xc" (pointer_expression "*param_2" * identifier) + number_literal) )))))) ;) (expression_statement "uVar2 = *(uint *)(iVar1 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar1 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x14)" * (cast_expression "(uint *)(iVar1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) })) (if_statement "if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    *param_1 = 1;\n    return;\n  }" { (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (labeled_statement "LAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);" statement_identifier : (expression_statement "FUN_00210c00(iVar1,uVar2 | 4);" (call_expression "FUN_00210c00(iVar1,uVar2 | 4)" identifier (argument_list "(iVar1,uVar2 | 4)" ( identifier , (binary_expression "uVar2 | 4" identifier | number_literal) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT | LIT) ))) ;)) (return_statement return ;) })))
(function_definition "void FUN_001f3e00(undefined1 *param_1,int *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = 0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(int **)(param_1 + 4) = param_2;\n  iVar1 = iVar1 + (int)param_2;\n  uVar2 = *(uint *)(iVar1 + 0x14);\n  if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }\n  if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }\nLAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001f3e00(undefined1 *param_1,int *param_2)" (identifier "FUN_001f3e00") (parameter_list "(undefined1 *param_1,int *param_2)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = *param_2;\n  *param_1 = 0;\n  iVar1 = *(int *)(iVar1 + -0xc);\n  *(int **)(param_1 + 4) = param_2;\n  iVar1 = iVar1 + (int)param_2;\n  uVar2 = *(uint *)(iVar1 + 0x14);\n  if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }\n  if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }\nLAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = *param_2;" (assignment_expression "iVar1 = *param_2" (identifier "iVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *(int *)(iVar1 + -0xc);" (assignment_expression "iVar1 = *(int *)(iVar1 + -0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + -0xc)" (* "*") (cast_expression "(int *)(iVar1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -0xc)" (( "(") (binary_expression "iVar1 + -0xc" (identifier "iVar1") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (expression_statement "*(int **)(param_1 + 4) = param_2;" (assignment_expression "*(int **)(param_1 + 4) = param_2" (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar1 = iVar1 + (int)param_2;" (assignment_expression "iVar1 = iVar1 + (int)param_2" (identifier "iVar1") (= "=") (binary_expression "iVar1 + (int)param_2" (identifier "iVar1") (+ "+") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) (; ";")) (expression_statement "uVar2 = *(uint *)(iVar1 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar1 + 0x14)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar1 + 0x14)" (* "*") (cast_expression "(uint *)(iVar1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x70) != 0) {\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x70) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x70) != 0" (pointer_expression "*(int *)(iVar1 + 0x70)" (* "*") (cast_expression "(int *)(iVar1 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x70)" (( "(") (binary_expression "iVar1 + 0x70" (identifier "iVar1") (+ "+") (number_literal "0x70")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (uVar2 != 0) goto LAB_001f3e33;\n    FUN_001f3600(*(int *)(iVar1 + 0x70));\n    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);\n    uVar2 = *(uint *)(iVar1 + 0x14);\n  }" ({ "{") (if_statement "if (uVar2 != 0) goto LAB_001f3e33;" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001f3e33;" (goto "goto") (statement_identifier "LAB_001f3e33") (; ";"))) (expression_statement "FUN_001f3600(*(int *)(iVar1 + 0x70));" (call_expression "FUN_001f3600(*(int *)(iVar1 + 0x70))" (identifier "FUN_001f3600") (argument_list "(*(int *)(iVar1 + 0x70))" (( "(") (pointer_expression "*(int *)(iVar1 + 0x70)" (* "*") (cast_expression "(int *)(iVar1 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x70)" (( "(") (binary_expression "iVar1 + 0x70" (identifier "iVar1") (+ "+") (number_literal "0x70")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);" (assignment_expression "iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc)" (identifier "iVar1") (= "=") (binary_expression "(int)param_2 + *(int *)(*param_2 + -0xc)" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (pointer_expression "*(int *)(*param_2 + -0xc)" (* "*") (cast_expression "(int *)(*param_2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + -0xc)" (( "(") (binary_expression "*param_2 + -0xc" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "-0xc")) () ")")))))) (; ";")) (expression_statement "uVar2 = *(uint *)(iVar1 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar1 + 0x14)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar1 + 0x14)" (* "*") (cast_expression "(uint *)(iVar1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (uVar2 == 0) {\n    *param_1 = 1;\n    return;\n  }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    *param_1 = 1;\n    return;\n  }" ({ "{") (expression_statement "*param_1 = 1;" (assignment_expression "*param_1 = 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_001f3e33:\n  FUN_00210c00(iVar1,uVar2 | 4);" (statement_identifier "LAB_001f3e33") (: ":") (expression_statement "FUN_00210c00(iVar1,uVar2 | 4);" (call_expression "FUN_00210c00(iVar1,uVar2 | 4)" (identifier "FUN_00210c00") (argument_list "(iVar1,uVar2 | 4)" (( "(") (identifier "iVar1") (, ",") (binary_expression "uVar2 | 4" (identifier "uVar2") (| "|") (number_literal "4")) () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ostream::sentry::sentry(std::ostream&) */

void __thiscall std::type_1::function_1::function_1(function_1 *var_2,type_1 *var_3)

{
  int var_1;
  type_2 *var_4;
  type_3 var_5;
  
  var_1 = *(int *)var_3;
  *var_2 = (function_1)0x0;
  var_1 = *(int *)(var_1 + -0xc);
  *(type_1 **)(var_2 + 4) = var_3;
  var_4 = (type_2 *)(var_3 + var_1);
  var_5 = *(type_3 *)(var_4 + 0x14);
  if (*(type_1 **)(var_4 + 0x70) != (type_1 *)0x0) {
    if (var_5 != var_6) goto LAB_001f3e33;
    var_7(*(type_1 **)(var_4 + 0x70));
    var_4 = (type_2 *)(var_3 + *(int *)(*(int *)var_3 + -0xc));
    var_5 = *(type_3 *)(var_4 + 0x14);
  }
  if (var_5 == var_6) {
    *var_2 = (function_1)0x1;
    return;
  }
LAB_001f3e33:
  ios::var_8(var_4,var_5 | var_9);
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined1 *param_1,int *param_2)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = *param_2;
  *param_1 = 0;
  iVar1 = *(int *)(iVar1 + -0xc);
  *(int **)(param_1 + 4) = param_2;
  iVar1 = iVar1 + (int)param_2;
  uVar2 = *(uint *)(iVar1 + 0x14);
  if (*(int *)(iVar1 + 0x70) != 0) {
    if (uVar2 != 0) goto LAB_001f3e33;
    FUN_001f3600(*(int *)(iVar1 + 0x70));
    iVar1 = (int)param_2 + *(int *)(*param_2 + -0xc);
    uVar2 = *(uint *)(iVar1 + 0x14);
  }
  if (uVar2 == 0) {
    *param_1 = 1;
    return;
  }
LAB_001f3e33:
  FUN_00210c00(iVar1,uVar2 | 4);
  return;
}

