
/* std::wios::clear(std::_Ios_Iostate) */

void __thiscall std::wios::clear(wios *this,_Ios_Iostate param_1)

{
  if (*(long *)(this + 0xe8) == 0) {
    param_1 = param_1 | _S_badbit;
  }
  *(_Ios_Iostate *)(this + 0x20) = param_1;
  if ((*(_Ios_Iostate *)(this + 0x1c) & param_1) == _S_goodbit) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __throw_ios_failure("basic_ios::clear");
}



void FUN_0029d320(long param_1,uint param_2)

{
  if (*(long *)(param_1 + 0xe8) == 0) {
    param_2 = param_2 | 1;
  }
  *(uint *)(param_1 + 0x20) = param_2;
  if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002b0560("basic_ios::clear");
}


CMP qword ptr [RDI + 0xe8],0x0
JZ 0x0029d338
MOV dword ptr [RDI + 0x20],ESI
TEST dword ptr [RDI + 0x1c],ESI
JNZ 0x0029d33d
RET
OR ESI,0x1
JMP 0x0029d32a
PUSH RAX
LEA RDI,[0x329a87]
CALL 0x002b0560
(translation_unit "void FUN_0029d320(long param_1,uint param_2)\n\n{\n  if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x20) = param_2;\n  if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002b0560("basic_ios::clear");\n}\n\n" (function_definition "void FUN_0029d320(long param_1,uint param_2)\n\n{\n  if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x20) = param_2;\n  if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002b0560("basic_ios::clear");\n}" primitive_type (function_declarator "FUN_0029d320(long param_1,uint param_2)" identifier (parameter_list "(long param_1,uint param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x20) = param_2;\n  if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_002b0560("basic_ios::clear");\n}" { (if_statement "if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0xe8) == 0)" ( (binary_expression "*(long *)(param_1 + 0xe8) == 0" (pointer_expression "*(long *)(param_1 + 0xe8)" * (cast_expression "(long *)(param_1 + 0xe8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    param_2 = param_2 | 1;\n  }" { (expression_statement "param_2 = param_2 | 1;" (assignment_expression "param_2 = param_2 | 1" identifier = (binary_expression "param_2 | 1" identifier | number_literal)) ;) })) (expression_statement "*(uint *)(param_1 + 0x20) = param_2;" (assignment_expression "*(uint *)(param_1 + 0x20) = param_2" (pointer_expression "*(uint *)(param_1 + 0x20)" * (cast_expression "(uint *)(param_1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x1c) & param_2) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x1c) & param_2) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x1c) & param_2)" ( (binary_expression "*(uint *)(param_1 + 0x1c) & param_2" (pointer_expression "*(uint *)(param_1 + 0x1c)" * (cast_expression "(uint *)(param_1 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & identifier) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_002b0560("basic_ios::clear");" (call_expression "FUN_002b0560("basic_ios::clear")" identifier (argument_list "("basic_ios::clear")" ( (string_literal ""basic_ios::clear"" " string_content ") ))) ;) })))
(translation_unit "/* std::wios::clear(std::_Ios_Iostate) */\n\nvoid __thiscall std::wios::clear(wios *this,_Ios_Iostate param_1)\n\n{\n  if (*(long *)(this + 0xe8) == 0) {\n    param_1 = param_1 | _S_badbit;\n  }\n  *(_Ios_Iostate *)(this + 0x20) = param_1;\n  if ((*(_Ios_Iostate *)(this + 0x1c) & param_1) == _S_goodbit) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_ios_failure("basic_ios::clear");\n}\n\n" comment (function_definition "void __thiscall std::wios::clear(wios *this,_Ios_Iostate param_1)\n\n{\n  if (*(long *)(this + 0xe8) == 0) {\n    param_1 = param_1 | _S_badbit;\n  }\n  *(_Ios_Iostate *)(this + 0x20) = param_1;\n  if ((*(_Ios_Iostate *)(this + 0x1c) & param_1) == _S_goodbit) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_ios_failure("basic_ios::clear");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wios::" identifier : : identifier : :) (function_declarator "clear(wios *this,_Ios_Iostate param_1)" identifier (parameter_list "(wios *this,_Ios_Iostate param_1)" ( (parameter_declaration "wios *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "_Ios_Iostate param_1" type_identifier identifier) ))) (compound_statement "{\n  if (*(long *)(this + 0xe8) == 0) {\n    param_1 = param_1 | _S_badbit;\n  }\n  *(_Ios_Iostate *)(this + 0x20) = param_1;\n  if ((*(_Ios_Iostate *)(this + 0x1c) & param_1) == _S_goodbit) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __throw_ios_failure("basic_ios::clear");\n}" { (if_statement "if (*(long *)(this + 0xe8) == 0) {\n    param_1 = param_1 | _S_badbit;\n  }" if (parenthesized_expression "(*(long *)(this + 0xe8) == 0)" ( (binary_expression "*(long *)(this + 0xe8) == 0" (pointer_expression "*(long *)(this + 0xe8)" * (cast_expression "(long *)(this + 0xe8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xe8)" ( (binary_expression "this + 0xe8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    param_1 = param_1 | _S_badbit;\n  }" { (expression_statement "param_1 = param_1 | _S_badbit;" (assignment_expression "param_1 = param_1 | _S_badbit" identifier = (binary_expression "param_1 | _S_badbit" identifier | identifier)) ;) })) (expression_statement "*(_Ios_Iostate *)(this + 0x20) = param_1;" (assignment_expression "*(_Ios_Iostate *)(this + 0x20) = param_1" (pointer_expression "*(_Ios_Iostate *)(this + 0x20)" * (cast_expression "(_Ios_Iostate *)(this + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((*(_Ios_Iostate *)(this + 0x1c) & param_1) == _S_goodbit) {\n    return;\n  }" if (parenthesized_expression "((*(_Ios_Iostate *)(this + 0x1c) & param_1) == _S_goodbit)" ( (binary_expression "(*(_Ios_Iostate *)(this + 0x1c) & param_1) == _S_goodbit" (parenthesized_expression "(*(_Ios_Iostate *)(this + 0x1c) & param_1)" ( (binary_expression "*(_Ios_Iostate *)(this + 0x1c) & param_1" (pointer_expression "*(_Ios_Iostate *)(this + 0x1c)" * (cast_expression "(_Ios_Iostate *)(this + 0x1c)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1c)" ( (binary_expression "this + 0x1c" identifier + number_literal) )))) & identifier) )) == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__throw_ios_failure("basic_ios::clear");" (call_expression "__throw_ios_failure("basic_ios::clear")" identifier (argument_list "("basic_ios::clear")" ( (string_literal ""basic_ios::clear"" " string_content ") ))) ;) })))
(translation_unit "void FUN_0029d320(long param_1,uint param_2)\n\n{\n  if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x20) = param_2;\n  if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }\n                    \n  FUN_002b0560("basic_ios::clear");\n}\n\n" (function_definition "void FUN_0029d320(long param_1,uint param_2)\n\n{\n  if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x20) = param_2;\n  if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }\n                    \n  FUN_002b0560("basic_ios::clear");\n}" primitive_type (function_declarator "FUN_0029d320(long param_1,uint param_2)" identifier (parameter_list "(long param_1,uint param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x20) = param_2;\n  if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }\n                    \n  FUN_002b0560("basic_ios::clear");\n}" { (if_statement "if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0xe8) == 0)" ( (binary_expression "*(long *)(param_1 + 0xe8) == 0" (pointer_expression "*(long *)(param_1 + 0xe8)" * (cast_expression "(long *)(param_1 + 0xe8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    param_2 = param_2 | 1;\n  }" { (expression_statement "param_2 = param_2 | 1;" (assignment_expression "param_2 = param_2 | 1" identifier = (binary_expression "param_2 | 1" identifier | number_literal)) ;) })) (expression_statement "*(uint *)(param_1 + 0x20) = param_2;" (assignment_expression "*(uint *)(param_1 + 0x20) = param_2" (pointer_expression "*(uint *)(param_1 + 0x20)" * (cast_expression "(uint *)(param_1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x1c) & param_2) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x1c) & param_2) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x1c) & param_2)" ( (binary_expression "*(uint *)(param_1 + 0x1c) & param_2" (pointer_expression "*(uint *)(param_1 + 0x1c)" * (cast_expression "(uint *)(param_1 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) & identifier) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_002b0560("basic_ios::clear");" (call_expression "FUN_002b0560("basic_ios::clear")" identifier (argument_list "("basic_ios::clear")" ( (string_literal ""basic_ios::clear"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & IDENT) )) == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) })))
(function_definition "void FUN_0029d320(long param_1,uint param_2)\n\n{\n  if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x20) = param_2;\n  if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }\n                    \n  FUN_002b0560("basic_ios::clear");\n}" (primitive_type "void") (function_declarator "FUN_0029d320(long param_1,uint param_2)" (identifier "FUN_0029d320") (parameter_list "(long param_1,uint param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(param_1 + 0x20) = param_2;\n  if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }\n                    \n  FUN_002b0560("basic_ios::clear");\n}" ({ "{") (if_statement "if (*(long *)(param_1 + 0xe8) == 0) {\n    param_2 = param_2 | 1;\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0xe8) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 0xe8) == 0" (pointer_expression "*(long *)(param_1 + 0xe8)" (* "*") (cast_expression "(long *)(param_1 + 0xe8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe8)" (( "(") (binary_expression "param_1 + 0xe8" (identifier "param_1") (+ "+") (number_literal "0xe8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = param_2 | 1;\n  }" ({ "{") (expression_statement "param_2 = param_2 | 1;" (assignment_expression "param_2 = param_2 | 1" (identifier "param_2") (= "=") (binary_expression "param_2 | 1" (identifier "param_2") (| "|") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x20) = param_2;" (assignment_expression "*(uint *)(param_1 + 0x20) = param_2" (pointer_expression "*(uint *)(param_1 + 0x20)" (* "*") (cast_expression "(uint *)(param_1 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x1c) & param_2) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x1c) & param_2) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x1c) & param_2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x1c) & param_2" (pointer_expression "*(uint *)(param_1 + 0x1c)" (* "*") (cast_expression "(uint *)(param_1 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (identifier "param_2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_002b0560("basic_ios::clear");" (call_expression "FUN_002b0560("basic_ios::clear")" (identifier "FUN_002b0560") (argument_list "("basic_ios::clear")" (( "(") (string_literal ""basic_ios::clear"" (" """) (string_content "basic_ios::clear") (" """)) () ")"))) (; ";")) (} "}")))

/* std::wios::clear(std::_Ios_Iostate) */

void __thiscall std::type_1::function_1(type_1 *var_1,type_2 var_2)

{
  if (*(long *)(var_1 + 0xe8) == 0) {
    var_2 = var_2 | var_3;
  }
  *(type_2 *)(var_1 + 0x20) = var_2;
  if ((*(type_2 *)(var_1 + 0x1c) & var_2) == var_4) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_5("basic_ios::clear");
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (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: (identifier))) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))))))

void MASKED(long param_1,uint param_2)

{
  if (*(long *)(param_1 + 0xe8) == 0) {
    param_2 = param_2 | 1;
  }
  *(uint *)(param_1 + 0x20) = param_2;
  if ((*(uint *)(param_1 + 0x1c) & param_2) == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_002b0560("basic_ios::clear");
}

