
void string_append(string *p,char *s)

{
  int n;
  
  n = (*(code *)PTR_strlen_0043677c)(s);
  string_need(p,n);
  (*(code *)PTR_memcpy_00436788)(p->p,s,n);
  p->p = p->p + n;
  return;
}



void FUN_002af0d0(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);
  FUN_002aefec(param_1,iVar1);
  (*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);
  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;
  return;
}


lui gp,0x19
addiu gp,gp,-0x4f00
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x3a54(gp)
sw ra,0x24(sp)
sw s2,0x20(sp)
or s2,a1,zero
sw s1,0x1c(sp)
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
jalr t9
_or a0,a1,zero
or a0,s0,zero
lw gp,0x10(sp)
or a1,v0,zero
lw t9,-0x6ac0(gp)
addiu t9,t9,-0x1014
bal 0x002aefec
_or s1,v0,zero
or a2,s1,zero
lw gp,0x10(sp)
or a1,s2,zero
lw t9,-0x3a48(gp)
jalr t9
_lw a0,0x4(s0)
lw v0,0x4(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
addu v0,v0,s1
lw s1,0x1c(sp)
sw v0,0x4(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_002af0d0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);\n  FUN_002aefec(param_1,iVar1);\n  (*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;\n  return;\n}\n\n" (function_definition "void FUN_002af0d0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);\n  FUN_002aefec(param_1,iVar1);\n  (*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_002af0d0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);\n  FUN_002aefec(param_1,iVar1);\n  (*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0043677c)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "FUN_002aefec(param_1,iVar1);" (call_expression "FUN_002aefec(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);" (call_expression "(*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 4),param_2,iVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void string_append(string *p,char *s)\n\n{\n  int n;\n  \n  n = (*(code *)PTR_strlen_0043677c)(s);\n  string_need(p,n);\n  (*(code *)PTR_memcpy_00436788)(p->p,s,n);\n  p->p = p->p + n;\n  return;\n}\n\n" (function_definition "void string_append(string *p,char *s)\n\n{\n  int n;\n  \n  n = (*(code *)PTR_strlen_0043677c)(s);\n  string_need(p,n);\n  (*(code *)PTR_memcpy_00436788)(p->p,s,n);\n  p->p = p->p + n;\n  return;\n}" primitive_type (function_declarator "string_append(string *p,char *s)" identifier (parameter_list "(string *p,char *s)" ( (parameter_declaration "string *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  int n;\n  \n  n = (*(code *)PTR_strlen_0043677c)(s);\n  string_need(p,n);\n  (*(code *)PTR_memcpy_00436788)(p->p,s,n);\n  p->p = p->p + n;\n  return;\n}" { (declaration "int n;" primitive_type identifier ;) (expression_statement "n = (*(code *)PTR_strlen_0043677c)(s);" (assignment_expression "n = (*(code *)PTR_strlen_0043677c)(s)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(s)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(s)" ( identifier )))) ;) (expression_statement "string_need(p,n);" (call_expression "string_need(p,n)" identifier (argument_list "(p,n)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_memcpy_00436788)(p->p,s,n);" (call_expression "(*(code *)PTR_memcpy_00436788)(p->p,s,n)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p->p,s,n)" ( (field_expression "p->p" identifier -> field_identifier) , identifier , identifier ))) ;) (expression_statement "p->p = p->p + n;" (assignment_expression "p->p = p->p + n" (field_expression "p->p" identifier -> field_identifier) = (binary_expression "p->p + n" (field_expression "p->p" identifier -> field_identifier) + identifier)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002af0d0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);\n  FUN_002aefec(param_1,iVar1);\n  (*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;\n  return;\n}\n\n" (function_definition "void FUN_002af0d0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);\n  FUN_002aefec(param_1,iVar1);\n  (*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;\n  return;\n}" primitive_type (function_declarator "FUN_002af0d0(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);\n  FUN_002aefec(param_1,iVar1);\n  (*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0043677c)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_0043677c)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" ( (pointer_expression "*(code *)PTR_strlen_0043677c" * (cast_expression "(code *)PTR_strlen_0043677c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "FUN_002aefec(param_1,iVar1);" (call_expression "FUN_002aefec(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);" (call_expression "(*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" ( (pointer_expression "*(code *)PTR_memcpy_00436788" * (cast_expression "(code *)PTR_memcpy_00436788" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 4),param_2,iVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + 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 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 (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (return_statement return ;) })))
(function_definition "void FUN_002af0d0(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);\n  FUN_002aefec(param_1,iVar1);\n  (*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002af0d0(int param_1,undefined4 param_2)" (identifier "FUN_002af0d0") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);\n  FUN_002aefec(param_1,iVar1);\n  (*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_0043677c)(param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_0043677c)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_0043677c)" (( "(") (pointer_expression "*(code *)PTR_strlen_0043677c" (* "*") (cast_expression "(code *)PTR_strlen_0043677c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0043677c"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "FUN_002aefec(param_1,iVar1);" (call_expression "FUN_002aefec(param_1,iVar1)" (identifier "FUN_002aefec") (argument_list "(param_1,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);" (call_expression "(*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1)" (parenthesized_expression "(*(code *)PTR_memcpy_00436788)" (( "(") (pointer_expression "*(code *)PTR_memcpy_00436788" (* "*") (cast_expression "(code *)PTR_memcpy_00436788" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_00436788"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 4),param_2,iVar1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "param_2") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 4) + iVar1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (identifier "iVar1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *p,char *s)

{
  int var_2;
  
  var_2 = (*(type_2 *)PTR_strlen_0043677c)(s);
  var_1(p,var_2);
  (*(type_2 *)PTR_memcpy_00436788)(p->p,s,var_2);
  p->p = p->p + var_2;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (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 (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (return_statement))))

void MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_strlen_0043677c)(param_2);
  FUN_002aefec(param_1,iVar1);
  (*(code *)PTR_memcpy_00436788)(*(undefined4 *)(param_1 + 4),param_2,iVar1);
  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + iVar1;
  return;
}

