
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

void show_mouseptr(gui_data *inst,int show)

{
  int iVar1;
  undefined4 in_a2;
  undefined4 in_a3;
  int in_t9;
  
  iVar1 = (**(code **)(in_t9 + 0x5d28c))(inst->conf,0x7d,in_a2,in_a3,&UNK_00065240 + in_t9);
  if (iVar1 == 0) {
    show = 1;
  }
  inst->mouseptr_visible = show;
  update_mouseptr(inst);
  return;
}



void FUN_000c4070(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);
  if (iVar1 == 0) {
    param_2 = 1;
  }
  *(undefined4 *)(param_1 + 0xcf0) = param_2;
  FUN_000c3f2c(param_1);
  return;
}


lui gp,0x6
addiu gp,gp,0x5240
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s0,a0,zero
or s1,a1,zero
li a1,0x7d
lw a0,0x2238(a0)
lw t9,-0x7fb4(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v1,0x1
movz s1,v1,v0
sw s1,0xcf0(s0)
or a0,s0,zero
lw t9,-0x760c(gp)
addiu t9,t9,0x3f2c
bal 0x000c3f2c
_nop
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_000c4070(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);\n  if (iVar1 == 0) {\n    param_2 = 1;\n  }\n  *(undefined4 *)(param_1 + 0xcf0) = param_2;\n  FUN_000c3f2c(param_1);\n  return;\n}\n\n" (function_definition "void FUN_000c4070(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);\n  if (iVar1 == 0) {\n    param_2 = 1;\n  }\n  *(undefined4 *)(param_1 + 0xcf0) = param_2;\n  FUN_000c3f2c(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000c4070(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);\n  if (iVar1 == 0) {\n    param_2 = 1;\n  }\n  *(undefined4 *)(param_1 + 0xcf0) = param_2;\n  FUN_000c3f2c(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);" (assignment_expression "iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d)" identifier = (call_expression "(*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d)" (parenthesized_expression "(*(code *)PTR_conf_get_int_001212fc)" ( (pointer_expression "*(code *)PTR_conf_get_int_001212fc" * (cast_expression "(code *)PTR_conf_get_int_001212fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x2238),0x7d)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    param_2 = 1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = 1;\n  }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xcf0) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0xcf0) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0xcf0)" * (cast_expression "(undefined4 *)(param_1 + 0xcf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcf0)" ( (binary_expression "param_1 + 0xcf0" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_000c3f2c(param_1);" (call_expression "FUN_000c3f2c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid show_mouseptr(gui_data *inst,int show)\n\n{\n  int iVar1;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  int in_t9;\n  \n  iVar1 = (**(code **)(in_t9 + 0x5d28c))(inst->conf,0x7d,in_a2,in_a3,&UNK_00065240 + in_t9);\n  if (iVar1 == 0) {\n    show = 1;\n  }\n  inst->mouseptr_visible = show;\n  update_mouseptr(inst);\n  return;\n}\n\n" comment (function_definition "void show_mouseptr(gui_data *inst,int show)\n\n{\n  int iVar1;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  int in_t9;\n  \n  iVar1 = (**(code **)(in_t9 + 0x5d28c))(inst->conf,0x7d,in_a2,in_a3,&UNK_00065240 + in_t9);\n  if (iVar1 == 0) {\n    show = 1;\n  }\n  inst->mouseptr_visible = show;\n  update_mouseptr(inst);\n  return;\n}" primitive_type (function_declarator "show_mouseptr(gui_data *inst,int show)" identifier (parameter_list "(gui_data *inst,int show)" ( (parameter_declaration "gui_data *inst" type_identifier (pointer_declarator "*inst" * identifier)) , (parameter_declaration "int show" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  int in_t9;\n  \n  iVar1 = (**(code **)(in_t9 + 0x5d28c))(inst->conf,0x7d,in_a2,in_a3,&UNK_00065240 + in_t9);\n  if (iVar1 == 0) {\n    show = 1;\n  }\n  inst->mouseptr_visible = show;\n  update_mouseptr(inst);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (expression_statement "iVar1 = (**(code **)(in_t9 + 0x5d28c))(inst->conf,0x7d,in_a2,in_a3,&UNK_00065240 + in_t9);" (assignment_expression "iVar1 = (**(code **)(in_t9 + 0x5d28c))(inst->conf,0x7d,in_a2,in_a3,&UNK_00065240 + in_t9)" identifier = (call_expression "(**(code **)(in_t9 + 0x5d28c))(inst->conf,0x7d,in_a2,in_a3,&UNK_00065240 + in_t9)" (parenthesized_expression "(**(code **)(in_t9 + 0x5d28c))" ( (pointer_expression "**(code **)(in_t9 + 0x5d28c)" * (pointer_expression "*(code **)(in_t9 + 0x5d28c)" * (cast_expression "(code **)(in_t9 + 0x5d28c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x5d28c)" ( (binary_expression "in_t9 + 0x5d28c" identifier + number_literal) ))))) )) (argument_list "(inst->conf,0x7d,in_a2,in_a3,&UNK_00065240 + in_t9)" ( (field_expression "inst->conf" identifier -> field_identifier) , number_literal , identifier , identifier , (binary_expression "&UNK_00065240 + in_t9" (pointer_expression "&UNK_00065240" & identifier) + identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    show = 1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    show = 1;\n  }" { (expression_statement "show = 1;" (assignment_expression "show = 1" identifier = number_literal) ;) })) (expression_statement "inst->mouseptr_visible = show;" (assignment_expression "inst->mouseptr_visible = show" (field_expression "inst->mouseptr_visible" identifier -> field_identifier) = identifier) ;) (expression_statement "update_mouseptr(inst);" (call_expression "update_mouseptr(inst)" identifier (argument_list "(inst)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000c4070(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);\n  if (iVar1 == 0) {\n    param_2 = 1;\n  }\n  *(undefined4 *)(param_1 + 0xcf0) = param_2;\n  FUN_000c3f2c(param_1);\n  return;\n}\n\n" (function_definition "void FUN_000c4070(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);\n  if (iVar1 == 0) {\n    param_2 = 1;\n  }\n  *(undefined4 *)(param_1 + 0xcf0) = param_2;\n  FUN_000c3f2c(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_000c4070(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);\n  if (iVar1 == 0) {\n    param_2 = 1;\n  }\n  *(undefined4 *)(param_1 + 0xcf0) = param_2;\n  FUN_000c3f2c(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);" (assignment_expression "iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d)" identifier = (call_expression "(*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d)" (parenthesized_expression "(*(code *)PTR_conf_get_int_001212fc)" ( (pointer_expression "*(code *)PTR_conf_get_int_001212fc" * (cast_expression "(code *)PTR_conf_get_int_001212fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x2238),0x7d)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" * (cast_expression "(undefined4 *)(param_1 + 0x2238)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2238)" ( (binary_expression "param_1 + 0x2238" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    param_2 = 1;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = 1;\n  }" { (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0xcf0) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0xcf0) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0xcf0)" * (cast_expression "(undefined4 *)(param_1 + 0xcf0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcf0)" ( (binary_expression "param_1 + 0xcf0" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_000c3f2c(param_1);" (call_expression "FUN_000c3f2c(param_1)" identifier (argument_list "(param_1)" ( 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 { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (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 ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000c4070(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);\n  if (iVar1 == 0) {\n    param_2 = 1;\n  }\n  *(undefined4 *)(param_1 + 0xcf0) = param_2;\n  FUN_000c3f2c(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000c4070(int param_1,undefined4 param_2)" (identifier "FUN_000c4070") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);\n  if (iVar1 == 0) {\n    param_2 = 1;\n  }\n  *(undefined4 *)(param_1 + 0xcf0) = param_2;\n  FUN_000c3f2c(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);" (assignment_expression "iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d)" (parenthesized_expression "(*(code *)PTR_conf_get_int_001212fc)" (( "(") (pointer_expression "*(code *)PTR_conf_get_int_001212fc" (* "*") (cast_expression "(code *)PTR_conf_get_int_001212fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_conf_get_int_001212fc"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x2238),0x7d)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x2238)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x2238)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2238)" (( "(") (binary_expression "param_1 + 0x2238" (identifier "param_1") (+ "+") (number_literal "0x2238")) () ")")))) (, ",") (number_literal "0x7d") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    param_2 = 1;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = 1;\n  }" ({ "{") (expression_statement "param_2 = 1;" (assignment_expression "param_2 = 1" (identifier "param_2") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0xcf0) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0xcf0) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0xcf0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xcf0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xcf0)" (( "(") (binary_expression "param_1 + 0xcf0" (identifier "param_1") (+ "+") (number_literal "0xcf0")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_000c3f2c(param_1);" (call_expression "FUN_000c3f2c(param_1)" (identifier "FUN_000c3f2c") (argument_list "(param_1)" (( "(") (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: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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 (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))))) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))))

void MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_conf_get_int_001212fc)(*(undefined4 *)(param_1 + 0x2238),0x7d);
  if (iVar1 == 0) {
    param_2 = 1;
  }
  *(undefined4 *)(param_1 + 0xcf0) = param_2;
  FUN_000c3f2c(param_1);
  return;
}

