
/* std::ostream::_M_write(char const*, long) */

void __thiscall std::ostream::_M_write(ostream *this,char *param_1,long param_2)

{
  long lVar1;
  
  lVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60))();
  if (param_2 == lVar1) {
    return;
  }
  ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),
             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) | _S_badbit)
  ;
  return;
}



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

{
  long lVar1;
  
  lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();
  if (param_3 == lVar1) {
    return;
  }
  lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);
  FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);
  return;
}


PUSH RBP
MOV RBP,RDX
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + -0x18]
MOV RDI,qword ptr [RDI + RAX*0x1 + 0xe8]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x60]
CMP RBP,RAX
JNZ 0x002e5640
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV RAX,qword ptr [RBX]
ADD RBX,qword ptr [RAX + -0x18]
MOV ESI,dword ptr [RBX + 0x20]
ADD RSP,0x8
MOV RDI,RBX
POP RBX
POP RBP
OR ESI,0x1
JMP 0x00300870
(translation_unit "void FUN_002e5610(long *param_1,undefined8 param_2,long param_3)\n\n{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();\n  if (param_3 == lVar1) {\n    return;\n  }\n  lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);\n  return;\n}\n\n" (function_definition "void FUN_002e5610(long *param_1,undefined8 param_2,long param_3)\n\n{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();\n  if (param_3 == lVar1) {\n    return;\n  }\n  lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);\n  return;\n}" primitive_type (function_declarator "FUN_002e5610(long *param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(long *param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();\n  if (param_3 == lVar1) {\n    return;\n  }\n  lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();" (assignment_expression "lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))()" identifier = (call_expression "(**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))()" (parenthesized_expression "(**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))" ( (pointer_expression "**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" * (pointer_expression "*(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" * (cast_expression "(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" ( (binary_expression "**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60" (pointer_expression "**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (param_3 == lVar1) {\n    return;\n  }" if (parenthesized_expression "(param_3 == lVar1)" ( (binary_expression "param_3 == lVar1" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);" (assignment_expression "lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18)" identifier = (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))))) ;) (expression_statement "FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);" (call_expression "FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1)" identifier (argument_list "(lVar1,*(uint *)(lVar1 + 0x20) | 1)" ( identifier , (binary_expression "*(uint *)(lVar1 + 0x20) | 1" (pointer_expression "*(uint *)(lVar1 + 0x20)" * (cast_expression "(uint *)(lVar1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::ostream::_M_write(char const*, long) */\n\nvoid __thiscall std::ostream::_M_write(ostream *this,char *param_1,long param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60))();\n  if (param_2 == lVar1) {\n    return;\n  }\n  ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) | _S_badbit)\n  ;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ostream::_M_write(ostream *this,char *param_1,long param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60))();\n  if (param_2 == lVar1) {\n    return;\n  }\n  ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) | _S_badbit)\n  ;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ostream::" identifier : : identifier : :) (function_declarator "_M_write(ostream *this,char *param_1,long param_2)" identifier (parameter_list "(ostream *this,char *param_1,long param_2)" ( (parameter_declaration "ostream *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60))();\n  if (param_2 == lVar1) {\n    return;\n  }\n  ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) | _S_badbit)\n  ;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60))();" (assignment_expression "lVar1 = (**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60))()" identifier = (call_expression "(**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60))()" (parenthesized_expression "(**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60))" ( (pointer_expression "**(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60)" * (pointer_expression "*(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60)" * (cast_expression "(code **)(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60)" ( (binary_expression "**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8) + 0x60" (pointer_expression "**(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8)" * (pointer_expression "*(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8)" * (cast_expression "(long **)(this + *(long *)(*(long *)this + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18) + 0xe8)" ( (binary_expression "this + *(long *)(*(long *)this + -0x18) + 0xe8" (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (param_2 == lVar1) {\n    return;\n  }" if (parenthesized_expression "(param_2 == lVar1)" ( (binary_expression "param_2 == lVar1" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "ios::clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) | _S_badbit)\n  ;" statement_identifier : (ERROR ":" :) (expression_statement "clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) | _S_badbit)\n  ;" (call_expression "clear((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) | _S_badbit)" identifier (argument_list "((ios *)(this + *(long *)(*(long *)this + -0x18)),\n             *(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) | _S_badbit)" ( (cast_expression "(ios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20) | _S_badbit" (pointer_expression "*(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" * (cast_expression "(_Ios_Iostate *)((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20)" ( (binary_expression "(ios *)(this + *(long *)(*(long *)this + -0x18)) + 0x20" (cast_expression "(ios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | identifier) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002e5610(long *param_1,undefined8 param_2,long param_3)\n\n{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();\n  if (param_3 == lVar1) {\n    return;\n  }\n  lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);\n  return;\n}\n\n" (function_definition "void FUN_002e5610(long *param_1,undefined8 param_2,long param_3)\n\n{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();\n  if (param_3 == lVar1) {\n    return;\n  }\n  lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);\n  return;\n}" primitive_type (function_declarator "FUN_002e5610(long *param_1,undefined8 param_2,long param_3)" identifier (parameter_list "(long *param_1,undefined8 param_2,long param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();\n  if (param_3 == lVar1) {\n    return;\n  }\n  lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();" (assignment_expression "lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))()" identifier = (call_expression "(**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))()" (parenthesized_expression "(**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))" ( (pointer_expression "**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" * (pointer_expression "*(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" * (cast_expression "(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" ( (binary_expression "**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60" (pointer_expression "**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" * (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" ( (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) ))))) + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (param_3 == lVar1) {\n    return;\n  }" if (parenthesized_expression "(param_3 == lVar1)" ( (binary_expression "param_3 == lVar1" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);" (assignment_expression "lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18)" identifier = (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))))) ;) (expression_statement "FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);" (call_expression "FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1)" identifier (argument_list "(lVar1,*(uint *)(lVar1 + 0x20) | 1)" ( identifier , (binary_expression "*(uint *)(lVar1 + 0x20) | 1" (pointer_expression "*(uint *)(lVar1 + 0x20)" * (cast_expression "(uint *)(lVar1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (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 * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) + LIT) ))))) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))))) ;) (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) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002e5610(long *param_1,undefined8 param_2,long param_3)\n\n{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();\n  if (param_3 == lVar1) {\n    return;\n  }\n  lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002e5610(long *param_1,undefined8 param_2,long param_3)" (identifier "FUN_002e5610") (parameter_list "(long *param_1,undefined8 param_2,long param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();\n  if (param_3 == lVar1) {\n    return;\n  }\n  lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);\n  FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();" (assignment_expression "lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))()" (identifier "lVar1") (= "=") (call_expression "(**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))()" (parenthesized_expression "(**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))" (( "(") (pointer_expression "**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" (* "*") (pointer_expression "*(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" (* "*") (cast_expression "(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60)" (( "(") (binary_expression "**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60" (pointer_expression "**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (* "*") (pointer_expression "*(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (* "*") (cast_expression "(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8)" (( "(") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8" (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")"))))) (+ "+") (number_literal "0xe8")) () ")"))))) (+ "+") (number_literal "0x60")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (param_3 == lVar1) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == lVar1)" (( "(") (binary_expression "param_3 == lVar1" (identifier "param_3") (== "==") (identifier "lVar1")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);" (assignment_expression "lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18)" (identifier "lVar1") (= "=") (binary_expression "(long)param_1 + *(long *)(*param_1 + -0x18)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))))) (; ";")) (expression_statement "FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);" (call_expression "FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1)" (identifier "FUN_00300870") (argument_list "(lVar1,*(uint *)(lVar1 + 0x20) | 1)" (( "(") (identifier "lVar1") (, ",") (binary_expression "*(uint *)(lVar1 + 0x20) | 1" (pointer_expression "*(uint *)(lVar1 + 0x20)" (* "*") (cast_expression "(uint *)(lVar1 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")")))) (| "|") (number_literal "1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ostream::_M_write(char const*, long) */

void __thiscall std::type_1::function_1(type_1 *var_1,char *param_1,long var_2)

{
  long var_3;
  
  var_3 = (**(type_2 **)(**(long **)(var_1 + *(long *)(*(long *)var_1 + -0x18) + 0xe8) + 0x60))();
  if (var_2 == var_3) {
    return;
  }
  ios::var_4((type_3 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)),
             *(type_4 *)((type_3 *)(var_1 + *(long *)(*(long *)var_1 + -0x18)) + 0x20) | var_5)
  ;
  return;
}


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

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

{
  long lVar1;
  
  lVar1 = (**(code **)(**(long **)((long)param_1 + *(long *)(*param_1 + -0x18) + 0xe8) + 0x60))();
  if (param_3 == lVar1) {
    return;
  }
  lVar1 = (long)param_1 + *(long *)(*param_1 + -0x18);
  FUN_00300870(lVar1,*(uint *)(lVar1 + 0x20) | 1);
  return;
}

