
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void reset_term(void)

{
  if ((*(uint *)PTR_option_mask32_0012a334 & 4) == 0) {
    (*(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308)(*(int *)PTR_ptr_to_globals_0012a304 + 0x10);
    return;
  }
  return;
}



void FUN_0006a150(void)

{
  if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006a178. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);
    return;
  }
  return;
}


lui gp,0xd
addiu gp,gp,-0x8000
addu gp,gp,t9
lw v0,-0x7e1c(gp)
lw v0,0x0(v0)
andi v0,v0,0x4
bne v0,zero,0x0006a180
_lw v0,-0x7e4c(gp)
lw t9,-0x7e48(gp)
lw a0,0x0(v0)
jr t9
_addiu a0,a0,0x10
jr ra
_nop
(translation_unit "void FUN_0006a150(void)\n\n{\n  if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006a178. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0006a150(void)\n\n{\n  if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006a178. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006a150(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006a178. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }\n  return;\n}" { (if_statement "if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    /* WARNING: Could not recover jumptable at 0x0006a178. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }" if (parenthesized_expression "((*(uint *)PTR_DAT_0012a334 & 4) == 0)" ( (binary_expression "(*(uint *)PTR_DAT_0012a334 & 4) == 0" (parenthesized_expression "(*(uint *)PTR_DAT_0012a334 & 4)" ( (binary_expression "*(uint *)PTR_DAT_0012a334 & 4" (pointer_expression "*(uint *)PTR_DAT_0012a334" * (cast_expression "(uint *)PTR_DAT_0012a334" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x0006a178. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }" { comment comment (expression_statement "(*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);" (call_expression "(*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10)" (parenthesized_expression "(*(code *)PTR_FUN_0012a308)" ( (pointer_expression "*(code *)PTR_FUN_0012a308" * (cast_expression "(code *)PTR_FUN_0012a308" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)PTR_DAT_0012a304 + 0x10)" ( (binary_expression "*(int *)PTR_DAT_0012a304 + 0x10" (pointer_expression "*(int *)PTR_DAT_0012a304" * (cast_expression "(int *)PTR_DAT_0012a304" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid reset_term(void)\n\n{\n  if ((*(uint *)PTR_option_mask32_0012a334 & 4) == 0) {\n    (*(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308)(*(int *)PTR_ptr_to_globals_0012a304 + 0x10);\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void reset_term(void)\n\n{\n  if ((*(uint *)PTR_option_mask32_0012a334 & 4) == 0) {\n    (*(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308)(*(int *)PTR_ptr_to_globals_0012a304 + 0x10);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "reset_term(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if ((*(uint *)PTR_option_mask32_0012a334 & 4) == 0) {\n    (*(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308)(*(int *)PTR_ptr_to_globals_0012a304 + 0x10);\n    return;\n  }\n  return;\n}" { (if_statement "if ((*(uint *)PTR_option_mask32_0012a334 & 4) == 0) {\n    (*(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308)(*(int *)PTR_ptr_to_globals_0012a304 + 0x10);\n    return;\n  }" if (parenthesized_expression "((*(uint *)PTR_option_mask32_0012a334 & 4) == 0)" ( (binary_expression "(*(uint *)PTR_option_mask32_0012a334 & 4) == 0" (parenthesized_expression "(*(uint *)PTR_option_mask32_0012a334 & 4)" ( (binary_expression "*(uint *)PTR_option_mask32_0012a334 & 4" (pointer_expression "*(uint *)PTR_option_mask32_0012a334" * (cast_expression "(uint *)PTR_option_mask32_0012a334" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal) )) == number_literal) )) (compound_statement "{\n    (*(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308)(*(int *)PTR_ptr_to_globals_0012a304 + 0x10);\n    return;\n  }" { (expression_statement "(*(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308)(*(int *)PTR_ptr_to_globals_0012a304 + 0x10);" (call_expression "(*(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308)(*(int *)PTR_ptr_to_globals_0012a304 + 0x10)" (parenthesized_expression "(*(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308)" ( (pointer_expression "*(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308" * (cast_expression "(code *)PTR_tcsetattr_stdin_TCSANOW_0012a308" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)PTR_ptr_to_globals_0012a304 + 0x10)" ( (binary_expression "*(int *)PTR_ptr_to_globals_0012a304 + 0x10" (pointer_expression "*(int *)PTR_ptr_to_globals_0012a304" * (cast_expression "(int *)PTR_ptr_to_globals_0012a304" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0006a150(void)\n\n{\n  if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    \n                    \n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0006a150(void)\n\n{\n  if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    \n                    \n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006a150(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    \n                    \n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }\n  return;\n}" { (if_statement "if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    \n                    \n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }" if (parenthesized_expression "((*(uint *)PTR_DAT_0012a334 & 4) == 0)" ( (binary_expression "(*(uint *)PTR_DAT_0012a334 & 4) == 0" (parenthesized_expression "(*(uint *)PTR_DAT_0012a334 & 4)" ( (binary_expression "*(uint *)PTR_DAT_0012a334 & 4" (pointer_expression "*(uint *)PTR_DAT_0012a334" * (cast_expression "(uint *)PTR_DAT_0012a334" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal) )) == number_literal) )) (compound_statement "{\n                    \n                    \n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }" { (expression_statement "(*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);" (call_expression "(*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10)" (parenthesized_expression "(*(code *)PTR_FUN_0012a308)" ( (pointer_expression "*(code *)PTR_FUN_0012a308" * (cast_expression "(code *)PTR_FUN_0012a308" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)PTR_DAT_0012a304 + 0x10)" ( (binary_expression "*(int *)PTR_DAT_0012a304 + 0x10" (pointer_expression "*(int *)PTR_DAT_0012a304" * (cast_expression "(int *)PTR_DAT_0012a304" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0006a150(void)\n\n{\n  if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    \n                    \n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0006a150(void)" (identifier "FUN_0006a150") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    \n                    \n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }\n  return;\n}" ({ "{") (if_statement "if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {\n                    \n                    \n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }" (if "if") (parenthesized_expression "((*(uint *)PTR_DAT_0012a334 & 4) == 0)" (( "(") (binary_expression "(*(uint *)PTR_DAT_0012a334 & 4) == 0" (parenthesized_expression "(*(uint *)PTR_DAT_0012a334 & 4)" (( "(") (binary_expression "*(uint *)PTR_DAT_0012a334 & 4" (pointer_expression "*(uint *)PTR_DAT_0012a334" (* "*") (cast_expression "(uint *)PTR_DAT_0012a334" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_0012a334"))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);" (call_expression "(*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10)" (parenthesized_expression "(*(code *)PTR_FUN_0012a308)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a308" (* "*") (cast_expression "(code *)PTR_FUN_0012a308" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a308"))) () ")")) (argument_list "(*(int *)PTR_DAT_0012a304 + 0x10)" (( "(") (binary_expression "*(int *)PTR_DAT_0012a304 + 0x10" (pointer_expression "*(int *)PTR_DAT_0012a304" (* "*") (cast_expression "(int *)PTR_DAT_0012a304" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_0012a304"))) (+ "+") (number_literal "0x10")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) 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: (identifier))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) (return_statement))) (return_statement))))

void MASKED(void)

{
  if ((*(uint *)PTR_DAT_0012a334 & 4) == 0) {
                    /* WARNING: Could not recover jumptable at 0x0006a178. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_FUN_0012a308)(*(int *)PTR_DAT_0012a304 + 0x10);
    return;
  }
  return;
}

