
char * xstrdup(char *string)

{
  int iVar1;
  char *pcVar2;
  
  iVar1 = (*(code *)PTR_strlen_0002b26c)();
  pcVar2 = (char *)xmemdup(string,iVar1 + 1);
  return pcVar2;
}



void FUN_00016e6c(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_strlen_0002b26c)();
  xmemdup(param_1,iVar1 + 1);
  return;
}


lui gp,0x2
addiu gp,gp,-0x3d9c
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7e64(gp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
sw gp,0x10(sp)
jalr t9
_or s0,a0,zero
or a0,s0,zero
lw gp,0x10(sp)
addiu a1,v0,0x1
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x7f64(gp)
b 0x00016e10
_addiu sp,sp,0x20
(translation_unit "void FUN_00016e6c(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  xmemdup(param_1,iVar1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_00016e6c(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  xmemdup(param_1,iVar1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_00016e6c(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  xmemdup(param_1,iVar1 + 1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0002b26c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0002b26c)()" identifier = (call_expression "(*(code *)PTR_strlen_0002b26c)()" (parenthesized_expression "(*(code *)PTR_strlen_0002b26c)" ( (pointer_expression "*(code *)PTR_strlen_0002b26c" * (cast_expression "(code *)PTR_strlen_0002b26c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "xmemdup(param_1,iVar1 + 1);" (call_expression "xmemdup(param_1,iVar1 + 1)" identifier (argument_list "(param_1,iVar1 + 1)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "char * xstrdup(char *string)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  pcVar2 = (char *)xmemdup(string,iVar1 + 1);\n  return pcVar2;\n}\n\n" (function_definition "char * xstrdup(char *string)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  pcVar2 = (char *)xmemdup(string,iVar1 + 1);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* xstrdup(char *string)" * (function_declarator "xstrdup(char *string)" identifier (parameter_list "(char *string)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  pcVar2 = (char *)xmemdup(string,iVar1 + 1);\n  return pcVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0002b26c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0002b26c)()" identifier = (call_expression "(*(code *)PTR_strlen_0002b26c)()" (parenthesized_expression "(*(code *)PTR_strlen_0002b26c)" ( (pointer_expression "*(code *)PTR_strlen_0002b26c" * (cast_expression "(code *)PTR_strlen_0002b26c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pcVar2 = (char *)xmemdup(string,iVar1 + 1);" (assignment_expression "pcVar2 = (char *)xmemdup(string,iVar1 + 1)" identifier = (cast_expression "(char *)xmemdup(string,iVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmemdup(string,iVar1 + 1)" identifier (argument_list "(string,iVar1 + 1)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) ))))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "void FUN_00016e6c(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  xmemdup(param_1,iVar1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_00016e6c(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  xmemdup(param_1,iVar1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_00016e6c(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  xmemdup(param_1,iVar1 + 1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0002b26c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0002b26c)()" identifier = (call_expression "(*(code *)PTR_strlen_0002b26c)()" (parenthesized_expression "(*(code *)PTR_strlen_0002b26c)" ( (pointer_expression "*(code *)PTR_strlen_0002b26c" * (cast_expression "(code *)PTR_strlen_0002b26c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "xmemdup(param_1,iVar1 + 1);" (call_expression "xmemdup(param_1,iVar1 + 1)" identifier (argument_list "(param_1,iVar1 + 1)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00016e6c(undefined4 param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  xmemdup(param_1,iVar1 + 1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00016e6c(undefined4 param_1)" (identifier "FUN_00016e6c") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0002b26c)();\n  xmemdup(param_1,iVar1 + 1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strlen_0002b26c)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0002b26c)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0002b26c)()" (parenthesized_expression "(*(code *)PTR_strlen_0002b26c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0002b26c" (* "*") (cast_expression "(code *)PTR_strlen_0002b26c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0002b26c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "xmemdup(param_1,iVar1 + 1);" (call_expression "xmemdup(param_1,iVar1 + 1)" (identifier "xmemdup") (argument_list "(param_1,iVar1 + 1)" (( "(") (identifier "param_1") (, ",") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

void MASKED(undefined4 param_1)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_strlen_0002b26c)();
  xmemdup(param_1,iVar1 + 1);
  return;
}

