
void strbuf_catf(strbuf *buf,char *fmt,...)

{
  undefined *puVar1;
  int iVar2;
  undefined4 in_a2;
  undefined4 in_a3;
  undefined4 local_res8;
  undefined4 local_resc;
  va_list ap;
  
  puVar1 = PTR___stack_chk_guard_00079930;
  iVar2 = *(int *)PTR___stack_chk_guard_00079930;
  local_res8 = in_a2;
  local_resc = in_a3;
  strbuf_catfv(buf,fmt,&local_res8);
  if (iVar2 == *(int *)puVar1) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_000797f0)();
                    /* WARNING: Subroutine does not return */
  safemalloc(0x200,1);
}



int strbuf_catf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined1 *puVar4;
  undefined *puVar5;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar5 = PTR___stack_chk_guard_00079930;
  iVar1 = *(int *)PTR___stack_chk_guard_00079930;
  local_res8 = param_3;
  local_resc = param_4;
  strbuf_catfv(param_1,param_2,&local_res8);
  if (iVar1 == *(int *)puVar5) {
    return *(int *)puVar5;
  }
  puVar5 = PTR___stack_chk_fail_000797f0;
  (*(code *)PTR___stack_chk_fail_000797f0)();
  iVar3 = 0;
  iVar1 = safemalloc(0x200,1);
  while( true ) {
    puVar4 = (undefined1 *)(iVar1 + iVar3);
    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);
    if (iVar2 == 0) break;
    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);
    iVar3 = iVar2 + iVar3;
    puVar4 = (undefined1 *)(iVar1 + iVar3);
    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;
    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);
  }
  if (iVar3 == 0) {
    if (iVar1 != 0) {
      (**(code **)(puVar5 + 0x5bf4c))(iVar1);
      iVar1 = 0;
    }
  }
  else {
LAB_0001d948:
    *puVar4 = 0;
  }
  return iVar1;
}


