
/* WARNING: Unknown calling convention */

int _rl_input_available(void)

{
  uint uVar1;
  __fd_mask *p_Var2;
  int iVar3;
  int iVar4;
  uint uVar5;
  timeval timeout;
  fd_set readfds;
  fd_set exceptfds;
  int local_14 [2];
  
  local_14[0] = *(int *)PTR___stack_chk_guard_0015858c;
  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {
    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);
    p_Var2 = readfds.fds_bits;
    do {
      *p_Var2 = 0;
      p_Var2 = p_Var2 + 1;
    } while ((fd_set *)p_Var2 != &exceptfds);
    p_Var2 = exceptfds.fds_bits;
    do {
      *p_Var2 = 0;
      p_Var2 = p_Var2 + 1;
    } while (p_Var2 != local_14);
    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);
    uVar5 = 1 << (uVar1 & 0x1f);
    readfds.fds_bits[iVar3] = readfds.fds_bits[iVar3] | uVar5;
    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);
    exceptfds.fds_bits[iVar3] = exceptfds.fds_bits[iVar3] | uVar5;
    timeout.tv_sec = 0;
    timeout.tv_usec = *(__suseconds_t *)(PTR_DAT_00156568 + 0x63c0);
    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,&readfds,0,&exceptfds,&timeout);
    uVar1 = (uint)(0 < iVar3);
  }
  else {
    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();
  }
  if (local_14[0] == *(int *)PTR___stack_chk_guard_0015858c) {
    return uVar1;
  }
  iVar3 = local_14[0];
  (*(code *)PTR___stack_chk_fail_0015853c)();
  iVar3 = rl_set_keyboard_input_timeout(iVar3);
  iVar4 = _rl_input_available();
  rl_set_keyboard_input_timeout(iVar3);
  return iVar4;
}



uint _rl_input_available(void)

{
  uint uVar1;
  uint *puVar2;
  int iVar3;
  undefined4 uVar4;
  uint uVar5;
  undefined4 local_11c;
  undefined4 local_118;
  uint local_114 [32];
  uint local_94 [32];
  uint local_14 [2];
  
  local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;
  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {
    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);
    puVar2 = local_114;
    do {
      *puVar2 = 0;
      puVar2 = puVar2 + 1;
    } while (puVar2 != local_94);
    puVar2 = local_94;
    do {
      *puVar2 = 0;
      puVar2 = puVar2 + 1;
    } while (puVar2 != local_14);
    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);
    uVar5 = 1 << (uVar1 & 0x1f);
    local_114[iVar3] = local_114[iVar3] | uVar5;
    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);
    local_94[iVar3] = local_94[iVar3] | uVar5;
    local_11c = 0;
    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);
    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);
    uVar1 = (uint)(0 < iVar3);
  }
  else {
    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();
  }
  if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {
    return uVar1;
  }
  (*(code *)PTR___stack_chk_fail_0015853c)();
  uVar4 = rl_set_keyboard_input_timeout();
  uVar1 = _rl_input_available();
  rl_set_keyboard_input_timeout(uVar4);
  return uVar1;
}


