
void string_append_template_idx(string *s,int idx)

{
  char buf [33];
  
  (*(code *)PTR_sprintf_004c5d14)(buf,PTR_UINT_004c12dc + -0x7074,idx);
  if (buf[0] != '\0') {
    string_append(s,buf);
  }
  return;
}



void FUN_00312624(undefined4 param_1,undefined4 param_2)

{
  char local_38 [44];
  
  (*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);
  if (local_38[0] != '\0') {
    FUN_00312594(param_1,local_38);
  }
  return;
}


lui gp,0x1b
addiu gp,gp,0x6c1c
addu gp,gp,t9
addiu sp,sp,-0x50
lw t9,-0x352c(gp)
or a2,a1,zero
lw a1,-0x7f64(gp)
sw s0,0x44(sp)
addiu s0,sp,0x18
addiu a1,a1,-0x7074
sw gp,0x10(sp)
sw s1,0x48(sp)
or s1,a0,zero
sw ra,0x4c(sp)
jalr t9
_or a0,s0,zero
lb v0,0x18(sp)
beq v0,zero,0x00312684
_lw gp,0x10(sp)
lw t9,-0x4268(gp)
or a1,s0,zero
addiu t9,t9,0x2594
bal 0x00312594
_or a0,s1,zero
lw ra,0x4c(sp)
lw s1,0x48(sp)
lw s0,0x44(sp)
jr ra
_addiu sp,sp,0x50
(translation_unit "void FUN_00312624(undefined4 param_1,undefined4 param_2)\n\n{\n  char local_38 [44];\n  \n  (*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);\n  if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00312624(undefined4 param_1,undefined4 param_2)\n\n{\n  char local_38 [44];\n  \n  (*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);\n  if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00312624(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char local_38 [44];\n  \n  (*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);\n  if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }\n  return;\n}" { (declaration "char local_38 [44];" primitive_type (array_declarator "local_38 [44]" identifier [ number_literal ]) ;) (expression_statement "(*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);" (call_expression "(*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2)" (parenthesized_expression "(*(code *)PTR_sprintf_004c5d14)" ( (pointer_expression "*(code *)PTR_sprintf_004c5d14" * (cast_expression "(code *)PTR_sprintf_004c5d14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_38,PTR_UINT_004c12dc + -0x7074,param_2)" ( identifier , (binary_expression "PTR_UINT_004c12dc + -0x7074" identifier + number_literal) , identifier ))) ;) (if_statement "if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }" if (parenthesized_expression "(local_38[0] != '\0')" ( (binary_expression "local_38[0] != '\0'" (subscript_expression "local_38[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00312594(param_1,local_38);\n  }" { (expression_statement "FUN_00312594(param_1,local_38);" (call_expression "FUN_00312594(param_1,local_38)" identifier (argument_list "(param_1,local_38)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void string_append_template_idx(string *s,int idx)\n\n{\n  char buf [33];\n  \n  (*(code *)PTR_sprintf_004c5d14)(buf,PTR_UINT_004c12dc + -0x7074,idx);\n  if (buf[0] != '\0') {\n    string_append(s,buf);\n  }\n  return;\n}\n\n" (function_definition "void string_append_template_idx(string *s,int idx)\n\n{\n  char buf [33];\n  \n  (*(code *)PTR_sprintf_004c5d14)(buf,PTR_UINT_004c12dc + -0x7074,idx);\n  if (buf[0] != '\0') {\n    string_append(s,buf);\n  }\n  return;\n}" primitive_type (function_declarator "string_append_template_idx(string *s,int idx)" identifier (parameter_list "(string *s,int idx)" ( (parameter_declaration "string *s" type_identifier (pointer_declarator "*s" * identifier)) , (parameter_declaration "int idx" primitive_type identifier) ))) (compound_statement "{\n  char buf [33];\n  \n  (*(code *)PTR_sprintf_004c5d14)(buf,PTR_UINT_004c12dc + -0x7074,idx);\n  if (buf[0] != '\0') {\n    string_append(s,buf);\n  }\n  return;\n}" { (declaration "char buf [33];" primitive_type (array_declarator "buf [33]" identifier [ number_literal ]) ;) (expression_statement "(*(code *)PTR_sprintf_004c5d14)(buf,PTR_UINT_004c12dc + -0x7074,idx);" (call_expression "(*(code *)PTR_sprintf_004c5d14)(buf,PTR_UINT_004c12dc + -0x7074,idx)" (parenthesized_expression "(*(code *)PTR_sprintf_004c5d14)" ( (pointer_expression "*(code *)PTR_sprintf_004c5d14" * (cast_expression "(code *)PTR_sprintf_004c5d14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf,PTR_UINT_004c12dc + -0x7074,idx)" ( identifier , (binary_expression "PTR_UINT_004c12dc + -0x7074" identifier + number_literal) , identifier ))) ;) (if_statement "if (buf[0] != '\0') {\n    string_append(s,buf);\n  }" if (parenthesized_expression "(buf[0] != '\0')" ( (binary_expression "buf[0] != '\0'" (subscript_expression "buf[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    string_append(s,buf);\n  }" { (expression_statement "string_append(s,buf);" (call_expression "string_append(s,buf)" identifier (argument_list "(s,buf)" ( identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00312624(undefined4 param_1,undefined4 param_2)\n\n{\n  char local_38 [44];\n  \n  (*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);\n  if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00312624(undefined4 param_1,undefined4 param_2)\n\n{\n  char local_38 [44];\n  \n  (*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);\n  if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00312624(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  char local_38 [44];\n  \n  (*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);\n  if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }\n  return;\n}" { (declaration "char local_38 [44];" primitive_type (array_declarator "local_38 [44]" identifier [ number_literal ]) ;) (expression_statement "(*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);" (call_expression "(*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2)" (parenthesized_expression "(*(code *)PTR_sprintf_004c5d14)" ( (pointer_expression "*(code *)PTR_sprintf_004c5d14" * (cast_expression "(code *)PTR_sprintf_004c5d14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_38,PTR_UINT_004c12dc + -0x7074,param_2)" ( identifier , (binary_expression "PTR_UINT_004c12dc + -0x7074" identifier + number_literal) , identifier ))) ;) (if_statement "if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }" if (parenthesized_expression "(local_38[0] != '\0')" ( (binary_expression "local_38[0] != '\0'" (subscript_expression "local_38[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00312594(param_1,local_38);\n  }" { (expression_statement "FUN_00312594(param_1,local_38);" (call_expression "FUN_00312594(param_1,local_38)" identifier (argument_list "(param_1,local_38)" ( identifier , 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 (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00312624(undefined4 param_1,undefined4 param_2)\n\n{\n  char local_38 [44];\n  \n  (*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);\n  if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00312624(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00312624") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  char local_38 [44];\n  \n  (*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);\n  if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }\n  return;\n}" ({ "{") (declaration "char local_38 [44];" (primitive_type "char") (array_declarator "local_38 [44]" (identifier "local_38") ([ "[") (number_literal "44") (] "]")) (; ";")) (expression_statement "(*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);" (call_expression "(*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2)" (parenthesized_expression "(*(code *)PTR_sprintf_004c5d14)" (( "(") (pointer_expression "*(code *)PTR_sprintf_004c5d14" (* "*") (cast_expression "(code *)PTR_sprintf_004c5d14" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sprintf_004c5d14"))) () ")")) (argument_list "(local_38,PTR_UINT_004c12dc + -0x7074,param_2)" (( "(") (identifier "local_38") (, ",") (binary_expression "PTR_UINT_004c12dc + -0x7074" (identifier "PTR_UINT_004c12dc") (+ "+") (number_literal "-0x7074")) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (local_38[0] != '\0') {\n    FUN_00312594(param_1,local_38);\n  }" (if "if") (parenthesized_expression "(local_38[0] != '\0')" (( "(") (binary_expression "local_38[0] != '\0'" (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_00312594(param_1,local_38);\n  }" ({ "{") (expression_statement "FUN_00312594(param_1,local_38);" (call_expression "FUN_00312594(param_1,local_38)" (identifier "FUN_00312594") (argument_list "(param_1,local_38)" (( "(") (identifier "param_1") (, ",") (identifier "local_38") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (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: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (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) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (return_statement))))

void MASKED(undefined4 param_1,undefined4 param_2)

{
  char local_38 [44];
  
  (*(code *)PTR_sprintf_004c5d14)(local_38,PTR_UINT_004c12dc + -0x7074,param_2);
  if (local_38[0] != '\0') {
    FUN_00312594(param_1,local_38);
  }
  return;
}

