
void xml_indent(FILE *out,int level)

{
  int iVar1;
  undefined *puVar2;
  
  if (0 < level) {
    iVar1 = 0;
    puVar2 = PTR_LAB_0008d628 + 0x7104;
    do {
      iVar1 = iVar1 + 1;
      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out);
    } while (level != iVar1);
    return;
  }
  return;
}



void xml_indent(undefined4 param_1,int param_2)

{
  int iVar1;
  undefined *puVar2;
  
  if (0 < param_2) {
    iVar1 = 0;
    puVar2 = PTR_LAB_0008d628 + 0x7104;
    do {
      iVar1 = iVar1 + 1;
      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);
    } while (param_2 != iVar1);
    return;
  }
  return;
}


lui gp,0x6
addiu gp,gp,-0x4424
addu gp,gp,t9
blez a1,0x00039a98
_nop
addiu sp,sp,-0x30
sw s3,0x28(sp)
sw s0,0x1c(sp)
or s0,zero,zero
sw s2,0x24(sp)
or s2,a0,zero
sw s1,0x20(sp)
or s1,a1,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
lw s3,-0x7fc8(gp)
addiu s3,s3,0x7104
lw t9,-0x7670(gp)
li a2,0x2
li a1,0x1
addiu s0,s0,0x1
or a3,s2,zero
jalr t9
_or a0,s3,zero
bne s1,s0,0x00039a58
_lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
jr ra
_nop
(translation_unit "void xml_indent(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void xml_indent(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "xml_indent(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = PTR_LAB_0008d628 + 0x7104;" (assignment_expression "puVar2 = PTR_LAB_0008d628 + 0x7104" identifier = (binary_expression "PTR_LAB_0008d628 + 0x7104" identifier + number_literal)) ;) (do_statement "do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);" (call_expression "(*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0008df80)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_0008df80" * (cast_expression "(code *)PTR_fwrite_unlocked_0008df80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,1,2,param_1)" ( identifier , number_literal , number_literal , identifier ))) ;) }) while (parenthesized_expression "(param_2 != iVar1)" ( (binary_expression "param_2 != iVar1" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void xml_indent(FILE *out,int level)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < level) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out);\n    } while (level != iVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void xml_indent(FILE *out,int level)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < level) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out);\n    } while (level != iVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "xml_indent(FILE *out,int level)" identifier (parameter_list "(FILE *out,int level)" ( (parameter_declaration "FILE *out" type_identifier (pointer_declarator "*out" * identifier)) , (parameter_declaration "int level" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < level) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out);\n    } while (level != iVar1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (0 < level) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out);\n    } while (level != iVar1);\n    return;\n  }" if (parenthesized_expression "(0 < level)" ( (binary_expression "0 < level" number_literal < identifier) )) (compound_statement "{\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out);\n    } while (level != iVar1);\n    return;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = PTR_LAB_0008d628 + 0x7104;" (assignment_expression "puVar2 = PTR_LAB_0008d628 + 0x7104" identifier = (binary_expression "PTR_LAB_0008d628 + 0x7104" identifier + number_literal)) ;) (do_statement "do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out);\n    } while (level != iVar1);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out);\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out);" (call_expression "(*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0008df80)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_0008df80" * (cast_expression "(code *)PTR_fwrite_unlocked_0008df80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,1,2,out)" ( identifier , number_literal , number_literal , identifier ))) ;) }) while (parenthesized_expression "(level != iVar1)" ( (binary_expression "level != iVar1" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void xml_indent(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void xml_indent(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "xml_indent(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = PTR_LAB_0008d628 + 0x7104;" (assignment_expression "puVar2 = PTR_LAB_0008d628 + 0x7104" identifier = (binary_expression "PTR_LAB_0008d628 + 0x7104" identifier + number_literal)) ;) (do_statement "do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);" (call_expression "(*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0008df80)" ( (pointer_expression "*(code *)PTR_fwrite_unlocked_0008df80" * (cast_expression "(code *)PTR_fwrite_unlocked_0008df80" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,1,2,param_1)" ( identifier , number_literal , number_literal , identifier ))) ;) }) while (parenthesized_expression "(param_2 != iVar1)" ( (binary_expression "param_2 != iVar1" identifier != identifier) )) ;) (return_statement "return;" return ;) })) (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 ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void xml_indent(undefined4 param_1,int param_2)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "xml_indent(undefined4 param_1,int param_2)" (identifier "xml_indent") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  \n  if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (0 < param_2) {\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar1 = 0;\n    puVar2 = PTR_LAB_0008d628 + 0x7104;\n    do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);\n    return;\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = PTR_LAB_0008d628 + 0x7104;" (assignment_expression "puVar2 = PTR_LAB_0008d628 + 0x7104" (identifier "puVar2") (= "=") (binary_expression "PTR_LAB_0008d628 + 0x7104" (identifier "PTR_LAB_0008d628") (+ "+") (number_literal "0x7104"))) (; ";")) (do_statement "do {\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    } while (param_2 != iVar1);" (do "do") (compound_statement "{\n      iVar1 = iVar1 + 1;\n      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);\n    }" ({ "{") (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);" (call_expression "(*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1)" (parenthesized_expression "(*(code *)PTR_fwrite_unlocked_0008df80)" (( "(") (pointer_expression "*(code *)PTR_fwrite_unlocked_0008df80" (* "*") (cast_expression "(code *)PTR_fwrite_unlocked_0008df80" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fwrite_unlocked_0008df80"))) () ")")) (argument_list "(puVar2,1,2,param_1)" (( "(") (identifier "puVar2") (, ",") (number_literal "1") (, ",") (number_literal "2") (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != iVar1)" (( "(") (binary_expression "param_2 != iVar1" (identifier "param_2") (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *out,int var_1)

{
  int var_3;
  type_2 *puVar2;
  
  if (0 < var_1) {
    var_3 = 0;
    puVar2 = var_2 + 0x7104;
    do {
      var_3 = var_3 + 1;
      (*(type_3 *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,out);
    } while (var_1 != var_3);
    return;
  }
  return;
}


(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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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) (number_literal) (number_literal) (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (return_statement))) (return_statement))))

void MASKED(undefined4 param_1,int param_2)

{
  int iVar1;
  undefined *puVar2;
  
  if (0 < param_2) {
    iVar1 = 0;
    puVar2 = PTR_LAB_0008d628 + 0x7104;
    do {
      iVar1 = iVar1 + 1;
      (*(code *)PTR_fwrite_unlocked_0008df80)(puVar2,1,2,param_1);
    } while (param_2 != iVar1);
    return;
  }
  return;
}

