
/* std::wios::operator void*() const */

void * __thiscall std::wios::operator_cast_to_void_(wios *this)

{
  if ((*(uint *)(this + 0x14) & 5) != 0) {
    this = (wios *)0x0;
  }
  return this;
}



int FUN_0031d9c0(int param_1)

{
  if ((*(uint *)(param_1 + 0x14) & 5) != 0) {
    param_1 = 0;
  }
  return param_1;
}


lw v0,0x14(a0)
andi v0,v0,0x5
movn a0,zero,v0
jr ra
_or v0,a0,zero
(translation_unit "int FUN_0031d9c0(int param_1)\n\n{\n  if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }\n  return param_1;\n}\n\n" (function_definition "int FUN_0031d9c0(int param_1)\n\n{\n  if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_0031d9c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }\n  return param_1;\n}" { (if_statement "if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 5) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x14) & 5) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 5)" ( (binary_expression "*(uint *)(param_1 + 0x14) & 5" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    param_1 = 0;\n  }" { (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" identifier = number_literal) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wios::operator void*() const */\n\nvoid * __thiscall std::wios::operator_cast_to_void_(wios *this)\n\n{\n  if ((*(uint *)(this + 0x14) & 5) != 0) {\n    this = (wios *)0x0;\n  }\n  return this;\n}\n\n" comment (declaration "void * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "std::wios::operator_cast_to_void_(wios *this)\n\n{\n  if ((*(uint *)(this + 0x14) & 5) != 0) {\n    this = (wios *)0x0;\n  }\n  return this;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "wios::operator_cast_to_void_(wios *this)\n\n{\n  if ((*(uint *)(this + 0x14) & 5) != 0) {\n    this = (wios *)0x0;\n  }\n  return this;\n}" statement_identifier : (ERROR ":operator_cast_to_void_(wios *this)" : (call_expression "operator_cast_to_void_(wios *this)" identifier (argument_list "(wios *this)" ( (binary_expression "wios *this" identifier * identifier) )))) (compound_statement "{\n  if ((*(uint *)(this + 0x14) & 5) != 0) {\n    this = (wios *)0x0;\n  }\n  return this;\n}" { (if_statement "if ((*(uint *)(this + 0x14) & 5) != 0) {\n    this = (wios *)0x0;\n  }" if (parenthesized_expression "((*(uint *)(this + 0x14) & 5) != 0)" ( (binary_expression "(*(uint *)(this + 0x14) & 5) != 0" (parenthesized_expression "(*(uint *)(this + 0x14) & 5)" ( (binary_expression "*(uint *)(this + 0x14) & 5" (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) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    this = (wios *)0x0;\n  }" { (expression_statement "this = (wios *)0x0;" (assignment_expression "this = (wios *)0x0" identifier = (cast_expression "(wios *)0x0" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return this;" return identifier ;) }))))
(translation_unit "int FUN_0031d9c0(int param_1)\n\n{\n  if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }\n  return param_1;\n}\n\n" (function_definition "int FUN_0031d9c0(int param_1)\n\n{\n  if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_0031d9c0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }\n  return param_1;\n}" { (if_statement "if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 5) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x14) & 5) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 5)" ( (binary_expression "*(uint *)(param_1 + 0x14) & 5" (pointer_expression "*(uint *)(param_1 + 0x14)" * (cast_expression "(uint *)(param_1 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    param_1 = 0;\n  }" { (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" identifier = number_literal) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (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) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0031d9c0(int param_1)\n\n{\n  if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }\n  return param_1;\n}" (primitive_type "int") (function_declarator "FUN_0031d9c0(int param_1)" (identifier "FUN_0031d9c0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }\n  return param_1;\n}" ({ "{") (if_statement "if ((*(uint *)(param_1 + 0x14) & 5) != 0) {\n    param_1 = 0;\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x14) & 5) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x14) & 5) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x14) & 5)" (( "(") (binary_expression "*(uint *)(param_1 + 0x14) & 5" (pointer_expression "*(uint *)(param_1 + 0x14)" (* "*") (cast_expression "(uint *)(param_1 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (& "&") (number_literal "5")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_1 = 0;\n  }" ({ "{") (expression_statement "param_1 = 0;" (assignment_expression "param_1 = 0" (identifier "param_1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wios::operator void*() const */

void * __thiscall std::wios::operator_cast_to_void_(type_2 *var_1)

{
  if ((*(type_1 *)(var_1 + 0x14) & 5) != 0) {
    var_1 = (type_2 *)0x0;
  }
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (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: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  if ((*(uint *)(param_1 + 0x14) & 5) != 0) {
    param_1 = 0;
  }
  return param_1;
}

