
void mkstr(undefined4 param_1,int param_2)

{
  void *pvVar1;
  int iVar2;
  
  pvVar1 = safemalloc(param_2 + 1,1);
  iVar2 = (*(code *)PTR_memcpy_000b2f08)(pvVar1,param_1,param_2);
  *(undefined1 *)(iVar2 + param_2) = 0;
  return;
}



void FUN_000334b8(undefined4 param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  
  uVar1 = safemalloc(param_2 + 1,1);
  iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);
  *(undefined1 *)(iVar2 + param_2) = 0;
  return;
}


lui gp,0x8
addiu gp,gp,0x6eb8
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7f68(gp)
sw s0,0x1c(sp)
or s0,a1,zero
sw s1,0x20(sp)
li a1,0x1
or s1,a0,zero
sw ra,0x24(sp)
sw gp,0x10(sp)
bal 0x00020904
_addiu a0,s0,0x1
or a2,s0,zero
lw gp,0x10(sp)
or a1,s1,zero
lw t9,-0x7468(gp)
jalr t9
_or a0,v0,zero
addu s0,v0,s0
sb zero,0x0(s0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_000334b8(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}\n\n" (function_definition "void FUN_000334b8(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_000334b8(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  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = safemalloc(param_2 + 1,1);" (assignment_expression "uVar1 = safemalloc(param_2 + 1,1)" identifier = (call_expression "safemalloc(param_2 + 1,1)" identifier (argument_list "(param_2 + 1,1)" ( (binary_expression "param_2 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);" (assignment_expression "iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2)" identifier = (call_expression "(*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" ( (pointer_expression "*(code *)PTR_memcpy_000b2f08" * (cast_expression "(code *)PTR_memcpy_000b2f08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1,param_1,param_2)" ( identifier , identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar2 + param_2) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + param_2) = 0" (pointer_expression "*(undefined1 *)(iVar2 + param_2)" * (cast_expression "(undefined1 *)(iVar2 + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + param_2)" ( (binary_expression "iVar2 + param_2" identifier + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void mkstr(undefined4 param_1,int param_2)\n\n{\n  void *pvVar1;\n  int iVar2;\n  \n  pvVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(pvVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}\n\n" (function_definition "void mkstr(undefined4 param_1,int param_2)\n\n{\n  void *pvVar1;\n  int iVar2;\n  \n  pvVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(pvVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}" primitive_type (function_declarator "mkstr(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  void *pvVar1;\n  int iVar2;\n  \n  pvVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(pvVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "pvVar1 = safemalloc(param_2 + 1,1);" (assignment_expression "pvVar1 = safemalloc(param_2 + 1,1)" identifier = (call_expression "safemalloc(param_2 + 1,1)" identifier (argument_list "(param_2 + 1,1)" ( (binary_expression "param_2 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar2 = (*(code *)PTR_memcpy_000b2f08)(pvVar1,param_1,param_2);" (assignment_expression "iVar2 = (*(code *)PTR_memcpy_000b2f08)(pvVar1,param_1,param_2)" identifier = (call_expression "(*(code *)PTR_memcpy_000b2f08)(pvVar1,param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" ( (pointer_expression "*(code *)PTR_memcpy_000b2f08" * (cast_expression "(code *)PTR_memcpy_000b2f08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pvVar1,param_1,param_2)" ( identifier , identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar2 + param_2) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + param_2) = 0" (pointer_expression "*(undefined1 *)(iVar2 + param_2)" * (cast_expression "(undefined1 *)(iVar2 + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + param_2)" ( (binary_expression "iVar2 + param_2" identifier + identifier) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000334b8(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}\n\n" (function_definition "void FUN_000334b8(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_000334b8(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  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = safemalloc(param_2 + 1,1);" (assignment_expression "uVar1 = safemalloc(param_2 + 1,1)" identifier = (call_expression "safemalloc(param_2 + 1,1)" identifier (argument_list "(param_2 + 1,1)" ( (binary_expression "param_2 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);" (assignment_expression "iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2)" identifier = (call_expression "(*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" ( (pointer_expression "*(code *)PTR_memcpy_000b2f08" * (cast_expression "(code *)PTR_memcpy_000b2f08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1,param_1,param_2)" ( identifier , identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar2 + param_2) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + param_2) = 0" (pointer_expression "*(undefined1 *)(iVar2 + param_2)" * (cast_expression "(undefined1 *)(iVar2 + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + param_2)" ( (binary_expression "iVar2 + param_2" identifier + identifier) )))) = number_literal) ;) (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 IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_000334b8(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000334b8(undefined4 param_1,int param_2)" (identifier "FUN_000334b8") (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  undefined4 uVar1;\n  int iVar2;\n  \n  uVar1 = safemalloc(param_2 + 1,1);\n  iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);\n  *(undefined1 *)(iVar2 + param_2) = 0;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "uVar1 = safemalloc(param_2 + 1,1);" (assignment_expression "uVar1 = safemalloc(param_2 + 1,1)" (identifier "uVar1") (= "=") (call_expression "safemalloc(param_2 + 1,1)" (identifier "safemalloc") (argument_list "(param_2 + 1,1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);" (assignment_expression "iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000b2f08" (* "*") (cast_expression "(code *)PTR_memcpy_000b2f08" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000b2f08"))) () ")")) (argument_list "(uVar1,param_1,param_2)" (( "(") (identifier "uVar1") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(iVar2 + param_2) = 0;" (assignment_expression "*(undefined1 *)(iVar2 + param_2) = 0" (pointer_expression "*(undefined1 *)(iVar2 + param_2)" (* "*") (cast_expression "(undefined1 *)(iVar2 + param_2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + param_2)" (( "(") (binary_expression "iVar2 + param_2" (identifier "iVar2") (+ "+") (identifier "param_2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 param_1,int var_2)

{
  void *pvVar1;
  int var_3;
  
  pvVar1 = var_1(var_2 + 1,1);
  var_3 = (*(type_2 *)PTR_memcpy_000b2f08)(pvVar1,param_1,var_2);
  *(type_3 *)(var_3 + var_2) = 0;
  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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (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) (identifier) (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: (identifier))))) right: (number_literal))) (return_statement))))

void MASKED(undefined4 param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  
  uVar1 = safemalloc(param_2 + 1,1);
  iVar2 = (*(code *)PTR_memcpy_000b2f08)(uVar1,param_1,param_2);
  *(undefined1 *)(iVar2 + param_2) = 0;
  return;
}

