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

void set_icon(void *frontend,char *title)

{
  undefined4 uVar1;
  
  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)((int)frontend + 0xd04));
  uVar1 = (*(code *)PTR_dupstr_0011131c)(title);
  *(undefined4 *)((int)frontend + 0xd04) = uVar1;
  set_window_titles((gui_data *)frontend);
  return;
}



void set_icon(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  
  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));
  uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);
  *(undefined4 *)(param_1 + 0xd04) = uVar1;
  FUN_000b7bd4(param_1);
  return;
}


lui gp,0x6
addiu gp,gp,-0x49c
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7fc0(gp)
sw s0,0x1c(sp)
or s0,a0,zero
sw ra,0x24(sp)
sw s1,0x20(sp)
or s1,a1,zero
sw gp,0x10(sp)
jalr t9
_lw a0,0xd04(a0)
lw gp,0x10(sp)
lw t9,-0x7f94(gp)
jalr t9
_or a0,s1,zero
or a0,s0,zero
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s1,0x20(sp)
sw v0,0xd04(s0)
lw t9,-0x75f4(gp)
lw s0,0x1c(sp)
addiu t9,t9,0x7bd4
b 0x000b7bd4
_addiu sp,sp,0x28
(translation_unit "void set_icon(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);\n  *(undefined4 *)(param_1 + 0xd04) = uVar1;\n  FUN_000b7bd4(param_1);\n  return;\n}\n\n" (function_definition "void set_icon(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);\n  *(undefined4 *)(param_1 + 0xd04) = uVar1;\n  FUN_000b7bd4(param_1);\n  return;\n}" primitive_type (function_declarator "set_icon(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  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);\n  *(undefined4 *)(param_1 + 0xd04) = uVar1;\n  FUN_000b7bd4(param_1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));" (call_expression "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04))" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xd04))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xd04)" * (cast_expression "(undefined4 *)(param_1 + 0xd04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd04)" ( (binary_expression "param_1 + 0xd04" identifier + number_literal) )))) ))) ;) (expression_statement "uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2)" identifier = (call_expression "(*(code *)PTR_dupstr_0011131c)(param_2)" (parenthesized_expression "(*(code *)PTR_dupstr_0011131c)" ( (pointer_expression "*(code *)PTR_dupstr_0011131c" * (cast_expression "(code *)PTR_dupstr_0011131c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xd04) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0xd04) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0xd04)" * (cast_expression "(undefined4 *)(param_1 + 0xd04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd04)" ( (binary_expression "param_1 + 0xd04" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_000b7bd4(param_1);" (call_expression "FUN_000b7bd4(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 set_icon(void *frontend,char *title)\n\n{\n  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)((int)frontend + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(title);\n  *(undefined4 *)((int)frontend + 0xd04) = uVar1;\n  set_window_titles((gui_data *)frontend);\n  return;\n}\n\n" comment (function_definition "void set_icon(void *frontend,char *title)\n\n{\n  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)((int)frontend + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(title);\n  *(undefined4 *)((int)frontend + 0xd04) = uVar1;\n  set_window_titles((gui_data *)frontend);\n  return;\n}" primitive_type (function_declarator "set_icon(void *frontend,char *title)" identifier (parameter_list "(void *frontend,char *title)" ( (parameter_declaration "void *frontend" primitive_type (pointer_declarator "*frontend" * identifier)) , (parameter_declaration "char *title" primitive_type (pointer_declarator "*title" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)((int)frontend + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(title);\n  *(undefined4 *)((int)frontend + 0xd04) = uVar1;\n  set_window_titles((gui_data *)frontend);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)((int)frontend + 0xd04));" (call_expression "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)((int)frontend + 0xd04))" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)((int)frontend + 0xd04))" ( (pointer_expression "*(undefined4 *)((int)frontend + 0xd04)" * (cast_expression "(undefined4 *)((int)frontend + 0xd04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)frontend + 0xd04)" ( (binary_expression "(int)frontend + 0xd04" (cast_expression "(int)frontend" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "uVar1 = (*(code *)PTR_dupstr_0011131c)(title);" (assignment_expression "uVar1 = (*(code *)PTR_dupstr_0011131c)(title)" identifier = (call_expression "(*(code *)PTR_dupstr_0011131c)(title)" (parenthesized_expression "(*(code *)PTR_dupstr_0011131c)" ( (pointer_expression "*(code *)PTR_dupstr_0011131c" * (cast_expression "(code *)PTR_dupstr_0011131c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(title)" ( identifier )))) ;) (expression_statement "*(undefined4 *)((int)frontend + 0xd04) = uVar1;" (assignment_expression "*(undefined4 *)((int)frontend + 0xd04) = uVar1" (pointer_expression "*(undefined4 *)((int)frontend + 0xd04)" * (cast_expression "(undefined4 *)((int)frontend + 0xd04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)frontend + 0xd04)" ( (binary_expression "(int)frontend + 0xd04" (cast_expression "(int)frontend" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "set_window_titles((gui_data *)frontend);" (call_expression "set_window_titles((gui_data *)frontend)" identifier (argument_list "((gui_data *)frontend)" ( (cast_expression "(gui_data *)frontend" ( (type_descriptor "gui_data *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void set_icon(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);\n  *(undefined4 *)(param_1 + 0xd04) = uVar1;\n  FUN_000b7bd4(param_1);\n  return;\n}\n\n" (function_definition "void set_icon(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);\n  *(undefined4 *)(param_1 + 0xd04) = uVar1;\n  FUN_000b7bd4(param_1);\n  return;\n}" primitive_type (function_declarator "set_icon(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  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);\n  *(undefined4 *)(param_1 + 0xd04) = uVar1;\n  FUN_000b7bd4(param_1);\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));" (call_expression "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04))" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" ( (pointer_expression "*(code *)PTR_safefree_001112f0" * (cast_expression "(code *)PTR_safefree_001112f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0xd04))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xd04)" * (cast_expression "(undefined4 *)(param_1 + 0xd04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd04)" ( (binary_expression "param_1 + 0xd04" identifier + number_literal) )))) ))) ;) (expression_statement "uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2)" identifier = (call_expression "(*(code *)PTR_dupstr_0011131c)(param_2)" (parenthesized_expression "(*(code *)PTR_dupstr_0011131c)" ( (pointer_expression "*(code *)PTR_dupstr_0011131c" * (cast_expression "(code *)PTR_dupstr_0011131c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(param_1 + 0xd04) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0xd04) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0xd04)" * (cast_expression "(undefined4 *)(param_1 + 0xd04)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd04)" ( (binary_expression "param_1 + 0xd04" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_000b7bd4(param_1);" (call_expression "FUN_000b7bd4(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 (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) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (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 set_icon(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);\n  *(undefined4 *)(param_1 + 0xd04) = uVar1;\n  FUN_000b7bd4(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "set_icon(int param_1,undefined4 param_2)" (identifier "set_icon") (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  undefined4 uVar1;\n  \n  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));\n  uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);\n  *(undefined4 *)(param_1 + 0xd04) = uVar1;\n  FUN_000b7bd4(param_1);\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));" (call_expression "(*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04))" (parenthesized_expression "(*(code *)PTR_safefree_001112f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_001112f0" (* "*") (cast_expression "(code *)PTR_safefree_001112f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_001112f0"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0xd04))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xd04)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xd04)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd04)" (( "(") (binary_expression "param_1 + 0xd04" (identifier "param_1") (+ "+") (number_literal "0xd04")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);" (assignment_expression "uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_dupstr_0011131c)(param_2)" (parenthesized_expression "(*(code *)PTR_dupstr_0011131c)" (( "(") (pointer_expression "*(code *)PTR_dupstr_0011131c" (* "*") (cast_expression "(code *)PTR_dupstr_0011131c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupstr_0011131c"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xd04) = uVar1;" (assignment_expression "*(undefined4 *)(param_1 + 0xd04) = uVar1" (pointer_expression "*(undefined4 *)(param_1 + 0xd04)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xd04)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd04)" (( "(") (binary_expression "param_1 + 0xd04" (identifier "param_1") (+ "+") (number_literal "0xd04")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "FUN_000b7bd4(param_1);" (call_expression "FUN_000b7bd4(param_1)" (identifier "FUN_000b7bd4") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void *frontend,char *title)

{
  type_1 uVar1;
  
  (*(type_2 *)PTR_safefree_001112f0)(*(type_1 *)((int)frontend + 0xd04));
  uVar1 = (*(type_2 *)PTR_dupstr_0011131c)(title);
  *(type_1 *)((int)frontend + 0xd04) = uVar1;
  var_1((type_3 *)frontend);
  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: (type_identifier) declarator: (identifier)) (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 (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)))))))) (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 (identifier))))) (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)

{
  undefined4 uVar1;
  
  (*(code *)PTR_safefree_001112f0)(*(undefined4 *)(param_1 + 0xd04));
  uVar1 = (*(code *)PTR_dupstr_0011131c)(param_2);
  *(undefined4 *)(param_1 + 0xd04) = uVar1;
  FUN_000b7bd4(param_1);
  return;
}

