
void snuggly_fit(char **string)

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



void snuggly_fit(undefined4 *param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  uVar2 = *param_1;
  iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);
  uVar2 = nrealloc(uVar2,iVar1 + 1);
  *param_1 = uVar2;
  return;
}


lui gp,0x4
addiu gp,gp,-0x1e98
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
or s0,a0,zero
lw s1,0x0(a0)
or a0,s1,zero
lw t9,-0x74f0(gp)
jalr t9
_nop
lw gp,0x10(sp)
addiu a1,v0,0x1
or a0,s1,zero
lw t9,-0x7eac(gp)
bal 0x00046324
_nop
lw gp,0x10(sp)
sw v0,0x0(s0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void snuggly_fit(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);\n  uVar2 = nrealloc(uVar2,iVar1 + 1);\n  *param_1 = uVar2;\n  return;\n}\n\n" (function_definition "void snuggly_fit(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);\n  uVar2 = nrealloc(uVar2,iVar1 + 1);\n  *param_1 = uVar2;\n  return;\n}" primitive_type (function_declarator "snuggly_fit(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);\n  uVar2 = nrealloc(uVar2,iVar1 + 1);\n  *param_1 = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(uVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar2 = nrealloc(uVar2,iVar1 + 1);" (assignment_expression "uVar2 = nrealloc(uVar2,iVar1 + 1)" identifier = (call_expression "nrealloc(uVar2,iVar1 + 1)" identifier (argument_list "(uVar2,iVar1 + 1)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void snuggly_fit(char **string)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *string;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n  pcVar2 = (char *)nrealloc(pcVar2,iVar1 + 1);\n  *string = pcVar2;\n  return;\n}\n\n" (function_definition "void snuggly_fit(char **string)\n\n{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *string;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n  pcVar2 = (char *)nrealloc(pcVar2,iVar1 + 1);\n  *string = pcVar2;\n  return;\n}" primitive_type (function_declarator "snuggly_fit(char **string)" identifier (parameter_list "(char **string)" ( (parameter_declaration "char **string" primitive_type (pointer_declarator "**string" * (pointer_declarator "*string" * identifier))) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  \n  pcVar2 = *string;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(pcVar2);\n  pcVar2 = (char *)nrealloc(pcVar2,iVar1 + 1);\n  *string = pcVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pcVar2 = *string;" (assignment_expression "pcVar2 = *string" identifier = (pointer_expression "*string" * identifier)) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0007d030)(pcVar2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0007d030)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "pcVar2 = (char *)nrealloc(pcVar2,iVar1 + 1);" (assignment_expression "pcVar2 = (char *)nrealloc(pcVar2,iVar1 + 1)" identifier = (cast_expression "(char *)nrealloc(pcVar2,iVar1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "nrealloc(pcVar2,iVar1 + 1)" identifier (argument_list "(pcVar2,iVar1 + 1)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) ))))) ;) (expression_statement "*string = pcVar2;" (assignment_expression "*string = pcVar2" (pointer_expression "*string" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void snuggly_fit(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);\n  uVar2 = nrealloc(uVar2,iVar1 + 1);\n  *param_1 = uVar2;\n  return;\n}\n\n" (function_definition "void snuggly_fit(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);\n  uVar2 = nrealloc(uVar2,iVar1 + 1);\n  *param_1 = uVar2;\n  return;\n}" primitive_type (function_declarator "snuggly_fit(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);\n  uVar2 = nrealloc(uVar2,iVar1 + 1);\n  *param_1 = uVar2;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(uVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar2 = nrealloc(uVar2,iVar1 + 1);" (assignment_expression "uVar2 = nrealloc(uVar2,iVar1 + 1)" identifier = (call_expression "nrealloc(uVar2,iVar1 + 1)" identifier (argument_list "(uVar2,iVar1 + 1)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void snuggly_fit(undefined4 *param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);\n  uVar2 = nrealloc(uVar2,iVar1 + 1);\n  *param_1 = uVar2;\n  return;\n}" (primitive_type "void") (function_declarator "snuggly_fit(undefined4 *param_1)" (identifier "snuggly_fit") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  uVar2 = *param_1;\n  iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);\n  uVar2 = nrealloc(uVar2,iVar1 + 1);\n  *param_1 = uVar2;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar2 = *param_1;" (assignment_expression "uVar2 = *param_1" (identifier "uVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0007d030)(uVar2)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" (( "(") (pointer_expression "*(code *)PTR_strlen_0007d030" (* "*") (cast_expression "(code *)PTR_strlen_0007d030" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0007d030"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "uVar2 = nrealloc(uVar2,iVar1 + 1);" (assignment_expression "uVar2 = nrealloc(uVar2,iVar1 + 1)" (identifier "uVar2") (= "=") (call_expression "nrealloc(uVar2,iVar1 + 1)" (identifier "nrealloc") (argument_list "(uVar2,iVar1 + 1)" (( "(") (identifier "uVar2") (, ",") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(char **string)

{
  int var_2;
  char *pcVar2;
  
  pcVar2 = *string;
  var_2 = (*(type_1 *)PTR_strlen_0007d030)(pcVar2);
  pcVar2 = (char *)var_1(pcVar2,var_2 + 1);
  *string = pcVar2;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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 (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

void MASKED(undefined4 *param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  uVar2 = *param_1;
  iVar1 = (*(code *)PTR_strlen_0007d030)(uVar2);
  uVar2 = nrealloc(uVar2,iVar1 + 1);
  *param_1 = uVar2;
  return;
}

