
int dup2_or_raise(int from,int to)

{
  if (from != to) {
    to = (*(code *)PTR_dup2_0012b1e8)();
  }
  if (to < 0) {
                    /* WARNING: Subroutine does not return */
    ash_msg_and_raise_error(PTR_UINT_0012a18c + 0x7340,from);
  }
  return to;
}



void FUN_0006f70c(int param_1,int param_2)

{
  if (param_1 != param_2) {
    param_2 = (*(code *)PTR_dup2_0012b1e8)();
  }
  if (param_2 < 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);
  }
  return;
}


lui gp,0xc
addiu gp,gp,0x2a44
addu gp,gp,t9
addiu sp,sp,-0x20
or v0,a1,zero
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
beq a0,a1,0x0006f744
_sw ra,0x1c(sp)
lw t9,-0x6f68(gp)
jalr t9
_nop
lw gp,0x10(sp)
bgez v0,0x0006f760
_lw a0,-0x7fc4(gp)
or a1,s0,zero
lw t9,-0x793c(gp)
addiu t9,t9,-0x1198
bal 0x0006ee68
_addiu a0,a0,0x7340
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "void FUN_0006f70c(int param_1,int param_2)\n\n{\n  if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (param_2 < 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0006f70c(int param_1,int param_2)\n\n{\n  if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (param_2 < 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006f70c(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (param_2 < 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }\n  return;\n}" { (if_statement "if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }" { (expression_statement "param_2 = (*(code *)PTR_dup2_0012b1e8)();" (assignment_expression "param_2 = (*(code *)PTR_dup2_0012b1e8)()" identifier = (call_expression "(*(code *)PTR_dup2_0012b1e8)()" (parenthesized_expression "(*(code *)PTR_dup2_0012b1e8)" ( (pointer_expression "*(code *)PTR_dup2_0012b1e8" * (cast_expression "(code *)PTR_dup2_0012b1e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) })) (if_statement "if (param_2 < 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }" { comment (expression_statement "FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);" (call_expression "FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1)" identifier (argument_list "(PTR_UINT_0012a18c + 0x7340,param_1)" ( (binary_expression "PTR_UINT_0012a18c + 0x7340" identifier + number_literal) , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "int dup2_or_raise(int from,int to)\n\n{\n  if (from != to) {\n    to = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (to < 0) {\n                    /* WARNING: Subroutine does not return */\n    ash_msg_and_raise_error(PTR_UINT_0012a18c + 0x7340,from);\n  }\n  return to;\n}\n\n" (function_definition "int dup2_or_raise(int from,int to)\n\n{\n  if (from != to) {\n    to = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (to < 0) {\n                    /* WARNING: Subroutine does not return */\n    ash_msg_and_raise_error(PTR_UINT_0012a18c + 0x7340,from);\n  }\n  return to;\n}" primitive_type (function_declarator "dup2_or_raise(int from,int to)" identifier (parameter_list "(int from,int to)" ( (parameter_declaration "int from" primitive_type identifier) , (parameter_declaration "int to" primitive_type identifier) ))) (compound_statement "{\n  if (from != to) {\n    to = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (to < 0) {\n                    /* WARNING: Subroutine does not return */\n    ash_msg_and_raise_error(PTR_UINT_0012a18c + 0x7340,from);\n  }\n  return to;\n}" { (if_statement "if (from != to) {\n    to = (*(code *)PTR_dup2_0012b1e8)();\n  }" if (parenthesized_expression "(from != to)" ( (binary_expression "from != to" identifier != identifier) )) (compound_statement "{\n    to = (*(code *)PTR_dup2_0012b1e8)();\n  }" { (expression_statement "to = (*(code *)PTR_dup2_0012b1e8)();" (assignment_expression "to = (*(code *)PTR_dup2_0012b1e8)()" identifier = (call_expression "(*(code *)PTR_dup2_0012b1e8)()" (parenthesized_expression "(*(code *)PTR_dup2_0012b1e8)" ( (pointer_expression "*(code *)PTR_dup2_0012b1e8" * (cast_expression "(code *)PTR_dup2_0012b1e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) })) (if_statement "if (to < 0) {\n                    /* WARNING: Subroutine does not return */\n    ash_msg_and_raise_error(PTR_UINT_0012a18c + 0x7340,from);\n  }" if (parenthesized_expression "(to < 0)" ( (binary_expression "to < 0" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    ash_msg_and_raise_error(PTR_UINT_0012a18c + 0x7340,from);\n  }" { comment (expression_statement "ash_msg_and_raise_error(PTR_UINT_0012a18c + 0x7340,from);" (call_expression "ash_msg_and_raise_error(PTR_UINT_0012a18c + 0x7340,from)" identifier (argument_list "(PTR_UINT_0012a18c + 0x7340,from)" ( (binary_expression "PTR_UINT_0012a18c + 0x7340" identifier + number_literal) , identifier ))) ;) })) (return_statement "return to;" return identifier ;) })))
(translation_unit "void FUN_0006f70c(int param_1,int param_2)\n\n{\n  if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (param_2 < 0) {\n                    \n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0006f70c(int param_1,int param_2)\n\n{\n  if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (param_2 < 0) {\n                    \n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0006f70c(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (param_2 < 0) {\n                    \n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }\n  return;\n}" { (if_statement "if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }" { (expression_statement "param_2 = (*(code *)PTR_dup2_0012b1e8)();" (assignment_expression "param_2 = (*(code *)PTR_dup2_0012b1e8)()" identifier = (call_expression "(*(code *)PTR_dup2_0012b1e8)()" (parenthesized_expression "(*(code *)PTR_dup2_0012b1e8)" ( (pointer_expression "*(code *)PTR_dup2_0012b1e8" * (cast_expression "(code *)PTR_dup2_0012b1e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) })) (if_statement "if (param_2 < 0) {\n                    \n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n                    \n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }" { (expression_statement "FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);" (call_expression "FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1)" identifier (argument_list "(PTR_UINT_0012a18c + 0x7340,param_1)" ( (binary_expression "PTR_UINT_0012a18c + 0x7340" identifier + number_literal) , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0006f70c(int param_1,int param_2)\n\n{\n  if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (param_2 < 0) {\n                    \n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0006f70c(int param_1,int param_2)" (identifier "FUN_0006f70c") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }\n  if (param_2 < 0) {\n                    \n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != param_2) {\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }" (if "if") (parenthesized_expression "(param_1 != param_2)" (( "(") (binary_expression "param_1 != param_2" (identifier "param_1") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n    param_2 = (*(code *)PTR_dup2_0012b1e8)();\n  }" ({ "{") (expression_statement "param_2 = (*(code *)PTR_dup2_0012b1e8)();" (assignment_expression "param_2 = (*(code *)PTR_dup2_0012b1e8)()" (identifier "param_2") (= "=") (call_expression "(*(code *)PTR_dup2_0012b1e8)()" (parenthesized_expression "(*(code *)PTR_dup2_0012b1e8)" (( "(") (pointer_expression "*(code *)PTR_dup2_0012b1e8" (* "*") (cast_expression "(code *)PTR_dup2_0012b1e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dup2_0012b1e8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (if_statement "if (param_2 < 0) {\n                    \n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);\n  }" ({ "{") (expression_statement "FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);" (call_expression "FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1)" (identifier "FUN_0006ee68") (argument_list "(PTR_UINT_0012a18c + 0x7340,param_1)" (( "(") (binary_expression "PTR_UINT_0012a18c + 0x7340" (identifier "PTR_UINT_0012a18c") (+ "+") (number_literal "0x7340")) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (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) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (return_statement))))

void MASKED(int param_1,int param_2)

{
  if (param_1 != param_2) {
    param_2 = (*(code *)PTR_dup2_0012b1e8)();
  }
  if (param_2 < 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0006ee68(PTR_UINT_0012a18c + 0x7340,param_1);
  }
  return;
}

