
/* WARNING: Unknown calling convention */

int rl_read_key(void)

{
  byte bVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  int iVar6;
  int iVar7;
  byte *pbVar8;
  int *piVar9;
  uint uVar10;
  
  puVar2 = PTR_rl_readline_state_00144658;
  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;
  if (uVar10 == 0) {
    uVar10 = _rl_next_macro_key();
    puVar4 = PTR_rl_event_hook_001460e4;
    puVar3 = PTR__rl_caught_signal_00145c04;
    puVar2 = PTR___environ_00145154;
    if (uVar10 != 0) {
      return uVar10 & 0xff;
    }
    iVar6 = *(int *)PTR_rl_event_hook_001460e4;
    if (iVar6 == 0) {
      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);
      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {
        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)
        ;
      }
      else {
        iVar7 = iVar6 + 1;
        if (0x1ff < iVar7) {
          iVar7 = 0;
        }
        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;
        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;
        uVar10 = (uint)*pbVar8;
      }
      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {
        _rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);
      }
    }
    else {
      while( true ) {
        iVar7 = *(int *)(puVar2 + -0x5600);
        uVar10 = 0;
        if (iVar6 == 0) break;
        if (*(int *)(puVar2 + -0x5604) != iVar7) {
          iVar6 = iVar7 + 1;
          if (0x1ff < iVar6) {
            iVar6 = 0;
          }
          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];
          *(int *)(puVar2 + -0x5600) = iVar6;
          return (uint)bVar1;
        }
        iVar6 = rl_gather_tyi();
        puVar5 = PTR___errno_location_0014633c;
        if (iVar6 < 0) {
          *(undefined4 *)PTR_rl_done_00145524 = 1;
          piVar9 = (int *)(*(code *)puVar5)();
          if (*piVar9 != 5) {
            return 10;
          }
          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;
        }
        if (iVar6 == 0) {
          if (*(int *)puVar3 != 0) {
            _rl_signal_handler(*(int *)puVar3);
          }
          if (*(int *)PTR_rl_done_00145524 != 0) {
            return 10;
          }
          (**(code **)puVar4)();
        }
        iVar6 = *(int *)puVar4;
      }
    }
  }
  else {
    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;
    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;
  }
  return uVar10;
}



uint rl_read_key(void)

{
  byte bVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  int iVar6;
  int iVar7;
  byte *pbVar8;
  int *piVar9;
  uint uVar10;
  
  puVar2 = PTR_rl_readline_state_00144658;
  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;
  if (uVar10 == 0) {
    uVar10 = _rl_next_macro_key();
    puVar4 = PTR_rl_event_hook_001460e4;
    puVar3 = PTR__rl_caught_signal_00145c04;
    puVar2 = PTR___environ_00145154;
    if (uVar10 != 0) {
      return uVar10 & 0xff;
    }
    iVar6 = *(int *)PTR_rl_event_hook_001460e4;
    if (iVar6 == 0) {
      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);
      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {
        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)
        ;
      }
      else {
        iVar7 = iVar6 + 1;
        if (0x1ff < iVar7) {
          iVar7 = 0;
        }
        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;
        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;
        uVar10 = (uint)*pbVar8;
      }
      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {
        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);
      }
    }
    else {
      while( true ) {
        iVar7 = *(int *)(puVar2 + -0x5600);
        uVar10 = 0;
        if (iVar6 == 0) break;
        if (*(int *)(puVar2 + -0x5604) != iVar7) {
          iVar6 = iVar7 + 1;
          if (0x1ff < iVar6) {
            iVar6 = 0;
          }
          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];
          *(int *)(puVar2 + -0x5600) = iVar6;
          return (uint)bVar1;
        }
        iVar6 = FUN_00102b20();
        puVar5 = PTR___errno_location_0014633c;
        if (iVar6 < 0) {
          *(undefined4 *)PTR_rl_done_00145524 = 1;
          piVar9 = (int *)(*(code *)puVar5)();
          if (*piVar9 != 5) {
            return 10;
          }
          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;
        }
        if (iVar6 == 0) {
          if (*(int *)puVar3 != 0) {
            _rl_signal_handler(*(undefined4 *)puVar3);
          }
          if (*(int *)PTR_rl_done_00145524 != 0) {
            return 10;
          }
          (**(code **)puVar4)();
        }
        iVar6 = *(int *)puVar4;
      }
    }
  }
  else {
    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;
    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;
  }
  return uVar10;
}


