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

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

{
  wios *this_00;
  _Ios_Iostate _Var1;
  
  if (*(int *)(this + 0x7c) == 0) {
    param_1 = param_1 | _S_badbit;
  }
  *(_Ios_Iostate *)(this + 0x14) = param_1;
  _Var1 = param_1 & *(_Ios_Iostate *)(this + 0x10);
  if (_Var1 == _S_goodbit) {
    return;
  }
  this_00 = (wios *)(PTR_UINT_004c12dc + -0x33fc);
  __throw_ios_failure((char *)this_00);
  clear(this_00,_Var1 | *(_Ios_Iostate *)(this_00 + 0x14));
  return;
}



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

void __thiscall std::wios::clear(wios *this,uint param_2)

{
  if (*(int *)(this + 0x7c) == 0) {
    param_2 = param_2 | 1;
  }
  *(uint *)(this + 0x14) = param_2;
  if ((param_2 & *(uint *)(this + 0x10)) == 0) {
    return;
  }
  __throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);
  clear();
  return;
}


lui gp,0x16
addiu gp,gp,0x2a4c
addu gp,gp,t9
lw v0,0x7c(a0)
beq v0,zero,0x00366828
_nop
lw v0,0x10(a0)
sw a1,0x14(a0)
and a1,a1,v0
bne a1,zero,0x00366830
_nop
jr ra
_nop
b 0x0036680c
_ori a1,a1,0x1
lw a0,-0x7f64(gp)
addiu sp,sp,-0x20
lw t9,-0x3e48(gp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
bal 0x00381974
_addiu a0,a0,-0x33fc
(translation_unit "/* std::wios::clear(std::_Ios_Iostate) */\n\nvoid __thiscall std::wios::clear(wios *this,uint param_2)\n\n{\n  if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(this + 0x14) = param_2;\n  if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }\n  __throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);\n  clear();\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wios::clear(wios *this,uint param_2)\n\n{\n  if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(this + 0x14) = param_2;\n  if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }\n  __throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);\n  clear();\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wios::" identifier : : identifier : :) (function_declarator "clear(wios *this,uint param_2)" identifier (parameter_list "(wios *this,uint param_2)" ( (parameter_declaration "wios *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(this + 0x14) = param_2;\n  if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }\n  __throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);\n  clear();\n  return;\n}" { (if_statement "if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }" if (parenthesized_expression "(*(int *)(this + 0x7c) == 0)" ( (binary_expression "*(int *)(this + 0x7c) == 0" (pointer_expression "*(int *)(this + 0x7c)" * (cast_expression "(int *)(this + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" 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 *)(this + 0x14) = param_2;" (assignment_expression "*(uint *)(this + 0x14) = param_2" (pointer_expression "*(uint *)(this + 0x14)" * (cast_expression "(uint *)(this + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }" if (parenthesized_expression "((param_2 & *(uint *)(this + 0x10)) == 0)" ( (binary_expression "(param_2 & *(uint *)(this + 0x10)) == 0" (parenthesized_expression "(param_2 & *(uint *)(this + 0x10))" ( (binary_expression "param_2 & *(uint *)(this + 0x10)" identifier & (pointer_expression "*(uint *)(this + 0x10)" * (cast_expression "(uint *)(this + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x33fc)" identifier (argument_list "(PTR_UINT_004c12dc + -0x33fc)" ( (binary_expression "PTR_UINT_004c12dc + -0x33fc" identifier + number_literal) ))) ;) (expression_statement "clear();" (call_expression "clear()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wios::clear(std::_Ios_Iostate) */\n\nvoid __thiscall std::wios::clear(wios *this,_Ios_Iostate param_1)\n\n{\n  wios *this_00;\n  _Ios_Iostate _Var1;\n  \n  if (*(int *)(this + 0x7c) == 0) {\n    param_1 = param_1 | _S_badbit;\n  }\n  *(_Ios_Iostate *)(this + 0x14) = param_1;\n  _Var1 = param_1 & *(_Ios_Iostate *)(this + 0x10);\n  if (_Var1 == _S_goodbit) {\n    return;\n  }\n  this_00 = (wios *)(PTR_UINT_004c12dc + -0x33fc);\n  __throw_ios_failure((char *)this_00);\n  clear(this_00,_Var1 | *(_Ios_Iostate *)(this_00 + 0x14));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wios::clear(wios *this,_Ios_Iostate param_1)\n\n{\n  wios *this_00;\n  _Ios_Iostate _Var1;\n  \n  if (*(int *)(this + 0x7c) == 0) {\n    param_1 = param_1 | _S_badbit;\n  }\n  *(_Ios_Iostate *)(this + 0x14) = param_1;\n  _Var1 = param_1 & *(_Ios_Iostate *)(this + 0x10);\n  if (_Var1 == _S_goodbit) {\n    return;\n  }\n  this_00 = (wios *)(PTR_UINT_004c12dc + -0x33fc);\n  __throw_ios_failure((char *)this_00);\n  clear(this_00,_Var1 | *(_Ios_Iostate *)(this_00 + 0x14));\n  return;\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  wios *this_00;\n  _Ios_Iostate _Var1;\n  \n  if (*(int *)(this + 0x7c) == 0) {\n    param_1 = param_1 | _S_badbit;\n  }\n  *(_Ios_Iostate *)(this + 0x14) = param_1;\n  _Var1 = param_1 & *(_Ios_Iostate *)(this + 0x10);\n  if (_Var1 == _S_goodbit) {\n    return;\n  }\n  this_00 = (wios *)(PTR_UINT_004c12dc + -0x33fc);\n  __throw_ios_failure((char *)this_00);\n  clear(this_00,_Var1 | *(_Ios_Iostate *)(this_00 + 0x14));\n  return;\n}" { (declaration "wios *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "_Ios_Iostate _Var1;" type_identifier identifier ;) (if_statement "if (*(int *)(this + 0x7c) == 0) {\n    param_1 = param_1 | _S_badbit;\n  }" if (parenthesized_expression "(*(int *)(this + 0x7c) == 0)" ( (binary_expression "*(int *)(this + 0x7c) == 0" (pointer_expression "*(int *)(this + 0x7c)" * (cast_expression "(int *)(this + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" 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 + 0x14) = param_1;" (assignment_expression "*(_Ios_Iostate *)(this + 0x14) = param_1" (pointer_expression "*(_Ios_Iostate *)(this + 0x14)" * (cast_expression "(_Ios_Iostate *)(this + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "_Var1 = param_1 & *(_Ios_Iostate *)(this + 0x10);" (assignment_expression "_Var1 = param_1 & *(_Ios_Iostate *)(this + 0x10)" identifier = (binary_expression "param_1 & *(_Ios_Iostate *)(this + 0x10)" identifier & (pointer_expression "*(_Ios_Iostate *)(this + 0x10)" * (cast_expression "(_Ios_Iostate *)(this + 0x10)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))))) ;) (if_statement "if (_Var1 == _S_goodbit) {\n    return;\n  }" if (parenthesized_expression "(_Var1 == _S_goodbit)" ( (binary_expression "_Var1 == _S_goodbit" identifier == identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "this_00 = (wios *)(PTR_UINT_004c12dc + -0x33fc);" (assignment_expression "this_00 = (wios *)(PTR_UINT_004c12dc + -0x33fc)" identifier = (cast_expression "(wios *)(PTR_UINT_004c12dc + -0x33fc)" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_004c12dc + -0x33fc)" ( (binary_expression "PTR_UINT_004c12dc + -0x33fc" identifier + number_literal) )))) ;) (expression_statement "__throw_ios_failure((char *)this_00);" (call_expression "__throw_ios_failure((char *)this_00)" identifier (argument_list "((char *)this_00)" ( (cast_expression "(char *)this_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "clear(this_00,_Var1 | *(_Ios_Iostate *)(this_00 + 0x14));" (call_expression "clear(this_00,_Var1 | *(_Ios_Iostate *)(this_00 + 0x14))" identifier (argument_list "(this_00,_Var1 | *(_Ios_Iostate *)(this_00 + 0x14))" ( identifier , (binary_expression "_Var1 | *(_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) ))))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __thiscall std::wios::clear(wios *this,uint param_2)\n\n{\n  if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(this + 0x14) = param_2;\n  if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }\n  __throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);\n  clear();\n  return;\n}\n\n" (function_definition "void __thiscall std::wios::clear(wios *this,uint param_2)\n\n{\n  if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(this + 0x14) = param_2;\n  if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }\n  __throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);\n  clear();\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wios::" identifier : : identifier : :) (function_declarator "clear(wios *this,uint param_2)" identifier (parameter_list "(wios *this,uint param_2)" ( (parameter_declaration "wios *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(this + 0x14) = param_2;\n  if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }\n  __throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);\n  clear();\n  return;\n}" { (if_statement "if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }" if (parenthesized_expression "(*(int *)(this + 0x7c) == 0)" ( (binary_expression "*(int *)(this + 0x7c) == 0" (pointer_expression "*(int *)(this + 0x7c)" * (cast_expression "(int *)(this + 0x7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" 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 *)(this + 0x14) = param_2;" (assignment_expression "*(uint *)(this + 0x14) = param_2" (pointer_expression "*(uint *)(this + 0x14)" * (cast_expression "(uint *)(this + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }" if (parenthesized_expression "((param_2 & *(uint *)(this + 0x10)) == 0)" ( (binary_expression "(param_2 & *(uint *)(this + 0x10)) == 0" (parenthesized_expression "(param_2 & *(uint *)(this + 0x10))" ( (binary_expression "param_2 & *(uint *)(this + 0x10)" identifier & (pointer_expression "*(uint *)(this + 0x10)" * (cast_expression "(uint *)(this + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))))) )) == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x33fc)" identifier (argument_list "(PTR_UINT_004c12dc + -0x33fc)" ( (binary_expression "PTR_UINT_004c12dc + -0x33fc" identifier + number_literal) ))) ;) (expression_statement "clear();" (call_expression "clear()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 { (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 IDENT & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __thiscall std::wios::clear(wios *this,uint param_2)\n\n{\n  if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(this + 0x14) = param_2;\n  if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }\n  __throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);\n  clear();\n  return;\n}" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::wios::" (identifier "std") (: ":") (: ":") (identifier "wios") (: ":") (: ":")) (function_declarator "clear(wios *this,uint param_2)" (identifier "clear") (parameter_list "(wios *this,uint param_2)" (( "(") (parameter_declaration "wios *this" (type_identifier "wios") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }\n  *(uint *)(this + 0x14) = param_2;\n  if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }\n  __throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);\n  clear();\n  return;\n}" ({ "{") (if_statement "if (*(int *)(this + 0x7c) == 0) {\n    param_2 = param_2 | 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(this + 0x7c) == 0)" (( "(") (binary_expression "*(int *)(this + 0x7c) == 0" (pointer_expression "*(int *)(this + 0x7c)" (* "*") (cast_expression "(int *)(this + 0x7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x7c)" (( "(") (binary_expression "this + 0x7c" (identifier "this") (+ "+") (number_literal "0x7c")) () ")")))) (== "==") (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 *)(this + 0x14) = param_2;" (assignment_expression "*(uint *)(this + 0x14) = param_2" (pointer_expression "*(uint *)(this + 0x14)" (* "*") (cast_expression "(uint *)(this + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x14)" (( "(") (binary_expression "this + 0x14" (identifier "this") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((param_2 & *(uint *)(this + 0x10)) == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "((param_2 & *(uint *)(this + 0x10)) == 0)" (( "(") (binary_expression "(param_2 & *(uint *)(this + 0x10)) == 0" (parenthesized_expression "(param_2 & *(uint *)(this + 0x10))" (( "(") (binary_expression "param_2 & *(uint *)(this + 0x10)" (identifier "param_2") (& "&") (pointer_expression "*(uint *)(this + 0x10)" (* "*") (cast_expression "(uint *)(this + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x10)" (( "(") (binary_expression "this + 0x10" (identifier "this") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);" (call_expression "__throw_ios_failure(PTR_UINT_004c12dc + -0x33fc)" (identifier "__throw_ios_failure") (argument_list "(PTR_UINT_004c12dc + -0x33fc)" (( "(") (binary_expression "PTR_UINT_004c12dc + -0x33fc" (identifier "PTR_UINT_004c12dc") (+ "+") (number_literal "-0x33fc")) () ")"))) (; ";")) (expression_statement "clear();" (call_expression "clear()" (identifier "clear") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  type_1 *var_8;
  type_2 var_4;
  
  if (*(int *)(var_1 + 0x7c) == 0) {
    var_2 = var_2 | var_3;
  }
  *(type_2 *)(var_1 + 0x14) = var_2;
  var_4 = var_2 & *(type_2 *)(var_1 + 0x10);
  if (var_4 == var_5) {
    return;
  }
  var_8 = (type_1 *)(var_6 + -0x33fc);
  var_7((char *)var_8);
  function_1(var_8,var_4 | *(type_2 *)(var_8 + 0x14));
  return;
}


(translation_unit (function_definition type: (primitive_type) (ms_call_modifier) (ERROR (identifier) (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator 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: (primitive_type) 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: (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))))))) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

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

void __thiscall std::wios::MASKED(wios *this,uint param_2)

{
  if (*(int *)(this + 0x7c) == 0) {
    param_2 = param_2 | 1;
  }
  *(uint *)(this + 0x14) = param_2;
  if ((param_2 & *(uint *)(this + 0x10)) == 0) {
    return;
  }
  __throw_ios_failure(PTR_UINT_004c12dc + -0x33fc);
  MASKED();
  return;
}

