
/* WARNING: Unknown calling convention */

int yy_readline_get(void)

{
  byte bVar1;
  int *piVar2;
  undefined *puVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  undefined *puVar7;
  byte *pbVar8;
  undefined *puVar9;
  
  puVar3 = PTR_current_readline_line_00144894;
  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;
  iVar4 = *(int *)PTR_current_readline_line_index_00144890;
  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);
  bVar1 = *pbVar8;
  piVar2 = (int *)PTR_current_readline_line_index_00144890;
  while( true ) {
    if (bVar1 != 0) {
      *piVar2 = iVar4 + 1;
      return (uint)*pbVar8;
    }
    (*(code *)PTR_free_001464fc)();
    *(undefined4 *)puVar3 = 0;
LAB_00031624:
    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {
      (*(code *)PTR_initialize_readline_001448bc)();
      iVar4 = *(int *)PTR_job_control_001448a8;
    }
    else {
      iVar4 = *(int *)PTR_job_control_001448a8;
    }
    if (iVar4 != 0) {
      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);
    }
    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);
    puVar7 = PTR_initialize_traps_00144624;
    if (iVar4 == 0) {
      puVar7 = (undefined *)
               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);
    }
    iVar4 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);
    sh_unset_nodelay_mode(iVar4);
    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;
    if (puVar9 == (undefined *)0x0) {
      puVar9 = PTR_DAT_001445ac + -0x6800;
    }
    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);
    *(undefined4 *)puVar3 = uVar5;
    if (*(int *)PTR_terminating_signal_00144834 != 0) {
      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);
    }
    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);
    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {
      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);
    }
    puVar7 = PTR_strlen_00146390;
    piVar2 = (int *)PTR_current_readline_line_index_00144890;
    iVar4 = *(int *)puVar3;
    if (iVar4 == 0) break;
    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;
    iVar6 = (*(code *)puVar7)(iVar4);
    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);
    *(int *)puVar3 = iVar4;
    *(undefined1 *)(iVar4 + iVar6) = 10;
    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;
    iVar4 = *piVar2;
    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);
    bVar1 = *pbVar8;
  }
  return -1;
}



uint FUN_000315c0(void)

{
  byte bVar1;
  int *piVar2;
  undefined *puVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  undefined *puVar7;
  byte *pbVar8;
  undefined *puVar9;
  
  puVar3 = PTR_current_readline_line_00144894;
  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;
  iVar4 = *(int *)PTR_current_readline_line_index_00144890;
  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);
  bVar1 = *pbVar8;
  piVar2 = (int *)PTR_current_readline_line_index_00144890;
  while( true ) {
    if (bVar1 != 0) {
      *piVar2 = iVar4 + 1;
      return (uint)*pbVar8;
    }
    (*(code *)PTR_free_001464fc)();
    *(undefined4 *)puVar3 = 0;
LAB_00031624:
    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {
      (*(code *)PTR_initialize_readline_001448bc)();
      iVar4 = *(int *)PTR_job_control_001448a8;
    }
    else {
      iVar4 = *(int *)PTR_job_control_001448a8;
    }
    if (iVar4 != 0) {
      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);
    }
    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);
    puVar7 = PTR_initialize_traps_00144624;
    if (iVar4 == 0) {
      puVar7 = (undefined *)
               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);
    }
    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);
    sh_unset_nodelay_mode(uVar5);
    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;
    if (puVar9 == (undefined *)0x0) {
      puVar9 = PTR_DAT_001445ac + -0x6800;
    }
    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);
    *(undefined4 *)puVar3 = uVar5;
    if (*(int *)PTR_terminating_signal_00144834 != 0) {
      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);
    }
    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);
    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {
      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);
    }
    puVar7 = PTR_strlen_00146390;
    piVar2 = (int *)PTR_current_readline_line_index_00144890;
    iVar4 = *(int *)puVar3;
    if (iVar4 == 0) break;
    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;
    iVar6 = (*(code *)puVar7)(iVar4);
    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);
    *(int *)puVar3 = iVar4;
    *(undefined1 *)(iVar4 + iVar6) = 10;
    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;
    iVar4 = *piVar2;
    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);
    bVar1 = *pbVar8;
  }
  return 0xffffffff;
}


