
void do_statusbar_output(int *the_input,size_t input_len,_Bool filtering)

{
  char onechar [6];
  
                    /* WARNING: Subroutine does not return */
  nmalloc(input_len + 1);
}



void do_statusbar_output(undefined4 *param_1,uint param_2,int param_3)

{
  undefined *puVar1;
  undefined1 *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined1 *puVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  char *pcVar9;
  uint uVar10;
  int iVar11;
  undefined *puVar12;
  undefined1 auStack_34 [8];
  int local_2c;
  
  local_2c = *(int *)PTR___stack_chk_guard_0007d12c;
  puVar2 = (undefined1 *)nmalloc(param_2 + 1);
  if (param_2 != 0) {
    puVar7 = param_1 + param_2;
    puVar6 = puVar2;
    do {
      *puVar6 = (char)*param_1;
      param_1 = param_1 + 1;
      puVar6 = puVar6 + 1;
    } while (puVar7 != param_1);
    puVar2[param_2] = 0;
    puVar1 = PTR_answer_0007c5ec;
    puVar12 = PTR_DAT_0007c548;
    uVar10 = 0;
    do {
      pcVar9 = puVar2 + uVar10;
      if (*pcVar9 == '\0') {
        *pcVar9 = '\n';
      }
      iVar4 = parse_mbchar(pcVar9,auStack_34,0);
      uVar10 = uVar10 + iVar4;
      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {
        uVar8 = *(undefined4 *)puVar1;
        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);
        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);
        *(int *)puVar1 = iVar5;
        iVar11 = *(int *)(puVar12 + -0x3c10);
        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);
        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);
        (*(code *)PTR_strncpy_0007cfd8)
                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);
        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;
      }
    } while (uVar10 < param_2);
  }
  (*(code *)PTR_free_0007d140)(puVar2);
  if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {
    puVar12 = PTR___stack_chk_fail_0007d0f8;
    (*(code *)PTR___stack_chk_fail_0007d0f8)();
    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;
    return;
  }
  return;
}


