
void prompt_set_result(prompt_t *pr,char *newstr)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_strlen_00112534)(newstr);
  if (iVar1 + 1 <= (int)pr->resultsize) {
                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_strcpy_00111f78)(pr->result,newstr);
    return;
  }
  prompt_ensure_result_size(pr,iVar1 + 1);
                    /* WARNING: Could not recover jumptable at 0x00039b54. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_strcpy_00111f78)(pr->result,newstr);
  return;
}



void prompt_set_result(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_strlen_00112534)(param_2);
  if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {
                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);
    return;
  }
  FUN_000399a8(param_1);
                    /* WARNING: Could not recover jumptable at 0x00039b54. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);
  return;
}


lui gp,0xe
addiu gp,gp,-0x810
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x6d7c(gp)
sw s0,0x1c(sp)
or s0,a0,zero
sw gp,0x10(sp)
or a0,a1,zero
sw s1,0x20(sp)
sw ra,0x24(sp)
jalr t9
_or s1,a1,zero
lw v1,0xc(s0)
addiu a1,v0,0x1
slt v1,v1,a1
bne v1,zero,0x00039b28
_lw gp,0x10(sp)
lw a0,0x8(s0)
or a1,s1,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7338(gp)
jr t9
_addiu sp,sp,0x28
lw t9,-0x7ca0(gp)
addiu t9,t9,-0x6658
bal 0x000399a8
_or a0,s0,zero
or a1,s1,zero
lw gp,0x10(sp)
lw a0,0x8(s0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7338(gp)
jr t9
_addiu sp,sp,0x28
(translation_unit "void prompt_set_result(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_00112534)(param_2);\n  if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }\n  FUN_000399a8(param_1);\n                    /* WARNING: Could not recover jumptable at 0x00039b54. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n  return;\n}\n\n" (function_definition "void prompt_set_result(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_00112534)(param_2);\n  if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }\n  FUN_000399a8(param_1);\n                    /* WARNING: Could not recover jumptable at 0x00039b54. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n  return;\n}" primitive_type (function_declarator "prompt_set_result(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_00112534)(param_2);\n  if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }\n  FUN_000399a8(param_1);\n                    /* WARNING: Could not recover jumptable at 0x00039b54. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_00112534)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00112534)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }" if (parenthesized_expression "(iVar1 + 1 <= *(int *)(param_1 + 0xc))" ( (binary_expression "iVar1 + 1 <= *(int *)(param_1 + 0xc)" (binary_expression "iVar1 + 1" identifier + number_literal) <= (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }" { comment comment (expression_statement "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);" (call_expression "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00111f78)" ( (pointer_expression "*(code *)PTR_strcpy_00111f78" * (cast_expression "(code *)PTR_strcpy_00111f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 8),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000399a8(param_1);" (call_expression "FUN_000399a8(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) comment comment (expression_statement "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);" (call_expression "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00111f78)" ( (pointer_expression "*(code *)PTR_strcpy_00111f78" * (cast_expression "(code *)PTR_strcpy_00111f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 8),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void prompt_set_result(prompt_t *pr,char *newstr)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_00112534)(newstr);\n  if (iVar1 + 1 <= (int)pr->resultsize) {\n                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_strcpy_00111f78)(pr->result,newstr);\n    return;\n  }\n  prompt_ensure_result_size(pr,iVar1 + 1);\n                    /* WARNING: Could not recover jumptable at 0x00039b54. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_strcpy_00111f78)(pr->result,newstr);\n  return;\n}\n\n" (function_definition "void prompt_set_result(prompt_t *pr,char *newstr)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_00112534)(newstr);\n  if (iVar1 + 1 <= (int)pr->resultsize) {\n                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_strcpy_00111f78)(pr->result,newstr);\n    return;\n  }\n  prompt_ensure_result_size(pr,iVar1 + 1);\n                    /* WARNING: Could not recover jumptable at 0x00039b54. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_strcpy_00111f78)(pr->result,newstr);\n  return;\n}" primitive_type (function_declarator "prompt_set_result(prompt_t *pr,char *newstr)" identifier (parameter_list "(prompt_t *pr,char *newstr)" ( (parameter_declaration "prompt_t *pr" type_identifier (pointer_declarator "*pr" * identifier)) , (parameter_declaration "char *newstr" primitive_type (pointer_declarator "*newstr" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_00112534)(newstr);\n  if (iVar1 + 1 <= (int)pr->resultsize) {\n                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_strcpy_00111f78)(pr->result,newstr);\n    return;\n  }\n  prompt_ensure_result_size(pr,iVar1 + 1);\n                    /* WARNING: Could not recover jumptable at 0x00039b54. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_strcpy_00111f78)(pr->result,newstr);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_00112534)(newstr);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00112534)(newstr)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(newstr)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(newstr)" ( identifier )))) ;) (if_statement "if (iVar1 + 1 <= (int)pr->resultsize) {\n                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_strcpy_00111f78)(pr->result,newstr);\n    return;\n  }" if (parenthesized_expression "(iVar1 + 1 <= (int)pr->resultsize)" ( (binary_expression "iVar1 + 1 <= (int)pr->resultsize" (binary_expression "iVar1 + 1" identifier + number_literal) <= (cast_expression "(int)pr->resultsize" ( (type_descriptor "int" primitive_type) ) (field_expression "pr->resultsize" identifier -> field_identifier))) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    (*(code *)PTR_strcpy_00111f78)(pr->result,newstr);\n    return;\n  }" { comment comment (expression_statement "(*(code *)PTR_strcpy_00111f78)(pr->result,newstr);" (call_expression "(*(code *)PTR_strcpy_00111f78)(pr->result,newstr)" (parenthesized_expression "(*(code *)PTR_strcpy_00111f78)" ( (pointer_expression "*(code *)PTR_strcpy_00111f78" * (cast_expression "(code *)PTR_strcpy_00111f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pr->result,newstr)" ( (field_expression "pr->result" identifier -> field_identifier) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "prompt_ensure_result_size(pr,iVar1 + 1);" (call_expression "prompt_ensure_result_size(pr,iVar1 + 1)" identifier (argument_list "(pr,iVar1 + 1)" ( identifier , (binary_expression "iVar1 + 1" identifier + number_literal) ))) ;) comment comment (expression_statement "(*(code *)PTR_strcpy_00111f78)(pr->result,newstr);" (call_expression "(*(code *)PTR_strcpy_00111f78)(pr->result,newstr)" (parenthesized_expression "(*(code *)PTR_strcpy_00111f78)" ( (pointer_expression "*(code *)PTR_strcpy_00111f78" * (cast_expression "(code *)PTR_strcpy_00111f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pr->result,newstr)" ( (field_expression "pr->result" identifier -> field_identifier) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void prompt_set_result(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_00112534)(param_2);\n  if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    \n                    \n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }\n  FUN_000399a8(param_1);\n                    \n                    \n  (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n  return;\n}\n\n" (function_definition "void prompt_set_result(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_00112534)(param_2);\n  if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    \n                    \n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }\n  FUN_000399a8(param_1);\n                    \n                    \n  (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n  return;\n}" primitive_type (function_declarator "prompt_set_result(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_00112534)(param_2);\n  if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    \n                    \n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }\n  FUN_000399a8(param_1);\n                    \n                    \n  (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_strlen_00112534)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00112534)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    \n                    \n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }" if (parenthesized_expression "(iVar1 + 1 <= *(int *)(param_1 + 0xc))" ( (binary_expression "iVar1 + 1 <= *(int *)(param_1 + 0xc)" (binary_expression "iVar1 + 1" identifier + number_literal) <= (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n                    \n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }" { (expression_statement "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);" (call_expression "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00111f78)" ( (pointer_expression "*(code *)PTR_strcpy_00111f78" * (cast_expression "(code *)PTR_strcpy_00111f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 8),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000399a8(param_1);" (call_expression "FUN_000399a8(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);" (call_expression "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00111f78)" ( (pointer_expression "*(code *)PTR_strcpy_00111f78" * (cast_expression "(code *)PTR_strcpy_00111f78" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 8),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" 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 )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (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 ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( 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 ))) ;) (return_statement return ;) })))
(function_definition "void prompt_set_result(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = (*(code *)PTR_strlen_00112534)(param_2);\n  if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    \n                    \n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }\n  FUN_000399a8(param_1);\n                    \n                    \n  (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n  return;\n}" (primitive_type "void") (function_declarator "prompt_set_result(int param_1,undefined4 param_2)" (identifier "prompt_set_result") (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_00112534)(param_2);\n  if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    \n                    \n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }\n  FUN_000399a8(param_1);\n                    \n                    \n  (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_strlen_00112534)(param_2);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00112534)(param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_00112534)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" (( "(") (pointer_expression "*(code *)PTR_strlen_00112534" (* "*") (cast_expression "(code *)PTR_strlen_00112534" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00112534"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {\n                    \n                    \n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 + 1 <= *(int *)(param_1 + 0xc))" (( "(") (binary_expression "iVar1 + 1 <= *(int *)(param_1 + 0xc)" (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) (<= "<=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (compound_statement "{\n                    \n                    \n    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);" (call_expression "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00111f78)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00111f78" (* "*") (cast_expression "(code *)PTR_strcpy_00111f78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00111f78"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 8),param_2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000399a8(param_1);" (call_expression "FUN_000399a8(param_1)" (identifier "FUN_000399a8") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);" (call_expression "(*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2)" (parenthesized_expression "(*(code *)PTR_strcpy_00111f78)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00111f78" (* "*") (cast_expression "(code *)PTR_strcpy_00111f78" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00111f78"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 8),param_2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pr,char *newstr)

{
  int var_1;
  
  var_1 = (*(type_2 *)PTR_strlen_00112534)(newstr);
  if (var_1 + 1 <= (int)pr->resultsize) {
                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(type_2 *)PTR_strcpy_00111f78)(pr->result,newstr);
    return;
  }
  var_2(pr,var_1 + 1);
                    /* WARNING: Could not recover jumptable at 0x00039b54. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(type_2 *)PTR_strcpy_00111f78)(pr->result,newstr);
  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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (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))))))) consequence: (compound_statement (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)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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)))) (return_statement))))

void MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = (*(code *)PTR_strlen_00112534)(param_2);
  if (iVar1 + 1 <= *(int *)(param_1 + 0xc)) {
                    /* WARNING: Could not recover jumptable at 0x00039b20. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);
    return;
  }
  FUN_000399a8(param_1);
                    /* WARNING: Could not recover jumptable at 0x00039b54. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_strcpy_00111f78)(*(undefined4 *)(param_1 + 8),param_2);
  return;
}

