
void start_mca(int action,char *prompt,void *mlist,int cmdflags)

{
  *(int *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = action;
  clear_bot();
  clear_cmd();
                    /* WARNING: Subroutine does not return */
  cmd_putstr(prompt);
}



void FUN_0001de6c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  *(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;
  clear_bot();
  clear_cmd();
  cmd_putstr(param_2);
  set_mlist(param_3,param_4);
  return;
}


lui gp,0x4
addiu gp,gp,-0x629c
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s2,a1,zero
or s0,a2,zero
or s1,a3,zero
lw v0,-0x7fd8(gp)
sw a0,0x140c(v0)
lw t9,-0x7fa0(gp)
bal 0x00017ab8
_nop
lw gp,0x10(sp)
lw t9,-0x7d48(gp)
bal 0x0001c388
_nop
lw gp,0x10(sp)
or a0,s2,zero
lw t9,-0x7d44(gp)
bal 0x0001c3bc
_nop
lw gp,0x10(sp)
or a1,s1,zero
or a0,s0,zero
lw t9,-0x7d38(gp)
bal 0x0001c644
_nop
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_0001de6c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  *(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;\n  clear_bot();\n  clear_cmd();\n  cmd_putstr(param_2);\n  set_mlist(param_3,param_4);\n  return;\n}\n\n" (function_definition "void FUN_0001de6c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  *(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;\n  clear_bot();\n  clear_cmd();\n  cmd_putstr(param_2);\n  set_mlist(param_3,param_4);\n  return;\n}" primitive_type (function_declarator "FUN_0001de6c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  *(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;\n  clear_bot();\n  clear_cmd();\n  cmd_putstr(param_2);\n  set_mlist(param_3,param_4);\n  return;\n}" { (expression_statement "*(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;" (assignment_expression "*(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1" (pointer_expression "*(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c)" * (cast_expression "(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_PTR_homefile_0004fbf8 + 0x140c)" ( (binary_expression "PTR_PTR_homefile_0004fbf8 + 0x140c" identifier + number_literal) )))) = identifier) ;) (expression_statement "clear_bot();" (call_expression "clear_bot()" identifier (argument_list "()" ( ))) ;) (expression_statement "clear_cmd();" (call_expression "clear_cmd()" identifier (argument_list "()" ( ))) ;) (expression_statement "cmd_putstr(param_2);" (call_expression "cmd_putstr(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "set_mlist(param_3,param_4);" (call_expression "set_mlist(param_3,param_4)" identifier (argument_list "(param_3,param_4)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void start_mca(int action,char *prompt,void *mlist,int cmdflags)\n\n{\n  *(int *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = action;\n  clear_bot();\n  clear_cmd();\n                    /* WARNING: Subroutine does not return */\n  cmd_putstr(prompt);\n}\n\n" (function_definition "void start_mca(int action,char *prompt,void *mlist,int cmdflags)\n\n{\n  *(int *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = action;\n  clear_bot();\n  clear_cmd();\n                    /* WARNING: Subroutine does not return */\n  cmd_putstr(prompt);\n}" primitive_type (function_declarator "start_mca(int action,char *prompt,void *mlist,int cmdflags)" identifier (parameter_list "(int action,char *prompt,void *mlist,int cmdflags)" ( (parameter_declaration "int action" primitive_type identifier) , (parameter_declaration "char *prompt" primitive_type (pointer_declarator "*prompt" * identifier)) , (parameter_declaration "void *mlist" primitive_type (pointer_declarator "*mlist" * identifier)) , (parameter_declaration "int cmdflags" primitive_type identifier) ))) (compound_statement "{\n  *(int *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = action;\n  clear_bot();\n  clear_cmd();\n                    /* WARNING: Subroutine does not return */\n  cmd_putstr(prompt);\n}" { (expression_statement "*(int *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = action;" (assignment_expression "*(int *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = action" (pointer_expression "*(int *)(PTR_PTR_homefile_0004fbf8 + 0x140c)" * (cast_expression "(int *)(PTR_PTR_homefile_0004fbf8 + 0x140c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_PTR_homefile_0004fbf8 + 0x140c)" ( (binary_expression "PTR_PTR_homefile_0004fbf8 + 0x140c" identifier + number_literal) )))) = identifier) ;) (expression_statement "clear_bot();" (call_expression "clear_bot()" identifier (argument_list "()" ( ))) ;) (expression_statement "clear_cmd();" (call_expression "clear_cmd()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "cmd_putstr(prompt);" (call_expression "cmd_putstr(prompt)" identifier (argument_list "(prompt)" ( identifier ))) ;) })))
(translation_unit "void FUN_0001de6c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  *(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;\n  clear_bot();\n  clear_cmd();\n  cmd_putstr(param_2);\n  set_mlist(param_3,param_4);\n  return;\n}\n\n" (function_definition "void FUN_0001de6c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  *(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;\n  clear_bot();\n  clear_cmd();\n  cmd_putstr(param_2);\n  set_mlist(param_3,param_4);\n  return;\n}" primitive_type (function_declarator "FUN_0001de6c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  *(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;\n  clear_bot();\n  clear_cmd();\n  cmd_putstr(param_2);\n  set_mlist(param_3,param_4);\n  return;\n}" { (expression_statement "*(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;" (assignment_expression "*(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1" (pointer_expression "*(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c)" * (cast_expression "(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_PTR_homefile_0004fbf8 + 0x140c)" ( (binary_expression "PTR_PTR_homefile_0004fbf8 + 0x140c" identifier + number_literal) )))) = identifier) ;) (expression_statement "clear_bot();" (call_expression "clear_bot()" identifier (argument_list "()" ( ))) ;) (expression_statement "clear_cmd();" (call_expression "clear_cmd()" identifier (argument_list "()" ( ))) ;) (expression_statement "cmd_putstr(param_2);" (call_expression "cmd_putstr(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "set_mlist(param_3,param_4);" (call_expression "set_mlist(param_3,param_4)" identifier (argument_list "(param_3,param_4)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001de6c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  *(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;\n  clear_bot();\n  clear_cmd();\n  cmd_putstr(param_2);\n  set_mlist(param_3,param_4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001de6c(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0001de6c") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  *(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;\n  clear_bot();\n  clear_cmd();\n  cmd_putstr(param_2);\n  set_mlist(param_3,param_4);\n  return;\n}" ({ "{") (expression_statement "*(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;" (assignment_expression "*(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1" (pointer_expression "*(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c)" (* "*") (cast_expression "(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_PTR_homefile_0004fbf8 + 0x140c)" (( "(") (binary_expression "PTR_PTR_homefile_0004fbf8 + 0x140c" (identifier "PTR_PTR_homefile_0004fbf8") (+ "+") (number_literal "0x140c")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "clear_bot();" (call_expression "clear_bot()" (identifier "clear_bot") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "clear_cmd();" (call_expression "clear_cmd()" (identifier "clear_cmd") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "cmd_putstr(param_2);" (call_expression "cmd_putstr(param_2)" (identifier "cmd_putstr") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "set_mlist(param_3,param_4);" (call_expression "set_mlist(param_3,param_4)" (identifier "set_mlist") (argument_list "(param_3,param_4)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int action,char *prompt,void *mlist,int cmdflags)

{
  *(int *)(var_1 + 0x140c) = action;
  var_2();
  var_3();
                    /* WARNING: Subroutine does not return */
  var_4(prompt);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (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))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

void MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  *(undefined4 *)(PTR_PTR_homefile_0004fbf8 + 0x140c) = param_1;
  clear_bot();
  clear_cmd();
  cmd_putstr(param_2);
  set_mlist(param_3,param_4);
  return;
}