lui gp,0x5
addiu gp,gp,-0x5f0
addu gp,gp,t9
addiu sp,sp,-0x50
sw ra,0x4c(sp)
sw s8,0x48(sp)
sw s7,0x44(sp)
sw s6,0x40(sp)
sw s5,0x3c(sp)
sw s4,0x38(sp)
sw s3,0x34(sp)
sw s2,0x30(sp)
sw s1,0x2c(sp)
sw s0,0x28(sp)
sw gp,0x10(sp)
or s0,a0,zero
or s7,a1,zero
sw a2,0x58(sp)
lw v0,-0x73f4(gp)
lw v0,0x0(v0)
sw v0,0x24(sp)
addiu a0,a1,0x1
lw t9,-0x7f90(gp)
bal 0x000461cc
_nop
lw gp,0x10(sp)
beq s7,zero,0x00034cdc
_or s8,v0,zero
or v0,s0,zero
or v1,s8,zero
sll a0,s7,0x2
addu a0,s0,a0
lw a1,0x0(v0)
sb a1,0x0(v1)
addiu v0,v0,0x4
bne a0,v0,0x00034b90
_addiu v1,v1,0x1
addu v0,s8,s7
sb zero,0x0(v0)
or s2,zero,zero
addiu s6,sp,0x1c
lw s5,-0x7f34(gp)
b 0x00034c78
_lw s3,-0x7fd8(gp)
lw s1,0x0(s5)
or a0,s1,zero
lw t9,-0x74f0(gp)
jalr t9
_nop
lw gp,0x10(sp)
addiu a1,s0,0x1
addu a1,a1,v0
or a0,s1,zero
lw t9,-0x7eac(gp)
bal 0x00046324
_nop
lw gp,0x10(sp)
or s1,v0,zero
sw v0,0x0(s5)
lw s4,-0x3c10(s3)
or a0,v0,zero
lw t9,-0x74f0(gp)
jalr t9
_nop
lw gp,0x10(sp)
li v1,0x1
subu a2,v1,s4
addu a0,s4,s0
addu a2,a2,v0
addu a1,s1,s4
addu a0,s1,a0
lw t9,-0x73d8(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x0(s5)
lw v0,-0x3c10(s3)
or a2,s0,zero
or a1,s6,zero
addu a0,a0,v0
lw t9,-0x7548(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v0,-0x3c10(s3)
addu s0,v0,s0
sw s0,-0x3c10(s3)
sltu v0,s2,s7
beq v0,zero,0x00034ce0
_or a0,s8,zero
addu s1,s8,s2
lb v0,0x0(s1)
bne v0,zero,0x00034c90
_or a2,zero,zero
li v0,0xa
sb v0,0x0(s1)
or a1,s6,zero
or a0,s1,zero
lw t9,-0x7e7c(gp)
bal 0x0001a958
_nop
lw gp,0x10(sp)
or s0,v0,zero
addu s2,s2,v0
lw v0,0x58(sp)
beq v0,zero,0x00034bc0
_lw t9,-0x79fc(gp)
lb a0,0x0(s1)
bal 0x0001a648
_nop
lw gp,0x10(sp)
beq v0,zero,0x00034bc0
_sltu v0,s2,s7
b 0x00034c70
_nop
or a0,s8,zero
lw t9,-0x73e0(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x24(sp)
lw v0,-0x73f4(gp)
lw v0,0x0(v0)
bne v1,v0,0x00034d30
_lw ra,0x4c(sp)
lw s8,0x48(sp)
lw s7,0x44(sp)
lw s6,0x40(sp)
lw s5,0x3c(sp)
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x50
lw t9,-0x7428(gp)
jalr t9
_nop
lui gp,0x5
addiu gp,gp,-0x81c
addu gp,gp,t9
lw v0,-0x7fd8(gp)
jr ra
_sw zero,-0x3c10(v0)
(translation_unit "void do_statusbar_output(undefined4 *param_1,uint param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  uint uVar10;\n  int iVar11;\n  undefined *puVar12;\n  undefined1 auStack_34 [8];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_0007d12c;\n  puVar2 = (undefined1 *)nmalloc(param_2 + 1);\n  if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }\n  (*(code *)PTR_free_0007d140)(puVar2);\n  if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }\n  return;\n}\n\n" (function_definition "void do_statusbar_output(undefined4 *param_1,uint param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  uint uVar10;\n  int iVar11;\n  undefined *puVar12;\n  undefined1 auStack_34 [8];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_0007d12c;\n  puVar2 = (undefined1 *)nmalloc(param_2 + 1);\n  if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }\n  (*(code *)PTR_free_0007d140)(puVar2);\n  if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "do_statusbar_output(undefined4 *param_1,uint param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,uint param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  uint uVar10;\n  int iVar11;\n  undefined *puVar12;\n  undefined1 auStack_34 [8];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_0007d12c;\n  puVar2 = (undefined1 *)nmalloc(param_2 + 1);\n  if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }\n  (*(code *)PTR_free_0007d140)(puVar2);\n  if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "undefined1 auStack_34 [8];" type_identifier (array_declarator "auStack_34 [8]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0007d12c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0007d12c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0007d12c" * (cast_expression "(int *)PTR___stack_chk_guard_0007d12c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = (undefined1 *)nmalloc(param_2 + 1);" (assignment_expression "puVar2 = (undefined1 *)nmalloc(param_2 + 1)" identifier = (cast_expression "(undefined1 *)nmalloc(param_2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "nmalloc(param_2 + 1)" identifier (argument_list "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }" { (expression_statement "puVar7 = param_1 + param_2;" (assignment_expression "puVar7 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" identifier = identifier) ;) (do_statement "do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);" do (compound_statement "{\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    }" { (expression_statement "*puVar6 = (char)*param_1;" (assignment_expression "*puVar6 = (char)*param_1" (pointer_expression "*puVar6" * identifier) = (cast_expression "(char)*param_1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar7 != param_1)" ( (binary_expression "puVar7 != param_1" identifier != identifier) )) ;) (expression_statement "puVar2[param_2] = 0;" (assignment_expression "puVar2[param_2] = 0" (subscript_expression "puVar2[param_2]" identifier [ identifier ]) = number_literal) ;) (expression_statement "puVar1 = PTR_answer_0007c5ec;" (assignment_expression "puVar1 = PTR_answer_0007c5ec" identifier = identifier) ;) (expression_statement "puVar12 = PTR_DAT_0007c548;" (assignment_expression "puVar12 = PTR_DAT_0007c548" identifier = identifier) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);" do (compound_statement "{\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    }" { (expression_statement "pcVar9 = puVar2 + uVar10;" (assignment_expression "pcVar9 = puVar2 + uVar10" identifier = (binary_expression "puVar2 + uVar10" identifier + identifier)) ;) (if_statement "if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }" if (parenthesized_expression "(*pcVar9 == '\0')" ( (binary_expression "*pcVar9 == '\0'" (pointer_expression "*pcVar9" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *pcVar9 = '\n';\n      }" { (expression_statement "*pcVar9 = '\n';" (assignment_expression "*pcVar9 = '\n'" (pointer_expression "*pcVar9" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) })) (expression_statement "iVar4 = parse_mbchar(pcVar9,auStack_34,0);" (assignment_expression "iVar4 = parse_mbchar(pcVar9,auStack_34,0)" identifier = (call_expression "parse_mbchar(pcVar9,auStack_34,0)" identifier (argument_list "(pcVar9,auStack_34,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "uVar10 = uVar10 + iVar4;" (assignment_expression "uVar10 = uVar10 + iVar4" identifier = (binary_expression "uVar10 + iVar4" identifier + identifier)) ;) (if_statement "if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }" if (parenthesized_expression "((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0))" ( (binary_expression "(param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)" ( (comma_expression "iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0" (assignment_expression "iVar5 = is_ascii_cntrl_char((int)*pcVar9)" identifier = (call_expression "is_ascii_cntrl_char((int)*pcVar9)" identifier (argument_list "((int)*pcVar9)" ( (cast_expression "(int)*pcVar9" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar9" * identifier)) )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }" { (expression_statement "uVar8 = *(undefined4 *)puVar1;" (assignment_expression "uVar8 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(uVar8)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8)" ( identifier )))) ;) (expression_statement "iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);" (assignment_expression "iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5)" identifier = (call_expression "nrealloc(uVar8,iVar4 + 1 + iVar5)" identifier (argument_list "(uVar8,iVar4 + 1 + iVar5)" ( identifier , (binary_expression "iVar4 + 1 + iVar5" (binary_expression "iVar4 + 1" identifier + number_literal) + identifier) )))) ;) (expression_statement "*(int *)puVar1 = iVar5;" (assignment_expression "*(int *)puVar1 = iVar5" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "iVar11 = *(int *)(puVar12 + -0x3c10);" (assignment_expression "iVar11 = *(int *)(puVar12 + -0x3c10)" identifier = (pointer_expression "*(int *)(puVar12 + -0x3c10)" * (cast_expression "(int *)(puVar12 + -0x3c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + -0x3c10)" ( (binary_expression "puVar12 + -0x3c10" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(iVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);" (call_expression "(*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3)" (parenthesized_expression "(*(code *)PTR_memmove_0007d148)" ( (pointer_expression "*(code *)PTR_memmove_0007d148" * (cast_expression "(code *)PTR_memmove_0007d148" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3)" ( (binary_expression "iVar5 + iVar11 + iVar4" (binary_expression "iVar5 + iVar11" identifier + identifier) + identifier) , (binary_expression "iVar5 + iVar11" identifier + identifier) , (binary_expression "(1 - iVar11) + iVar3" (parenthesized_expression "(1 - iVar11)" ( (binary_expression "1 - iVar11" number_literal - identifier) )) + identifier) ))) ;) (expression_statement "(*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);" (call_expression "(*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4)" (parenthesized_expression "(*(code *)PTR_strncpy_0007cfd8)" ( (pointer_expression "*(code *)PTR_strncpy_0007cfd8" * (cast_expression "(code *)PTR_strncpy_0007cfd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4)" ( (binary_expression "*(int *)puVar1 + *(int *)(puVar12 + -0x3c10)" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (pointer_expression "*(int *)(puVar12 + -0x3c10)" * (cast_expression "(int *)(puVar12 + -0x3c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + -0x3c10)" ( (binary_expression "puVar12 + -0x3c10" identifier + number_literal) ))))) , identifier , identifier ))) ;) (expression_statement "*(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;" (assignment_expression "*(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4" (pointer_expression "*(int *)(puVar12 + -0x3c10)" * (cast_expression "(int *)(puVar12 + -0x3c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + -0x3c10)" ( (binary_expression "puVar12 + -0x3c10" identifier + number_literal) )))) = (binary_expression "*(int *)(puVar12 + -0x3c10) + iVar4" (pointer_expression "*(int *)(puVar12 + -0x3c10)" * (cast_expression "(int *)(puVar12 + -0x3c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + -0x3c10)" ( (binary_expression "puVar12 + -0x3c10" identifier + number_literal) )))) + identifier)) ;) })) }) while (parenthesized_expression "(uVar10 < param_2)" ( (binary_expression "uVar10 < param_2" identifier < identifier) )) ;) })) (expression_statement "(*(code *)PTR_free_0007d140)(puVar2);" (call_expression "(*(code *)PTR_free_0007d140)(puVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) (if_statement "if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }" if (parenthesized_expression "(local_2c != *(int *)PTR___stack_chk_guard_0007d12c)" ( (binary_expression "local_2c != *(int *)PTR___stack_chk_guard_0007d12c" identifier != (pointer_expression "*(int *)PTR___stack_chk_guard_0007d12c" * (cast_expression "(int *)PTR___stack_chk_guard_0007d12c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }" { (expression_statement "puVar12 = PTR___stack_chk_fail_0007d0f8;" (assignment_expression "puVar12 = PTR___stack_chk_fail_0007d0f8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0007d0f8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0007d0f8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0007d0f8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0007d0f8" * (cast_expression "(code *)PTR___stack_chk_fail_0007d0f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0" (pointer_expression "*(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10)" * (cast_expression "(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x4780c) + -0x3c10)" ( (binary_expression "*(int *)(puVar12 + 0x4780c) + -0x3c10" (pointer_expression "*(int *)(puVar12 + 0x4780c)" * (cast_expression "(int *)(puVar12 + 0x4780c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x4780c)" ( (binary_expression "puVar12 + 0x4780c" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void do_statusbar_output(int *the_input,size_t input_len,_Bool filtering)\n\n{\n  char onechar [6];\n  \n                    /* WARNING: Subroutine does not return */\n  nmalloc(input_len + 1);\n}\n\n" (function_definition "void do_statusbar_output(int *the_input,size_t input_len,_Bool filtering)\n\n{\n  char onechar [6];\n  \n                    /* WARNING: Subroutine does not return */\n  nmalloc(input_len + 1);\n}" primitive_type (function_declarator "do_statusbar_output(int *the_input,size_t input_len,_Bool filtering)" identifier (parameter_list "(int *the_input,size_t input_len,_Bool filtering)" ( (parameter_declaration "int *the_input" primitive_type (pointer_declarator "*the_input" * identifier)) , (parameter_declaration "size_t input_len" primitive_type identifier) , (parameter_declaration "_Bool filtering" type_identifier identifier) ))) (compound_statement "{\n  char onechar [6];\n  \n                    /* WARNING: Subroutine does not return */\n  nmalloc(input_len + 1);\n}" { (declaration "char onechar [6];" primitive_type (array_declarator "onechar [6]" identifier [ number_literal ]) ;) comment (expression_statement "nmalloc(input_len + 1);" (call_expression "nmalloc(input_len + 1)" identifier (argument_list "(input_len + 1)" ( (binary_expression "input_len + 1" identifier + number_literal) ))) ;) })))
(translation_unit "void do_statusbar_output(undefined4 *param_1,uint param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  uint uVar10;\n  int iVar11;\n  undefined *puVar12;\n  undefined1 auStack_34 [8];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_0007d12c;\n  puVar2 = (undefined1 *)nmalloc(param_2 + 1);\n  if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }\n  (*(code *)PTR_free_0007d140)(puVar2);\n  if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }\n  return;\n}\n\n" (function_definition "void do_statusbar_output(undefined4 *param_1,uint param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  uint uVar10;\n  int iVar11;\n  undefined *puVar12;\n  undefined1 auStack_34 [8];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_0007d12c;\n  puVar2 = (undefined1 *)nmalloc(param_2 + 1);\n  if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }\n  (*(code *)PTR_free_0007d140)(puVar2);\n  if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "do_statusbar_output(undefined4 *param_1,uint param_2,int param_3)" identifier (parameter_list "(undefined4 *param_1,uint param_2,int param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  uint uVar10;\n  int iVar11;\n  undefined *puVar12;\n  undefined1 auStack_34 [8];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_0007d12c;\n  puVar2 = (undefined1 *)nmalloc(param_2 + 1);\n  if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }\n  (*(code *)PTR_free_0007d140)(puVar2);\n  if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "undefined1 auStack_34 [8];" type_identifier (array_declarator "auStack_34 [8]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0007d12c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0007d12c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0007d12c" * (cast_expression "(int *)PTR___stack_chk_guard_0007d12c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar2 = (undefined1 *)nmalloc(param_2 + 1);" (assignment_expression "puVar2 = (undefined1 *)nmalloc(param_2 + 1)" identifier = (cast_expression "(undefined1 *)nmalloc(param_2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "nmalloc(param_2 + 1)" identifier (argument_list "(param_2 + 1)" ( (binary_expression "param_2 + 1" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }" { (expression_statement "puVar7 = param_1 + param_2;" (assignment_expression "puVar7 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" identifier = identifier) ;) (do_statement "do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);" do (compound_statement "{\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    }" { (expression_statement "*puVar6 = (char)*param_1;" (assignment_expression "*puVar6 = (char)*param_1" (pointer_expression "*puVar6" * identifier) = (cast_expression "(char)*param_1" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar7 != param_1)" ( (binary_expression "puVar7 != param_1" identifier != identifier) )) ;) (expression_statement "puVar2[param_2] = 0;" (assignment_expression "puVar2[param_2] = 0" (subscript_expression "puVar2[param_2]" identifier [ identifier ]) = number_literal) ;) (expression_statement "puVar1 = PTR_answer_0007c5ec;" (assignment_expression "puVar1 = PTR_answer_0007c5ec" identifier = identifier) ;) (expression_statement "puVar12 = PTR_DAT_0007c548;" (assignment_expression "puVar12 = PTR_DAT_0007c548" identifier = identifier) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);" do (compound_statement "{\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    }" { (expression_statement "pcVar9 = puVar2 + uVar10;" (assignment_expression "pcVar9 = puVar2 + uVar10" identifier = (binary_expression "puVar2 + uVar10" identifier + identifier)) ;) (if_statement "if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }" if (parenthesized_expression "(*pcVar9 == '\0')" ( (binary_expression "*pcVar9 == '\0'" (pointer_expression "*pcVar9" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        *pcVar9 = '\n';\n      }" { (expression_statement "*pcVar9 = '\n';" (assignment_expression "*pcVar9 = '\n'" (pointer_expression "*pcVar9" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) })) (expression_statement "iVar4 = parse_mbchar(pcVar9,auStack_34,0);" (assignment_expression "iVar4 = parse_mbchar(pcVar9,auStack_34,0)" identifier = (call_expression "parse_mbchar(pcVar9,auStack_34,0)" identifier (argument_list "(pcVar9,auStack_34,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "uVar10 = uVar10 + iVar4;" (assignment_expression "uVar10 = uVar10 + iVar4" identifier = (binary_expression "uVar10 + iVar4" identifier + identifier)) ;) (if_statement "if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }" if (parenthesized_expression "((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0))" ( (binary_expression "(param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)" ( (comma_expression "iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0" (assignment_expression "iVar5 = is_ascii_cntrl_char((int)*pcVar9)" identifier = (call_expression "is_ascii_cntrl_char((int)*pcVar9)" identifier (argument_list "((int)*pcVar9)" ( (cast_expression "(int)*pcVar9" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*pcVar9" * identifier)) )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }" { (expression_statement "uVar8 = *(undefined4 *)puVar1;" (assignment_expression "uVar8 = *(undefined4 *)puVar1" identifier = (pointer_expression "*(undefined4 *)puVar1" * (cast_expression "(undefined4 *)puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(uVar8)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar8)" ( identifier )))) ;) (expression_statement "iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);" (assignment_expression "iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5)" identifier = (call_expression "nrealloc(uVar8,iVar4 + 1 + iVar5)" identifier (argument_list "(uVar8,iVar4 + 1 + iVar5)" ( identifier , (binary_expression "iVar4 + 1 + iVar5" (binary_expression "iVar4 + 1" identifier + number_literal) + identifier) )))) ;) (expression_statement "*(int *)puVar1 = iVar5;" (assignment_expression "*(int *)puVar1 = iVar5" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "iVar11 = *(int *)(puVar12 + -0x3c10);" (assignment_expression "iVar11 = *(int *)(puVar12 + -0x3c10)" identifier = (pointer_expression "*(int *)(puVar12 + -0x3c10)" * (cast_expression "(int *)(puVar12 + -0x3c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + -0x3c10)" ( (binary_expression "puVar12 + -0x3c10" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5)" identifier = (call_expression "(*(code *)PTR_strlen_0007d030)(iVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" ( (pointer_expression "*(code *)PTR_strlen_0007d030" * (cast_expression "(code *)PTR_strlen_0007d030" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "(*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);" (call_expression "(*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3)" (parenthesized_expression "(*(code *)PTR_memmove_0007d148)" ( (pointer_expression "*(code *)PTR_memmove_0007d148" * (cast_expression "(code *)PTR_memmove_0007d148" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3)" ( (binary_expression "iVar5 + iVar11 + iVar4" (binary_expression "iVar5 + iVar11" identifier + identifier) + identifier) , (binary_expression "iVar5 + iVar11" identifier + identifier) , (binary_expression "(1 - iVar11) + iVar3" (parenthesized_expression "(1 - iVar11)" ( (binary_expression "1 - iVar11" number_literal - identifier) )) + identifier) ))) ;) (expression_statement "(*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);" (call_expression "(*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4)" (parenthesized_expression "(*(code *)PTR_strncpy_0007cfd8)" ( (pointer_expression "*(code *)PTR_strncpy_0007cfd8" * (cast_expression "(code *)PTR_strncpy_0007cfd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4)" ( (binary_expression "*(int *)puVar1 + *(int *)(puVar12 + -0x3c10)" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (pointer_expression "*(int *)(puVar12 + -0x3c10)" * (cast_expression "(int *)(puVar12 + -0x3c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + -0x3c10)" ( (binary_expression "puVar12 + -0x3c10" identifier + number_literal) ))))) , identifier , identifier ))) ;) (expression_statement "*(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;" (assignment_expression "*(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4" (pointer_expression "*(int *)(puVar12 + -0x3c10)" * (cast_expression "(int *)(puVar12 + -0x3c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + -0x3c10)" ( (binary_expression "puVar12 + -0x3c10" identifier + number_literal) )))) = (binary_expression "*(int *)(puVar12 + -0x3c10) + iVar4" (pointer_expression "*(int *)(puVar12 + -0x3c10)" * (cast_expression "(int *)(puVar12 + -0x3c10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + -0x3c10)" ( (binary_expression "puVar12 + -0x3c10" identifier + number_literal) )))) + identifier)) ;) })) }) while (parenthesized_expression "(uVar10 < param_2)" ( (binary_expression "uVar10 < param_2" identifier < identifier) )) ;) })) (expression_statement "(*(code *)PTR_free_0007d140)(puVar2);" (call_expression "(*(code *)PTR_free_0007d140)(puVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" ( (pointer_expression "*(code *)PTR_free_0007d140" * (cast_expression "(code *)PTR_free_0007d140" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) (if_statement "if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }" if (parenthesized_expression "(local_2c != *(int *)PTR___stack_chk_guard_0007d12c)" ( (binary_expression "local_2c != *(int *)PTR___stack_chk_guard_0007d12c" identifier != (pointer_expression "*(int *)PTR___stack_chk_guard_0007d12c" * (cast_expression "(int *)PTR___stack_chk_guard_0007d12c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }" { (expression_statement "puVar12 = PTR___stack_chk_fail_0007d0f8;" (assignment_expression "puVar12 = PTR___stack_chk_fail_0007d0f8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0007d0f8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0007d0f8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0007d0f8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0007d0f8" * (cast_expression "(code *)PTR___stack_chk_fail_0007d0f8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0" (pointer_expression "*(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10)" * (cast_expression "(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x4780c) + -0x3c10)" ( (binary_expression "*(int *)(puVar12 + 0x4780c) + -0x3c10" (pointer_expression "*(int *)(puVar12 + 0x4780c)" * (cast_expression "(int *)(puVar12 + 0x4780c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x4780c)" ( (binary_expression "puVar12 + 0x4780c" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + IDENT) , (binary_expression IDENT + IDENT) , (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) + IDENT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + (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)) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (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 IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void do_statusbar_output(undefined4 *param_1,uint param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  uint uVar10;\n  int iVar11;\n  undefined *puVar12;\n  undefined1 auStack_34 [8];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_0007d12c;\n  puVar2 = (undefined1 *)nmalloc(param_2 + 1);\n  if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }\n  (*(code *)PTR_free_0007d140)(puVar2);\n  if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "do_statusbar_output(undefined4 *param_1,uint param_2,int param_3)" (identifier "do_statusbar_output") (parameter_list "(undefined4 *param_1,uint param_2,int param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined1 *puVar6;\n  undefined4 *puVar7;\n  undefined4 uVar8;\n  char *pcVar9;\n  uint uVar10;\n  int iVar11;\n  undefined *puVar12;\n  undefined1 auStack_34 [8];\n  int local_2c;\n  \n  local_2c = *(int *)PTR___stack_chk_guard_0007d12c;\n  puVar2 = (undefined1 *)nmalloc(param_2 + 1);\n  if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }\n  (*(code *)PTR_free_0007d140)(puVar2);\n  if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "char *pcVar9;" (primitive_type "char") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "undefined *puVar12;" (type_identifier "undefined") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "undefined1 auStack_34 [8];" (type_identifier "undefined1") (array_declarator "auStack_34 [8]" (identifier "auStack_34") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0007d12c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0007d12c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0007d12c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0007d12c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0007d12c")))) (; ";")) (expression_statement "puVar2 = (undefined1 *)nmalloc(param_2 + 1);" (assignment_expression "puVar2 = (undefined1 *)nmalloc(param_2 + 1)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)nmalloc(param_2 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "nmalloc(param_2 + 1)" (identifier "nmalloc") (argument_list "(param_2 + 1)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (if_statement "if (param_2 != 0) {\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar7 = param_1 + param_2;\n    puVar6 = puVar2;\n    do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);\n    puVar2[param_2] = 0;\n    puVar1 = PTR_answer_0007c5ec;\n    puVar12 = PTR_DAT_0007c548;\n    uVar10 = 0;\n    do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);\n  }" ({ "{") (expression_statement "puVar7 = param_1 + param_2;" (assignment_expression "puVar7 = param_1 + param_2" (identifier "puVar7") (= "=") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2"))) (; ";")) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" (identifier "puVar6") (= "=") (identifier "puVar2")) (; ";")) (do_statement "do {\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    } while (puVar7 != param_1);" (do "do") (compound_statement "{\n      *puVar6 = (char)*param_1;\n      param_1 = param_1 + 1;\n      puVar6 = puVar6 + 1;\n    }" ({ "{") (expression_statement "*puVar6 = (char)*param_1;" (assignment_expression "*puVar6 = (char)*param_1" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (cast_expression "(char)*param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar7 != param_1)" (( "(") (binary_expression "puVar7 != param_1" (identifier "puVar7") (!= "!=") (identifier "param_1")) () ")")) (; ";")) (expression_statement "puVar2[param_2] = 0;" (assignment_expression "puVar2[param_2] = 0" (subscript_expression "puVar2[param_2]" (identifier "puVar2") ([ "[") (identifier "param_2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = PTR_answer_0007c5ec;" (assignment_expression "puVar1 = PTR_answer_0007c5ec" (identifier "puVar1") (= "=") (identifier "PTR_answer_0007c5ec")) (; ";")) (expression_statement "puVar12 = PTR_DAT_0007c548;" (assignment_expression "puVar12 = PTR_DAT_0007c548" (identifier "puVar12") (= "=") (identifier "PTR_DAT_0007c548")) (; ";")) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    } while (uVar10 < param_2);" (do "do") (compound_statement "{\n      pcVar9 = puVar2 + uVar10;\n      if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }\n      iVar4 = parse_mbchar(pcVar9,auStack_34,0);\n      uVar10 = uVar10 + iVar4;\n      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }\n    }" ({ "{") (expression_statement "pcVar9 = puVar2 + uVar10;" (assignment_expression "pcVar9 = puVar2 + uVar10" (identifier "pcVar9") (= "=") (binary_expression "puVar2 + uVar10" (identifier "puVar2") (+ "+") (identifier "uVar10"))) (; ";")) (if_statement "if (*pcVar9 == '\0') {\n        *pcVar9 = '\n';\n      }" (if "if") (parenthesized_expression "(*pcVar9 == '\0')" (( "(") (binary_expression "*pcVar9 == '\0'" (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        *pcVar9 = '\n';\n      }" ({ "{") (expression_statement "*pcVar9 = '\n';" (assignment_expression "*pcVar9 = '\n'" (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) (= "=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) (; ";")) (} "}"))) (expression_statement "iVar4 = parse_mbchar(pcVar9,auStack_34,0);" (assignment_expression "iVar4 = parse_mbchar(pcVar9,auStack_34,0)" (identifier "iVar4") (= "=") (call_expression "parse_mbchar(pcVar9,auStack_34,0)" (identifier "parse_mbchar") (argument_list "(pcVar9,auStack_34,0)" (( "(") (identifier "pcVar9") (, ",") (identifier "auStack_34") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "uVar10 = uVar10 + iVar4;" (assignment_expression "uVar10 = uVar10 + iVar4" (identifier "uVar10") (= "=") (binary_expression "uVar10 + iVar4" (identifier "uVar10") (+ "+") (identifier "iVar4"))) (; ";")) (if_statement "if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }" (if "if") (parenthesized_expression "((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0))" (( "(") (binary_expression "(param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)" (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)" (( "(") (comma_expression "iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0" (assignment_expression "iVar5 = is_ascii_cntrl_char((int)*pcVar9)" (identifier "iVar5") (= "=") (call_expression "is_ascii_cntrl_char((int)*pcVar9)" (identifier "is_ascii_cntrl_char") (argument_list "((int)*pcVar9)" (( "(") (cast_expression "(int)*pcVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9"))) () ")")))) (, ",") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n        uVar8 = *(undefined4 *)puVar1;\n        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);\n        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);\n        *(int *)puVar1 = iVar5;\n        iVar11 = *(int *)(puVar12 + -0x3c10);\n        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);\n        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);\n        (*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);\n        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;\n      }" ({ "{") (expression_statement "uVar8 = *(undefined4 *)puVar1;" (assignment_expression "uVar8 = *(undefined4 *)puVar1" (identifier "uVar8") (= "=") (pointer_expression "*(undefined4 *)puVar1" (* "*") (cast_expression "(undefined4 *)puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strlen_0007d030)(uVar8)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" (( "(") (pointer_expression "*(code *)PTR_strlen_0007d030" (* "*") (cast_expression "(code *)PTR_strlen_0007d030" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0007d030"))) () ")")) (argument_list "(uVar8)" (( "(") (identifier "uVar8") () ")")))) (; ";")) (expression_statement "iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);" (assignment_expression "iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5)" (identifier "iVar5") (= "=") (call_expression "nrealloc(uVar8,iVar4 + 1 + iVar5)" (identifier "nrealloc") (argument_list "(uVar8,iVar4 + 1 + iVar5)" (( "(") (identifier "uVar8") (, ",") (binary_expression "iVar4 + 1 + iVar5" (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar5")) () ")")))) (; ";")) (expression_statement "*(int *)puVar1 = iVar5;" (assignment_expression "*(int *)puVar1 = iVar5" (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar11 = *(int *)(puVar12 + -0x3c10);" (assignment_expression "iVar11 = *(int *)(puVar12 + -0x3c10)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(puVar12 + -0x3c10)" (* "*") (cast_expression "(int *)(puVar12 + -0x3c10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + -0x3c10)" (( "(") (binary_expression "puVar12 + -0x3c10" (identifier "puVar12") (+ "+") (number_literal "-0x3c10")) () ")"))))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_0007d030)(iVar5)" (parenthesized_expression "(*(code *)PTR_strlen_0007d030)" (( "(") (pointer_expression "*(code *)PTR_strlen_0007d030" (* "*") (cast_expression "(code *)PTR_strlen_0007d030" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0007d030"))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);" (call_expression "(*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3)" (parenthesized_expression "(*(code *)PTR_memmove_0007d148)" (( "(") (pointer_expression "*(code *)PTR_memmove_0007d148" (* "*") (cast_expression "(code *)PTR_memmove_0007d148" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_0007d148"))) () ")")) (argument_list "(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3)" (( "(") (binary_expression "iVar5 + iVar11 + iVar4" (binary_expression "iVar5 + iVar11" (identifier "iVar5") (+ "+") (identifier "iVar11")) (+ "+") (identifier "iVar4")) (, ",") (binary_expression "iVar5 + iVar11" (identifier "iVar5") (+ "+") (identifier "iVar11")) (, ",") (binary_expression "(1 - iVar11) + iVar3" (parenthesized_expression "(1 - iVar11)" (( "(") (binary_expression "1 - iVar11" (number_literal "1") (- "-") (identifier "iVar11")) () ")")) (+ "+") (identifier "iVar3")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);" (call_expression "(*(code *)PTR_strncpy_0007cfd8)\n                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4)" (parenthesized_expression "(*(code *)PTR_strncpy_0007cfd8)" (( "(") (pointer_expression "*(code *)PTR_strncpy_0007cfd8" (* "*") (cast_expression "(code *)PTR_strncpy_0007cfd8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncpy_0007cfd8"))) () ")")) (argument_list "(*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4)" (( "(") (binary_expression "*(int *)puVar1 + *(int *)(puVar12 + -0x3c10)" (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (+ "+") (pointer_expression "*(int *)(puVar12 + -0x3c10)" (* "*") (cast_expression "(int *)(puVar12 + -0x3c10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + -0x3c10)" (( "(") (binary_expression "puVar12 + -0x3c10" (identifier "puVar12") (+ "+") (number_literal "-0x3c10")) () ")"))))) (, ",") (identifier "auStack_34") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "*(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;" (assignment_expression "*(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4" (pointer_expression "*(int *)(puVar12 + -0x3c10)" (* "*") (cast_expression "(int *)(puVar12 + -0x3c10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + -0x3c10)" (( "(") (binary_expression "puVar12 + -0x3c10" (identifier "puVar12") (+ "+") (number_literal "-0x3c10")) () ")")))) (= "=") (binary_expression "*(int *)(puVar12 + -0x3c10) + iVar4" (pointer_expression "*(int *)(puVar12 + -0x3c10)" (* "*") (cast_expression "(int *)(puVar12 + -0x3c10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + -0x3c10)" (( "(") (binary_expression "puVar12 + -0x3c10" (identifier "puVar12") (+ "+") (number_literal "-0x3c10")) () ")")))) (+ "+") (identifier "iVar4"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(uVar10 < param_2)" (( "(") (binary_expression "uVar10 < param_2" (identifier "uVar10") (< "<") (identifier "param_2")) () ")")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0007d140)(puVar2);" (call_expression "(*(code *)PTR_free_0007d140)(puVar2)" (parenthesized_expression "(*(code *)PTR_free_0007d140)" (( "(") (pointer_expression "*(code *)PTR_free_0007d140" (* "*") (cast_expression "(code *)PTR_free_0007d140" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0007d140"))) () ")")) (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (if_statement "if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(local_2c != *(int *)PTR___stack_chk_guard_0007d12c)" (( "(") (binary_expression "local_2c != *(int *)PTR___stack_chk_guard_0007d12c" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)PTR___stack_chk_guard_0007d12c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0007d12c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0007d12c")))) () ")")) (compound_statement "{\n    puVar12 = PTR___stack_chk_fail_0007d0f8;\n    (*(code *)PTR___stack_chk_fail_0007d0f8)();\n    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;\n    return;\n  }" ({ "{") (expression_statement "puVar12 = PTR___stack_chk_fail_0007d0f8;" (assignment_expression "puVar12 = PTR___stack_chk_fail_0007d0f8" (identifier "puVar12") (= "=") (identifier "PTR___stack_chk_fail_0007d0f8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0007d0f8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0007d0f8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0007d0f8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0007d0f8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0007d0f8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0007d0f8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;" (assignment_expression "*(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0" (pointer_expression "*(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10)" (* "*") (cast_expression "(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar12 + 0x4780c) + -0x3c10)" (( "(") (binary_expression "*(int *)(puVar12 + 0x4780c) + -0x3c10" (pointer_expression "*(int *)(puVar12 + 0x4780c)" (* "*") (cast_expression "(int *)(puVar12 + 0x4780c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 0x4780c)" (( "(") (binary_expression "puVar12 + 0x4780c" (identifier "puVar12") (+ "+") (number_literal "0x4780c")) () ")")))) (+ "+") (number_literal "-0x3c10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier)))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (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 (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) 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)))))) (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))))))) condition: (parenthesized_expression (binary_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 (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 (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (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: (number_literal))))) right: (number_literal))) (return_statement))) (return_statement))))

void MASKED(undefined4 *param_1,uint param_2,int param_3)

{
  undefined *puVar1;
  undefined1 *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined1 *puVar6;
  undefined4 *puVar7;
  undefined4 uVar8;
  char *pcVar9;
  uint uVar10;
  int iVar11;
  undefined *puVar12;
  undefined1 auStack_34 [8];
  int local_2c;
  
  local_2c = *(int *)PTR___stack_chk_guard_0007d12c;
  puVar2 = (undefined1 *)nmalloc(param_2 + 1);
  if (param_2 != 0) {
    puVar7 = param_1 + param_2;
    puVar6 = puVar2;
    do {
      *puVar6 = (char)*param_1;
      param_1 = param_1 + 1;
      puVar6 = puVar6 + 1;
    } while (puVar7 != param_1);
    puVar2[param_2] = 0;
    puVar1 = PTR_answer_0007c5ec;
    puVar12 = PTR_DAT_0007c548;
    uVar10 = 0;
    do {
      pcVar9 = puVar2 + uVar10;
      if (*pcVar9 == '\0') {
        *pcVar9 = '\n';
      }
      iVar4 = parse_mbchar(pcVar9,auStack_34,0);
      uVar10 = uVar10 + iVar4;
      if ((param_3 == 0) || (iVar5 = is_ascii_cntrl_char((int)*pcVar9), iVar5 == 0)) {
        uVar8 = *(undefined4 *)puVar1;
        iVar5 = (*(code *)PTR_strlen_0007d030)(uVar8);
        iVar5 = nrealloc(uVar8,iVar4 + 1 + iVar5);
        *(int *)puVar1 = iVar5;
        iVar11 = *(int *)(puVar12 + -0x3c10);
        iVar3 = (*(code *)PTR_strlen_0007d030)(iVar5);
        (*(code *)PTR_memmove_0007d148)(iVar5 + iVar11 + iVar4,iVar5 + iVar11,(1 - iVar11) + iVar3);
        (*(code *)PTR_strncpy_0007cfd8)
                  (*(int *)puVar1 + *(int *)(puVar12 + -0x3c10),auStack_34,iVar4);
        *(int *)(puVar12 + -0x3c10) = *(int *)(puVar12 + -0x3c10) + iVar4;
      }
    } while (uVar10 < param_2);
  }
  (*(code *)PTR_free_0007d140)(puVar2);
  if (local_2c != *(int *)PTR___stack_chk_guard_0007d12c) {
    puVar12 = PTR___stack_chk_fail_0007d0f8;
    (*(code *)PTR___stack_chk_fail_0007d0f8)();
    *(undefined4 *)(*(int *)(puVar12 + 0x4780c) + -0x3c10) = 0;
    return;
  }
  return;
}

