
/* std::filebuf::_M_destroy_pback() */

void __thiscall std::filebuf::_M_destroy_pback(filebuf *this)

{
  long lVar1;
  
  if (this[0xc0] != (filebuf)0x0) {
    this[0xc0] = (filebuf)0x0;
    lVar1 = (ulong)(*(long *)(this + 0x10) != *(long *)(this + 8)) + *(long *)(this + 0xb0);
    *(long *)(this + 0xb0) = lVar1;
    *(undefined8 *)(this + 8) = *(undefined8 *)(this + 0x98);
    *(long *)(this + 0x10) = lVar1;
    *(undefined8 *)(this + 0x18) = *(undefined8 *)(this + 0xb8);
  }
  return;
}



void FUN_00303280(long param_1)

{
  long lVar1;
  
  if (*(char *)(param_1 + 0xc0) != '\0') {
    *(undefined1 *)(param_1 + 0xc0) = 0;
    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)
    ;
    *(long *)(param_1 + 0xb0) = lVar1;
    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);
    *(long *)(param_1 + 0x10) = lVar1;
    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);
  }
  return;
}


CMP byte ptr [RDI + 0xc0],0x0
JZ 0x003032c6
MOV RAX,qword ptr [RDI + 0x8]
CMP qword ptr [RDI + 0x10],RAX
MOV byte ptr [RDI + 0xc0],0x0
SETNZ AL
MOV RDX,qword ptr [RDI + 0xb8]
MOV RCX,qword ptr [RDI + 0x98]
MOVZX EAX,AL
ADD RAX,qword ptr [RDI + 0xb0]
MOV qword ptr [RDI + 0xb0],RAX
MOV qword ptr [RDI + 0x8],RCX
MOV qword ptr [RDI + 0x10],RAX
MOV qword ptr [RDI + 0x18],RDX
RET
(translation_unit "void FUN_00303280(long param_1)\n\n{\n  long lVar1;\n  \n  if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00303280(long param_1)\n\n{\n  long lVar1;\n  \n  if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00303280(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xc0) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xc0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xc0)" * (cast_expression "(char *)(param_1 + 0xc0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }" { (expression_statement "*(undefined1 *)(param_1 + 0xc0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc0)" * (cast_expression "(undefined1 *)(param_1 + 0xc0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;" (assignment_expression "lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)" identifier = (binary_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)" (call_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" ( (binary_expression "*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ))) + (pointer_expression "*(long *)(param_1 + 0xb0)" * (cast_expression "(long *)(param_1 + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))))) ;) (expression_statement "*(long *)(param_1 + 0xb0) = lVar1;" (assignment_expression "*(long *)(param_1 + 0xb0) = lVar1" (pointer_expression "*(long *)(param_1 + 0xb0)" * (cast_expression "(long *)(param_1 + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98)" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x98)" * (cast_expression "(undefined8 *)(param_1 + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 0x10) = lVar1;" (assignment_expression "*(long *)(param_1 + 0x10) = lVar1" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8)" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0xb8)" * (cast_expression "(undefined8 *)(param_1 + 0xb8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) ))))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* std::filebuf::_M_destroy_pback() */\n\nvoid __thiscall std::filebuf::_M_destroy_pback(filebuf *this)\n\n{\n  long lVar1;\n  \n  if (this[0xc0] != (filebuf)0x0) {\n    this[0xc0] = (filebuf)0x0;\n    lVar1 = (ulong)(*(long *)(this + 0x10) != *(long *)(this + 8)) + *(long *)(this + 0xb0);\n    *(long *)(this + 0xb0) = lVar1;\n    *(undefined8 *)(this + 8) = *(undefined8 *)(this + 0x98);\n    *(long *)(this + 0x10) = lVar1;\n    *(undefined8 *)(this + 0x18) = *(undefined8 *)(this + 0xb8);\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall std::filebuf::_M_destroy_pback(filebuf *this)\n\n{\n  long lVar1;\n  \n  if (this[0xc0] != (filebuf)0x0) {\n    this[0xc0] = (filebuf)0x0;\n    lVar1 = (ulong)(*(long *)(this + 0x10) != *(long *)(this + 8)) + *(long *)(this + 0xb0);\n    *(long *)(this + 0xb0) = lVar1;\n    *(undefined8 *)(this + 8) = *(undefined8 *)(this + 0x98);\n    *(long *)(this + 0x10) = lVar1;\n    *(undefined8 *)(this + 0x18) = *(undefined8 *)(this + 0xb8);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::filebuf::" identifier : : identifier : :) (function_declarator "_M_destroy_pback(filebuf *this)" identifier (parameter_list "(filebuf *this)" ( (parameter_declaration "filebuf *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if (this[0xc0] != (filebuf)0x0) {\n    this[0xc0] = (filebuf)0x0;\n    lVar1 = (ulong)(*(long *)(this + 0x10) != *(long *)(this + 8)) + *(long *)(this + 0xb0);\n    *(long *)(this + 0xb0) = lVar1;\n    *(undefined8 *)(this + 8) = *(undefined8 *)(this + 0x98);\n    *(long *)(this + 0x10) = lVar1;\n    *(undefined8 *)(this + 0x18) = *(undefined8 *)(this + 0xb8);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (this[0xc0] != (filebuf)0x0) {\n    this[0xc0] = (filebuf)0x0;\n    lVar1 = (ulong)(*(long *)(this + 0x10) != *(long *)(this + 8)) + *(long *)(this + 0xb0);\n    *(long *)(this + 0xb0) = lVar1;\n    *(undefined8 *)(this + 8) = *(undefined8 *)(this + 0x98);\n    *(long *)(this + 0x10) = lVar1;\n    *(undefined8 *)(this + 0x18) = *(undefined8 *)(this + 0xb8);\n  }" if (parenthesized_expression "(this[0xc0] != (filebuf)0x0)" ( (binary_expression "this[0xc0] != (filebuf)0x0" (subscript_expression "this[0xc0]" identifier [ number_literal ]) != (cast_expression "(filebuf)0x0" ( (type_descriptor "filebuf" type_identifier) ) number_literal)) )) (compound_statement "{\n    this[0xc0] = (filebuf)0x0;\n    lVar1 = (ulong)(*(long *)(this + 0x10) != *(long *)(this + 8)) + *(long *)(this + 0xb0);\n    *(long *)(this + 0xb0) = lVar1;\n    *(undefined8 *)(this + 8) = *(undefined8 *)(this + 0x98);\n    *(long *)(this + 0x10) = lVar1;\n    *(undefined8 *)(this + 0x18) = *(undefined8 *)(this + 0xb8);\n  }" { (expression_statement "this[0xc0] = (filebuf)0x0;" (assignment_expression "this[0xc0] = (filebuf)0x0" (subscript_expression "this[0xc0]" identifier [ number_literal ]) = (cast_expression "(filebuf)0x0" ( (type_descriptor "filebuf" type_identifier) ) number_literal)) ;) (expression_statement "lVar1 = (ulong)(*(long *)(this + 0x10) != *(long *)(this + 8)) + *(long *)(this + 0xb0);" (assignment_expression "lVar1 = (ulong)(*(long *)(this + 0x10) != *(long *)(this + 8)) + *(long *)(this + 0xb0)" identifier = (binary_expression "(ulong)(*(long *)(this + 0x10) != *(long *)(this + 8)) + *(long *)(this + 0xb0)" (call_expression "(ulong)(*(long *)(this + 0x10) != *(long *)(this + 8))" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(long *)(this + 0x10) != *(long *)(this + 8))" ( (binary_expression "*(long *)(this + 0x10) != *(long *)(this + 8)" (pointer_expression "*(long *)(this + 0x10)" * (cast_expression "(long *)(this + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) != (pointer_expression "*(long *)(this + 8)" * (cast_expression "(long *)(this + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ))) + (pointer_expression "*(long *)(this + 0xb0)" * (cast_expression "(long *)(this + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xb0)" ( (binary_expression "this + 0xb0" identifier + number_literal) )))))) ;) (expression_statement "*(long *)(this + 0xb0) = lVar1;" (assignment_expression "*(long *)(this + 0xb0) = lVar1" (pointer_expression "*(long *)(this + 0xb0)" * (cast_expression "(long *)(this + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xb0)" ( (binary_expression "this + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 8) = *(undefined8 *)(this + 0x98);" (assignment_expression "*(undefined8 *)(this + 8) = *(undefined8 *)(this + 0x98)" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(this + 0x98)" * (cast_expression "(undefined8 *)(this + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x98)" ( (binary_expression "this + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(this + 0x10) = lVar1;" (assignment_expression "*(long *)(this + 0x10) = lVar1" (pointer_expression "*(long *)(this + 0x10)" * (cast_expression "(long *)(this + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x18) = *(undefined8 *)(this + 0xb8);" (assignment_expression "*(undefined8 *)(this + 0x18) = *(undefined8 *)(this + 0xb8)" (pointer_expression "*(undefined8 *)(this + 0x18)" * (cast_expression "(undefined8 *)(this + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(this + 0xb8)" * (cast_expression "(undefined8 *)(this + 0xb8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xb8)" ( (binary_expression "this + 0xb8" identifier + number_literal) ))))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00303280(long param_1)\n\n{\n  long lVar1;\n  \n  if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00303280(long param_1)\n\n{\n  long lVar1;\n  \n  if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00303280(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xc0) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xc0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xc0)" * (cast_expression "(char *)(param_1 + 0xc0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }" { (expression_statement "*(undefined1 *)(param_1 + 0xc0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc0)" * (cast_expression "(undefined1 *)(param_1 + 0xc0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;" (assignment_expression "lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)" identifier = (binary_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)" (call_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" ( (binary_expression "*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ))) + (pointer_expression "*(long *)(param_1 + 0xb0)" * (cast_expression "(long *)(param_1 + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))))) ;) (expression_statement "*(long *)(param_1 + 0xb0) = lVar1;" (assignment_expression "*(long *)(param_1 + 0xb0) = lVar1" (pointer_expression "*(long *)(param_1 + 0xb0)" * (cast_expression "(long *)(param_1 + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98)" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x98)" * (cast_expression "(undefined8 *)(param_1 + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(long *)(param_1 + 0x10) = lVar1;" (assignment_expression "*(long *)(param_1 + 0x10) = lVar1" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8)" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0xb8)" * (cast_expression "(undefined8 *)(param_1 + 0xb8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) ))))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00303280(long param_1)\n\n{\n  long lVar1;\n  \n  if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00303280(long param_1)" (identifier "FUN_00303280") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if (*(char *)(param_1 + 0xc0) != '\0') {\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xc0) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xc0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xc0)" (* "*") (cast_expression "(char *)(param_1 + 0xc0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc0)" (( "(") (binary_expression "param_1 + 0xc0" (identifier "param_1") (+ "+") (number_literal "0xc0")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    *(undefined1 *)(param_1 + 0xc0) = 0;\n    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;\n    *(long *)(param_1 + 0xb0) = lVar1;\n    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n    *(long *)(param_1 + 0x10) = lVar1;\n    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n  }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0xc0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc0)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xc0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc0)" (( "(") (binary_expression "param_1 + 0xc0" (identifier "param_1") (+ "+") (number_literal "0xc0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)\n    ;" (assignment_expression "lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)" (identifier "lVar1") (= "=") (binary_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)" (call_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" (( "(") (binary_expression "*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")"))) (+ "+") (pointer_expression "*(long *)(param_1 + 0xb0)" (* "*") (cast_expression "(long *)(param_1 + 0xb0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb0)" (( "(") (binary_expression "param_1 + 0xb0" (identifier "param_1") (+ "+") (number_literal "0xb0")) () ")")))))) (; ";")) (expression_statement "*(long *)(param_1 + 0xb0) = lVar1;" (assignment_expression "*(long *)(param_1 + 0xb0) = lVar1" (pointer_expression "*(long *)(param_1 + 0xb0)" (* "*") (cast_expression "(long *)(param_1 + 0xb0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb0)" (( "(") (binary_expression "param_1 + 0xb0" (identifier "param_1") (+ "+") (number_literal "0xb0")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98)" (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x98)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x98)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x98)" (( "(") (binary_expression "param_1 + 0x98" (identifier "param_1") (+ "+") (number_literal "0x98")) () ")"))))) (; ";")) (expression_statement "*(long *)(param_1 + 0x10) = lVar1;" (assignment_expression "*(long *)(param_1 + 0x10) = lVar1" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8)" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0xb8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xb8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb8)" (( "(") (binary_expression "param_1 + 0xb8" (identifier "param_1") (+ "+") (number_literal "0xb8")) () ")"))))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::filebuf::_M_destroy_pback() */

void __thiscall std::type_1::function_1(type_1 *var_1)

{
  long lVar1;
  
  if (var_1[0xc0] != (type_1)0x0) {
    var_1[0xc0] = (type_1)0x0;
    lVar1 = (ulong)(*(long *)(var_1 + 0x10) != *(long *)(var_1 + 8)) + *(long *)(var_1 + 0xb0);
    *(long *)(var_1 + 0xb0) = lVar1;
    *(type_2 *)(var_1 + 8) = *(type_2 *)(var_1 + 0x98);
    *(long *)(var_1 + 0x10) = lVar1;
    *(type_2 *)(var_1 + 0x18) = *(type_2 *)(var_1 + 0xb8);
  }
  return;
}


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

void MASKED(long param_1)

{
  long lVar1;
  
  if (*(char *)(param_1 + 0xc0) != '\0') {
    *(undefined1 *)(param_1 + 0xc0) = 0;
    lVar1 = (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) + *(long *)(param_1 + 0xb0)
    ;
    *(long *)(param_1 + 0xb0) = lVar1;
    *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);
    *(long *)(param_1 + 0x10) = lVar1;
    *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);
  }
  return;
}