lui gp,0x12
addiu gp,gp,-0x5080
addu gp,gp,t9
addiu sp,sp,-0x28
sw s0,0x18(sp)
lw s0,-0x7cac(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
lw a0,0x0(s0)
beq a0,zero,0x00031624
_lw v0,-0x7c9c(gp)
lw s1,-0x7cb0(gp)
lw v0,0x0(s1)
addu v1,a0,v0
lb a1,0x0(v1)
bne a1,zero,0x0003174c
_lw ra,0x24(sp)
lw t9,-0x6044(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw zero,0x0(s0)
lw v0,-0x7c9c(gp)
lw v0,0x0(v0)
beq v0,zero,0x0003179c
_lw v0,-0x7c98(gp)
lw v0,0x0(v0)
bne v0,zero,0x000317c0
_lw v0,-0x7c94(gp)
lw t9,-0x7cc0(gp)
jalr t9
_li a0,0x2
beq v0,zero,0x00031780
_lw gp,0x10(sp)
lw s1,-0x7f1c(gp)
lw v0,-0x7c90(gp)
lw t9,-0x6218(gp)
jalr t9
_lw a0,0x0(v0)
lw gp,0x10(sp)
lw t9,-0x7d8c(gp)
bal 0x0004112c
_or a0,v0,zero
lw gp,0x10(sp)
lw v0,-0x7c8c(gp)
lw a0,0x0(v0)
beq a0,zero,0x000317d8
_nop
lw t9,-0x7c88(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw v0,0x0(s0)
lw v1,-0x7d0c(gp)
lw v0,0x0(v1)
bne v0,zero,0x0003176c
_lw t9,-0x7d08(gp)
lw t9,-0x7cc0(gp)
jalr t9
_li a0,0x2
bne v0,zero,0x000316dc
_lw gp,0x10(sp)
lw v0,-0x7f1c(gp)
beq s1,v0,0x000316dc
_lw t9,-0x7cf8(gp)
li a0,0x2
jalr t9
_or a1,s1,zero
lw gp,0x10(sp)
lw s2,0x0(s0)
beq s2,zero,0x000317e4
_lw s1,-0x7cb0(gp)
or a0,s2,zero
lw t9,-0x61b0(gp)
jalr t9
_sw zero,0x0(s1)
or a0,s2,zero
lw gp,0x10(sp)
addiu a1,v0,0x2
lw t9,-0x7e04(gp)
jalr t9
_or s2,v0,zero
addu v1,v0,s2
lw gp,0x10(sp)
sw v0,0x0(s0)
li v0,0xa
sb v0,0x0(v1)
lw v0,0x0(s0)
addu v0,v0,s2
sb zero,0x1(v0)
lw a0,0x0(s0)
lw v0,0x0(s1)
addu v1,a0,v0
lb a1,0x0(v1)
beq a1,zero,0x00031610
_lw t9,-0x6044(gp)
lw ra,0x24(sp)
addiu v0,v0,0x1
lw s2,0x20(sp)
lw s0,0x18(sp)
sw v0,0x0(s1)
lbu v0,0x0(v1)
lw s1,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw a0,0x0(v1)
jalr t9
_nop
b 0x000316ac
_lw gp,0x10(sp)
lw t9,-0x7cf8(gp)
lw a1,-0x7cbc(gp)
jalr t9
_li a0,0x2
lw gp,0x10(sp)
b 0x00031654
_or s1,v0,zero
lw t9,-0x7c84(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw v0,-0x7c98(gp)
lw v0,0x0(v0)
beq v0,zero,0x00031640
_lw t9,-0x7cc0(gp)
lw v0,-0x7c94(gp)
or a1,zero,zero
lw t9,-0x7c80(gp)
jalr t9
_lw a0,0x0(v0)
b 0x0003163c
_lw gp,0x10(sp)
lw a0,-0x7f94(gp)
b 0x00031688
_addiu a0,a0,-0x6800
lw ra,0x24(sp)
li v0,-0x1
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "uint FUN_000315c0(void)\n\n{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "uint FUN_000315c0(void)\n\n{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_000315c0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return 0xffffffff;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (expression_statement "puVar3 = PTR_current_readline_line_00144894;" (assignment_expression "puVar3 = PTR_current_readline_line_00144894" identifier = identifier) ;) (if_statement "if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;" if (parenthesized_expression "(*(int *)PTR_current_readline_line_00144894 == 0)" ( (binary_expression "*(int *)PTR_current_readline_line_00144894 == 0" (pointer_expression "*(int *)PTR_current_readline_line_00144894" * (cast_expression "(int *)PTR_current_readline_line_00144894" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (goto_statement "goto LAB_00031624;" goto statement_identifier ;)) (expression_statement "iVar4 = *(int *)PTR_current_readline_line_index_00144890;" (assignment_expression "iVar4 = *(int *)PTR_current_readline_line_index_00144890" identifier = (pointer_expression "*(int *)PTR_current_readline_line_index_00144890" * (cast_expression "(int *)PTR_current_readline_line_index_00144890" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);" (assignment_expression "pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4)" identifier = (cast_expression "(byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_current_readline_line_00144894 + iVar4)" ( (binary_expression "*(int *)PTR_current_readline_line_00144894 + iVar4" (pointer_expression "*(int *)PTR_current_readline_line_00144894" * (cast_expression "(int *)PTR_current_readline_line_00144894" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "piVar2 = (int *)PTR_current_readline_line_index_00144890;" (assignment_expression "piVar2 = (int *)PTR_current_readline_line_index_00144890" identifier = (cast_expression "(int *)PTR_current_readline_line_index_00144890" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }" { (if_statement "if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }" { (expression_statement "*piVar2 = iVar4 + 1;" (assignment_expression "*piVar2 = iVar4 + 1" (pointer_expression "*piVar2" * identifier) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (return_statement "return (uint)*pbVar8;" return (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier) ;) })) (expression_statement "(*(code *)PTR_free_001464fc)();" (call_expression "(*(code *)PTR_free_001464fc)()" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)puVar3 = 0;" (assignment_expression "*(undefined4 *)puVar3 = 0" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (labeled_statement "LAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" statement_identifier : (if_statement "if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" if (parenthesized_expression "(*(int *)PTR_bash_readline_initialized_001448a4 == 0)" ( (binary_expression "*(int *)PTR_bash_readline_initialized_001448a4 == 0" (pointer_expression "*(int *)PTR_bash_readline_initialized_001448a4" * (cast_expression "(int *)PTR_bash_readline_initialized_001448a4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" { (expression_statement "(*(code *)PTR_initialize_readline_001448bc)();" (call_expression "(*(code *)PTR_initialize_readline_001448bc)()" (parenthesized_expression "(*(code *)PTR_initialize_readline_001448bc)" ( (pointer_expression "*(code *)PTR_initialize_readline_001448bc" * (cast_expression "(code *)PTR_initialize_readline_001448bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" identifier = (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" else (compound_statement "{\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" { (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" identifier = (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })))) (if_statement "if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }" { (expression_statement "(*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);" (call_expression "(*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0)" (parenthesized_expression "(*(code *)PTR_give_terminal_to_001448c0)" ( (pointer_expression "*(code *)PTR_give_terminal_to_001448c0" * (cast_expression "(code *)PTR_give_terminal_to_001448c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_shell_pgrp_001448ac,0)" ( (pointer_expression "*(undefined4 *)PTR_shell_pgrp_001448ac" * (cast_expression "(undefined4 *)PTR_shell_pgrp_001448ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal ))) ;) })) (expression_statement "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);" (assignment_expression "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2)" identifier = (call_expression "(*(code *)PTR_signal_is_ignored_00144880)(2)" (parenthesized_expression "(*(code *)PTR_signal_is_ignored_00144880)" ( (pointer_expression "*(code *)PTR_signal_is_ignored_00144880" * (cast_expression "(code *)PTR_signal_is_ignored_00144880" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2)" ( number_literal )))) ;) (expression_statement "puVar7 = PTR_initialize_traps_00144624;" (assignment_expression "puVar7 = PTR_initialize_traps_00144624" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }" { (expression_statement "puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);" (assignment_expression "puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" identifier = (cast_expression "(undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" (parenthesized_expression "(*(code *)PTR_set_signal_handler_00144848)" ( (pointer_expression "*(code *)PTR_set_signal_handler_00144848" * (cast_expression "(code *)PTR_set_signal_handler_00144848" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,PTR_sigint_sighandler_00144884)" ( number_literal , identifier ))))) ;) })) (expression_statement "uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);" (assignment_expression "uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0)" identifier = (call_expression "(*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" ( (pointer_expression "*(code *)PTR_fileno_00146328" * (cast_expression "(code *)PTR_fileno_00146328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_rl_instream_001448b0)" ( (pointer_expression "*(undefined4 *)PTR_rl_instream_001448b0" * (cast_expression "(undefined4 *)PTR_rl_instream_001448b0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "sh_unset_nodelay_mode(uVar5);" (call_expression "sh_unset_nodelay_mode(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;" (assignment_expression "puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4" identifier = (pointer_expression "*(undefined **)PTR_current_readline_prompt_001448b4" * (cast_expression "(undefined **)PTR_current_readline_prompt_001448b4" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }" if (parenthesized_expression "(puVar9 == (undefined *)0x0)" ( (binary_expression "puVar9 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }" { (expression_statement "puVar9 = PTR_DAT_001445ac + -0x6800;" (assignment_expression "puVar9 = PTR_DAT_001445ac + -0x6800" identifier = (binary_expression "PTR_DAT_001445ac + -0x6800" identifier + number_literal)) ;) })) (expression_statement "uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);" (assignment_expression "uVar5 = (*(code *)PTR_readline_001448b8)(puVar9)" identifier = (call_expression "(*(code *)PTR_readline_001448b8)(puVar9)" (parenthesized_expression "(*(code *)PTR_readline_001448b8)" ( (pointer_expression "*(code *)PTR_readline_001448b8" * (cast_expression "(code *)PTR_readline_001448b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier )))) ;) (expression_statement "*(undefined4 *)puVar3 = uVar5;" (assignment_expression "*(undefined4 *)puVar3 = uVar5" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }" if (parenthesized_expression "(*(int *)PTR_terminating_signal_00144834 != 0)" ( (binary_expression "*(int *)PTR_terminating_signal_00144834 != 0" (pointer_expression "*(int *)PTR_terminating_signal_00144834" * (cast_expression "(int *)PTR_terminating_signal_00144834" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }" { (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" ( (pointer_expression "*(code *)PTR_termsig_handler_00144838" * (cast_expression "(code *)PTR_termsig_handler_00144838" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_terminating_signal_00144834)" ( (pointer_expression "*(undefined4 *)PTR_terminating_signal_00144834" * (cast_expression "(undefined4 *)PTR_terminating_signal_00144834" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) (expression_statement "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);" (assignment_expression "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2)" identifier = (call_expression "(*(code *)PTR_signal_is_ignored_00144880)(2)" (parenthesized_expression "(*(code *)PTR_signal_is_ignored_00144880)" ( (pointer_expression "*(code *)PTR_signal_is_ignored_00144880" * (cast_expression "(code *)PTR_signal_is_ignored_00144880" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2)" ( number_literal )))) ;) (if_statement "if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }" if (parenthesized_expression "((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624))" ( (binary_expression "(iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(puVar7 != PTR_initialize_traps_00144624)" ( (binary_expression "puVar7 != PTR_initialize_traps_00144624" identifier != identifier) ))) )) (compound_statement "{\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }" { (expression_statement "(*(code *)PTR_set_signal_handler_00144848)(2,puVar7);" (call_expression "(*(code *)PTR_set_signal_handler_00144848)(2,puVar7)" (parenthesized_expression "(*(code *)PTR_set_signal_handler_00144848)" ( (pointer_expression "*(code *)PTR_set_signal_handler_00144848" * (cast_expression "(code *)PTR_set_signal_handler_00144848" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,puVar7)" ( number_literal , identifier ))) ;) })) (expression_statement "puVar7 = PTR_strlen_00146390;" (assignment_expression "puVar7 = PTR_strlen_00146390" identifier = identifier) ;) (expression_statement "piVar2 = (int *)PTR_current_readline_line_index_00144890;" (assignment_expression "piVar2 = (int *)PTR_current_readline_line_index_00144890" identifier = (cast_expression "(int *)PTR_current_readline_line_index_00144890" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" identifier = (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(undefined4 *)PTR_current_readline_line_index_00144890 = 0;" (assignment_expression "*(undefined4 *)PTR_current_readline_line_index_00144890 = 0" (pointer_expression "*(undefined4 *)PTR_current_readline_line_index_00144890" * (cast_expression "(undefined4 *)PTR_current_readline_line_index_00144890" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "iVar6 = (*(code *)puVar7)(iVar4);" (assignment_expression "iVar6 = (*(code *)puVar7)(iVar4)" identifier = (call_expression "(*(code *)puVar7)(iVar4)" (parenthesized_expression "(*(code *)puVar7)" ( (pointer_expression "*(code *)puVar7" * (cast_expression "(code *)puVar7" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);" (assignment_expression "iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2)" identifier = (call_expression "(*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2)" (parenthesized_expression "(*(code *)PTR_xrealloc_0014473c)" ( (pointer_expression "*(code *)PTR_xrealloc_0014473c" * (cast_expression "(code *)PTR_xrealloc_0014473c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,iVar6 + 2)" ( identifier , (binary_expression "iVar6 + 2" identifier + number_literal) )))) ;) (expression_statement "*(int *)puVar3 = iVar4;" (assignment_expression "*(int *)puVar3 = iVar4" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined1 *)(iVar4 + iVar6) = 10;" (assignment_expression "*(undefined1 *)(iVar4 + iVar6) = 10" (pointer_expression "*(undefined1 *)(iVar4 + iVar6)" * (cast_expression "(undefined1 *)(iVar4 + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6)" ( (binary_expression "iVar4 + iVar6" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;" (assignment_expression "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0" (pointer_expression "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1)" * (cast_expression "(undefined1 *)(*(int *)puVar3 + iVar6 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar3 + iVar6 + 1)" ( (binary_expression "*(int *)puVar3 + iVar6 + 1" (binary_expression "*(int *)puVar3 + iVar6" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "pbVar8 = (byte *)(*(int *)puVar3 + iVar4);" (assignment_expression "pbVar8 = (byte *)(*(int *)puVar3 + iVar4)" identifier = (cast_expression "(byte *)(*(int *)puVar3 + iVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar3 + iVar4)" ( (binary_expression "*(int *)puVar3 + iVar4" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint yy_readline_get(void)\n\n{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    iVar4 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(iVar4);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return -1;\n}\n\n" comment (function_definition "int yy_readline_get(void)\n\n{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    iVar4 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(iVar4);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return -1;\n}" primitive_type (function_declarator "yy_readline_get(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    iVar4 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(iVar4);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return -1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (expression_statement "puVar3 = PTR_current_readline_line_00144894;" (assignment_expression "puVar3 = PTR_current_readline_line_00144894" identifier = identifier) ;) (if_statement "if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;" if (parenthesized_expression "(*(int *)PTR_current_readline_line_00144894 == 0)" ( (binary_expression "*(int *)PTR_current_readline_line_00144894 == 0" (pointer_expression "*(int *)PTR_current_readline_line_00144894" * (cast_expression "(int *)PTR_current_readline_line_00144894" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (goto_statement "goto LAB_00031624;" goto statement_identifier ;)) (expression_statement "iVar4 = *(int *)PTR_current_readline_line_index_00144890;" (assignment_expression "iVar4 = *(int *)PTR_current_readline_line_index_00144890" identifier = (pointer_expression "*(int *)PTR_current_readline_line_index_00144890" * (cast_expression "(int *)PTR_current_readline_line_index_00144890" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);" (assignment_expression "pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4)" identifier = (cast_expression "(byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_current_readline_line_00144894 + iVar4)" ( (binary_expression "*(int *)PTR_current_readline_line_00144894 + iVar4" (pointer_expression "*(int *)PTR_current_readline_line_00144894" * (cast_expression "(int *)PTR_current_readline_line_00144894" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "piVar2 = (int *)PTR_current_readline_line_index_00144890;" (assignment_expression "piVar2 = (int *)PTR_current_readline_line_index_00144890" identifier = (cast_expression "(int *)PTR_current_readline_line_index_00144890" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    iVar4 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(iVar4);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    iVar4 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(iVar4);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }" { (if_statement "if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }" { (expression_statement "*piVar2 = iVar4 + 1;" (assignment_expression "*piVar2 = iVar4 + 1" (pointer_expression "*piVar2" * identifier) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (return_statement "return (uint)*pbVar8;" return (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier) ;) })) (expression_statement "(*(code *)PTR_free_001464fc)();" (call_expression "(*(code *)PTR_free_001464fc)()" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)puVar3 = 0;" (assignment_expression "*(undefined4 *)puVar3 = 0" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (labeled_statement "LAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" statement_identifier : (if_statement "if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" if (parenthesized_expression "(*(int *)PTR_bash_readline_initialized_001448a4 == 0)" ( (binary_expression "*(int *)PTR_bash_readline_initialized_001448a4 == 0" (pointer_expression "*(int *)PTR_bash_readline_initialized_001448a4" * (cast_expression "(int *)PTR_bash_readline_initialized_001448a4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" { (expression_statement "(*(code *)PTR_initialize_readline_001448bc)();" (call_expression "(*(code *)PTR_initialize_readline_001448bc)()" (parenthesized_expression "(*(code *)PTR_initialize_readline_001448bc)" ( (pointer_expression "*(code *)PTR_initialize_readline_001448bc" * (cast_expression "(code *)PTR_initialize_readline_001448bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" identifier = (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" else (compound_statement "{\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" { (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" identifier = (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })))) (if_statement "if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }" { (expression_statement "(*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);" (call_expression "(*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0)" (parenthesized_expression "(*(code *)PTR_give_terminal_to_001448c0)" ( (pointer_expression "*(code *)PTR_give_terminal_to_001448c0" * (cast_expression "(code *)PTR_give_terminal_to_001448c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_shell_pgrp_001448ac,0)" ( (pointer_expression "*(undefined4 *)PTR_shell_pgrp_001448ac" * (cast_expression "(undefined4 *)PTR_shell_pgrp_001448ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal ))) ;) })) (expression_statement "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);" (assignment_expression "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2)" identifier = (call_expression "(*(code *)PTR_signal_is_ignored_00144880)(2)" (parenthesized_expression "(*(code *)PTR_signal_is_ignored_00144880)" ( (pointer_expression "*(code *)PTR_signal_is_ignored_00144880" * (cast_expression "(code *)PTR_signal_is_ignored_00144880" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2)" ( number_literal )))) ;) (expression_statement "puVar7 = PTR_initialize_traps_00144624;" (assignment_expression "puVar7 = PTR_initialize_traps_00144624" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }" { (expression_statement "puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);" (assignment_expression "puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" identifier = (cast_expression "(undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" (parenthesized_expression "(*(code *)PTR_set_signal_handler_00144848)" ( (pointer_expression "*(code *)PTR_set_signal_handler_00144848" * (cast_expression "(code *)PTR_set_signal_handler_00144848" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,PTR_sigint_sighandler_00144884)" ( number_literal , identifier ))))) ;) })) (expression_statement "iVar4 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);" (assignment_expression "iVar4 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0)" identifier = (call_expression "(*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" ( (pointer_expression "*(code *)PTR_fileno_00146328" * (cast_expression "(code *)PTR_fileno_00146328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_rl_instream_001448b0)" ( (pointer_expression "*(undefined4 *)PTR_rl_instream_001448b0" * (cast_expression "(undefined4 *)PTR_rl_instream_001448b0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "sh_unset_nodelay_mode(iVar4);" (call_expression "sh_unset_nodelay_mode(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (expression_statement "puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;" (assignment_expression "puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4" identifier = (pointer_expression "*(undefined **)PTR_current_readline_prompt_001448b4" * (cast_expression "(undefined **)PTR_current_readline_prompt_001448b4" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }" if (parenthesized_expression "(puVar9 == (undefined *)0x0)" ( (binary_expression "puVar9 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }" { (expression_statement "puVar9 = PTR_DAT_001445ac + -0x6800;" (assignment_expression "puVar9 = PTR_DAT_001445ac + -0x6800" identifier = (binary_expression "PTR_DAT_001445ac + -0x6800" identifier + number_literal)) ;) })) (expression_statement "uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);" (assignment_expression "uVar5 = (*(code *)PTR_readline_001448b8)(puVar9)" identifier = (call_expression "(*(code *)PTR_readline_001448b8)(puVar9)" (parenthesized_expression "(*(code *)PTR_readline_001448b8)" ( (pointer_expression "*(code *)PTR_readline_001448b8" * (cast_expression "(code *)PTR_readline_001448b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier )))) ;) (expression_statement "*(undefined4 *)puVar3 = uVar5;" (assignment_expression "*(undefined4 *)puVar3 = uVar5" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }" if (parenthesized_expression "(*(int *)PTR_terminating_signal_00144834 != 0)" ( (binary_expression "*(int *)PTR_terminating_signal_00144834 != 0" (pointer_expression "*(int *)PTR_terminating_signal_00144834" * (cast_expression "(int *)PTR_terminating_signal_00144834" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }" { (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" ( (pointer_expression "*(code *)PTR_termsig_handler_00144838" * (cast_expression "(code *)PTR_termsig_handler_00144838" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_terminating_signal_00144834)" ( (pointer_expression "*(undefined4 *)PTR_terminating_signal_00144834" * (cast_expression "(undefined4 *)PTR_terminating_signal_00144834" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) (expression_statement "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);" (assignment_expression "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2)" identifier = (call_expression "(*(code *)PTR_signal_is_ignored_00144880)(2)" (parenthesized_expression "(*(code *)PTR_signal_is_ignored_00144880)" ( (pointer_expression "*(code *)PTR_signal_is_ignored_00144880" * (cast_expression "(code *)PTR_signal_is_ignored_00144880" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2)" ( number_literal )))) ;) (if_statement "if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }" if (parenthesized_expression "((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624))" ( (binary_expression "(iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(puVar7 != PTR_initialize_traps_00144624)" ( (binary_expression "puVar7 != PTR_initialize_traps_00144624" identifier != identifier) ))) )) (compound_statement "{\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }" { (expression_statement "(*(code *)PTR_set_signal_handler_00144848)(2,puVar7);" (call_expression "(*(code *)PTR_set_signal_handler_00144848)(2,puVar7)" (parenthesized_expression "(*(code *)PTR_set_signal_handler_00144848)" ( (pointer_expression "*(code *)PTR_set_signal_handler_00144848" * (cast_expression "(code *)PTR_set_signal_handler_00144848" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,puVar7)" ( number_literal , identifier ))) ;) })) (expression_statement "puVar7 = PTR_strlen_00146390;" (assignment_expression "puVar7 = PTR_strlen_00146390" identifier = identifier) ;) (expression_statement "piVar2 = (int *)PTR_current_readline_line_index_00144890;" (assignment_expression "piVar2 = (int *)PTR_current_readline_line_index_00144890" identifier = (cast_expression "(int *)PTR_current_readline_line_index_00144890" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" identifier = (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(undefined4 *)PTR_current_readline_line_index_00144890 = 0;" (assignment_expression "*(undefined4 *)PTR_current_readline_line_index_00144890 = 0" (pointer_expression "*(undefined4 *)PTR_current_readline_line_index_00144890" * (cast_expression "(undefined4 *)PTR_current_readline_line_index_00144890" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "iVar6 = (*(code *)puVar7)(iVar4);" (assignment_expression "iVar6 = (*(code *)puVar7)(iVar4)" identifier = (call_expression "(*(code *)puVar7)(iVar4)" (parenthesized_expression "(*(code *)puVar7)" ( (pointer_expression "*(code *)puVar7" * (cast_expression "(code *)puVar7" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);" (assignment_expression "iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2)" identifier = (call_expression "(*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2)" (parenthesized_expression "(*(code *)PTR_xrealloc_0014473c)" ( (pointer_expression "*(code *)PTR_xrealloc_0014473c" * (cast_expression "(code *)PTR_xrealloc_0014473c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,iVar6 + 2)" ( identifier , (binary_expression "iVar6 + 2" identifier + number_literal) )))) ;) (expression_statement "*(int *)puVar3 = iVar4;" (assignment_expression "*(int *)puVar3 = iVar4" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined1 *)(iVar4 + iVar6) = 10;" (assignment_expression "*(undefined1 *)(iVar4 + iVar6) = 10" (pointer_expression "*(undefined1 *)(iVar4 + iVar6)" * (cast_expression "(undefined1 *)(iVar4 + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6)" ( (binary_expression "iVar4 + iVar6" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;" (assignment_expression "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0" (pointer_expression "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1)" * (cast_expression "(undefined1 *)(*(int *)puVar3 + iVar6 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar3 + iVar6 + 1)" ( (binary_expression "*(int *)puVar3 + iVar6 + 1" (binary_expression "*(int *)puVar3 + iVar6" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "pbVar8 = (byte *)(*(int *)puVar3 + iVar4);" (assignment_expression "pbVar8 = (byte *)(*(int *)puVar3 + iVar4)" identifier = (cast_expression "(byte *)(*(int *)puVar3 + iVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar3 + iVar4)" ( (binary_expression "*(int *)puVar3 + iVar4" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "uint FUN_000315c0(void)\n\n{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "uint FUN_000315c0(void)\n\n{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_000315c0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return 0xffffffff;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (expression_statement "puVar3 = PTR_current_readline_line_00144894;" (assignment_expression "puVar3 = PTR_current_readline_line_00144894" identifier = identifier) ;) (if_statement "if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;" if (parenthesized_expression "(*(int *)PTR_current_readline_line_00144894 == 0)" ( (binary_expression "*(int *)PTR_current_readline_line_00144894 == 0" (pointer_expression "*(int *)PTR_current_readline_line_00144894" * (cast_expression "(int *)PTR_current_readline_line_00144894" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (goto_statement "goto LAB_00031624;" goto statement_identifier ;)) (expression_statement "iVar4 = *(int *)PTR_current_readline_line_index_00144890;" (assignment_expression "iVar4 = *(int *)PTR_current_readline_line_index_00144890" identifier = (pointer_expression "*(int *)PTR_current_readline_line_index_00144890" * (cast_expression "(int *)PTR_current_readline_line_index_00144890" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);" (assignment_expression "pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4)" identifier = (cast_expression "(byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)PTR_current_readline_line_00144894 + iVar4)" ( (binary_expression "*(int *)PTR_current_readline_line_00144894 + iVar4" (pointer_expression "*(int *)PTR_current_readline_line_00144894" * (cast_expression "(int *)PTR_current_readline_line_00144894" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "piVar2 = (int *)PTR_current_readline_line_index_00144890;" (assignment_expression "piVar2 = (int *)PTR_current_readline_line_index_00144890" identifier = (cast_expression "(int *)PTR_current_readline_line_index_00144890" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (while_statement "while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }" { (if_statement "if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }" { (expression_statement "*piVar2 = iVar4 + 1;" (assignment_expression "*piVar2 = iVar4 + 1" (pointer_expression "*piVar2" * identifier) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (return_statement "return (uint)*pbVar8;" return (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier) ;) })) (expression_statement "(*(code *)PTR_free_001464fc)();" (call_expression "(*(code *)PTR_free_001464fc)()" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)puVar3 = 0;" (assignment_expression "*(undefined4 *)puVar3 = 0" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (labeled_statement "LAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" statement_identifier : (if_statement "if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" if (parenthesized_expression "(*(int *)PTR_bash_readline_initialized_001448a4 == 0)" ( (binary_expression "*(int *)PTR_bash_readline_initialized_001448a4 == 0" (pointer_expression "*(int *)PTR_bash_readline_initialized_001448a4" * (cast_expression "(int *)PTR_bash_readline_initialized_001448a4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" { (expression_statement "(*(code *)PTR_initialize_readline_001448bc)();" (call_expression "(*(code *)PTR_initialize_readline_001448bc)()" (parenthesized_expression "(*(code *)PTR_initialize_readline_001448bc)" ( (pointer_expression "*(code *)PTR_initialize_readline_001448bc" * (cast_expression "(code *)PTR_initialize_readline_001448bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" identifier = (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" else (compound_statement "{\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" { (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" identifier = (pointer_expression "*(int *)PTR_job_control_001448a8" * (cast_expression "(int *)PTR_job_control_001448a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })))) (if_statement "if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }" { (expression_statement "(*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);" (call_expression "(*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0)" (parenthesized_expression "(*(code *)PTR_give_terminal_to_001448c0)" ( (pointer_expression "*(code *)PTR_give_terminal_to_001448c0" * (cast_expression "(code *)PTR_give_terminal_to_001448c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_shell_pgrp_001448ac,0)" ( (pointer_expression "*(undefined4 *)PTR_shell_pgrp_001448ac" * (cast_expression "(undefined4 *)PTR_shell_pgrp_001448ac" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , number_literal ))) ;) })) (expression_statement "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);" (assignment_expression "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2)" identifier = (call_expression "(*(code *)PTR_signal_is_ignored_00144880)(2)" (parenthesized_expression "(*(code *)PTR_signal_is_ignored_00144880)" ( (pointer_expression "*(code *)PTR_signal_is_ignored_00144880" * (cast_expression "(code *)PTR_signal_is_ignored_00144880" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2)" ( number_literal )))) ;) (expression_statement "puVar7 = PTR_initialize_traps_00144624;" (assignment_expression "puVar7 = PTR_initialize_traps_00144624" identifier = identifier) ;) (if_statement "if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }" { (expression_statement "puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);" (assignment_expression "puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" identifier = (cast_expression "(undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" (parenthesized_expression "(*(code *)PTR_set_signal_handler_00144848)" ( (pointer_expression "*(code *)PTR_set_signal_handler_00144848" * (cast_expression "(code *)PTR_set_signal_handler_00144848" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,PTR_sigint_sighandler_00144884)" ( number_literal , identifier ))))) ;) })) (expression_statement "uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);" (assignment_expression "uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0)" identifier = (call_expression "(*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" ( (pointer_expression "*(code *)PTR_fileno_00146328" * (cast_expression "(code *)PTR_fileno_00146328" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_rl_instream_001448b0)" ( (pointer_expression "*(undefined4 *)PTR_rl_instream_001448b0" * (cast_expression "(undefined4 *)PTR_rl_instream_001448b0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "sh_unset_nodelay_mode(uVar5);" (call_expression "sh_unset_nodelay_mode(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))) ;) (expression_statement "puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;" (assignment_expression "puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4" identifier = (pointer_expression "*(undefined **)PTR_current_readline_prompt_001448b4" * (cast_expression "(undefined **)PTR_current_readline_prompt_001448b4" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }" if (parenthesized_expression "(puVar9 == (undefined *)0x0)" ( (binary_expression "puVar9 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }" { (expression_statement "puVar9 = PTR_DAT_001445ac + -0x6800;" (assignment_expression "puVar9 = PTR_DAT_001445ac + -0x6800" identifier = (binary_expression "PTR_DAT_001445ac + -0x6800" identifier + number_literal)) ;) })) (expression_statement "uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);" (assignment_expression "uVar5 = (*(code *)PTR_readline_001448b8)(puVar9)" identifier = (call_expression "(*(code *)PTR_readline_001448b8)(puVar9)" (parenthesized_expression "(*(code *)PTR_readline_001448b8)" ( (pointer_expression "*(code *)PTR_readline_001448b8" * (cast_expression "(code *)PTR_readline_001448b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar9)" ( identifier )))) ;) (expression_statement "*(undefined4 *)puVar3 = uVar5;" (assignment_expression "*(undefined4 *)puVar3 = uVar5" (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }" if (parenthesized_expression "(*(int *)PTR_terminating_signal_00144834 != 0)" ( (binary_expression "*(int *)PTR_terminating_signal_00144834 != 0" (pointer_expression "*(int *)PTR_terminating_signal_00144834" * (cast_expression "(int *)PTR_terminating_signal_00144834" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }" { (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" ( (pointer_expression "*(code *)PTR_termsig_handler_00144838" * (cast_expression "(code *)PTR_termsig_handler_00144838" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_terminating_signal_00144834)" ( (pointer_expression "*(undefined4 *)PTR_terminating_signal_00144834" * (cast_expression "(undefined4 *)PTR_terminating_signal_00144834" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) (expression_statement "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);" (assignment_expression "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2)" identifier = (call_expression "(*(code *)PTR_signal_is_ignored_00144880)(2)" (parenthesized_expression "(*(code *)PTR_signal_is_ignored_00144880)" ( (pointer_expression "*(code *)PTR_signal_is_ignored_00144880" * (cast_expression "(code *)PTR_signal_is_ignored_00144880" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2)" ( number_literal )))) ;) (if_statement "if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }" if (parenthesized_expression "((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624))" ( (binary_expression "(iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(puVar7 != PTR_initialize_traps_00144624)" ( (binary_expression "puVar7 != PTR_initialize_traps_00144624" identifier != identifier) ))) )) (compound_statement "{\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }" { (expression_statement "(*(code *)PTR_set_signal_handler_00144848)(2,puVar7);" (call_expression "(*(code *)PTR_set_signal_handler_00144848)(2,puVar7)" (parenthesized_expression "(*(code *)PTR_set_signal_handler_00144848)" ( (pointer_expression "*(code *)PTR_set_signal_handler_00144848" * (cast_expression "(code *)PTR_set_signal_handler_00144848" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,puVar7)" ( number_literal , identifier ))) ;) })) (expression_statement "puVar7 = PTR_strlen_00146390;" (assignment_expression "puVar7 = PTR_strlen_00146390" identifier = identifier) ;) (expression_statement "piVar2 = (int *)PTR_current_readline_line_index_00144890;" (assignment_expression "piVar2 = (int *)PTR_current_readline_line_index_00144890" identifier = (cast_expression "(int *)PTR_current_readline_line_index_00144890" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" identifier = (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(undefined4 *)PTR_current_readline_line_index_00144890 = 0;" (assignment_expression "*(undefined4 *)PTR_current_readline_line_index_00144890 = 0" (pointer_expression "*(undefined4 *)PTR_current_readline_line_index_00144890" * (cast_expression "(undefined4 *)PTR_current_readline_line_index_00144890" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "iVar6 = (*(code *)puVar7)(iVar4);" (assignment_expression "iVar6 = (*(code *)puVar7)(iVar4)" identifier = (call_expression "(*(code *)puVar7)(iVar4)" (parenthesized_expression "(*(code *)puVar7)" ( (pointer_expression "*(code *)puVar7" * (cast_expression "(code *)puVar7" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);" (assignment_expression "iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2)" identifier = (call_expression "(*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2)" (parenthesized_expression "(*(code *)PTR_xrealloc_0014473c)" ( (pointer_expression "*(code *)PTR_xrealloc_0014473c" * (cast_expression "(code *)PTR_xrealloc_0014473c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,iVar6 + 2)" ( identifier , (binary_expression "iVar6 + 2" identifier + number_literal) )))) ;) (expression_statement "*(int *)puVar3 = iVar4;" (assignment_expression "*(int *)puVar3 = iVar4" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined1 *)(iVar4 + iVar6) = 10;" (assignment_expression "*(undefined1 *)(iVar4 + iVar6) = 10" (pointer_expression "*(undefined1 *)(iVar4 + iVar6)" * (cast_expression "(undefined1 *)(iVar4 + iVar6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar6)" ( (binary_expression "iVar4 + iVar6" identifier + identifier) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;" (assignment_expression "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0" (pointer_expression "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1)" * (cast_expression "(undefined1 *)(*(int *)puVar3 + iVar6 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar3 + iVar6 + 1)" ( (binary_expression "*(int *)puVar3 + iVar6 + 1" (binary_expression "*(int *)puVar3 + iVar6" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "pbVar8 = (byte *)(*(int *)puVar3 + iVar4);" (assignment_expression "pbVar8 = (byte *)(*(int *)puVar3 + iVar4)" identifier = (cast_expression "(byte *)(*(int *)puVar3 + iVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)puVar3 + iVar4)" ( (binary_expression "*(int *)puVar3 + iVar4" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier) )))) ;) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) })) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (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 (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) (goto_statement goto statement_identifier ;)) (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 *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (return_statement return (binary_expression (parenthesized_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 *)) ) IDENT)) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT ))))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (return_statement return LIT ;) })))
(function_definition "uint FUN_000315c0(void)\n\n{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return 0xffffffff;\n}" (type_identifier "uint") (function_declarator "FUN_000315c0(void)" (identifier "FUN_000315c0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  byte bVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined *puVar7;\n  byte *pbVar8;\n  undefined *puVar9;\n  \n  puVar3 = PTR_current_readline_line_00144894;\n  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;\n  iVar4 = *(int *)PTR_current_readline_line_index_00144890;\n  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);\n  bVar1 = *pbVar8;\n  piVar2 = (int *)PTR_current_readline_line_index_00144890;\n  while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }\n  return 0xffffffff;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (expression_statement "puVar3 = PTR_current_readline_line_00144894;" (assignment_expression "puVar3 = PTR_current_readline_line_00144894" (identifier "puVar3") (= "=") (identifier "PTR_current_readline_line_00144894")) (; ";")) (if_statement "if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;" (if "if") (parenthesized_expression "(*(int *)PTR_current_readline_line_00144894 == 0)" (( "(") (binary_expression "*(int *)PTR_current_readline_line_00144894 == 0" (pointer_expression "*(int *)PTR_current_readline_line_00144894" (* "*") (cast_expression "(int *)PTR_current_readline_line_00144894" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_current_readline_line_00144894"))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00031624;" (goto "goto") (statement_identifier "LAB_00031624") (; ";"))) (expression_statement "iVar4 = *(int *)PTR_current_readline_line_index_00144890;" (assignment_expression "iVar4 = *(int *)PTR_current_readline_line_index_00144890" (identifier "iVar4") (= "=") (pointer_expression "*(int *)PTR_current_readline_line_index_00144890" (* "*") (cast_expression "(int *)PTR_current_readline_line_index_00144890" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_current_readline_line_index_00144890")))) (; ";")) (expression_statement "pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);" (assignment_expression "pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4)" (identifier "pbVar8") (= "=") (cast_expression "(byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)PTR_current_readline_line_00144894 + iVar4)" (( "(") (binary_expression "*(int *)PTR_current_readline_line_00144894 + iVar4" (pointer_expression "*(int *)PTR_current_readline_line_00144894" (* "*") (cast_expression "(int *)PTR_current_readline_line_00144894" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_current_readline_line_00144894"))) (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" (identifier "bVar1") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (expression_statement "piVar2 = (int *)PTR_current_readline_line_index_00144890;" (assignment_expression "piVar2 = (int *)PTR_current_readline_line_index_00144890" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_current_readline_line_index_00144890" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_current_readline_line_index_00144890"))) (; ";")) (while_statement "while( true ) {\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }\n    (*(code *)PTR_free_001464fc)();\n    *(undefined4 *)puVar3 = 0;\nLAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    puVar7 = PTR_initialize_traps_00144624;\n    if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }\n    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);\n    sh_unset_nodelay_mode(uVar5);\n    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;\n    if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }\n    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);\n    *(undefined4 *)puVar3 = uVar5;\n    if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }\n    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);\n    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }\n    puVar7 = PTR_strlen_00146390;\n    piVar2 = (int *)PTR_current_readline_line_index_00144890;\n    iVar4 = *(int *)puVar3;\n    if (iVar4 == 0) break;\n    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;\n    iVar6 = (*(code *)puVar7)(iVar4);\n    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);\n    *(int *)puVar3 = iVar4;\n    *(undefined1 *)(iVar4 + iVar6) = 10;\n    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;\n    iVar4 = *piVar2;\n    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);\n    bVar1 = *pbVar8;\n  }" ({ "{") (if_statement "if (bVar1 != 0) {\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }" (if "if") (parenthesized_expression "(bVar1 != 0)" (( "(") (binary_expression "bVar1 != 0" (identifier "bVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *piVar2 = iVar4 + 1;\n      return (uint)*pbVar8;\n    }" ({ "{") (expression_statement "*piVar2 = iVar4 + 1;" (assignment_expression "*piVar2 = iVar4 + 1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return (uint)*pbVar8;" (return "return") (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar8")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_001464fc)();" (call_expression "(*(code *)PTR_free_001464fc)()" (parenthesized_expression "(*(code *)PTR_free_001464fc)" (( "(") (pointer_expression "*(code *)PTR_free_001464fc" (* "*") (cast_expression "(code *)PTR_free_001464fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001464fc"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)puVar3 = 0;" (assignment_expression "*(undefined4 *)puVar3 = 0" (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00031624:\n    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" (statement_identifier "LAB_00031624") (: ":") (if_statement "if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }\n    else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" (if "if") (parenthesized_expression "(*(int *)PTR_bash_readline_initialized_001448a4 == 0)" (( "(") (binary_expression "*(int *)PTR_bash_readline_initialized_001448a4 == 0" (pointer_expression "*(int *)PTR_bash_readline_initialized_001448a4" (* "*") (cast_expression "(int *)PTR_bash_readline_initialized_001448a4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bash_readline_initialized_001448a4"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_initialize_readline_001448bc)();\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" ({ "{") (expression_statement "(*(code *)PTR_initialize_readline_001448bc)();" (call_expression "(*(code *)PTR_initialize_readline_001448bc)()" (parenthesized_expression "(*(code *)PTR_initialize_readline_001448bc)" (( "(") (pointer_expression "*(code *)PTR_initialize_readline_001448bc" (* "*") (cast_expression "(code *)PTR_initialize_readline_001448bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_initialize_readline_001448bc"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" (identifier "iVar4") (= "=") (pointer_expression "*(int *)PTR_job_control_001448a8" (* "*") (cast_expression "(int *)PTR_job_control_001448a8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_job_control_001448a8")))) (; ";")) (} "}")) (else_clause "else {\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" (else "else") (compound_statement "{\n      iVar4 = *(int *)PTR_job_control_001448a8;\n    }" ({ "{") (expression_statement "iVar4 = *(int *)PTR_job_control_001448a8;" (assignment_expression "iVar4 = *(int *)PTR_job_control_001448a8" (identifier "iVar4") (= "=") (pointer_expression "*(int *)PTR_job_control_001448a8" (* "*") (cast_expression "(int *)PTR_job_control_001448a8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_job_control_001448a8")))) (; ";")) (} "}"))))) (if_statement "if (iVar4 != 0) {\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);\n    }" ({ "{") (expression_statement "(*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);" (call_expression "(*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0)" (parenthesized_expression "(*(code *)PTR_give_terminal_to_001448c0)" (( "(") (pointer_expression "*(code *)PTR_give_terminal_to_001448c0" (* "*") (cast_expression "(code *)PTR_give_terminal_to_001448c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_give_terminal_to_001448c0"))) () ")")) (argument_list "(*(undefined4 *)PTR_shell_pgrp_001448ac,0)" (( "(") (pointer_expression "*(undefined4 *)PTR_shell_pgrp_001448ac" (* "*") (cast_expression "(undefined4 *)PTR_shell_pgrp_001448ac" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_shell_pgrp_001448ac"))) (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);" (assignment_expression "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_signal_is_ignored_00144880)(2)" (parenthesized_expression "(*(code *)PTR_signal_is_ignored_00144880)" (( "(") (pointer_expression "*(code *)PTR_signal_is_ignored_00144880" (* "*") (cast_expression "(code *)PTR_signal_is_ignored_00144880" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_signal_is_ignored_00144880"))) () ")")) (argument_list "(2)" (( "(") (number_literal "2") () ")")))) (; ";")) (expression_statement "puVar7 = PTR_initialize_traps_00144624;" (assignment_expression "puVar7 = PTR_initialize_traps_00144624" (identifier "puVar7") (= "=") (identifier "PTR_initialize_traps_00144624")) (; ";")) (if_statement "if (iVar4 == 0) {\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);\n    }" ({ "{") (expression_statement "puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);" (assignment_expression "puVar7 = (undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" (identifier "puVar7") (= "=") (cast_expression "(undefined *)\n               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884)" (parenthesized_expression "(*(code *)PTR_set_signal_handler_00144848)" (( "(") (pointer_expression "*(code *)PTR_set_signal_handler_00144848" (* "*") (cast_expression "(code *)PTR_set_signal_handler_00144848" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_set_signal_handler_00144848"))) () ")")) (argument_list "(2,PTR_sigint_sighandler_00144884)" (( "(") (number_literal "2") (, ",") (identifier "PTR_sigint_sighandler_00144884") () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);" (assignment_expression "uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0)" (parenthesized_expression "(*(code *)PTR_fileno_00146328)" (( "(") (pointer_expression "*(code *)PTR_fileno_00146328" (* "*") (cast_expression "(code *)PTR_fileno_00146328" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fileno_00146328"))) () ")")) (argument_list "(*(undefined4 *)PTR_rl_instream_001448b0)" (( "(") (pointer_expression "*(undefined4 *)PTR_rl_instream_001448b0" (* "*") (cast_expression "(undefined4 *)PTR_rl_instream_001448b0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_instream_001448b0"))) () ")")))) (; ";")) (expression_statement "sh_unset_nodelay_mode(uVar5);" (call_expression "sh_unset_nodelay_mode(uVar5)" (identifier "sh_unset_nodelay_mode") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;" (assignment_expression "puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4" (identifier "puVar9") (= "=") (pointer_expression "*(undefined **)PTR_current_readline_prompt_001448b4" (* "*") (cast_expression "(undefined **)PTR_current_readline_prompt_001448b4" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_current_readline_prompt_001448b4")))) (; ";")) (if_statement "if (puVar9 == (undefined *)0x0) {\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }" (if "if") (parenthesized_expression "(puVar9 == (undefined *)0x0)" (( "(") (binary_expression "puVar9 == (undefined *)0x0" (identifier "puVar9") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar9 = PTR_DAT_001445ac + -0x6800;\n    }" ({ "{") (expression_statement "puVar9 = PTR_DAT_001445ac + -0x6800;" (assignment_expression "puVar9 = PTR_DAT_001445ac + -0x6800" (identifier "puVar9") (= "=") (binary_expression "PTR_DAT_001445ac + -0x6800" (identifier "PTR_DAT_001445ac") (+ "+") (number_literal "-0x6800"))) (; ";")) (} "}"))) (expression_statement "uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);" (assignment_expression "uVar5 = (*(code *)PTR_readline_001448b8)(puVar9)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_readline_001448b8)(puVar9)" (parenthesized_expression "(*(code *)PTR_readline_001448b8)" (( "(") (pointer_expression "*(code *)PTR_readline_001448b8" (* "*") (cast_expression "(code *)PTR_readline_001448b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_readline_001448b8"))) () ")")) (argument_list "(puVar9)" (( "(") (identifier "puVar9") () ")")))) (; ";")) (expression_statement "*(undefined4 *)puVar3 = uVar5;" (assignment_expression "*(undefined4 *)puVar3 = uVar5" (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (= "=") (identifier "uVar5")) (; ";")) (if_statement "if (*(int *)PTR_terminating_signal_00144834 != 0) {\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }" (if "if") (parenthesized_expression "(*(int *)PTR_terminating_signal_00144834 != 0)" (( "(") (binary_expression "*(int *)PTR_terminating_signal_00144834 != 0" (pointer_expression "*(int *)PTR_terminating_signal_00144834" (* "*") (cast_expression "(int *)PTR_terminating_signal_00144834" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_terminating_signal_00144834"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    }" ({ "{") (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" (( "(") (pointer_expression "*(code *)PTR_termsig_handler_00144838" (* "*") (cast_expression "(code *)PTR_termsig_handler_00144838" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_termsig_handler_00144838"))) () ")")) (argument_list "(*(undefined4 *)PTR_terminating_signal_00144834)" (( "(") (pointer_expression "*(undefined4 *)PTR_terminating_signal_00144834" (* "*") (cast_expression "(undefined4 *)PTR_terminating_signal_00144834" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_terminating_signal_00144834"))) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);" (assignment_expression "iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_signal_is_ignored_00144880)(2)" (parenthesized_expression "(*(code *)PTR_signal_is_ignored_00144880)" (( "(") (pointer_expression "*(code *)PTR_signal_is_ignored_00144880" (* "*") (cast_expression "(code *)PTR_signal_is_ignored_00144880" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_signal_is_ignored_00144880"))) () ")")) (argument_list "(2)" (( "(") (number_literal "2") () ")")))) (; ";")) (if_statement "if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }" (if "if") (parenthesized_expression "((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624))" (( "(") (binary_expression "(iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(puVar7 != PTR_initialize_traps_00144624)" (( "(") (binary_expression "puVar7 != PTR_initialize_traps_00144624" (identifier "puVar7") (!= "!=") (identifier "PTR_initialize_traps_00144624")) () ")"))) () ")")) (compound_statement "{\n      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);\n    }" ({ "{") (expression_statement "(*(code *)PTR_set_signal_handler_00144848)(2,puVar7);" (call_expression "(*(code *)PTR_set_signal_handler_00144848)(2,puVar7)" (parenthesized_expression "(*(code *)PTR_set_signal_handler_00144848)" (( "(") (pointer_expression "*(code *)PTR_set_signal_handler_00144848" (* "*") (cast_expression "(code *)PTR_set_signal_handler_00144848" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_set_signal_handler_00144848"))) () ")")) (argument_list "(2,puVar7)" (( "(") (number_literal "2") (, ",") (identifier "puVar7") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar7 = PTR_strlen_00146390;" (assignment_expression "puVar7 = PTR_strlen_00146390" (identifier "puVar7") (= "=") (identifier "PTR_strlen_00146390")) (; ";")) (expression_statement "piVar2 = (int *)PTR_current_readline_line_index_00144890;" (assignment_expression "piVar2 = (int *)PTR_current_readline_line_index_00144890" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_current_readline_line_index_00144890" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_current_readline_line_index_00144890"))) (; ";")) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" (identifier "iVar4") (= "=") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) (; ";")) (if_statement "if (iVar4 == 0) break;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*(undefined4 *)PTR_current_readline_line_index_00144890 = 0;" (assignment_expression "*(undefined4 *)PTR_current_readline_line_index_00144890 = 0" (pointer_expression "*(undefined4 *)PTR_current_readline_line_index_00144890" (* "*") (cast_expression "(undefined4 *)PTR_current_readline_line_index_00144890" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_current_readline_line_index_00144890"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = (*(code *)puVar7)(iVar4);" (assignment_expression "iVar6 = (*(code *)puVar7)(iVar4)" (identifier "iVar6") (= "=") (call_expression "(*(code *)puVar7)(iVar4)" (parenthesized_expression "(*(code *)puVar7)" (( "(") (pointer_expression "*(code *)puVar7" (* "*") (cast_expression "(code *)puVar7" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar7"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);" (assignment_expression "iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2)" (parenthesized_expression "(*(code *)PTR_xrealloc_0014473c)" (( "(") (pointer_expression "*(code *)PTR_xrealloc_0014473c" (* "*") (cast_expression "(code *)PTR_xrealloc_0014473c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xrealloc_0014473c"))) () ")")) (argument_list "(iVar4,iVar6 + 2)" (( "(") (identifier "iVar4") (, ",") (binary_expression "iVar6 + 2" (identifier "iVar6") (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "*(int *)puVar3 = iVar4;" (assignment_expression "*(int *)puVar3 = iVar4" (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(undefined1 *)(iVar4 + iVar6) = 10;" (assignment_expression "*(undefined1 *)(iVar4 + iVar6) = 10" (pointer_expression "*(undefined1 *)(iVar4 + iVar6)" (* "*") (cast_expression "(undefined1 *)(iVar4 + iVar6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar6)" (( "(") (binary_expression "iVar4 + iVar6" (identifier "iVar4") (+ "+") (identifier "iVar6")) () ")")))) (= "=") (number_literal "10")) (; ";")) (expression_statement "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;" (assignment_expression "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0" (pointer_expression "*(undefined1 *)(*(int *)puVar3 + iVar6 + 1)" (* "*") (cast_expression "(undefined1 *)(*(int *)puVar3 + iVar6 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)puVar3 + iVar6 + 1)" (( "(") (binary_expression "*(int *)puVar3 + iVar6 + 1" (binary_expression "*(int *)puVar3 + iVar6" (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (+ "+") (identifier "iVar6")) (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "pbVar8 = (byte *)(*(int *)puVar3 + iVar4);" (assignment_expression "pbVar8 = (byte *)(*(int *)puVar3 + iVar4)" (identifier "pbVar8") (= "=") (cast_expression "(byte *)(*(int *)puVar3 + iVar4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)puVar3 + iVar4)" (( "(") (binary_expression "*(int *)puVar3 + iVar4" (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "bVar1 = *pbVar8;" (assignment_expression "bVar1 = *pbVar8" (identifier "bVar1") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (} "}"))) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void)

{
  type_1 var_2;
  int *piVar2;
  type_2 *puVar3;
  int var_1;
  type_3 uVar5;
  int var_9;
  type_2 *var_7;
  type_1 *var_3;
  type_2 *var_5;
  
  puVar3 = PTR_current_readline_line_00144894;
  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;
  var_1 = *(int *)PTR_current_readline_line_index_00144890;
  var_3 = (type_1 *)(*(int *)PTR_current_readline_line_00144894 + var_1);
  var_2 = *var_3;
  piVar2 = (int *)PTR_current_readline_line_index_00144890;
  while( true ) {
    if (var_2 != 0) {
      *piVar2 = var_1 + 1;
      return (uint)*var_3;
    }
    (*(type_4 *)PTR_free_001464fc)();
    *(type_3 *)puVar3 = 0;
LAB_00031624:
    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {
      (*(type_4 *)PTR_initialize_readline_001448bc)();
      var_1 = *(int *)PTR_job_control_001448a8;
    }
    else {
      var_1 = *(int *)PTR_job_control_001448a8;
    }
    if (var_1 != 0) {
      (*(type_4 *)PTR_give_terminal_to_001448c0)(*(type_3 *)PTR_shell_pgrp_001448ac,0);
    }
    var_1 = (*(type_4 *)PTR_signal_is_ignored_00144880)(2);
    var_7 = var_8;
    if (var_1 == 0) {
      var_7 = (type_2 *)
               (*(type_4 *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);
    }
    var_1 = (*(type_4 *)PTR_fileno_00146328)(*(type_3 *)PTR_rl_instream_001448b0);
    var_4(var_1);
    var_5 = *(type_2 **)PTR_current_readline_prompt_001448b4;
    if (var_5 == (type_2 *)0x0) {
      var_5 = var_6 + -0x6800;
    }
    uVar5 = (*(type_4 *)PTR_readline_001448b8)(var_5);
    *(type_3 *)puVar3 = uVar5;
    if (*(int *)PTR_terminating_signal_00144834 != 0) {
      (*(type_4 *)PTR_termsig_handler_00144838)(*(type_3 *)PTR_terminating_signal_00144834);
    }
    var_1 = (*(type_4 *)PTR_signal_is_ignored_00144880)(2);
    if ((var_1 == 0) && (var_7 != var_8)) {
      (*(type_4 *)PTR_set_signal_handler_00144848)(2,var_7);
    }
    var_7 = PTR_strlen_00146390;
    piVar2 = (int *)PTR_current_readline_line_index_00144890;
    var_1 = *(int *)puVar3;
    if (var_1 == 0) break;
    *(type_3 *)PTR_current_readline_line_index_00144890 = 0;
    var_9 = (*(type_4 *)var_7)(var_1);
    var_1 = (*(type_4 *)PTR_xrealloc_0014473c)(var_1,var_9 + 2);
    *(int *)puVar3 = var_1;
    *(type_5 *)(var_1 + var_9) = 10;
    *(type_5 *)(*(int *)puVar3 + var_9 + 1) = 0;
    var_1 = *piVar2;
    var_3 = (type_1 *)(*(int *)puVar3 + var_1);
    var_2 = *var_3;
  }
  return -1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (goto_statement label: (statement_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: (parenthesized_expression (binary_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: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (binary_expression left: (parenthesized_expression (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: (identifier))) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (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 (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (number_literal) (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (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) (binary_expression left: (identifier) right: (number_literal)))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))) (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: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (identifier)))))) (return_statement (number_literal)))))

uint MASKED(void)

{
  byte bVar1;
  int *piVar2;
  undefined *puVar3;
  int iVar4;
  undefined4 uVar5;
  int iVar6;
  undefined *puVar7;
  byte *pbVar8;
  undefined *puVar9;
  
  puVar3 = PTR_current_readline_line_00144894;
  if (*(int *)PTR_current_readline_line_00144894 == 0) goto LAB_00031624;
  iVar4 = *(int *)PTR_current_readline_line_index_00144890;
  pbVar8 = (byte *)(*(int *)PTR_current_readline_line_00144894 + iVar4);
  bVar1 = *pbVar8;
  piVar2 = (int *)PTR_current_readline_line_index_00144890;
  while( true ) {
    if (bVar1 != 0) {
      *piVar2 = iVar4 + 1;
      return (uint)*pbVar8;
    }
    (*(code *)PTR_free_001464fc)();
    *(undefined4 *)puVar3 = 0;
LAB_00031624:
    if (*(int *)PTR_bash_readline_initialized_001448a4 == 0) {
      (*(code *)PTR_initialize_readline_001448bc)();
      iVar4 = *(int *)PTR_job_control_001448a8;
    }
    else {
      iVar4 = *(int *)PTR_job_control_001448a8;
    }
    if (iVar4 != 0) {
      (*(code *)PTR_give_terminal_to_001448c0)(*(undefined4 *)PTR_shell_pgrp_001448ac,0);
    }
    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);
    puVar7 = PTR_initialize_traps_00144624;
    if (iVar4 == 0) {
      puVar7 = (undefined *)
               (*(code *)PTR_set_signal_handler_00144848)(2,PTR_sigint_sighandler_00144884);
    }
    uVar5 = (*(code *)PTR_fileno_00146328)(*(undefined4 *)PTR_rl_instream_001448b0);
    sh_unset_nodelay_mode(uVar5);
    puVar9 = *(undefined **)PTR_current_readline_prompt_001448b4;
    if (puVar9 == (undefined *)0x0) {
      puVar9 = PTR_DAT_001445ac + -0x6800;
    }
    uVar5 = (*(code *)PTR_readline_001448b8)(puVar9);
    *(undefined4 *)puVar3 = uVar5;
    if (*(int *)PTR_terminating_signal_00144834 != 0) {
      (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);
    }
    iVar4 = (*(code *)PTR_signal_is_ignored_00144880)(2);
    if ((iVar4 == 0) && (puVar7 != PTR_initialize_traps_00144624)) {
      (*(code *)PTR_set_signal_handler_00144848)(2,puVar7);
    }
    puVar7 = PTR_strlen_00146390;
    piVar2 = (int *)PTR_current_readline_line_index_00144890;
    iVar4 = *(int *)puVar3;
    if (iVar4 == 0) break;
    *(undefined4 *)PTR_current_readline_line_index_00144890 = 0;
    iVar6 = (*(code *)puVar7)(iVar4);
    iVar4 = (*(code *)PTR_xrealloc_0014473c)(iVar4,iVar6 + 2);
    *(int *)puVar3 = iVar4;
    *(undefined1 *)(iVar4 + iVar6) = 10;
    *(undefined1 *)(*(int *)puVar3 + iVar6 + 1) = 0;
    iVar4 = *piVar2;
    pbVar8 = (byte *)(*(int *)puVar3 + iVar4);
    bVar1 = *pbVar8;
  }
  return 0xffffffff;
}