lui gp,0x5
addiu gp,gp,-0x4f34
addu gp,gp,t9
addiu sp,sp,-0x140
sw ra,0x13c(sp)
sw s1,0x138(sp)
sw s0,0x134(sp)
sw gp,0x18(sp)
lw v0,-0x5fb4(gp)
lw v0,0x0(v0)
sw v0,0x12c(sp)
lw v0,-0x63a8(gp)
lw t9,0x0(v0)
beq t9,zero,0x001134e0
_lw v0,-0x7c50(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw a0,0x12c(sp)
lw v1,-0x5fb4(gp)
lw v1,0x0(v1)
bne a0,v1,0x001135e8
_lw ra,0x13c(sp)
lw s1,0x138(sp)
lw s0,0x134(sp)
jr ra
_addiu sp,sp,0x140
lw a0,0x0(v0)
lw t9,-0x6164(gp)
jalr t9
_nop
lw gp,0x18(sp)
or s0,v0,zero
addiu v0,sp,0x2c
addiu v1,sp,0xac
sw zero,0x0(v0)
addiu v0,v0,0x4
bne v0,v1,0x00113500
_nop
addiu v0,sp,0xac
addiu v1,sp,0x12c
sw zero,0x0(v0)
addiu v0,v0,0x4
bne v0,v1,0x00113518
_or a0,s0,zero
lw t9,-0x601c(gp)
jalr t9
_nop
lw gp,0x18(sp)
lui v1,0x8000
addiu v1,v1,0x1f
and v1,s0,v1
bltz v1,0x001135d8
_li a0,-0x20
li s1,0x1
sllv s1,s1,v1
sll v0,v0,0x2
addiu v1,sp,0x130
addu v0,v1,v0
lw v1,-0x104(v0)
or v1,v1,s1
sw v1,-0x104(v0)
or a0,s0,zero
lw t9,-0x601c(gp)
jalr t9
_nop
lw gp,0x18(sp)
sll v0,v0,0x2
addiu v1,sp,0x130
addu v0,v1,v0
lw v1,-0x84(v0)
or v1,v1,s1
sw v1,-0x84(v0)
sw zero,0x24(sp)
lw v0,-0x7fd8(gp)
lw v0,0x63c0(v0)
sw v0,0x28(sp)
addiu v0,sp,0x24
sw v0,0x10(sp)
addiu a3,sp,0xac
or a2,zero,zero
addiu a1,sp,0x2c
addiu a0,s0,0x1
lw t9,-0x5fe4(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x001134bc
_slt v0,zero,v0
addiu v1,v1,-0x1
or v1,v1,a0
b 0x0011354c
_addiu v1,v1,0x1
lw t9,-0x6004(gp)
jalr t9
_nop
(translation_unit "uint _rl_input_available(void)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined4 local_11c;\n  undefined4 local_118;\n  uint local_114 [32];\n  uint local_94 [32];\n  uint local_14 [2];\n  \n  local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  uVar4 = rl_set_keyboard_input_timeout();\n  uVar1 = _rl_input_available();\n  rl_set_keyboard_input_timeout(uVar4);\n  return uVar1;\n}\n\n" (function_definition "uint _rl_input_available(void)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined4 local_11c;\n  undefined4 local_118;\n  uint local_114 [32];\n  uint local_94 [32];\n  uint local_14 [2];\n  \n  local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  uVar4 = rl_set_keyboard_input_timeout();\n  uVar1 = _rl_input_available();\n  rl_set_keyboard_input_timeout(uVar4);\n  return uVar1;\n}" type_identifier (function_declarator "_rl_input_available(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined4 local_11c;\n  undefined4 local_118;\n  uint local_114 [32];\n  uint local_94 [32];\n  uint local_14 [2];\n  \n  local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  uVar4 = rl_set_keyboard_input_timeout();\n  uVar1 = _rl_input_available();\n  rl_set_keyboard_input_timeout(uVar4);\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 local_11c;" type_identifier identifier ;) (declaration "undefined4 local_118;" type_identifier identifier ;) (declaration "uint local_114 [32];" type_identifier (array_declarator "local_114 [32]" identifier [ number_literal ]) ;) (declaration "uint local_94 [32];" type_identifier (array_declarator "local_94 [32]" identifier [ number_literal ]) ;) (declaration "uint local_14 [2];" type_identifier (array_declarator "local_14 [2]" identifier [ number_literal ]) ;) (expression_statement "local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;" (assignment_expression "local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c" (subscript_expression "local_14[0]" identifier [ number_literal ]) = (pointer_expression "*(uint *)PTR___stack_chk_guard_0015858c" * (cast_expression "(uint *)PTR___stack_chk_guard_0015858c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" if (parenthesized_expression "(*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0)" ( (binary_expression "*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0" (pointer_expression "*(code **)PTR_rl_input_available_hook_00158198" * (cast_expression "(code **)PTR_rl_input_available_hook_00158198" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }" { (expression_statement "uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);" (assignment_expression "uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0)" identifier = (call_expression "(*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0)" (parenthesized_expression "(*(code *)PTR_fileno_001583dc)" ( (pointer_expression "*(code *)PTR_fileno_001583dc" * (cast_expression "(code *)PTR_fileno_001583dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_rl_instream_001568f0)" ( (pointer_expression "*(undefined4 *)PTR_rl_instream_001568f0" * (cast_expression "(undefined4 *)PTR_rl_instream_001568f0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "puVar2 = local_114;" (assignment_expression "puVar2 = local_114" identifier = identifier) ;) (do_statement "do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);" do (compound_statement "{\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != local_94)" ( (binary_expression "puVar2 != local_94" identifier != identifier) )) ;) (expression_statement "puVar2 = local_94;" (assignment_expression "puVar2 = local_94" identifier = identifier) ;) (do_statement "do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);" do (compound_statement "{\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != local_14)" ( (binary_expression "puVar2 != local_14" identifier != identifier) )) ;) (expression_statement "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);" (assignment_expression "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1)" identifier = (call_expression "(*(code *)PTR___fdelt_chk_00158524)(uVar1)" (parenthesized_expression "(*(code *)PTR___fdelt_chk_00158524)" ( (pointer_expression "*(code *)PTR___fdelt_chk_00158524" * (cast_expression "(code *)PTR___fdelt_chk_00158524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar5 = 1 << (uVar1 & 0x1f);" (assignment_expression "uVar5 = 1 << (uVar1 & 0x1f)" identifier = (binary_expression "1 << (uVar1 & 0x1f)" number_literal << (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "local_114[iVar3] = local_114[iVar3] | uVar5;" (assignment_expression "local_114[iVar3] = local_114[iVar3] | uVar5" (subscript_expression "local_114[iVar3]" identifier [ identifier ]) = (binary_expression "local_114[iVar3] | uVar5" (subscript_expression "local_114[iVar3]" identifier [ identifier ]) | identifier)) ;) (expression_statement "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);" (assignment_expression "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1)" identifier = (call_expression "(*(code *)PTR___fdelt_chk_00158524)(uVar1)" (parenthesized_expression "(*(code *)PTR___fdelt_chk_00158524)" ( (pointer_expression "*(code *)PTR___fdelt_chk_00158524" * (cast_expression "(code *)PTR___fdelt_chk_00158524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "local_94[iVar3] = local_94[iVar3] | uVar5;" (assignment_expression "local_94[iVar3] = local_94[iVar3] | uVar5" (subscript_expression "local_94[iVar3]" identifier [ identifier ]) = (binary_expression "local_94[iVar3] | uVar5" (subscript_expression "local_94[iVar3]" identifier [ identifier ]) | identifier)) ;) (expression_statement "local_11c = 0;" (assignment_expression "local_11c = 0" identifier = number_literal) ;) (expression_statement "local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);" (assignment_expression "local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_00156568 + 0x63c0)" * (cast_expression "(undefined4 *)(PTR_DAT_00156568 + 0x63c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00156568 + 0x63c0)" ( (binary_expression "PTR_DAT_00156568 + 0x63c0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);" (assignment_expression "iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c)" identifier = (call_expression "(*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c)" (parenthesized_expression "(*(code *)PTR_select_0015855c)" ( (pointer_expression "*(code *)PTR_select_0015855c" * (cast_expression "(code *)PTR_select_0015855c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1 + 1,local_114,0,local_94,&local_11c)" ( (binary_expression "uVar1 + 1" identifier + number_literal) , identifier , number_literal , identifier , (pointer_expression "&local_11c" & identifier) )))) ;) (expression_statement "uVar1 = (uint)(0 < iVar3);" (assignment_expression "uVar1 = (uint)(0 < iVar3)" identifier = (call_expression "(uint)(0 < iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )))) ;) }) (else_clause "else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" else (compound_statement "{\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" { (expression_statement "uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();" (assignment_expression "uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)()" identifier = (call_expression "(**(code **)PTR_rl_input_available_hook_00158198)()" (parenthesized_expression "(**(code **)PTR_rl_input_available_hook_00158198)" ( (pointer_expression "**(code **)PTR_rl_input_available_hook_00158198" * (pointer_expression "*(code **)PTR_rl_input_available_hook_00158198" * (cast_expression "(code **)PTR_rl_input_available_hook_00158198" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c)" ( (binary_expression "local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c" (subscript_expression "local_14[0]" identifier [ number_literal ]) == (pointer_expression "*(uint *)PTR___stack_chk_guard_0015858c" * (cast_expression "(uint *)PTR___stack_chk_guard_0015858c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_0015853c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015853c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015853c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015853c" * (cast_expression "(code *)PTR___stack_chk_fail_0015853c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar4 = rl_set_keyboard_input_timeout();" (assignment_expression "uVar4 = rl_set_keyboard_input_timeout()" identifier = (call_expression "rl_set_keyboard_input_timeout()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = _rl_input_available();" (assignment_expression "uVar1 = _rl_input_available()" identifier = (call_expression "_rl_input_available()" identifier (argument_list "()" ( )))) ;) (expression_statement "rl_set_keyboard_input_timeout(uVar4);" (call_expression "rl_set_keyboard_input_timeout(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint _rl_input_available(void)\n\n{\n  uint uVar1;\n  __fd_mask *p_Var2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  timeval timeout;\n  fd_set readfds;\n  fd_set exceptfds;\n  int local_14 [2];\n  \n  local_14[0] = *(int *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    p_Var2 = readfds.fds_bits;\n    do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while ((fd_set *)p_Var2 != &exceptfds);\n    p_Var2 = exceptfds.fds_bits;\n    do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while (p_Var2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    readfds.fds_bits[iVar3] = readfds.fds_bits[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    exceptfds.fds_bits[iVar3] = exceptfds.fds_bits[iVar3] | uVar5;\n    timeout.tv_sec = 0;\n    timeout.tv_usec = *(__suseconds_t *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,&readfds,0,&exceptfds,&timeout);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(int *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  iVar3 = local_14[0];\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar3 = rl_set_keyboard_input_timeout(iVar3);\n  iVar4 = _rl_input_available();\n  rl_set_keyboard_input_timeout(iVar3);\n  return iVar4;\n}\n\n" comment (function_definition "int _rl_input_available(void)\n\n{\n  uint uVar1;\n  __fd_mask *p_Var2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  timeval timeout;\n  fd_set readfds;\n  fd_set exceptfds;\n  int local_14 [2];\n  \n  local_14[0] = *(int *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    p_Var2 = readfds.fds_bits;\n    do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while ((fd_set *)p_Var2 != &exceptfds);\n    p_Var2 = exceptfds.fds_bits;\n    do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while (p_Var2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    readfds.fds_bits[iVar3] = readfds.fds_bits[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    exceptfds.fds_bits[iVar3] = exceptfds.fds_bits[iVar3] | uVar5;\n    timeout.tv_sec = 0;\n    timeout.tv_usec = *(__suseconds_t *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,&readfds,0,&exceptfds,&timeout);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(int *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  iVar3 = local_14[0];\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar3 = rl_set_keyboard_input_timeout(iVar3);\n  iVar4 = _rl_input_available();\n  rl_set_keyboard_input_timeout(iVar3);\n  return iVar4;\n}" primitive_type (function_declarator "_rl_input_available(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  __fd_mask *p_Var2;\n  int iVar3;\n  int iVar4;\n  uint uVar5;\n  timeval timeout;\n  fd_set readfds;\n  fd_set exceptfds;\n  int local_14 [2];\n  \n  local_14[0] = *(int *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    p_Var2 = readfds.fds_bits;\n    do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while ((fd_set *)p_Var2 != &exceptfds);\n    p_Var2 = exceptfds.fds_bits;\n    do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while (p_Var2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    readfds.fds_bits[iVar3] = readfds.fds_bits[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    exceptfds.fds_bits[iVar3] = exceptfds.fds_bits[iVar3] | uVar5;\n    timeout.tv_sec = 0;\n    timeout.tv_usec = *(__suseconds_t *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,&readfds,0,&exceptfds,&timeout);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(int *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  iVar3 = local_14[0];\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  iVar3 = rl_set_keyboard_input_timeout(iVar3);\n  iVar4 = _rl_input_available();\n  rl_set_keyboard_input_timeout(iVar3);\n  return iVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "__fd_mask *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "timeval timeout;" type_identifier identifier ;) (declaration "fd_set readfds;" type_identifier identifier ;) (declaration "fd_set exceptfds;" type_identifier identifier ;) (declaration "int local_14 [2];" primitive_type (array_declarator "local_14 [2]" identifier [ number_literal ]) ;) (expression_statement "local_14[0] = *(int *)PTR___stack_chk_guard_0015858c;" (assignment_expression "local_14[0] = *(int *)PTR___stack_chk_guard_0015858c" (subscript_expression "local_14[0]" identifier [ number_literal ]) = (pointer_expression "*(int *)PTR___stack_chk_guard_0015858c" * (cast_expression "(int *)PTR___stack_chk_guard_0015858c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    p_Var2 = readfds.fds_bits;\n    do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while ((fd_set *)p_Var2 != &exceptfds);\n    p_Var2 = exceptfds.fds_bits;\n    do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while (p_Var2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    readfds.fds_bits[iVar3] = readfds.fds_bits[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    exceptfds.fds_bits[iVar3] = exceptfds.fds_bits[iVar3] | uVar5;\n    timeout.tv_sec = 0;\n    timeout.tv_usec = *(__suseconds_t *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,&readfds,0,&exceptfds,&timeout);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" if (parenthesized_expression "(*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0)" ( (binary_expression "*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0" (pointer_expression "*(code **)PTR_rl_input_available_hook_00158198" * (cast_expression "(code **)PTR_rl_input_available_hook_00158198" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    p_Var2 = readfds.fds_bits;\n    do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while ((fd_set *)p_Var2 != &exceptfds);\n    p_Var2 = exceptfds.fds_bits;\n    do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while (p_Var2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    readfds.fds_bits[iVar3] = readfds.fds_bits[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    exceptfds.fds_bits[iVar3] = exceptfds.fds_bits[iVar3] | uVar5;\n    timeout.tv_sec = 0;\n    timeout.tv_usec = *(__suseconds_t *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,&readfds,0,&exceptfds,&timeout);\n    uVar1 = (uint)(0 < iVar3);\n  }" { (expression_statement "uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);" (assignment_expression "uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0)" identifier = (call_expression "(*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0)" (parenthesized_expression "(*(code *)PTR_fileno_001583dc)" ( (pointer_expression "*(code *)PTR_fileno_001583dc" * (cast_expression "(code *)PTR_fileno_001583dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_rl_instream_001568f0)" ( (pointer_expression "*(undefined4 *)PTR_rl_instream_001568f0" * (cast_expression "(undefined4 *)PTR_rl_instream_001568f0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "p_Var2 = readfds.fds_bits;" (assignment_expression "p_Var2 = readfds.fds_bits" identifier = (field_expression "readfds.fds_bits" identifier . field_identifier)) ;) (do_statement "do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while ((fd_set *)p_Var2 != &exceptfds);" do (compound_statement "{\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    }" { (expression_statement "*p_Var2 = 0;" (assignment_expression "*p_Var2 = 0" (pointer_expression "*p_Var2" * identifier) = number_literal) ;) (expression_statement "p_Var2 = p_Var2 + 1;" (assignment_expression "p_Var2 = p_Var2 + 1" identifier = (binary_expression "p_Var2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((fd_set *)p_Var2 != &exceptfds)" ( (binary_expression "(fd_set *)p_Var2 != &exceptfds" (cast_expression "(fd_set *)p_Var2" ( (type_descriptor "fd_set *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) != (pointer_expression "&exceptfds" & identifier)) )) ;) (expression_statement "p_Var2 = exceptfds.fds_bits;" (assignment_expression "p_Var2 = exceptfds.fds_bits" identifier = (field_expression "exceptfds.fds_bits" identifier . field_identifier)) ;) (do_statement "do {\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    } while (p_Var2 != local_14);" do (compound_statement "{\n      *p_Var2 = 0;\n      p_Var2 = p_Var2 + 1;\n    }" { (expression_statement "*p_Var2 = 0;" (assignment_expression "*p_Var2 = 0" (pointer_expression "*p_Var2" * identifier) = number_literal) ;) (expression_statement "p_Var2 = p_Var2 + 1;" (assignment_expression "p_Var2 = p_Var2 + 1" identifier = (binary_expression "p_Var2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(p_Var2 != local_14)" ( (binary_expression "p_Var2 != local_14" identifier != identifier) )) ;) (expression_statement "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);" (assignment_expression "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1)" identifier = (call_expression "(*(code *)PTR___fdelt_chk_00158524)(uVar1)" (parenthesized_expression "(*(code *)PTR___fdelt_chk_00158524)" ( (pointer_expression "*(code *)PTR___fdelt_chk_00158524" * (cast_expression "(code *)PTR___fdelt_chk_00158524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar5 = 1 << (uVar1 & 0x1f);" (assignment_expression "uVar5 = 1 << (uVar1 & 0x1f)" identifier = (binary_expression "1 << (uVar1 & 0x1f)" number_literal << (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "readfds.fds_bits[iVar3] = readfds.fds_bits[iVar3] | uVar5;" (assignment_expression "readfds.fds_bits[iVar3] = readfds.fds_bits[iVar3] | uVar5" (subscript_expression "readfds.fds_bits[iVar3]" (field_expression "readfds.fds_bits" identifier . field_identifier) [ identifier ]) = (binary_expression "readfds.fds_bits[iVar3] | uVar5" (subscript_expression "readfds.fds_bits[iVar3]" (field_expression "readfds.fds_bits" identifier . field_identifier) [ identifier ]) | identifier)) ;) (expression_statement "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);" (assignment_expression "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1)" identifier = (call_expression "(*(code *)PTR___fdelt_chk_00158524)(uVar1)" (parenthesized_expression "(*(code *)PTR___fdelt_chk_00158524)" ( (pointer_expression "*(code *)PTR___fdelt_chk_00158524" * (cast_expression "(code *)PTR___fdelt_chk_00158524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "exceptfds.fds_bits[iVar3] = exceptfds.fds_bits[iVar3] | uVar5;" (assignment_expression "exceptfds.fds_bits[iVar3] = exceptfds.fds_bits[iVar3] | uVar5" (subscript_expression "exceptfds.fds_bits[iVar3]" (field_expression "exceptfds.fds_bits" identifier . field_identifier) [ identifier ]) = (binary_expression "exceptfds.fds_bits[iVar3] | uVar5" (subscript_expression "exceptfds.fds_bits[iVar3]" (field_expression "exceptfds.fds_bits" identifier . field_identifier) [ identifier ]) | identifier)) ;) (expression_statement "timeout.tv_sec = 0;" (assignment_expression "timeout.tv_sec = 0" (field_expression "timeout.tv_sec" identifier . field_identifier) = number_literal) ;) (expression_statement "timeout.tv_usec = *(__suseconds_t *)(PTR_DAT_00156568 + 0x63c0);" (assignment_expression "timeout.tv_usec = *(__suseconds_t *)(PTR_DAT_00156568 + 0x63c0)" (field_expression "timeout.tv_usec" identifier . field_identifier) = (pointer_expression "*(__suseconds_t *)(PTR_DAT_00156568 + 0x63c0)" * (cast_expression "(__suseconds_t *)(PTR_DAT_00156568 + 0x63c0)" ( (type_descriptor "__suseconds_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00156568 + 0x63c0)" ( (binary_expression "PTR_DAT_00156568 + 0x63c0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,&readfds,0,&exceptfds,&timeout);" (assignment_expression "iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,&readfds,0,&exceptfds,&timeout)" identifier = (call_expression "(*(code *)PTR_select_0015855c)(uVar1 + 1,&readfds,0,&exceptfds,&timeout)" (parenthesized_expression "(*(code *)PTR_select_0015855c)" ( (pointer_expression "*(code *)PTR_select_0015855c" * (cast_expression "(code *)PTR_select_0015855c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1 + 1,&readfds,0,&exceptfds,&timeout)" ( (binary_expression "uVar1 + 1" identifier + number_literal) , (pointer_expression "&readfds" & identifier) , number_literal , (pointer_expression "&exceptfds" & identifier) , (pointer_expression "&timeout" & identifier) )))) ;) (expression_statement "uVar1 = (uint)(0 < iVar3);" (assignment_expression "uVar1 = (uint)(0 < iVar3)" identifier = (call_expression "(uint)(0 < iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )))) ;) }) (else_clause "else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" else (compound_statement "{\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" { (expression_statement "uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();" (assignment_expression "uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)()" identifier = (call_expression "(**(code **)PTR_rl_input_available_hook_00158198)()" (parenthesized_expression "(**(code **)PTR_rl_input_available_hook_00158198)" ( (pointer_expression "**(code **)PTR_rl_input_available_hook_00158198" * (pointer_expression "*(code **)PTR_rl_input_available_hook_00158198" * (cast_expression "(code **)PTR_rl_input_available_hook_00158198" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (local_14[0] == *(int *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_14[0] == *(int *)PTR___stack_chk_guard_0015858c)" ( (binary_expression "local_14[0] == *(int *)PTR___stack_chk_guard_0015858c" (subscript_expression "local_14[0]" identifier [ number_literal ]) == (pointer_expression "*(int *)PTR___stack_chk_guard_0015858c" * (cast_expression "(int *)PTR___stack_chk_guard_0015858c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "iVar3 = local_14[0];" (assignment_expression "iVar3 = local_14[0]" identifier = (subscript_expression "local_14[0]" identifier [ number_literal ])) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015853c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015853c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015853c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015853c" * (cast_expression "(code *)PTR___stack_chk_fail_0015853c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar3 = rl_set_keyboard_input_timeout(iVar3);" (assignment_expression "iVar3 = rl_set_keyboard_input_timeout(iVar3)" identifier = (call_expression "rl_set_keyboard_input_timeout(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "iVar4 = _rl_input_available();" (assignment_expression "iVar4 = _rl_input_available()" identifier = (call_expression "_rl_input_available()" identifier (argument_list "()" ( )))) ;) (expression_statement "rl_set_keyboard_input_timeout(iVar3);" (call_expression "rl_set_keyboard_input_timeout(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "uint _rl_input_available(void)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined4 local_11c;\n  undefined4 local_118;\n  uint local_114 [32];\n  uint local_94 [32];\n  uint local_14 [2];\n  \n  local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  uVar4 = rl_set_keyboard_input_timeout();\n  uVar1 = _rl_input_available();\n  rl_set_keyboard_input_timeout(uVar4);\n  return uVar1;\n}\n\n" (function_definition "uint _rl_input_available(void)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined4 local_11c;\n  undefined4 local_118;\n  uint local_114 [32];\n  uint local_94 [32];\n  uint local_14 [2];\n  \n  local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  uVar4 = rl_set_keyboard_input_timeout();\n  uVar1 = _rl_input_available();\n  rl_set_keyboard_input_timeout(uVar4);\n  return uVar1;\n}" type_identifier (function_declarator "_rl_input_available(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined4 local_11c;\n  undefined4 local_118;\n  uint local_114 [32];\n  uint local_94 [32];\n  uint local_14 [2];\n  \n  local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  uVar4 = rl_set_keyboard_input_timeout();\n  uVar1 = _rl_input_available();\n  rl_set_keyboard_input_timeout(uVar4);\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 local_11c;" type_identifier identifier ;) (declaration "undefined4 local_118;" type_identifier identifier ;) (declaration "uint local_114 [32];" type_identifier (array_declarator "local_114 [32]" identifier [ number_literal ]) ;) (declaration "uint local_94 [32];" type_identifier (array_declarator "local_94 [32]" identifier [ number_literal ]) ;) (declaration "uint local_14 [2];" type_identifier (array_declarator "local_14 [2]" identifier [ number_literal ]) ;) (expression_statement "local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;" (assignment_expression "local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c" (subscript_expression "local_14[0]" identifier [ number_literal ]) = (pointer_expression "*(uint *)PTR___stack_chk_guard_0015858c" * (cast_expression "(uint *)PTR___stack_chk_guard_0015858c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" if (parenthesized_expression "(*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0)" ( (binary_expression "*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0" (pointer_expression "*(code **)PTR_rl_input_available_hook_00158198" * (cast_expression "(code **)PTR_rl_input_available_hook_00158198" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }" { (expression_statement "uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);" (assignment_expression "uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0)" identifier = (call_expression "(*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0)" (parenthesized_expression "(*(code *)PTR_fileno_001583dc)" ( (pointer_expression "*(code *)PTR_fileno_001583dc" * (cast_expression "(code *)PTR_fileno_001583dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_rl_instream_001568f0)" ( (pointer_expression "*(undefined4 *)PTR_rl_instream_001568f0" * (cast_expression "(undefined4 *)PTR_rl_instream_001568f0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "puVar2 = local_114;" (assignment_expression "puVar2 = local_114" identifier = identifier) ;) (do_statement "do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);" do (compound_statement "{\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != local_94)" ( (binary_expression "puVar2 != local_94" identifier != identifier) )) ;) (expression_statement "puVar2 = local_94;" (assignment_expression "puVar2 = local_94" identifier = identifier) ;) (do_statement "do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);" do (compound_statement "{\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar2 != local_14)" ( (binary_expression "puVar2 != local_14" identifier != identifier) )) ;) (expression_statement "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);" (assignment_expression "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1)" identifier = (call_expression "(*(code *)PTR___fdelt_chk_00158524)(uVar1)" (parenthesized_expression "(*(code *)PTR___fdelt_chk_00158524)" ( (pointer_expression "*(code *)PTR___fdelt_chk_00158524" * (cast_expression "(code *)PTR___fdelt_chk_00158524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "uVar5 = 1 << (uVar1 & 0x1f);" (assignment_expression "uVar5 = 1 << (uVar1 & 0x1f)" identifier = (binary_expression "1 << (uVar1 & 0x1f)" number_literal << (parenthesized_expression "(uVar1 & 0x1f)" ( (binary_expression "uVar1 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "local_114[iVar3] = local_114[iVar3] | uVar5;" (assignment_expression "local_114[iVar3] = local_114[iVar3] | uVar5" (subscript_expression "local_114[iVar3]" identifier [ identifier ]) = (binary_expression "local_114[iVar3] | uVar5" (subscript_expression "local_114[iVar3]" identifier [ identifier ]) | identifier)) ;) (expression_statement "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);" (assignment_expression "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1)" identifier = (call_expression "(*(code *)PTR___fdelt_chk_00158524)(uVar1)" (parenthesized_expression "(*(code *)PTR___fdelt_chk_00158524)" ( (pointer_expression "*(code *)PTR___fdelt_chk_00158524" * (cast_expression "(code *)PTR___fdelt_chk_00158524" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "local_94[iVar3] = local_94[iVar3] | uVar5;" (assignment_expression "local_94[iVar3] = local_94[iVar3] | uVar5" (subscript_expression "local_94[iVar3]" identifier [ identifier ]) = (binary_expression "local_94[iVar3] | uVar5" (subscript_expression "local_94[iVar3]" identifier [ identifier ]) | identifier)) ;) (expression_statement "local_11c = 0;" (assignment_expression "local_11c = 0" identifier = number_literal) ;) (expression_statement "local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);" (assignment_expression "local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_00156568 + 0x63c0)" * (cast_expression "(undefined4 *)(PTR_DAT_00156568 + 0x63c0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00156568 + 0x63c0)" ( (binary_expression "PTR_DAT_00156568 + 0x63c0" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);" (assignment_expression "iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c)" identifier = (call_expression "(*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c)" (parenthesized_expression "(*(code *)PTR_select_0015855c)" ( (pointer_expression "*(code *)PTR_select_0015855c" * (cast_expression "(code *)PTR_select_0015855c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1 + 1,local_114,0,local_94,&local_11c)" ( (binary_expression "uVar1 + 1" identifier + number_literal) , identifier , number_literal , identifier , (pointer_expression "&local_11c" & identifier) )))) ;) (expression_statement "uVar1 = (uint)(0 < iVar3);" (assignment_expression "uVar1 = (uint)(0 < iVar3)" identifier = (call_expression "(uint)(0 < iVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )))) ;) }) (else_clause "else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" else (compound_statement "{\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" { (expression_statement "uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();" (assignment_expression "uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)()" identifier = (call_expression "(**(code **)PTR_rl_input_available_hook_00158198)()" (parenthesized_expression "(**(code **)PTR_rl_input_available_hook_00158198)" ( (pointer_expression "**(code **)PTR_rl_input_available_hook_00158198" * (pointer_expression "*(code **)PTR_rl_input_available_hook_00158198" * (cast_expression "(code **)PTR_rl_input_available_hook_00158198" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "()" ( )))) ;) }))) (if_statement "if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c)" ( (binary_expression "local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c" (subscript_expression "local_14[0]" identifier [ number_literal ]) == (pointer_expression "*(uint *)PTR___stack_chk_guard_0015858c" * (cast_expression "(uint *)PTR___stack_chk_guard_0015858c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_0015853c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015853c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015853c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015853c" * (cast_expression "(code *)PTR___stack_chk_fail_0015853c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "uVar4 = rl_set_keyboard_input_timeout();" (assignment_expression "uVar4 = rl_set_keyboard_input_timeout()" identifier = (call_expression "rl_set_keyboard_input_timeout()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar1 = _rl_input_available();" (assignment_expression "uVar1 = _rl_input_available()" identifier = (call_expression "_rl_input_available()" identifier (argument_list "()" ( )))) ;) (expression_statement "rl_set_keyboard_input_timeout(uVar4);" (call_expression "rl_set_keyboard_input_timeout(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return uVar1;" 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (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 * (abstract_pointer_declarator *))) ) IDENT)) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (binary_expression (subscript_expression IDENT [ IDENT ]) | IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (binary_expression (subscript_expression IDENT [ IDENT ]) | IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT , IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) )))) ;) }) (else_clause else (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 ( )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "uint _rl_input_available(void)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined4 local_11c;\n  undefined4 local_118;\n  uint local_114 [32];\n  uint local_94 [32];\n  uint local_14 [2];\n  \n  local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  uVar4 = rl_set_keyboard_input_timeout();\n  uVar1 = _rl_input_available();\n  rl_set_keyboard_input_timeout(uVar4);\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "_rl_input_available(void)" (identifier "_rl_input_available") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  undefined4 local_11c;\n  undefined4 local_118;\n  uint local_114 [32];\n  uint local_94 [32];\n  uint local_14 [2];\n  \n  local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;\n  if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }\n  if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }\n  (*(code *)PTR___stack_chk_fail_0015853c)();\n  uVar4 = rl_set_keyboard_input_timeout();\n  uVar1 = _rl_input_available();\n  rl_set_keyboard_input_timeout(uVar4);\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined4 local_11c;" (type_identifier "undefined4") (identifier "local_11c") (; ";")) (declaration "undefined4 local_118;" (type_identifier "undefined4") (identifier "local_118") (; ";")) (declaration "uint local_114 [32];" (type_identifier "uint") (array_declarator "local_114 [32]" (identifier "local_114") ([ "[") (number_literal "32") (] "]")) (; ";")) (declaration "uint local_94 [32];" (type_identifier "uint") (array_declarator "local_94 [32]" (identifier "local_94") ([ "[") (number_literal "32") (] "]")) (; ";")) (declaration "uint local_14 [2];" (type_identifier "uint") (array_declarator "local_14 [2]" (identifier "local_14") ([ "[") (number_literal "2") (] "]")) (; ";")) (expression_statement "local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;" (assignment_expression "local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c" (subscript_expression "local_14[0]" (identifier "local_14") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*(uint *)PTR___stack_chk_guard_0015858c" (* "*") (cast_expression "(uint *)PTR___stack_chk_guard_0015858c" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0015858c")))) (; ";")) (if_statement "if (*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0) {\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }\n  else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" (if "if") (parenthesized_expression "(*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0)" (( "(") (binary_expression "*(code **)PTR_rl_input_available_hook_00158198 == (code *)0x0" (pointer_expression "*(code **)PTR_rl_input_available_hook_00158198" (* "*") (cast_expression "(code **)PTR_rl_input_available_hook_00158198" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_rl_input_available_hook_00158198"))) (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);\n    puVar2 = local_114;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);\n    puVar2 = local_94;\n    do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    uVar5 = 1 << (uVar1 & 0x1f);\n    local_114[iVar3] = local_114[iVar3] | uVar5;\n    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);\n    local_94[iVar3] = local_94[iVar3] | uVar5;\n    local_11c = 0;\n    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);\n    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);\n    uVar1 = (uint)(0 < iVar3);\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);" (assignment_expression "uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0)" (parenthesized_expression "(*(code *)PTR_fileno_001583dc)" (( "(") (pointer_expression "*(code *)PTR_fileno_001583dc" (* "*") (cast_expression "(code *)PTR_fileno_001583dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fileno_001583dc"))) () ")")) (argument_list "(*(undefined4 *)PTR_rl_instream_001568f0)" (( "(") (pointer_expression "*(undefined4 *)PTR_rl_instream_001568f0" (* "*") (cast_expression "(undefined4 *)PTR_rl_instream_001568f0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_rl_instream_001568f0"))) () ")")))) (; ";")) (expression_statement "puVar2 = local_114;" (assignment_expression "puVar2 = local_114" (identifier "puVar2") (= "=") (identifier "local_114")) (; ";")) (do_statement "do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_94);" (do "do") (compound_statement "{\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" ({ "{") (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != local_94)" (( "(") (binary_expression "puVar2 != local_94" (identifier "puVar2") (!= "!=") (identifier "local_94")) () ")")) (; ";")) (expression_statement "puVar2 = local_94;" (assignment_expression "puVar2 = local_94" (identifier "puVar2") (= "=") (identifier "local_94")) (; ";")) (do_statement "do {\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    } while (puVar2 != local_14);" (do "do") (compound_statement "{\n      *puVar2 = 0;\n      puVar2 = puVar2 + 1;\n    }" ({ "{") (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar2 != local_14)" (( "(") (binary_expression "puVar2 != local_14" (identifier "puVar2") (!= "!=") (identifier "local_14")) () ")")) (; ";")) (expression_statement "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);" (assignment_expression "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR___fdelt_chk_00158524)(uVar1)" (parenthesized_expression "(*(code *)PTR___fdelt_chk_00158524)" (( "(") (pointer_expression "*(code *)PTR___fdelt_chk_00158524" (* "*") (cast_expression "(code *)PTR___fdelt_chk_00158524" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fdelt_chk_00158524"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "uVar5 = 1 << (uVar1 & 0x1f);" (assignment_expression "uVar5 = 1 << (uVar1 & 0x1f)" (identifier "uVar5") (= "=") (binary_expression "1 << (uVar1 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(uVar1 & 0x1f)" (( "(") (binary_expression "uVar1 & 0x1f" (identifier "uVar1") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "local_114[iVar3] = local_114[iVar3] | uVar5;" (assignment_expression "local_114[iVar3] = local_114[iVar3] | uVar5" (subscript_expression "local_114[iVar3]" (identifier "local_114") ([ "[") (identifier "iVar3") (] "]")) (= "=") (binary_expression "local_114[iVar3] | uVar5" (subscript_expression "local_114[iVar3]" (identifier "local_114") ([ "[") (identifier "iVar3") (] "]")) (| "|") (identifier "uVar5"))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);" (assignment_expression "iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR___fdelt_chk_00158524)(uVar1)" (parenthesized_expression "(*(code *)PTR___fdelt_chk_00158524)" (( "(") (pointer_expression "*(code *)PTR___fdelt_chk_00158524" (* "*") (cast_expression "(code *)PTR___fdelt_chk_00158524" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___fdelt_chk_00158524"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (expression_statement "local_94[iVar3] = local_94[iVar3] | uVar5;" (assignment_expression "local_94[iVar3] = local_94[iVar3] | uVar5" (subscript_expression "local_94[iVar3]" (identifier "local_94") ([ "[") (identifier "iVar3") (] "]")) (= "=") (binary_expression "local_94[iVar3] | uVar5" (subscript_expression "local_94[iVar3]" (identifier "local_94") ([ "[") (identifier "iVar3") (] "]")) (| "|") (identifier "uVar5"))) (; ";")) (expression_statement "local_11c = 0;" (assignment_expression "local_11c = 0" (identifier "local_11c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);" (assignment_expression "local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0)" (identifier "local_118") (= "=") (pointer_expression "*(undefined4 *)(PTR_DAT_00156568 + 0x63c0)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_00156568 + 0x63c0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00156568 + 0x63c0)" (( "(") (binary_expression "PTR_DAT_00156568 + 0x63c0" (identifier "PTR_DAT_00156568") (+ "+") (number_literal "0x63c0")) () ")"))))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);" (assignment_expression "iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c)" (parenthesized_expression "(*(code *)PTR_select_0015855c)" (( "(") (pointer_expression "*(code *)PTR_select_0015855c" (* "*") (cast_expression "(code *)PTR_select_0015855c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_select_0015855c"))) () ")")) (argument_list "(uVar1 + 1,local_114,0,local_94,&local_11c)" (( "(") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1")) (, ",") (identifier "local_114") (, ",") (number_literal "0") (, ",") (identifier "local_94") (, ",") (pointer_expression "&local_11c" (& "&") (identifier "local_11c")) () ")")))) (; ";")) (expression_statement "uVar1 = (uint)(0 < iVar3);" (assignment_expression "uVar1 = (uint)(0 < iVar3)" (identifier "uVar1") (= "=") (call_expression "(uint)(0 < iVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0 < iVar3)" (( "(") (binary_expression "0 < iVar3" (number_literal "0") (< "<") (identifier "iVar3")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" (else "else") (compound_statement "{\n    uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();\n  }" ({ "{") (expression_statement "uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)();" (assignment_expression "uVar1 = (**(code **)PTR_rl_input_available_hook_00158198)()" (identifier "uVar1") (= "=") (call_expression "(**(code **)PTR_rl_input_available_hook_00158198)()" (parenthesized_expression "(**(code **)PTR_rl_input_available_hook_00158198)" (( "(") (pointer_expression "**(code **)PTR_rl_input_available_hook_00158198" (* "*") (pointer_expression "*(code **)PTR_rl_input_available_hook_00158198" (* "*") (cast_expression "(code **)PTR_rl_input_available_hook_00158198" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_rl_input_available_hook_00158198")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (if_statement "if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c)" (( "(") (binary_expression "local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c" (subscript_expression "local_14[0]" (identifier "local_14") ([ "[") (number_literal "0") (] "]")) (== "==") (pointer_expression "*(uint *)PTR___stack_chk_guard_0015858c" (* "*") (cast_expression "(uint *)PTR___stack_chk_guard_0015858c" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0015858c")))) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_0015853c)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015853c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015853c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0015853c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0015853c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0015853c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar4 = rl_set_keyboard_input_timeout();" (assignment_expression "uVar4 = rl_set_keyboard_input_timeout()" (identifier "uVar4") (= "=") (call_expression "rl_set_keyboard_input_timeout()" (identifier "rl_set_keyboard_input_timeout") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar1 = _rl_input_available();" (assignment_expression "uVar1 = _rl_input_available()" (identifier "uVar1") (= "=") (call_expression "_rl_input_available()" (identifier "_rl_input_available") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "rl_set_keyboard_input_timeout(uVar4);" (call_expression "rl_set_keyboard_input_timeout(uVar4)" (identifier "rl_set_keyboard_input_timeout") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))
(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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal) (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (identifier))))))) alternative: (else_clause (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))

uint MASKED(void)

{
  uint uVar1;
  uint *puVar2;
  int iVar3;
  undefined4 uVar4;
  uint uVar5;
  undefined4 local_11c;
  undefined4 local_118;
  uint local_114 [32];
  uint local_94 [32];
  uint local_14 [2];
  
  local_14[0] = *(uint *)PTR___stack_chk_guard_0015858c;
  if (*(code **)PTRMASKED_hook_00158198 == (code *)0x0) {
    uVar1 = (*(code *)PTR_fileno_001583dc)(*(undefined4 *)PTR_rl_instream_001568f0);
    puVar2 = local_114;
    do {
      *puVar2 = 0;
      puVar2 = puVar2 + 1;
    } while (puVar2 != local_94);
    puVar2 = local_94;
    do {
      *puVar2 = 0;
      puVar2 = puVar2 + 1;
    } while (puVar2 != local_14);
    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);
    uVar5 = 1 << (uVar1 & 0x1f);
    local_114[iVar3] = local_114[iVar3] | uVar5;
    iVar3 = (*(code *)PTR___fdelt_chk_00158524)(uVar1);
    local_94[iVar3] = local_94[iVar3] | uVar5;
    local_11c = 0;
    local_118 = *(undefined4 *)(PTR_DAT_00156568 + 0x63c0);
    iVar3 = (*(code *)PTR_select_0015855c)(uVar1 + 1,local_114,0,local_94,&local_11c);
    uVar1 = (uint)(0 < iVar3);
  }
  else {
    uVar1 = (**(code **)PTRMASKED_hook_00158198)();
  }
  if (local_14[0] == *(uint *)PTR___stack_chk_guard_0015858c) {
    return uVar1;
  }
  (*(code *)PTR___stack_chk_fail_0015853c)();
  uVar4 = rl_set_keyboard_input_timeout();
  uVar1 = MASKED();
  rl_set_keyboard_input_timeout(uVar4);
  return uVar1;
}

