
void output_section_callback_tree_to_list
               (lang_wild_statement_type *ptr,lang_section_bst_type *tree,void *output)

{
  if (tree->left != (lang_section_bst_type *)0x0) {
    output_section_callback_tree_to_list(ptr,tree->left,output);
  }
  lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,
                   (lang_output_section_statement_type *)output);
  if (tree->right != (lang_section_bst_type *)0x0) {
    output_section_callback_tree_to_list(ptr,tree->right,output);
  }
  (*(code *)PTR_free_001dc0ec)(tree);
  return;
}



void FUN_0002a370(int param_1,undefined4 *param_2,undefined4 param_3)

{
  if (param_2[1] != 0) {
    FUN_0002a370();
  }
  lang_add_section(param_1 + 0x18,*param_2,0,param_3);
  if (param_2[2] != 0) {
    FUN_0002a370(param_1,param_2[2],param_3);
  }
  (*(code *)PTR_free_001dc0ec)(param_2);
  return;
}


lui gp,0x1c
addiu gp,gp,-0x6aa0
addu gp,gp,t9
addiu sp,sp,-0x28
sw s0,0x18(sp)
or s0,a1,zero
sw gp,0x10(sp)
sw s2,0x20(sp)
or s2,a2,zero
sw s1,0x1c(sp)
sw ra,0x24(sp)
lw a1,0x4(a1)
beq a1,zero,0x0002a3bc
_or s1,a0,zero
lw t9,-0x7fa0(gp)
addiu t9,t9,-0x5c90
bal 0x0002a370
_nop
lw gp,0x10(sp)
lw a1,0x0(s0)
or a2,zero,zero
lw t9,-0x7c94(gp)
addiu a0,s1,0x18
bal 0x00029cf8
_or a3,s2,zero
lw a1,0x8(s0)
beq a1,zero,0x0002a3f8
_lw gp,0x10(sp)
lw t9,-0x7fa0(gp)
or a2,s2,zero
addiu t9,t9,-0x5c90
bal 0x0002a370
_or a0,s1,zero
lw gp,0x10(sp)
lw ra,0x24(sp)
or a0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x77e4(gp)
jr t9
_addiu sp,sp,0x28
(translation_unit "void FUN_0002a370(int param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  if (param_2[1] != 0) {\n    FUN_0002a370();\n  }\n  lang_add_section(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }\n  (*(code *)PTR_free_001dc0ec)(param_2);\n  return;\n}\n\n" (function_definition "void FUN_0002a370(int param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  if (param_2[1] != 0) {\n    FUN_0002a370();\n  }\n  lang_add_section(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }\n  (*(code *)PTR_free_001dc0ec)(param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0002a370(int param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_2[1] != 0) {\n    FUN_0002a370();\n  }\n  lang_add_section(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }\n  (*(code *)PTR_free_001dc0ec)(param_2);\n  return;\n}" { (if_statement "if (param_2[1] != 0) {\n    FUN_0002a370();\n  }" if (parenthesized_expression "(param_2[1] != 0)" ( (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_0002a370();\n  }" { (expression_statement "FUN_0002a370();" (call_expression "FUN_0002a370()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "lang_add_section(param_1 + 0x18,*param_2,0,param_3);" (call_expression "lang_add_section(param_1 + 0x18,*param_2,0,param_3)" identifier (argument_list "(param_1 + 0x18,*param_2,0,param_3)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) , (pointer_expression "*param_2" * identifier) , number_literal , identifier ))) ;) (if_statement "if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }" if (parenthesized_expression "(param_2[2] != 0)" ( (binary_expression "param_2[2] != 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }" { (expression_statement "FUN_0002a370(param_1,param_2[2],param_3);" (call_expression "FUN_0002a370(param_1,param_2[2],param_3)" identifier (argument_list "(param_1,param_2[2],param_3)" ( identifier , (subscript_expression "param_2[2]" identifier [ number_literal ]) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_001dc0ec)(param_2);" (call_expression "(*(code *)PTR_free_001dc0ec)(param_2)" (parenthesized_expression "(*(code *)PTR_free_001dc0ec)" ( (pointer_expression "*(code *)PTR_free_001dc0ec" * (cast_expression "(code *)PTR_free_001dc0ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void output_section_callback_tree_to_list\n               (lang_wild_statement_type *ptr,lang_section_bst_type *tree,void *output)\n\n{\n  if (tree->left != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->left,output);\n  }\n  lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output);\n  if (tree->right != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->right,output);\n  }\n  (*(code *)PTR_free_001dc0ec)(tree);\n  return;\n}\n\n" (function_definition "void output_section_callback_tree_to_list\n               (lang_wild_statement_type *ptr,lang_section_bst_type *tree,void *output)\n\n{\n  if (tree->left != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->left,output);\n  }\n  lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output);\n  if (tree->right != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->right,output);\n  }\n  (*(code *)PTR_free_001dc0ec)(tree);\n  return;\n}" primitive_type (function_declarator "output_section_callback_tree_to_list\n               (lang_wild_statement_type *ptr,lang_section_bst_type *tree,void *output)" identifier (parameter_list "(lang_wild_statement_type *ptr,lang_section_bst_type *tree,void *output)" ( (parameter_declaration "lang_wild_statement_type *ptr" type_identifier (pointer_declarator "*ptr" * identifier)) , (parameter_declaration "lang_section_bst_type *tree" type_identifier (pointer_declarator "*tree" * identifier)) , (parameter_declaration "void *output" primitive_type (pointer_declarator "*output" * identifier)) ))) (compound_statement "{\n  if (tree->left != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->left,output);\n  }\n  lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output);\n  if (tree->right != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->right,output);\n  }\n  (*(code *)PTR_free_001dc0ec)(tree);\n  return;\n}" { (if_statement "if (tree->left != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->left,output);\n  }" if (parenthesized_expression "(tree->left != (lang_section_bst_type *)0x0)" ( (binary_expression "tree->left != (lang_section_bst_type *)0x0" (field_expression "tree->left" identifier -> field_identifier) != (cast_expression "(lang_section_bst_type *)0x0" ( (type_descriptor "lang_section_bst_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    output_section_callback_tree_to_list(ptr,tree->left,output);\n  }" { (expression_statement "output_section_callback_tree_to_list(ptr,tree->left,output);" (call_expression "output_section_callback_tree_to_list(ptr,tree->left,output)" identifier (argument_list "(ptr,tree->left,output)" ( identifier , (field_expression "tree->left" identifier -> field_identifier) , identifier ))) ;) })) (expression_statement "lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output);" (call_expression "lang_add_section(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output)" identifier (argument_list "(&ptr->children,tree->section,(flag_info *)0x0,\n                   (lang_output_section_statement_type *)output)" ( (pointer_expression "&ptr->children" & (field_expression "ptr->children" identifier -> field_identifier)) , (field_expression "tree->section" identifier -> field_identifier) , (cast_expression "(flag_info *)0x0" ( (type_descriptor "flag_info *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(lang_output_section_statement_type *)output" ( (type_descriptor "lang_output_section_statement_type *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (if_statement "if (tree->right != (lang_section_bst_type *)0x0) {\n    output_section_callback_tree_to_list(ptr,tree->right,output);\n  }" if (parenthesized_expression "(tree->right != (lang_section_bst_type *)0x0)" ( (binary_expression "tree->right != (lang_section_bst_type *)0x0" (field_expression "tree->right" identifier -> field_identifier) != (cast_expression "(lang_section_bst_type *)0x0" ( (type_descriptor "lang_section_bst_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    output_section_callback_tree_to_list(ptr,tree->right,output);\n  }" { (expression_statement "output_section_callback_tree_to_list(ptr,tree->right,output);" (call_expression "output_section_callback_tree_to_list(ptr,tree->right,output)" identifier (argument_list "(ptr,tree->right,output)" ( identifier , (field_expression "tree->right" identifier -> field_identifier) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_001dc0ec)(tree);" (call_expression "(*(code *)PTR_free_001dc0ec)(tree)" (parenthesized_expression "(*(code *)PTR_free_001dc0ec)" ( (pointer_expression "*(code *)PTR_free_001dc0ec" * (cast_expression "(code *)PTR_free_001dc0ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(tree)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002a370(int param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  if (param_2[1] != 0) {\n    FUN_0002a370();\n  }\n  lang_add_section(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }\n  (*(code *)PTR_free_001dc0ec)(param_2);\n  return;\n}\n\n" (function_definition "void FUN_0002a370(int param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  if (param_2[1] != 0) {\n    FUN_0002a370();\n  }\n  lang_add_section(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }\n  (*(code *)PTR_free_001dc0ec)(param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0002a370(int param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  if (param_2[1] != 0) {\n    FUN_0002a370();\n  }\n  lang_add_section(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }\n  (*(code *)PTR_free_001dc0ec)(param_2);\n  return;\n}" { (if_statement "if (param_2[1] != 0) {\n    FUN_0002a370();\n  }" if (parenthesized_expression "(param_2[1] != 0)" ( (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_0002a370();\n  }" { (expression_statement "FUN_0002a370();" (call_expression "FUN_0002a370()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "lang_add_section(param_1 + 0x18,*param_2,0,param_3);" (call_expression "lang_add_section(param_1 + 0x18,*param_2,0,param_3)" identifier (argument_list "(param_1 + 0x18,*param_2,0,param_3)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) , (pointer_expression "*param_2" * identifier) , number_literal , identifier ))) ;) (if_statement "if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }" if (parenthesized_expression "(param_2[2] != 0)" ( (binary_expression "param_2[2] != 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }" { (expression_statement "FUN_0002a370(param_1,param_2[2],param_3);" (call_expression "FUN_0002a370(param_1,param_2[2],param_3)" identifier (argument_list "(param_1,param_2[2],param_3)" ( identifier , (subscript_expression "param_2[2]" identifier [ number_literal ]) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_001dc0ec)(param_2);" (call_expression "(*(code *)PTR_free_001dc0ec)(param_2)" (parenthesized_expression "(*(code *)PTR_free_001dc0ec)" ( (pointer_expression "*(code *)PTR_free_001dc0ec" * (cast_expression "(code *)PTR_free_001dc0ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * IDENT) , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0002a370(int param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  if (param_2[1] != 0) {\n    FUN_0002a370();\n  }\n  lang_add_section(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }\n  (*(code *)PTR_free_001dc0ec)(param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002a370(int param_1,undefined4 *param_2,undefined4 param_3)" (identifier "FUN_0002a370") (parameter_list "(int param_1,undefined4 *param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  if (param_2[1] != 0) {\n    FUN_0002a370();\n  }\n  lang_add_section(param_1 + 0x18,*param_2,0,param_3);\n  if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }\n  (*(code *)PTR_free_001dc0ec)(param_2);\n  return;\n}" ({ "{") (if_statement "if (param_2[1] != 0) {\n    FUN_0002a370();\n  }" (if "if") (parenthesized_expression "(param_2[1] != 0)" (( "(") (binary_expression "param_2[1] != 0" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0002a370();\n  }" ({ "{") (expression_statement "FUN_0002a370();" (call_expression "FUN_0002a370()" (identifier "FUN_0002a370") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "lang_add_section(param_1 + 0x18,*param_2,0,param_3);" (call_expression "lang_add_section(param_1 + 0x18,*param_2,0,param_3)" (identifier "lang_add_section") (argument_list "(param_1 + 0x18,*param_2,0,param_3)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (number_literal "0") (, ",") (identifier "param_3") () ")"))) (; ";")) (if_statement "if (param_2[2] != 0) {\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }" (if "if") (parenthesized_expression "(param_2[2] != 0)" (( "(") (binary_expression "param_2[2] != 0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0002a370(param_1,param_2[2],param_3);\n  }" ({ "{") (expression_statement "FUN_0002a370(param_1,param_2[2],param_3);" (call_expression "FUN_0002a370(param_1,param_2[2],param_3)" (identifier "FUN_0002a370") (argument_list "(param_1,param_2[2],param_3)" (( "(") (identifier "param_1") (, ",") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_001dc0ec)(param_2);" (call_expression "(*(code *)PTR_free_001dc0ec)(param_2)" (parenthesized_expression "(*(code *)PTR_free_001dc0ec)" (( "(") (pointer_expression "*(code *)PTR_free_001dc0ec" (* "*") (cast_expression "(code *)PTR_free_001dc0ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001dc0ec"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier)) (number_literal) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (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 (identifier)))) (return_statement))))

void MASKED(int param_1,undefined4 *param_2,undefined4 param_3)

{
  if (param_2[1] != 0) {
    MASKED();
  }
  lang_add_section(param_1 + 0x18,*param_2,0,param_3);
  if (param_2[2] != 0) {
    MASKED(param_1,param_2[2],param_3);
  }
  (*(code *)PTR_free_001dc0ec)(param_2);
  return;
}