lui gp,0x5
addiu gp,gp,-0x69d4
addu gp,gp,t9
lw v0,-0x68b4(gp)
addiu sp,sp,-0x38
sw s0,0x1c(sp)
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s4,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
lw s0,0x0(v0)
beq s0,zero,0x00102f94
_lw a0,-0x7ee8(gp)
lui v1,0xfffd
sw zero,0x0(v0)
ori v1,v1,0xffff
lw v0,0x0(a0)
and v0,v0,v1
sw v0,0x0(a0)
lw ra,0x34(sp)
or v0,s0,zero
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x6460(gp)
bal 0x00101d74
_nop
lw gp,0x10(sp)
bne v0,zero,0x0010307c
_or s0,v0,zero
lw s2,-0x645c(gp)
lw v0,0x0(s2)
beq v0,zero,0x00103024
_lw t9,-0x6520(gp)
lw s3,-0x73ec(gp)
lw s4,-0x73ec(gp)
lw s5,-0x693c(gp)
addiu s1,t9,0x2b20
beq v0,zero,0x00102f6c
_lw v0,-0x5600(s3)
lw v1,-0x5604(s4)
beq v1,v0,0x001030a8
_lw a0,-0x73ec(gp)
addiu a1,v0,0x1
lw ra,0x34(sp)
slti v1,a1,0x200
lw s5,0x30(sp)
addiu a0,a0,-0x5804
movz a1,zero,v1
addu v0,v0,a0
lw s4,0x2c(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lbu s0,0x0(v0)
sw a1,-0x5600(s3)
lw s3,0x28(sp)
or v0,s0,zero
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw a1,-0x73ec(gp)
lw v1,-0x73ec(gp)
lw v0,-0x5600(a1)
lw v1,-0x5604(v1)
beq v1,v0,0x001030f8
_lw a0,-0x73ec(gp)
addiu a2,v0,0x1
slti v1,a2,0x200
addiu a0,a0,-0x5804
movz a2,zero,v1
addu v0,v0,a0
sw a2,-0x5600(a1)
lbu s0,0x0(v0)
lw v0,-0x693c(gp)
lw v1,0x0(v0)
beq v1,zero,0x00102f6c
_lw t9,-0x6930(gp)
lw a0,0x0(v0)
bal 0x000fef18
_nop
b 0x00102f70
_lw ra,0x34(sp)
lw ra,0x34(sp)
andi s0,v0,0xff
or v0,s0,zero
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
or t9,s1,zero
bal 0x00102b20
_nop
bltz v0,0x00103138
_lw gp,0x10(sp)
bne v0,zero,0x001030f0
_nop
lw v0,0x0(s5)
bne v0,zero,0x0010311c
_lw t9,-0x6930(gp)
lw v0,-0x701c(gp)
lw v0,0x0(v0)
bne v0,zero,0x00103130
_nop
lw t9,0x0(s2)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00102fcc
_lw v0,0x0(s2)
lw v0,-0x7c90(gp)
lw a0,0x0(v0)
lw v0,-0x6464(gp)
lw t9,0x0(v0)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00103058
_or s0,v0,zero
lw a0,0x0(s5)
bal 0x000fef18
_nop
b 0x001030d0
_lw gp,0x10(sp)
b 0x00102f6c
_li s0,0xa
lw v0,-0x701c(gp)
li v1,0x1
lw t9,-0x6204(gp)
jalr t9
_sw v1,0x0(v0)
li v1,0x5
lw v0,0x0(v0)
bne v0,v1,0x00103130
_lw gp,0x10(sp)
lw v0,-0x7ee8(gp)
lw s0,0x0(v0)
andi s0,s0,0x8
sltiu s0,s0,0x1
b 0x00102f6c
_addiu s0,s0,-0x2
(translation_unit "uint rl_read_key(void)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}\n\n" (function_definition "uint rl_read_key(void)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}" type_identifier (function_declarator "rl_read_key(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_rl_readline_state_00144658;" (assignment_expression "puVar2 = PTR_rl_readline_state_00144658" identifier = identifier) ;) (expression_statement "uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;" (assignment_expression "uVar10 = *(uint *)PTR_rl_pending_input_00145c8c" identifier = (pointer_expression "*(uint *)PTR_rl_pending_input_00145c8c" * (cast_expression "(uint *)PTR_rl_pending_input_00145c8c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" if (parenthesized_expression "(uVar10 == 0)" ( (binary_expression "uVar10 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }" { (expression_statement "uVar10 = _rl_next_macro_key();" (assignment_expression "uVar10 = _rl_next_macro_key()" identifier = (call_expression "_rl_next_macro_key()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = PTR_rl_event_hook_001460e4;" (assignment_expression "puVar4 = PTR_rl_event_hook_001460e4" identifier = identifier) ;) (expression_statement "puVar3 = PTR__rl_caught_signal_00145c04;" (assignment_expression "puVar3 = PTR__rl_caught_signal_00145c04" identifier = identifier) ;) (expression_statement "puVar2 = PTR___environ_00145154;" (assignment_expression "puVar2 = PTR___environ_00145154" identifier = identifier) ;) (if_statement "if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n      return uVar10 & 0xff;\n    }" { (return_statement "return uVar10 & 0xff;" return (binary_expression "uVar10 & 0xff" identifier & number_literal) ;) })) (expression_statement "iVar6 = *(int *)PTR_rl_event_hook_001460e4;" (assignment_expression "iVar6 = *(int *)PTR_rl_event_hook_001460e4" identifier = (pointer_expression "*(int *)PTR_rl_event_hook_001460e4" * (cast_expression "(int *)PTR_rl_event_hook_001460e4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }" { (expression_statement "iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);" (assignment_expression "iVar6 = *(int *)(PTR___environ_00145154 + -0x5600)" identifier = (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5600)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x5600)" ( (binary_expression "PTR___environ_00145154 + -0x5600" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" if (parenthesized_expression "(*(int *)(PTR___environ_00145154 + -0x5604) == iVar6)" ( (binary_expression "*(int *)(PTR___environ_00145154 + -0x5604) == iVar6" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5604)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x5604)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x5604)" ( (binary_expression "PTR___environ_00145154 + -0x5604" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }" { (expression_statement "uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;" (assignment_expression "uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)" identifier = (call_expression "(**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)" (parenthesized_expression "(**(code **)PTR_rl_getc_function_001460dc)" ( (pointer_expression "**(code **)PTR_rl_getc_function_001460dc" * (pointer_expression "*(code **)PTR_rl_getc_function_001460dc" * (cast_expression "(code **)PTR_rl_getc_function_001460dc" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (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)) )))) ;) }) (else_clause "else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" else (compound_statement "{\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" { (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }" if (parenthesized_expression "(0x1ff < iVar7)" ( (binary_expression "0x1ff < iVar7" number_literal < identifier) )) (compound_statement "{\n          iVar7 = 0;\n        }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) })) (expression_statement "pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;" (assignment_expression "pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804" identifier = (binary_expression "PTR___environ_00145154 + iVar6 + -0x5804" (binary_expression "PTR___environ_00145154 + iVar6" identifier + identifier) + number_literal)) ;) (expression_statement "*(int *)(PTR___environ_00145154 + -0x5600) = iVar7;" (assignment_expression "*(int *)(PTR___environ_00145154 + -0x5600) = iVar7" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5600)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x5600)" ( (binary_expression "PTR___environ_00145154 + -0x5600" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar10 = (uint)*pbVar8;" (assignment_expression "uVar10 = (uint)*pbVar8" identifier = (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }))) (if_statement "if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }" if (parenthesized_expression "(*(int *)PTR__rl_caught_signal_00145c04 != 0)" ( (binary_expression "*(int *)PTR__rl_caught_signal_00145c04 != 0" (pointer_expression "*(int *)PTR__rl_caught_signal_00145c04" * (cast_expression "(int *)PTR__rl_caught_signal_00145c04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }" { (expression_statement "_rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);" (call_expression "_rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04)" identifier (argument_list "(*(undefined4 *)PTR__rl_caught_signal_00145c04)" ( (pointer_expression "*(undefined4 *)PTR__rl_caught_signal_00145c04" * (cast_expression "(undefined4 *)PTR__rl_caught_signal_00145c04" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) }) (else_clause "else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" else (compound_statement "{\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" { (while_statement "while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }" { (expression_statement "iVar7 = *(int *)(puVar2 + -0x5600);" (assignment_expression "iVar7 = *(int *)(puVar2 + -0x5600)" identifier = (pointer_expression "*(int *)(puVar2 + -0x5600)" * (cast_expression "(int *)(puVar2 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5600)" ( (binary_expression "puVar2 + -0x5600" identifier + number_literal) ))))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }" if (parenthesized_expression "(*(int *)(puVar2 + -0x5604) != iVar7)" ( (binary_expression "*(int *)(puVar2 + -0x5604) != iVar7" (pointer_expression "*(int *)(puVar2 + -0x5604)" * (cast_expression "(int *)(puVar2 + -0x5604)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5604)" ( (binary_expression "puVar2 + -0x5604" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }" { (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }" if (parenthesized_expression "(0x1ff < iVar6)" ( (binary_expression "0x1ff < iVar6" number_literal < identifier) )) (compound_statement "{\n            iVar6 = 0;\n          }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) })) (expression_statement "bVar1 = PTR___environ_00145154[iVar7 + -0x5804];" (assignment_expression "bVar1 = PTR___environ_00145154[iVar7 + -0x5804]" identifier = (subscript_expression "PTR___environ_00145154[iVar7 + -0x5804]" identifier [ (binary_expression "iVar7 + -0x5804" identifier + number_literal) ])) ;) (expression_statement "*(int *)(puVar2 + -0x5600) = iVar6;" (assignment_expression "*(int *)(puVar2 + -0x5600) = iVar6" (pointer_expression "*(int *)(puVar2 + -0x5600)" * (cast_expression "(int *)(puVar2 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5600)" ( (binary_expression "puVar2 + -0x5600" identifier + number_literal) )))) = identifier) ;) (return_statement "return (uint)bVar1;" return (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ;) })) (expression_statement "iVar6 = FUN_00102b20();" (assignment_expression "iVar6 = FUN_00102b20()" identifier = (call_expression "FUN_00102b20()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar5 = PTR___errno_location_0014633c;" (assignment_expression "puVar5 = PTR___errno_location_0014633c" identifier = identifier) ;) (if_statement "if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }" { (expression_statement "*(undefined4 *)PTR_rl_done_00145524 = 1;" (assignment_expression "*(undefined4 *)PTR_rl_done_00145524 = 1" (pointer_expression "*(undefined4 *)PTR_rl_done_00145524" * (cast_expression "(undefined4 *)PTR_rl_done_00145524" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "piVar9 = (int *)(*(code *)puVar5)();" (assignment_expression "piVar9 = (int *)(*(code *)puVar5)()" identifier = (cast_expression "(int *)(*(code *)puVar5)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar5)()" (parenthesized_expression "(*(code *)puVar5)" ( (pointer_expression "*(code *)puVar5" * (cast_expression "(code *)puVar5" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar9 != 5) {\n            return 10;\n          }" if (parenthesized_expression "(*piVar9 != 5)" ( (binary_expression "*piVar9 != 5" (pointer_expression "*piVar9" * identifier) != number_literal) )) (compound_statement "{\n            return 10;\n          }" { (return_statement "return 10;" return number_literal ;) })) (return_statement "return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;" return (binary_expression "((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2" (parenthesized_expression "((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0)" ( (binary_expression "(*(uint *)PTR_rl_readline_state_00144658 & 8) == 0" (parenthesized_expression "(*(uint *)PTR_rl_readline_state_00144658 & 8)" ( (binary_expression "*(uint *)PTR_rl_readline_state_00144658 & 8" (pointer_expression "*(uint *)PTR_rl_readline_state_00144658" * (cast_expression "(uint *)PTR_rl_readline_state_00144658" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal) )) == number_literal) )) - number_literal) ;) })) (if_statement "if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }" { (if_statement "if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }" if (parenthesized_expression "(*(int *)puVar3 != 0)" ( (binary_expression "*(int *)puVar3 != 0" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }" { (expression_statement "_rl_signal_handler(*(undefined4 *)puVar3);" (call_expression "_rl_signal_handler(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) (if_statement "if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }" if (parenthesized_expression "(*(int *)PTR_rl_done_00145524 != 0)" ( (binary_expression "*(int *)PTR_rl_done_00145524 != 0" (pointer_expression "*(int *)PTR_rl_done_00145524" * (cast_expression "(int *)PTR_rl_done_00145524" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n            return 10;\n          }" { (return_statement "return 10;" return number_literal ;) })) (expression_statement "(**(code **)puVar4)();" (call_expression "(**(code **)puVar4)()" (parenthesized_expression "(**(code **)puVar4)" ( (pointer_expression "**(code **)puVar4" * (pointer_expression "*(code **)puVar4" * (cast_expression "(code **)puVar4" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar6 = *(int *)puVar4;" (assignment_expression "iVar6 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) }))) }) (else_clause "else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" else (compound_statement "{\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" { (expression_statement "*(undefined4 *)PTR_rl_pending_input_00145c8c = 0;" (assignment_expression "*(undefined4 *)PTR_rl_pending_input_00145c8c = 0" (pointer_expression "*(undefined4 *)PTR_rl_pending_input_00145c8c" * (cast_expression "(undefined4 *)PTR_rl_pending_input_00145c8c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;" (assignment_expression "*(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff" (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(uint *)puVar2 & 0xfffdffff" (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal)) ;) }))) (return_statement "return uVar10;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint rl_read_key(void)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = rl_gather_tyi();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}\n\n" comment (function_definition "int rl_read_key(void)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = rl_gather_tyi();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}" primitive_type (function_declarator "rl_read_key(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = rl_gather_tyi();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_rl_readline_state_00144658;" (assignment_expression "puVar2 = PTR_rl_readline_state_00144658" identifier = identifier) ;) (expression_statement "uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;" (assignment_expression "uVar10 = *(uint *)PTR_rl_pending_input_00145c8c" identifier = (pointer_expression "*(uint *)PTR_rl_pending_input_00145c8c" * (cast_expression "(uint *)PTR_rl_pending_input_00145c8c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = rl_gather_tyi();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" if (parenthesized_expression "(uVar10 == 0)" ( (binary_expression "uVar10 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = rl_gather_tyi();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }" { (expression_statement "uVar10 = _rl_next_macro_key();" (assignment_expression "uVar10 = _rl_next_macro_key()" identifier = (call_expression "_rl_next_macro_key()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = PTR_rl_event_hook_001460e4;" (assignment_expression "puVar4 = PTR_rl_event_hook_001460e4" identifier = identifier) ;) (expression_statement "puVar3 = PTR__rl_caught_signal_00145c04;" (assignment_expression "puVar3 = PTR__rl_caught_signal_00145c04" identifier = identifier) ;) (expression_statement "puVar2 = PTR___environ_00145154;" (assignment_expression "puVar2 = PTR___environ_00145154" identifier = identifier) ;) (if_statement "if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n      return uVar10 & 0xff;\n    }" { (return_statement "return uVar10 & 0xff;" return (binary_expression "uVar10 & 0xff" identifier & number_literal) ;) })) (expression_statement "iVar6 = *(int *)PTR_rl_event_hook_001460e4;" (assignment_expression "iVar6 = *(int *)PTR_rl_event_hook_001460e4" identifier = (pointer_expression "*(int *)PTR_rl_event_hook_001460e4" * (cast_expression "(int *)PTR_rl_event_hook_001460e4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = rl_gather_tyi();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);\n      }\n    }" { (expression_statement "iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);" (assignment_expression "iVar6 = *(int *)(PTR___environ_00145154 + -0x5600)" identifier = (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5600)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x5600)" ( (binary_expression "PTR___environ_00145154 + -0x5600" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" if (parenthesized_expression "(*(int *)(PTR___environ_00145154 + -0x5604) == iVar6)" ( (binary_expression "*(int *)(PTR___environ_00145154 + -0x5604) == iVar6" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5604)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x5604)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x5604)" ( (binary_expression "PTR___environ_00145154 + -0x5604" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }" { (expression_statement "uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;" (assignment_expression "uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)" identifier = (call_expression "(**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)" (parenthesized_expression "(**(code **)PTR_rl_getc_function_001460dc)" ( (pointer_expression "**(code **)PTR_rl_getc_function_001460dc" * (pointer_expression "*(code **)PTR_rl_getc_function_001460dc" * (cast_expression "(code **)PTR_rl_getc_function_001460dc" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (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)) )))) ;) }) (else_clause "else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" else (compound_statement "{\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" { (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }" if (parenthesized_expression "(0x1ff < iVar7)" ( (binary_expression "0x1ff < iVar7" number_literal < identifier) )) (compound_statement "{\n          iVar7 = 0;\n        }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) })) (expression_statement "pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;" (assignment_expression "pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804" identifier = (binary_expression "PTR___environ_00145154 + iVar6 + -0x5804" (binary_expression "PTR___environ_00145154 + iVar6" identifier + identifier) + number_literal)) ;) (expression_statement "*(int *)(PTR___environ_00145154 + -0x5600) = iVar7;" (assignment_expression "*(int *)(PTR___environ_00145154 + -0x5600) = iVar7" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5600)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x5600)" ( (binary_expression "PTR___environ_00145154 + -0x5600" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar10 = (uint)*pbVar8;" (assignment_expression "uVar10 = (uint)*pbVar8" identifier = (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }))) (if_statement "if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);\n      }" if (parenthesized_expression "(*(int *)PTR__rl_caught_signal_00145c04 != 0)" ( (binary_expression "*(int *)PTR__rl_caught_signal_00145c04 != 0" (pointer_expression "*(int *)PTR__rl_caught_signal_00145c04" * (cast_expression "(int *)PTR__rl_caught_signal_00145c04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n        _rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);\n      }" { (expression_statement "_rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04);" (call_expression "_rl_signal_handler(*(int *)PTR__rl_caught_signal_00145c04)" identifier (argument_list "(*(int *)PTR__rl_caught_signal_00145c04)" ( (pointer_expression "*(int *)PTR__rl_caught_signal_00145c04" * (cast_expression "(int *)PTR__rl_caught_signal_00145c04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) }) (else_clause "else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = rl_gather_tyi();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" else (compound_statement "{\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = rl_gather_tyi();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" { (while_statement "while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = rl_gather_tyi();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = rl_gather_tyi();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }" { (expression_statement "iVar7 = *(int *)(puVar2 + -0x5600);" (assignment_expression "iVar7 = *(int *)(puVar2 + -0x5600)" identifier = (pointer_expression "*(int *)(puVar2 + -0x5600)" * (cast_expression "(int *)(puVar2 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5600)" ( (binary_expression "puVar2 + -0x5600" identifier + number_literal) ))))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }" if (parenthesized_expression "(*(int *)(puVar2 + -0x5604) != iVar7)" ( (binary_expression "*(int *)(puVar2 + -0x5604) != iVar7" (pointer_expression "*(int *)(puVar2 + -0x5604)" * (cast_expression "(int *)(puVar2 + -0x5604)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5604)" ( (binary_expression "puVar2 + -0x5604" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }" { (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }" if (parenthesized_expression "(0x1ff < iVar6)" ( (binary_expression "0x1ff < iVar6" number_literal < identifier) )) (compound_statement "{\n            iVar6 = 0;\n          }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) })) (expression_statement "bVar1 = PTR___environ_00145154[iVar7 + -0x5804];" (assignment_expression "bVar1 = PTR___environ_00145154[iVar7 + -0x5804]" identifier = (subscript_expression "PTR___environ_00145154[iVar7 + -0x5804]" identifier [ (binary_expression "iVar7 + -0x5804" identifier + number_literal) ])) ;) (expression_statement "*(int *)(puVar2 + -0x5600) = iVar6;" (assignment_expression "*(int *)(puVar2 + -0x5600) = iVar6" (pointer_expression "*(int *)(puVar2 + -0x5600)" * (cast_expression "(int *)(puVar2 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5600)" ( (binary_expression "puVar2 + -0x5600" identifier + number_literal) )))) = identifier) ;) (return_statement "return (uint)bVar1;" return (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ;) })) (expression_statement "iVar6 = rl_gather_tyi();" (assignment_expression "iVar6 = rl_gather_tyi()" identifier = (call_expression "rl_gather_tyi()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar5 = PTR___errno_location_0014633c;" (assignment_expression "puVar5 = PTR___errno_location_0014633c" identifier = identifier) ;) (if_statement "if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }" { (expression_statement "*(undefined4 *)PTR_rl_done_00145524 = 1;" (assignment_expression "*(undefined4 *)PTR_rl_done_00145524 = 1" (pointer_expression "*(undefined4 *)PTR_rl_done_00145524" * (cast_expression "(undefined4 *)PTR_rl_done_00145524" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "piVar9 = (int *)(*(code *)puVar5)();" (assignment_expression "piVar9 = (int *)(*(code *)puVar5)()" identifier = (cast_expression "(int *)(*(code *)puVar5)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar5)()" (parenthesized_expression "(*(code *)puVar5)" ( (pointer_expression "*(code *)puVar5" * (cast_expression "(code *)puVar5" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar9 != 5) {\n            return 10;\n          }" if (parenthesized_expression "(*piVar9 != 5)" ( (binary_expression "*piVar9 != 5" (pointer_expression "*piVar9" * identifier) != number_literal) )) (compound_statement "{\n            return 10;\n          }" { (return_statement "return 10;" return number_literal ;) })) (return_statement "return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;" return (binary_expression "((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2" (parenthesized_expression "((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0)" ( (binary_expression "(*(uint *)PTR_rl_readline_state_00144658 & 8) == 0" (parenthesized_expression "(*(uint *)PTR_rl_readline_state_00144658 & 8)" ( (binary_expression "*(uint *)PTR_rl_readline_state_00144658 & 8" (pointer_expression "*(uint *)PTR_rl_readline_state_00144658" * (cast_expression "(uint *)PTR_rl_readline_state_00144658" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal) )) == number_literal) )) - number_literal) ;) })) (if_statement "if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }" { (if_statement "if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(int *)puVar3);\n          }" if (parenthesized_expression "(*(int *)puVar3 != 0)" ( (binary_expression "*(int *)puVar3 != 0" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n            _rl_signal_handler(*(int *)puVar3);\n          }" { (expression_statement "_rl_signal_handler(*(int *)puVar3);" (call_expression "_rl_signal_handler(*(int *)puVar3)" identifier (argument_list "(*(int *)puVar3)" ( (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) (if_statement "if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }" if (parenthesized_expression "(*(int *)PTR_rl_done_00145524 != 0)" ( (binary_expression "*(int *)PTR_rl_done_00145524 != 0" (pointer_expression "*(int *)PTR_rl_done_00145524" * (cast_expression "(int *)PTR_rl_done_00145524" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n            return 10;\n          }" { (return_statement "return 10;" return number_literal ;) })) (expression_statement "(**(code **)puVar4)();" (call_expression "(**(code **)puVar4)()" (parenthesized_expression "(**(code **)puVar4)" ( (pointer_expression "**(code **)puVar4" * (pointer_expression "*(code **)puVar4" * (cast_expression "(code **)puVar4" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar6 = *(int *)puVar4;" (assignment_expression "iVar6 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) }))) }) (else_clause "else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" else (compound_statement "{\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" { (expression_statement "*(undefined4 *)PTR_rl_pending_input_00145c8c = 0;" (assignment_expression "*(undefined4 *)PTR_rl_pending_input_00145c8c = 0" (pointer_expression "*(undefined4 *)PTR_rl_pending_input_00145c8c" * (cast_expression "(undefined4 *)PTR_rl_pending_input_00145c8c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;" (assignment_expression "*(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff" (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(uint *)puVar2 & 0xfffdffff" (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal)) ;) }))) (return_statement "return uVar10;" return identifier ;) })))
(translation_unit "uint rl_read_key(void)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}\n\n" (function_definition "uint rl_read_key(void)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}" type_identifier (function_declarator "rl_read_key(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (expression_statement "puVar2 = PTR_rl_readline_state_00144658;" (assignment_expression "puVar2 = PTR_rl_readline_state_00144658" identifier = identifier) ;) (expression_statement "uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;" (assignment_expression "uVar10 = *(uint *)PTR_rl_pending_input_00145c8c" identifier = (pointer_expression "*(uint *)PTR_rl_pending_input_00145c8c" * (cast_expression "(uint *)PTR_rl_pending_input_00145c8c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" if (parenthesized_expression "(uVar10 == 0)" ( (binary_expression "uVar10 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }" { (expression_statement "uVar10 = _rl_next_macro_key();" (assignment_expression "uVar10 = _rl_next_macro_key()" identifier = (call_expression "_rl_next_macro_key()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = PTR_rl_event_hook_001460e4;" (assignment_expression "puVar4 = PTR_rl_event_hook_001460e4" identifier = identifier) ;) (expression_statement "puVar3 = PTR__rl_caught_signal_00145c04;" (assignment_expression "puVar3 = PTR__rl_caught_signal_00145c04" identifier = identifier) ;) (expression_statement "puVar2 = PTR___environ_00145154;" (assignment_expression "puVar2 = PTR___environ_00145154" identifier = identifier) ;) (if_statement "if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n      return uVar10 & 0xff;\n    }" { (return_statement "return uVar10 & 0xff;" return (binary_expression "uVar10 & 0xff" identifier & number_literal) ;) })) (expression_statement "iVar6 = *(int *)PTR_rl_event_hook_001460e4;" (assignment_expression "iVar6 = *(int *)PTR_rl_event_hook_001460e4" identifier = (pointer_expression "*(int *)PTR_rl_event_hook_001460e4" * (cast_expression "(int *)PTR_rl_event_hook_001460e4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }" { (expression_statement "iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);" (assignment_expression "iVar6 = *(int *)(PTR___environ_00145154 + -0x5600)" identifier = (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5600)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x5600)" ( (binary_expression "PTR___environ_00145154 + -0x5600" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" if (parenthesized_expression "(*(int *)(PTR___environ_00145154 + -0x5604) == iVar6)" ( (binary_expression "*(int *)(PTR___environ_00145154 + -0x5604) == iVar6" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5604)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x5604)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x5604)" ( (binary_expression "PTR___environ_00145154 + -0x5604" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }" { (expression_statement "uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;" (assignment_expression "uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)" identifier = (call_expression "(**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)" (parenthesized_expression "(**(code **)PTR_rl_getc_function_001460dc)" ( (pointer_expression "**(code **)PTR_rl_getc_function_001460dc" * (pointer_expression "*(code **)PTR_rl_getc_function_001460dc" * (cast_expression "(code **)PTR_rl_getc_function_001460dc" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (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)) )))) ;) }) (else_clause "else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" else (compound_statement "{\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" { (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }" if (parenthesized_expression "(0x1ff < iVar7)" ( (binary_expression "0x1ff < iVar7" number_literal < identifier) )) (compound_statement "{\n          iVar7 = 0;\n        }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) })) (expression_statement "pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;" (assignment_expression "pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804" identifier = (binary_expression "PTR___environ_00145154 + iVar6 + -0x5804" (binary_expression "PTR___environ_00145154 + iVar6" identifier + identifier) + number_literal)) ;) (expression_statement "*(int *)(PTR___environ_00145154 + -0x5600) = iVar7;" (assignment_expression "*(int *)(PTR___environ_00145154 + -0x5600) = iVar7" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5600)" * (cast_expression "(int *)(PTR___environ_00145154 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR___environ_00145154 + -0x5600)" ( (binary_expression "PTR___environ_00145154 + -0x5600" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar10 = (uint)*pbVar8;" (assignment_expression "uVar10 = (uint)*pbVar8" identifier = (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }))) (if_statement "if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }" if (parenthesized_expression "(*(int *)PTR__rl_caught_signal_00145c04 != 0)" ( (binary_expression "*(int *)PTR__rl_caught_signal_00145c04 != 0" (pointer_expression "*(int *)PTR__rl_caught_signal_00145c04" * (cast_expression "(int *)PTR__rl_caught_signal_00145c04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }" { (expression_statement "_rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);" (call_expression "_rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04)" identifier (argument_list "(*(undefined4 *)PTR__rl_caught_signal_00145c04)" ( (pointer_expression "*(undefined4 *)PTR__rl_caught_signal_00145c04" * (cast_expression "(undefined4 *)PTR__rl_caught_signal_00145c04" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) }) (else_clause "else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" else (compound_statement "{\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" { (while_statement "while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }" { (expression_statement "iVar7 = *(int *)(puVar2 + -0x5600);" (assignment_expression "iVar7 = *(int *)(puVar2 + -0x5600)" identifier = (pointer_expression "*(int *)(puVar2 + -0x5600)" * (cast_expression "(int *)(puVar2 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5600)" ( (binary_expression "puVar2 + -0x5600" identifier + number_literal) ))))) ;) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" identifier = number_literal) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (if_statement "if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }" if (parenthesized_expression "(*(int *)(puVar2 + -0x5604) != iVar7)" ( (binary_expression "*(int *)(puVar2 + -0x5604) != iVar7" (pointer_expression "*(int *)(puVar2 + -0x5604)" * (cast_expression "(int *)(puVar2 + -0x5604)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5604)" ( (binary_expression "puVar2 + -0x5604" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }" { (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (if_statement "if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }" if (parenthesized_expression "(0x1ff < iVar6)" ( (binary_expression "0x1ff < iVar6" number_literal < identifier) )) (compound_statement "{\n            iVar6 = 0;\n          }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) })) (expression_statement "bVar1 = PTR___environ_00145154[iVar7 + -0x5804];" (assignment_expression "bVar1 = PTR___environ_00145154[iVar7 + -0x5804]" identifier = (subscript_expression "PTR___environ_00145154[iVar7 + -0x5804]" identifier [ (binary_expression "iVar7 + -0x5804" identifier + number_literal) ])) ;) (expression_statement "*(int *)(puVar2 + -0x5600) = iVar6;" (assignment_expression "*(int *)(puVar2 + -0x5600) = iVar6" (pointer_expression "*(int *)(puVar2 + -0x5600)" * (cast_expression "(int *)(puVar2 + -0x5600)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x5600)" ( (binary_expression "puVar2 + -0x5600" identifier + number_literal) )))) = identifier) ;) (return_statement "return (uint)bVar1;" return (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) ;) })) (expression_statement "iVar6 = FUN_00102b20();" (assignment_expression "iVar6 = FUN_00102b20()" identifier = (call_expression "FUN_00102b20()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar5 = PTR___errno_location_0014633c;" (assignment_expression "puVar5 = PTR___errno_location_0014633c" identifier = identifier) ;) (if_statement "if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }" { (expression_statement "*(undefined4 *)PTR_rl_done_00145524 = 1;" (assignment_expression "*(undefined4 *)PTR_rl_done_00145524 = 1" (pointer_expression "*(undefined4 *)PTR_rl_done_00145524" * (cast_expression "(undefined4 *)PTR_rl_done_00145524" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "piVar9 = (int *)(*(code *)puVar5)();" (assignment_expression "piVar9 = (int *)(*(code *)puVar5)()" identifier = (cast_expression "(int *)(*(code *)puVar5)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar5)()" (parenthesized_expression "(*(code *)puVar5)" ( (pointer_expression "*(code *)puVar5" * (cast_expression "(code *)puVar5" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (if_statement "if (*piVar9 != 5) {\n            return 10;\n          }" if (parenthesized_expression "(*piVar9 != 5)" ( (binary_expression "*piVar9 != 5" (pointer_expression "*piVar9" * identifier) != number_literal) )) (compound_statement "{\n            return 10;\n          }" { (return_statement "return 10;" return number_literal ;) })) (return_statement "return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;" return (binary_expression "((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2" (parenthesized_expression "((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0)" ( (binary_expression "(*(uint *)PTR_rl_readline_state_00144658 & 8) == 0" (parenthesized_expression "(*(uint *)PTR_rl_readline_state_00144658 & 8)" ( (binary_expression "*(uint *)PTR_rl_readline_state_00144658 & 8" (pointer_expression "*(uint *)PTR_rl_readline_state_00144658" * (cast_expression "(uint *)PTR_rl_readline_state_00144658" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal) )) == number_literal) )) - number_literal) ;) })) (if_statement "if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }" { (if_statement "if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }" if (parenthesized_expression "(*(int *)puVar3 != 0)" ( (binary_expression "*(int *)puVar3 != 0" (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }" { (expression_statement "_rl_signal_handler(*(undefined4 *)puVar3);" (call_expression "_rl_signal_handler(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) (if_statement "if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }" if (parenthesized_expression "(*(int *)PTR_rl_done_00145524 != 0)" ( (binary_expression "*(int *)PTR_rl_done_00145524 != 0" (pointer_expression "*(int *)PTR_rl_done_00145524" * (cast_expression "(int *)PTR_rl_done_00145524" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n            return 10;\n          }" { (return_statement "return 10;" return number_literal ;) })) (expression_statement "(**(code **)puVar4)();" (call_expression "(**(code **)puVar4)()" (parenthesized_expression "(**(code **)puVar4)" ( (pointer_expression "**(code **)puVar4" * (pointer_expression "*(code **)puVar4" * (cast_expression "(code **)puVar4" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "()" ( ))) ;) })) (expression_statement "iVar6 = *(int *)puVar4;" (assignment_expression "iVar6 = *(int *)puVar4" identifier = (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) }))) }) (else_clause "else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" else (compound_statement "{\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" { (expression_statement "*(undefined4 *)PTR_rl_pending_input_00145c8c = 0;" (assignment_expression "*(undefined4 *)PTR_rl_pending_input_00145c8c = 0" (pointer_expression "*(undefined4 *)PTR_rl_pending_input_00145c8c" * (cast_expression "(undefined4 *)PTR_rl_pending_input_00145c8c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;" (assignment_expression "*(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff" (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "*(uint *)puVar2 & 0xfffdffff" (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) & number_literal)) ;) }))) (return_statement "return uVar10;" return identifier ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return (binary_expression IDENT & LIT) ;) })) (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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( 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 IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) })) }) (else_clause else (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return (cast_expression ( (type_descriptor TYPE) ) IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (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 ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) & LIT) )) == LIT) )) - LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) & LIT)) ;) }))) (return_statement return IDENT ;) })))
(function_definition "uint rl_read_key(void)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}" (type_identifier "uint") (function_declarator "rl_read_key(void)" (identifier "rl_read_key") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  byte bVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int iVar7;\n  byte *pbVar8;\n  int *piVar9;\n  uint uVar10;\n  \n  puVar2 = PTR_rl_readline_state_00144658;\n  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;\n  if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }\n  return uVar10;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (expression_statement "puVar2 = PTR_rl_readline_state_00144658;" (assignment_expression "puVar2 = PTR_rl_readline_state_00144658" (identifier "puVar2") (= "=") (identifier "PTR_rl_readline_state_00144658")) (; ";")) (expression_statement "uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;" (assignment_expression "uVar10 = *(uint *)PTR_rl_pending_input_00145c8c" (identifier "uVar10") (= "=") (pointer_expression "*(uint *)PTR_rl_pending_input_00145c8c" (* "*") (cast_expression "(uint *)PTR_rl_pending_input_00145c8c" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_pending_input_00145c8c")))) (; ";")) (if_statement "if (uVar10 == 0) {\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }\n  else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" (if "if") (parenthesized_expression "(uVar10 == 0)" (( "(") (binary_expression "uVar10 == 0" (identifier "uVar10") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar10 = _rl_next_macro_key();\n    puVar4 = PTR_rl_event_hook_001460e4;\n    puVar3 = PTR__rl_caught_signal_00145c04;\n    puVar2 = PTR___environ_00145154;\n    if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }\n    iVar6 = *(int *)PTR_rl_event_hook_001460e4;\n    if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar10 = _rl_next_macro_key();" (assignment_expression "uVar10 = _rl_next_macro_key()" (identifier "uVar10") (= "=") (call_expression "_rl_next_macro_key()" (identifier "_rl_next_macro_key") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar4 = PTR_rl_event_hook_001460e4;" (assignment_expression "puVar4 = PTR_rl_event_hook_001460e4" (identifier "puVar4") (= "=") (identifier "PTR_rl_event_hook_001460e4")) (; ";")) (expression_statement "puVar3 = PTR__rl_caught_signal_00145c04;" (assignment_expression "puVar3 = PTR__rl_caught_signal_00145c04" (identifier "puVar3") (= "=") (identifier "PTR__rl_caught_signal_00145c04")) (; ";")) (expression_statement "puVar2 = PTR___environ_00145154;" (assignment_expression "puVar2 = PTR___environ_00145154" (identifier "puVar2") (= "=") (identifier "PTR___environ_00145154")) (; ";")) (if_statement "if (uVar10 != 0) {\n      return uVar10 & 0xff;\n    }" (if "if") (parenthesized_expression "(uVar10 != 0)" (( "(") (binary_expression "uVar10 != 0" (identifier "uVar10") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return uVar10 & 0xff;\n    }" ({ "{") (return_statement "return uVar10 & 0xff;" (return "return") (binary_expression "uVar10 & 0xff" (identifier "uVar10") (& "&") (number_literal "0xff")) (; ";")) (} "}"))) (expression_statement "iVar6 = *(int *)PTR_rl_event_hook_001460e4;" (assignment_expression "iVar6 = *(int *)PTR_rl_event_hook_001460e4" (identifier "iVar6") (= "=") (pointer_expression "*(int *)PTR_rl_event_hook_001460e4" (* "*") (cast_expression "(int *)PTR_rl_event_hook_001460e4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_event_hook_001460e4")))) (; ";")) (if_statement "if (iVar6 == 0) {\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }\n    else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);\n      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }\n      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }\n    }" ({ "{") (expression_statement "iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);" (assignment_expression "iVar6 = *(int *)(PTR___environ_00145154 + -0x5600)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5600)" (* "*") (cast_expression "(int *)(PTR___environ_00145154 + -0x5600)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___environ_00145154 + -0x5600)" (( "(") (binary_expression "PTR___environ_00145154 + -0x5600" (identifier "PTR___environ_00145154") (+ "+") (number_literal "-0x5600")) () ")"))))) (; ";")) (if_statement "if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }\n      else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" (if "if") (parenthesized_expression "(*(int *)(PTR___environ_00145154 + -0x5604) == iVar6)" (( "(") (binary_expression "*(int *)(PTR___environ_00145154 + -0x5604) == iVar6" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5604)" (* "*") (cast_expression "(int *)(PTR___environ_00145154 + -0x5604)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___environ_00145154 + -0x5604)" (( "(") (binary_expression "PTR___environ_00145154 + -0x5604" (identifier "PTR___environ_00145154") (+ "+") (number_literal "-0x5604")) () ")")))) (== "==") (identifier "iVar6")) () ")")) (compound_statement "{\n        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;\n      }" ({ "{") (expression_statement "uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)\n        ;" (assignment_expression "uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)" (identifier "uVar10") (= "=") (call_expression "(**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)" (parenthesized_expression "(**(code **)PTR_rl_getc_function_001460dc)" (( "(") (pointer_expression "**(code **)PTR_rl_getc_function_001460dc" (* "*") (pointer_expression "*(code **)PTR_rl_getc_function_001460dc" (* "*") (cast_expression "(code **)PTR_rl_getc_function_001460dc" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_rl_getc_function_001460dc")))) () ")")) (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"))) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" (else "else") (compound_statement "{\n        iVar7 = iVar6 + 1;\n        if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }\n        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;\n        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;\n        uVar10 = (uint)*pbVar8;\n      }" ({ "{") (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (0x1ff < iVar7) {\n          iVar7 = 0;\n        }" (if "if") (parenthesized_expression "(0x1ff < iVar7)" (( "(") (binary_expression "0x1ff < iVar7" (number_literal "0x1ff") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n          iVar7 = 0;\n        }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;" (assignment_expression "pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804" (identifier "pbVar8") (= "=") (binary_expression "PTR___environ_00145154 + iVar6 + -0x5804" (binary_expression "PTR___environ_00145154 + iVar6" (identifier "PTR___environ_00145154") (+ "+") (identifier "iVar6")) (+ "+") (number_literal "-0x5804"))) (; ";")) (expression_statement "*(int *)(PTR___environ_00145154 + -0x5600) = iVar7;" (assignment_expression "*(int *)(PTR___environ_00145154 + -0x5600) = iVar7" (pointer_expression "*(int *)(PTR___environ_00145154 + -0x5600)" (* "*") (cast_expression "(int *)(PTR___environ_00145154 + -0x5600)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR___environ_00145154 + -0x5600)" (( "(") (binary_expression "PTR___environ_00145154 + -0x5600" (identifier "PTR___environ_00145154") (+ "+") (number_literal "-0x5600")) () ")")))) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "uVar10 = (uint)*pbVar8;" (assignment_expression "uVar10 = (uint)*pbVar8" (identifier "uVar10") (= "=") (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar8"))) (; ";")) (} "}")))) (if_statement "if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }" (if "if") (parenthesized_expression "(*(int *)PTR__rl_caught_signal_00145c04 != 0)" (( "(") (binary_expression "*(int *)PTR__rl_caught_signal_00145c04 != 0" (pointer_expression "*(int *)PTR__rl_caught_signal_00145c04" (* "*") (cast_expression "(int *)PTR__rl_caught_signal_00145c04" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__rl_caught_signal_00145c04"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);\n      }" ({ "{") (expression_statement "_rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);" (call_expression "_rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04)" (identifier "_rl_signal_handler") (argument_list "(*(undefined4 *)PTR__rl_caught_signal_00145c04)" (( "(") (pointer_expression "*(undefined4 *)PTR__rl_caught_signal_00145c04" (* "*") (cast_expression "(undefined4 *)PTR__rl_caught_signal_00145c04" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__rl_caught_signal_00145c04"))) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" (else "else") (compound_statement "{\n      while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }\n    }" ({ "{") (while_statement "while( true ) {\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar7 = *(int *)(puVar2 + -0x5600);\n        uVar10 = 0;\n        if (iVar6 == 0) break;\n        if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }\n        iVar6 = FUN_00102b20();\n        puVar5 = PTR___errno_location_0014633c;\n        if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }\n        if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }\n        iVar6 = *(int *)puVar4;\n      }" ({ "{") (expression_statement "iVar7 = *(int *)(puVar2 + -0x5600);" (assignment_expression "iVar7 = *(int *)(puVar2 + -0x5600)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(puVar2 + -0x5600)" (* "*") (cast_expression "(int *)(puVar2 + -0x5600)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x5600)" (( "(") (binary_expression "puVar2 + -0x5600" (identifier "puVar2") (+ "+") (number_literal "-0x5600")) () ")"))))) (; ";")) (expression_statement "uVar10 = 0;" (assignment_expression "uVar10 = 0" (identifier "uVar10") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar6 == 0) break;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (*(int *)(puVar2 + -0x5604) != iVar7) {\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }" (if "if") (parenthesized_expression "(*(int *)(puVar2 + -0x5604) != iVar7)" (( "(") (binary_expression "*(int *)(puVar2 + -0x5604) != iVar7" (pointer_expression "*(int *)(puVar2 + -0x5604)" (* "*") (cast_expression "(int *)(puVar2 + -0x5604)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x5604)" (( "(") (binary_expression "puVar2 + -0x5604" (identifier "puVar2") (+ "+") (number_literal "-0x5604")) () ")")))) (!= "!=") (identifier "iVar7")) () ")")) (compound_statement "{\n          iVar6 = iVar7 + 1;\n          if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }\n          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];\n          *(int *)(puVar2 + -0x5600) = iVar6;\n          return (uint)bVar1;\n        }" ({ "{") (expression_statement "iVar6 = iVar7 + 1;" (assignment_expression "iVar6 = iVar7 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar7 + 1" (identifier "iVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (0x1ff < iVar6) {\n            iVar6 = 0;\n          }" (if "if") (parenthesized_expression "(0x1ff < iVar6)" (( "(") (binary_expression "0x1ff < iVar6" (number_literal "0x1ff") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n            iVar6 = 0;\n          }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "bVar1 = PTR___environ_00145154[iVar7 + -0x5804];" (assignment_expression "bVar1 = PTR___environ_00145154[iVar7 + -0x5804]" (identifier "bVar1") (= "=") (subscript_expression "PTR___environ_00145154[iVar7 + -0x5804]" (identifier "PTR___environ_00145154") ([ "[") (binary_expression "iVar7 + -0x5804" (identifier "iVar7") (+ "+") (number_literal "-0x5804")) (] "]"))) (; ";")) (expression_statement "*(int *)(puVar2 + -0x5600) = iVar6;" (assignment_expression "*(int *)(puVar2 + -0x5600) = iVar6" (pointer_expression "*(int *)(puVar2 + -0x5600)" (* "*") (cast_expression "(int *)(puVar2 + -0x5600)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x5600)" (( "(") (binary_expression "puVar2 + -0x5600" (identifier "puVar2") (+ "+") (number_literal "-0x5600")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (return_statement "return (uint)bVar1;" (return "return") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1")) (; ";")) (} "}"))) (expression_statement "iVar6 = FUN_00102b20();" (assignment_expression "iVar6 = FUN_00102b20()" (identifier "iVar6") (= "=") (call_expression "FUN_00102b20()" (identifier "FUN_00102b20") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar5 = PTR___errno_location_0014633c;" (assignment_expression "puVar5 = PTR___errno_location_0014633c" (identifier "puVar5") (= "=") (identifier "PTR___errno_location_0014633c")) (; ";")) (if_statement "if (iVar6 < 0) {\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }" (if "if") (parenthesized_expression "(iVar6 < 0)" (( "(") (binary_expression "iVar6 < 0" (identifier "iVar6") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          *(undefined4 *)PTR_rl_done_00145524 = 1;\n          piVar9 = (int *)(*(code *)puVar5)();\n          if (*piVar9 != 5) {\n            return 10;\n          }\n          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;\n        }" ({ "{") (expression_statement "*(undefined4 *)PTR_rl_done_00145524 = 1;" (assignment_expression "*(undefined4 *)PTR_rl_done_00145524 = 1" (pointer_expression "*(undefined4 *)PTR_rl_done_00145524" (* "*") (cast_expression "(undefined4 *)PTR_rl_done_00145524" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_done_00145524"))) (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar9 = (int *)(*(code *)puVar5)();" (assignment_expression "piVar9 = (int *)(*(code *)puVar5)()" (identifier "piVar9") (= "=") (cast_expression "(int *)(*(code *)puVar5)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)puVar5)()" (parenthesized_expression "(*(code *)puVar5)" (( "(") (pointer_expression "*(code *)puVar5" (* "*") (cast_expression "(code *)puVar5" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (*piVar9 != 5) {\n            return 10;\n          }" (if "if") (parenthesized_expression "(*piVar9 != 5)" (( "(") (binary_expression "*piVar9 != 5" (pointer_expression "*piVar9" (* "*") (identifier "piVar9")) (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n            return 10;\n          }" ({ "{") (return_statement "return 10;" (return "return") (number_literal "10") (; ";")) (} "}"))) (return_statement "return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;" (return "return") (binary_expression "((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2" (parenthesized_expression "((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0)" (( "(") (binary_expression "(*(uint *)PTR_rl_readline_state_00144658 & 8) == 0" (parenthesized_expression "(*(uint *)PTR_rl_readline_state_00144658 & 8)" (( "(") (binary_expression "*(uint *)PTR_rl_readline_state_00144658 & 8" (pointer_expression "*(uint *)PTR_rl_readline_state_00144658" (* "*") (cast_expression "(uint *)PTR_rl_readline_state_00144658" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_readline_state_00144658"))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (- "-") (number_literal "2")) (; ";")) (} "}"))) (if_statement "if (iVar6 == 0) {\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }\n          if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }\n          (**(code **)puVar4)();\n        }" ({ "{") (if_statement "if (*(int *)puVar3 != 0) {\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }" (if "if") (parenthesized_expression "(*(int *)puVar3 != 0)" (( "(") (binary_expression "*(int *)puVar3 != 0" (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            _rl_signal_handler(*(undefined4 *)puVar3);\n          }" ({ "{") (expression_statement "_rl_signal_handler(*(undefined4 *)puVar3);" (call_expression "_rl_signal_handler(*(undefined4 *)puVar3)" (identifier "_rl_signal_handler") (argument_list "(*(undefined4 *)puVar3)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)PTR_rl_done_00145524 != 0) {\n            return 10;\n          }" (if "if") (parenthesized_expression "(*(int *)PTR_rl_done_00145524 != 0)" (( "(") (binary_expression "*(int *)PTR_rl_done_00145524 != 0" (pointer_expression "*(int *)PTR_rl_done_00145524" (* "*") (cast_expression "(int *)PTR_rl_done_00145524" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_done_00145524"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            return 10;\n          }" ({ "{") (return_statement "return 10;" (return "return") (number_literal "10") (; ";")) (} "}"))) (expression_statement "(**(code **)puVar4)();" (call_expression "(**(code **)puVar4)()" (parenthesized_expression "(**(code **)puVar4)" (( "(") (pointer_expression "**(code **)puVar4" (* "*") (pointer_expression "*(code **)puVar4" (* "*") (cast_expression "(code **)puVar4" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar4")))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar6 = *(int *)puVar4;" (assignment_expression "iVar6 = *(int *)puVar4" (identifier "iVar6") (= "=") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" (else "else") (compound_statement "{\n    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;\n    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;\n  }" ({ "{") (expression_statement "*(undefined4 *)PTR_rl_pending_input_00145c8c = 0;" (assignment_expression "*(undefined4 *)PTR_rl_pending_input_00145c8c = 0" (pointer_expression "*(undefined4 *)PTR_rl_pending_input_00145c8c" (* "*") (cast_expression "(undefined4 *)PTR_rl_pending_input_00145c8c" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_pending_input_00145c8c"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;" (assignment_expression "*(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff" (pointer_expression "*(uint *)puVar2" (* "*") (cast_expression "(uint *)puVar2" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (= "=") (binary_expression "*(uint *)puVar2 & 0xfffdffff" (pointer_expression "*(uint *)puVar2" (* "*") (cast_expression "(uint *)puVar2" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) (& "&") (number_literal "0xfffdffff"))) (; ";")) (} "}")))) (return_statement "return uVar10;" (return "return") (identifier "uVar10") (; ";")) (} "}")))
(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: (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))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (binary_expression left: (identifier) right: (number_literal))))) (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 (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (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: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))))) alternative: (else_clause (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (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: (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: (cast_expression type: (type_descriptor type: (primitive_type) 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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) right: (number_literal))) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (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: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (return_statement (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))) (return_statement (identifier)))))

uint MASKED(void)

{
  byte bVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  int iVar6;
  int iVar7;
  byte *pbVar8;
  int *piVar9;
  uint uVar10;
  
  puVar2 = PTR_rl_readline_state_00144658;
  uVar10 = *(uint *)PTR_rl_pending_input_00145c8c;
  if (uVar10 == 0) {
    uVar10 = _rl_next_macro_key();
    puVar4 = PTR_rl_event_hook_001460e4;
    puVar3 = PTR__rl_caught_signal_00145c04;
    puVar2 = PTR___environ_00145154;
    if (uVar10 != 0) {
      return uVar10 & 0xff;
    }
    iVar6 = *(int *)PTR_rl_event_hook_001460e4;
    if (iVar6 == 0) {
      iVar6 = *(int *)(PTR___environ_00145154 + -0x5600);
      if (*(int *)(PTR___environ_00145154 + -0x5604) == iVar6) {
        uVar10 = (**(code **)PTR_rl_getc_function_001460dc)(*(undefined4 *)PTR_rl_instream_001448b0)
        ;
      }
      else {
        iVar7 = iVar6 + 1;
        if (0x1ff < iVar7) {
          iVar7 = 0;
        }
        pbVar8 = PTR___environ_00145154 + iVar6 + -0x5804;
        *(int *)(PTR___environ_00145154 + -0x5600) = iVar7;
        uVar10 = (uint)*pbVar8;
      }
      if (*(int *)PTR__rl_caught_signal_00145c04 != 0) {
        _rl_signal_handler(*(undefined4 *)PTR__rl_caught_signal_00145c04);
      }
    }
    else {
      while( true ) {
        iVar7 = *(int *)(puVar2 + -0x5600);
        uVar10 = 0;
        if (iVar6 == 0) break;
        if (*(int *)(puVar2 + -0x5604) != iVar7) {
          iVar6 = iVar7 + 1;
          if (0x1ff < iVar6) {
            iVar6 = 0;
          }
          bVar1 = PTR___environ_00145154[iVar7 + -0x5804];
          *(int *)(puVar2 + -0x5600) = iVar6;
          return (uint)bVar1;
        }
        iVar6 = FUN_00102b20();
        puVar5 = PTR___errno_location_0014633c;
        if (iVar6 < 0) {
          *(undefined4 *)PTR_rl_done_00145524 = 1;
          piVar9 = (int *)(*(code *)puVar5)();
          if (*piVar9 != 5) {
            return 10;
          }
          return ((*(uint *)PTR_rl_readline_state_00144658 & 8) == 0) - 2;
        }
        if (iVar6 == 0) {
          if (*(int *)puVar3 != 0) {
            _rl_signal_handler(*(undefined4 *)puVar3);
          }
          if (*(int *)PTR_rl_done_00145524 != 0) {
            return 10;
          }
          (**(code **)puVar4)();
        }
        iVar6 = *(int *)puVar4;
      }
    }
  }
  else {
    *(undefined4 *)PTR_rl_pending_input_00145c8c = 0;
    *(uint *)puVar2 = *(uint *)puVar2 & 0xfffdffff;
  }
  return uVar10;
}