lui gp,0x6
addiu gp,gp,0x3864
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7d9c(gp)
addiu v0,sp,0x30
sw s0,0x20(sp)
sw a2,0x30(sp)
or a2,v0,zero
sw a3,0x34(sp)
sw v0,0x18(sp)
lw s0,-0x7740(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
lw v0,0x0(s0)
sw v0,0x1c(sp)
bal 0x0001d794
_nop
lw v1,0x1c(sp)
lw v0,0x0(s0)
bne v1,v0,0x0001d874
_lw gp,0x10(sp)
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7880(gp)
jalr t9
_nop
(translation_unit "int strbuf_catf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined *puVar5;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar5 = PTR___stack_chk_guard_00079930;\n  iVar1 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = param_3;\n  local_resc = param_4;\n  strbuf_catfv(param_1,param_2,&local_res8);\n  if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }\n  puVar5 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  iVar3 = 0;\n  iVar1 = safemalloc(0x200,1);\n  while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }\n  if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int strbuf_catf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined *puVar5;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar5 = PTR___stack_chk_guard_00079930;\n  iVar1 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = param_3;\n  local_resc = param_4;\n  strbuf_catfv(param_1,param_2,&local_res8);\n  if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }\n  puVar5 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  iVar3 = 0;\n  iVar1 = safemalloc(0x200,1);\n  while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }\n  if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "strbuf_catf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined *puVar5;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar5 = PTR___stack_chk_guard_00079930;\n  iVar1 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = param_3;\n  local_resc = param_4;\n  strbuf_catfv(param_1,param_2,&local_res8);\n  if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }\n  puVar5 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  iVar3 = 0;\n  iVar1 = safemalloc(0x200,1);\n  while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }\n  if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_00079930;" (assignment_expression "puVar5 = PTR___stack_chk_guard_00079930" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00079930;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00079930" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00079930" * (cast_expression "(int *)PTR___stack_chk_guard_00079930" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (expression_statement "strbuf_catfv(param_1,param_2,&local_res8);" (call_expression "strbuf_catfv(param_1,param_2,&local_res8)" identifier (argument_list "(param_1,param_2,&local_res8)" ( identifier , identifier , (pointer_expression "&local_res8" & identifier) ))) ;) (if_statement "if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar5)" ( (binary_expression "iVar1 == *(int *)puVar5" identifier == (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar5;\n  }" { (return_statement "return *(int *)puVar5;" return (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar5 = PTR___stack_chk_fail_000797f0;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000797f0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000797f0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000797f0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000797f0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000797f0" * (cast_expression "(code *)PTR___stack_chk_fail_000797f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = safemalloc(0x200,1);" (assignment_expression "iVar1 = safemalloc(0x200,1)" identifier = (call_expression "safemalloc(0x200,1)" identifier (argument_list "(0x200,1)" ( number_literal , number_literal )))) ;) (while_statement "while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }" { (expression_statement "puVar4 = (undefined1 *)(iVar1 + iVar3);" (assignment_expression "puVar4 = (undefined1 *)(iVar1 + iVar3)" identifier = (cast_expression "(undefined1 *)(iVar1 + iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3)" ( (binary_expression "iVar1 + iVar3" identifier + identifier) )))) ;) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1)" identifier = (call_expression "(**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1)" (parenthesized_expression "(**(code **)(puVar5 + 0x5c068))" ( (pointer_expression "**(code **)(puVar5 + 0x5c068)" * (pointer_expression "*(code **)(puVar5 + 0x5c068)" * (cast_expression "(code **)(puVar5 + 0x5c068)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x5c068)" ( (binary_expression "puVar5 + 0x5c068" identifier + number_literal) ))))) )) (argument_list "(puVar4,0x200,param_1)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4)" identifier = (call_expression "(**(code **)(puVar5 + 0x5c050))(puVar4)" (parenthesized_expression "(**(code **)(puVar5 + 0x5c050))" ( (pointer_expression "**(code **)(puVar5 + 0x5c050)" * (pointer_expression "*(code **)(puVar5 + 0x5c050)" * (cast_expression "(code **)(puVar5 + 0x5c050)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x5c050)" ( (binary_expression "puVar5 + 0x5c050" identifier + number_literal) ))))) )) (argument_list "(puVar4)" ( identifier )))) ;) (expression_statement "iVar3 = iVar2 + iVar3;" (assignment_expression "iVar3 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (expression_statement "puVar4 = (undefined1 *)(iVar1 + iVar3);" (assignment_expression "puVar4 = (undefined1 *)(iVar1 + iVar3)" identifier = (cast_expression "(undefined1 *)(iVar1 + iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3)" ( (binary_expression "iVar1 + iVar3" identifier + identifier) )))) ;) (if_statement "if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;" if (parenthesized_expression "((0 < iVar3) && (puVar4[-1] == '\n'))" ( (binary_expression "(0 < iVar3) && (puVar4[-1] == '\n')" (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) && (parenthesized_expression "(puVar4[-1] == '\n')" ( (binary_expression "puVar4[-1] == '\n'" (subscript_expression "puVar4[-1]" identifier [ number_literal ]) == (char_literal "'\n'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0001d948;" goto statement_identifier ;)) (expression_statement "iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);" (assignment_expression "iVar1 = saferealloc(iVar1,iVar3 + 0x200,1)" identifier = (call_expression "saferealloc(iVar1,iVar3 + 0x200,1)" identifier (argument_list "(iVar1,iVar3 + 0x200,1)" ( identifier , (binary_expression "iVar3 + 0x200" identifier + number_literal) , number_literal )))) ;) })) (if_statement "if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }" { (if_statement "if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }" { (expression_statement "(**(code **)(puVar5 + 0x5bf4c))(iVar1);" (call_expression "(**(code **)(puVar5 + 0x5bf4c))(iVar1)" (parenthesized_expression "(**(code **)(puVar5 + 0x5bf4c))" ( (pointer_expression "**(code **)(puVar5 + 0x5bf4c)" * (pointer_expression "*(code **)(puVar5 + 0x5bf4c)" * (cast_expression "(code **)(puVar5 + 0x5bf4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x5bf4c)" ( (binary_expression "puVar5 + 0x5bf4c" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }" else (compound_statement "{\nLAB_0001d948:\n    *puVar4 = 0;\n  }" { (labeled_statement "LAB_0001d948:\n    *puVar4 = 0;" statement_identifier : (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;)) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void strbuf_catf(strbuf *buf,char *fmt,...)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list ap;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  iVar2 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  strbuf_catfv(buf,fmt,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n                    /* WARNING: Subroutine does not return */\n  safemalloc(0x200,1);\n}\n\n" (function_definition "void strbuf_catf(strbuf *buf,char *fmt,...)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list ap;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  iVar2 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  strbuf_catfv(buf,fmt,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n                    /* WARNING: Subroutine does not return */\n  safemalloc(0x200,1);\n}" primitive_type (function_declarator "strbuf_catf(strbuf *buf,char *fmt,...)" identifier (parameter_list "(strbuf *buf,char *fmt,...)" ( (parameter_declaration "strbuf *buf" type_identifier (pointer_declarator "*buf" * identifier)) , (parameter_declaration "char *fmt" primitive_type (pointer_declarator "*fmt" * identifier)) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  va_list ap;\n  \n  puVar1 = PTR___stack_chk_guard_00079930;\n  iVar2 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = in_a2;\n  local_resc = in_a3;\n  strbuf_catfv(buf,fmt,&local_res8);\n  if (iVar2 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n                    /* WARNING: Subroutine does not return */\n  safemalloc(0x200,1);\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (declaration "va_list ap;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00079930;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00079930" identifier = identifier) ;) (expression_statement "iVar2 = *(int *)PTR___stack_chk_guard_00079930;" (assignment_expression "iVar2 = *(int *)PTR___stack_chk_guard_00079930" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00079930" * (cast_expression "(int *)PTR___stack_chk_guard_00079930" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res8 = in_a2;" (assignment_expression "local_res8 = in_a2" identifier = identifier) ;) (expression_statement "local_resc = in_a3;" (assignment_expression "local_resc = in_a3" identifier = identifier) ;) (expression_statement "strbuf_catfv(buf,fmt,&local_res8);" (call_expression "strbuf_catfv(buf,fmt,&local_res8)" identifier (argument_list "(buf,fmt,&local_res8)" ( identifier , identifier , (pointer_expression "&local_res8" & identifier) ))) ;) (if_statement "if (iVar2 == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(iVar2 == *(int *)puVar1)" ( (binary_expression "iVar2 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000797f0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000797f0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000797f0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000797f0" * (cast_expression "(code *)PTR___stack_chk_fail_000797f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment (expression_statement "safemalloc(0x200,1);" (call_expression "safemalloc(0x200,1)" identifier (argument_list "(0x200,1)" ( number_literal , number_literal ))) ;) })))
(translation_unit "int strbuf_catf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined *puVar5;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar5 = PTR___stack_chk_guard_00079930;\n  iVar1 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = param_3;\n  local_resc = param_4;\n  strbuf_catfv(param_1,param_2,&local_res8);\n  if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }\n  puVar5 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  iVar3 = 0;\n  iVar1 = safemalloc(0x200,1);\n  while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }\n  if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int strbuf_catf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined *puVar5;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar5 = PTR___stack_chk_guard_00079930;\n  iVar1 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = param_3;\n  local_resc = param_4;\n  strbuf_catfv(param_1,param_2,&local_res8);\n  if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }\n  puVar5 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  iVar3 = 0;\n  iVar1 = safemalloc(0x200,1);\n  while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }\n  if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "strbuf_catf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined *puVar5;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar5 = PTR___stack_chk_guard_00079930;\n  iVar1 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = param_3;\n  local_resc = param_4;\n  strbuf_catfv(param_1,param_2,&local_res8);\n  if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }\n  puVar5 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  iVar3 = 0;\n  iVar1 = safemalloc(0x200,1);\n  while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }\n  if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_00079930;" (assignment_expression "puVar5 = PTR___stack_chk_guard_00079930" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00079930;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00079930" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00079930" * (cast_expression "(int *)PTR___stack_chk_guard_00079930" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (expression_statement "strbuf_catfv(param_1,param_2,&local_res8);" (call_expression "strbuf_catfv(param_1,param_2,&local_res8)" identifier (argument_list "(param_1,param_2,&local_res8)" ( identifier , identifier , (pointer_expression "&local_res8" & identifier) ))) ;) (if_statement "if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }" if (parenthesized_expression "(iVar1 == *(int *)puVar5)" ( (binary_expression "iVar1 == *(int *)puVar5" identifier == (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return *(int *)puVar5;\n  }" { (return_statement "return *(int *)puVar5;" return (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "puVar5 = PTR___stack_chk_fail_000797f0;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000797f0" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000797f0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000797f0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000797f0)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000797f0" * (cast_expression "(code *)PTR___stack_chk_fail_000797f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = safemalloc(0x200,1);" (assignment_expression "iVar1 = safemalloc(0x200,1)" identifier = (call_expression "safemalloc(0x200,1)" identifier (argument_list "(0x200,1)" ( number_literal , number_literal )))) ;) (while_statement "while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }" { (expression_statement "puVar4 = (undefined1 *)(iVar1 + iVar3);" (assignment_expression "puVar4 = (undefined1 *)(iVar1 + iVar3)" identifier = (cast_expression "(undefined1 *)(iVar1 + iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3)" ( (binary_expression "iVar1 + iVar3" identifier + identifier) )))) ;) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1)" identifier = (call_expression "(**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1)" (parenthesized_expression "(**(code **)(puVar5 + 0x5c068))" ( (pointer_expression "**(code **)(puVar5 + 0x5c068)" * (pointer_expression "*(code **)(puVar5 + 0x5c068)" * (cast_expression "(code **)(puVar5 + 0x5c068)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x5c068)" ( (binary_expression "puVar5 + 0x5c068" identifier + number_literal) ))))) )) (argument_list "(puVar4,0x200,param_1)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar2 == 0) break;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4)" identifier = (call_expression "(**(code **)(puVar5 + 0x5c050))(puVar4)" (parenthesized_expression "(**(code **)(puVar5 + 0x5c050))" ( (pointer_expression "**(code **)(puVar5 + 0x5c050)" * (pointer_expression "*(code **)(puVar5 + 0x5c050)" * (cast_expression "(code **)(puVar5 + 0x5c050)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x5c050)" ( (binary_expression "puVar5 + 0x5c050" identifier + number_literal) ))))) )) (argument_list "(puVar4)" ( identifier )))) ;) (expression_statement "iVar3 = iVar2 + iVar3;" (assignment_expression "iVar3 = iVar2 + iVar3" identifier = (binary_expression "iVar2 + iVar3" identifier + identifier)) ;) (expression_statement "puVar4 = (undefined1 *)(iVar1 + iVar3);" (assignment_expression "puVar4 = (undefined1 *)(iVar1 + iVar3)" identifier = (cast_expression "(undefined1 *)(iVar1 + iVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar3)" ( (binary_expression "iVar1 + iVar3" identifier + identifier) )))) ;) (if_statement "if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;" if (parenthesized_expression "((0 < iVar3) && (puVar4[-1] == '\n'))" ( (binary_expression "(0 < iVar3) && (puVar4[-1] == '\n')" (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) && (parenthesized_expression "(puVar4[-1] == '\n')" ( (binary_expression "puVar4[-1] == '\n'" (subscript_expression "puVar4[-1]" identifier [ number_literal ]) == (char_literal "'\n'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0001d948;" goto statement_identifier ;)) (expression_statement "iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);" (assignment_expression "iVar1 = saferealloc(iVar1,iVar3 + 0x200,1)" identifier = (call_expression "saferealloc(iVar1,iVar3 + 0x200,1)" identifier (argument_list "(iVar1,iVar3 + 0x200,1)" ( identifier , (binary_expression "iVar3 + 0x200" identifier + number_literal) , number_literal )))) ;) })) (if_statement "if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }" { (if_statement "if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }" { (expression_statement "(**(code **)(puVar5 + 0x5bf4c))(iVar1);" (call_expression "(**(code **)(puVar5 + 0x5bf4c))(iVar1)" (parenthesized_expression "(**(code **)(puVar5 + 0x5bf4c))" ( (pointer_expression "**(code **)(puVar5 + 0x5bf4c)" * (pointer_expression "*(code **)(puVar5 + 0x5bf4c)" * (cast_expression "(code **)(puVar5 + 0x5bf4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x5bf4c)" ( (binary_expression "puVar5 + 0x5bf4c" identifier + number_literal) ))))) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }" else (compound_statement "{\nLAB_0001d948:\n    *puVar4 = 0;\n  }" { (labeled_statement "LAB_0001d948:\n    *puVar4 = 0;" statement_identifier : (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;)) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) }))) (return_statement return IDENT ;) })))
(function_definition "int strbuf_catf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined *puVar5;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar5 = PTR___stack_chk_guard_00079930;\n  iVar1 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = param_3;\n  local_resc = param_4;\n  strbuf_catfv(param_1,param_2,&local_res8);\n  if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }\n  puVar5 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  iVar3 = 0;\n  iVar1 = safemalloc(0x200,1);\n  while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }\n  if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "strbuf_catf(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "strbuf_catf") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  undefined *puVar5;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar5 = PTR___stack_chk_guard_00079930;\n  iVar1 = *(int *)PTR___stack_chk_guard_00079930;\n  local_res8 = param_3;\n  local_resc = param_4;\n  strbuf_catfv(param_1,param_2,&local_res8);\n  if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }\n  puVar5 = PTR___stack_chk_fail_000797f0;\n  (*(code *)PTR___stack_chk_fail_000797f0)();\n  iVar3 = 0;\n  iVar1 = safemalloc(0x200,1);\n  while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }\n  if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 local_res8;" (type_identifier "undefined4") (identifier "local_res8") (; ";")) (declaration "undefined4 local_resc;" (type_identifier "undefined4") (identifier "local_resc") (; ";")) (expression_statement "puVar5 = PTR___stack_chk_guard_00079930;" (assignment_expression "puVar5 = PTR___stack_chk_guard_00079930" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_guard_00079930")) (; ";")) (expression_statement "iVar1 = *(int *)PTR___stack_chk_guard_00079930;" (assignment_expression "iVar1 = *(int *)PTR___stack_chk_guard_00079930" (identifier "iVar1") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00079930" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00079930" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00079930")))) (; ";")) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" (identifier "local_res8") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" (identifier "local_resc") (= "=") (identifier "param_4")) (; ";")) (expression_statement "strbuf_catfv(param_1,param_2,&local_res8);" (call_expression "strbuf_catfv(param_1,param_2,&local_res8)" (identifier "strbuf_catfv") (argument_list "(param_1,param_2,&local_res8)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_res8" (& "&") (identifier "local_res8")) () ")"))) (; ";")) (if_statement "if (iVar1 == *(int *)puVar5) {\n    return *(int *)puVar5;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)puVar5)" (( "(") (binary_expression "iVar1 == *(int *)puVar5" (identifier "iVar1") (== "==") (pointer_expression "*(int *)puVar5" (* "*") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")))) () ")")) (compound_statement "{\n    return *(int *)puVar5;\n  }" ({ "{") (return_statement "return *(int *)puVar5;" (return "return") (pointer_expression "*(int *)puVar5" (* "*") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5"))) (; ";")) (} "}"))) (expression_statement "puVar5 = PTR___stack_chk_fail_000797f0;" (assignment_expression "puVar5 = PTR___stack_chk_fail_000797f0" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_fail_000797f0")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000797f0)();" (call_expression "(*(code *)PTR___stack_chk_fail_000797f0)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000797f0)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000797f0" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000797f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000797f0"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = safemalloc(0x200,1);" (assignment_expression "iVar1 = safemalloc(0x200,1)" (identifier "iVar1") (= "=") (call_expression "safemalloc(0x200,1)" (identifier "safemalloc") (argument_list "(0x200,1)" (( "(") (number_literal "0x200") (, ",") (number_literal "1") () ")")))) (; ";")) (while_statement "while( true ) {\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);\n    if (iVar2 == 0) break;\n    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);\n    iVar3 = iVar2 + iVar3;\n    puVar4 = (undefined1 *)(iVar1 + iVar3);\n    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;\n    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);\n  }" ({ "{") (expression_statement "puVar4 = (undefined1 *)(iVar1 + iVar3);" (assignment_expression "puVar4 = (undefined1 *)(iVar1 + iVar3)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(iVar1 + iVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar3)" (( "(") (binary_expression "iVar1 + iVar3" (identifier "iVar1") (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1)" (parenthesized_expression "(**(code **)(puVar5 + 0x5c068))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x5c068)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x5c068)" (* "*") (cast_expression "(code **)(puVar5 + 0x5c068)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x5c068)" (( "(") (binary_expression "puVar5 + 0x5c068" (identifier "puVar5") (+ "+") (number_literal "0x5c068")) () ")"))))) () ")")) (argument_list "(puVar4,0x200,param_1)" (( "(") (identifier "puVar4") (, ",") (number_literal "0x200") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) break;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar5 + 0x5c050))(puVar4)" (parenthesized_expression "(**(code **)(puVar5 + 0x5c050))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x5c050)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x5c050)" (* "*") (cast_expression "(code **)(puVar5 + 0x5c050)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x5c050)" (( "(") (binary_expression "puVar5 + 0x5c050" (identifier "puVar5") (+ "+") (number_literal "0x5c050")) () ")"))))) () ")")) (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")")))) (; ";")) (expression_statement "iVar3 = iVar2 + iVar3;" (assignment_expression "iVar3 = iVar2 + iVar3" (identifier "iVar3") (= "=") (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "puVar4 = (undefined1 *)(iVar1 + iVar3);" (assignment_expression "puVar4 = (undefined1 *)(iVar1 + iVar3)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(iVar1 + iVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar3)" (( "(") (binary_expression "iVar1 + iVar3" (identifier "iVar1") (+ "+") (identifier "iVar3")) () ")")))) (; ";")) (if_statement "if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;" (if "if") (parenthesized_expression "((0 < iVar3) && (puVar4[-1] == '\n'))" (( "(") (binary_expression "(0 < iVar3) && (puVar4[-1] == '\n')" (parenthesized_expression "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")) (&& "&&") (parenthesized_expression "(puVar4[-1] == '\n')" (( "(") (binary_expression "puVar4[-1] == '\n'" (subscript_expression "puVar4[-1]" (identifier "puVar4") ([ "[") (number_literal "-1") (] "]")) (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_0001d948;" (goto "goto") (statement_identifier "LAB_0001d948") (; ";"))) (expression_statement "iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);" (assignment_expression "iVar1 = saferealloc(iVar1,iVar3 + 0x200,1)" (identifier "iVar1") (= "=") (call_expression "saferealloc(iVar1,iVar3 + 0x200,1)" (identifier "saferealloc") (argument_list "(iVar1,iVar3 + 0x200,1)" (( "(") (identifier "iVar1") (, ",") (binary_expression "iVar3 + 0x200" (identifier "iVar3") (+ "+") (number_literal "0x200")) (, ",") (number_literal "1") () ")")))) (; ";")) (} "}"))) (if_statement "if (iVar3 == 0) {\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }\n  else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }\n  }" ({ "{") (if_statement "if (iVar1 != 0) {\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (**(code **)(puVar5 + 0x5bf4c))(iVar1);\n      iVar1 = 0;\n    }" ({ "{") (expression_statement "(**(code **)(puVar5 + 0x5bf4c))(iVar1);" (call_expression "(**(code **)(puVar5 + 0x5bf4c))(iVar1)" (parenthesized_expression "(**(code **)(puVar5 + 0x5bf4c))" (( "(") (pointer_expression "**(code **)(puVar5 + 0x5bf4c)" (* "*") (pointer_expression "*(code **)(puVar5 + 0x5bf4c)" (* "*") (cast_expression "(code **)(puVar5 + 0x5bf4c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0x5bf4c)" (( "(") (binary_expression "puVar5 + 0x5bf4c" (identifier "puVar5") (+ "+") (number_literal "0x5bf4c")) () ")"))))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_0001d948:\n    *puVar4 = 0;\n  }" (else "else") (compound_statement "{\nLAB_0001d948:\n    *puVar4 = 0;\n  }" ({ "{") (labeled_statement "LAB_0001d948:\n    *puVar4 = 0;" (statement_identifier "LAB_0001d948") (: ":") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";"))) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (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))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined1 *puVar4;
  undefined *puVar5;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar5 = PTR___stack_chk_guard_00079930;
  iVar1 = *(int *)PTR___stack_chk_guard_00079930;
  local_res8 = param_3;
  local_resc = param_4;
  MASKEDv(param_1,param_2,&local_res8);
  if (iVar1 == *(int *)puVar5) {
    return *(int *)puVar5;
  }
  puVar5 = PTR___stack_chk_fail_000797f0;
  (*(code *)PTR___stack_chk_fail_000797f0)();
  iVar3 = 0;
  iVar1 = safemalloc(0x200,1);
  while( true ) {
    puVar4 = (undefined1 *)(iVar1 + iVar3);
    iVar2 = (**(code **)(puVar5 + 0x5c068))(puVar4,0x200,param_1);
    if (iVar2 == 0) break;
    iVar2 = (**(code **)(puVar5 + 0x5c050))(puVar4);
    iVar3 = iVar2 + iVar3;
    puVar4 = (undefined1 *)(iVar1 + iVar3);
    if ((0 < iVar3) && (puVar4[-1] == '\n')) goto LAB_0001d948;
    iVar1 = saferealloc(iVar1,iVar3 + 0x200,1);
  }
  if (iVar3 == 0) {
    if (iVar1 != 0) {
      (**(code **)(puVar5 + 0x5bf4c))(iVar1);
      iVar1 = 0;
    }
  }
  else {
LAB_0001d948:
    *puVar4 = 0;
  }
  return iVar1;
}

