
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void rl_deprep_terminal(void)

{
  int iVar1;
  
  if (terminal_prepped == 0) {
    return;
  }
  _rl_block_sigint();
  if (rl_instream == (FILE *)0x0) {
    iVar1 = fileno(stdin);
  }
  else {
    iVar1 = fileno((FILE *)rl_instream);
  }
  if ((terminal_prepped & 2U) != 0) {
    fwrite(&DAT_001ea1c5,1,9,(FILE *)rl_outstream);
    if (_rl_eof_found != 0) {
      fputc(10,(FILE *)rl_outstream);
    }
  }
  if (_rl_enable_keypad != 0) {
    _rl_control_keypad(0);
  }
  fflush((FILE *)rl_outstream);
  iVar1 = _set_tty_settings(iVar1,&otio);
  if (iVar1 < 0) {
    _rl_release_sigint();
  }
  else {
    terminal_prepped = 0;
    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;
    _rl_release_sigint();
  }
  return;
}



void rl_deprep_terminal(void)

{
  int iVar1;
  
  if (DAT_002167d0 == 0) {
    return;
  }
  _rl_block_sigint();
  if (rl_instream == (FILE *)0x0) {
    iVar1 = fileno(stdin);
  }
  else {
    iVar1 = fileno(rl_instream);
  }
  if ((DAT_002167d0 & 2) != 0) {
    fwrite(&DAT_001ea1c5,1,9,rl_outstream);
    if (_rl_eof_found != 0) {
      fputc(10,rl_outstream);
    }
  }
  if (_rl_enable_keypad != 0) {
    _rl_control_keypad(0);
  }
  fflush(rl_outstream);
  iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);
  if (iVar1 < 0) {
    _rl_release_sigint();
  }
  else {
    DAT_002167d0 = 0;
    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;
    _rl_release_sigint();
  }
  return;
}


CMP dword ptr [0x002167d0],0x0
JNZ 0x001b40fe
RET
PUSH RBX
CALL 0x001c3c54
MOV RDI,qword ptr [0x00216550]
TEST RDI,RDI
JZ 0x001b4164
CALL 0x0012d6f0
MOV EBX,EAX
TEST byte ptr [0x002167d0],0x2
JNZ 0x001b4174
CMP dword ptr [0x0021c900],0x0
JNZ 0x001b41b0
MOV RDI,qword ptr [0x00216548]
CALL 0x0012d7d0
LEA RSI,[0x216780]
MOV EDI,EBX
CALL 0x001b40b1
TEST EAX,EAX
JS 0x001b41bf
MOV dword ptr [0x002167d0],0x0
AND qword ptr [0x00216560],-0x5
CALL 0x001c3f73
POP RBX
RET
MOV RDI,qword ptr [0x00212d10]
CALL 0x0012d6f0
MOV EBX,EAX
JMP 0x001b4117
MOV RCX,qword ptr [0x00216548]
MOV EDX,0x9
MOV ESI,0x1
LEA RDI,[0x1ea1c5]
CALL 0x0012dbf0
CMP dword ptr [0x00216510],0x0
JZ 0x001b4120
MOV RSI,qword ptr [0x00216548]
MOV EDI,0xa
CALL 0x0012d560
JMP 0x001b4120
MOV EDI,0x0
CALL 0x001c7a73
JMP 0x001b412d
CALL 0x001c3f73
JMP 0x001b4162
(translation_unit "void rl_deprep_terminal(void)\n\n{\n  int iVar1;\n  \n  if (DAT_002167d0 == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }\n  if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush(rl_outstream);\n  iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}\n\n" (function_definition "void rl_deprep_terminal(void)\n\n{\n  int iVar1;\n  \n  if (DAT_002167d0 == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }\n  if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush(rl_outstream);\n  iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}" primitive_type (function_declarator "rl_deprep_terminal(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (DAT_002167d0 == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }\n  if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush(rl_outstream);\n  iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (DAT_002167d0 == 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_002167d0 == 0)" ( (binary_expression "DAT_002167d0 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "_rl_block_sigint();" (call_expression "_rl_block_sigint()" identifier (argument_list "()" ( ))) ;) (if_statement "if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }" if (parenthesized_expression "(rl_instream == (FILE *)0x0)" ( (binary_expression "rl_instream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = fileno(stdin);\n  }" { (expression_statement "iVar1 = fileno(stdin);" (assignment_expression "iVar1 = fileno(stdin)" identifier = (call_expression "fileno(stdin)" identifier (argument_list "(stdin)" ( identifier )))) ;) }) (else_clause "else {\n    iVar1 = fileno(rl_instream);\n  }" else (compound_statement "{\n    iVar1 = fileno(rl_instream);\n  }" { (expression_statement "iVar1 = fileno(rl_instream);" (assignment_expression "iVar1 = fileno(rl_instream)" identifier = (call_expression "fileno(rl_instream)" identifier (argument_list "(rl_instream)" ( identifier )))) ;) }))) (if_statement "if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }" if (parenthesized_expression "((DAT_002167d0 & 2) != 0)" ( (binary_expression "(DAT_002167d0 & 2) != 0" (parenthesized_expression "(DAT_002167d0 & 2)" ( (binary_expression "DAT_002167d0 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }" { (expression_statement "fwrite(&DAT_001ea1c5,1,9,rl_outstream);" (call_expression "fwrite(&DAT_001ea1c5,1,9,rl_outstream)" identifier (argument_list "(&DAT_001ea1c5,1,9,rl_outstream)" ( (pointer_expression "&DAT_001ea1c5" & identifier) , number_literal , number_literal , identifier ))) ;) (if_statement "if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }" if (parenthesized_expression "(_rl_eof_found != 0)" ( (binary_expression "_rl_eof_found != 0" identifier != number_literal) )) (compound_statement "{\n      fputc(10,rl_outstream);\n    }" { (expression_statement "fputc(10,rl_outstream);" (call_expression "fputc(10,rl_outstream)" identifier (argument_list "(10,rl_outstream)" ( number_literal , identifier ))) ;) })) })) (if_statement "if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }" if (parenthesized_expression "(_rl_enable_keypad != 0)" ( (binary_expression "_rl_enable_keypad != 0" identifier != number_literal) )) (compound_statement "{\n    _rl_control_keypad(0);\n  }" { (expression_statement "_rl_control_keypad(0);" (call_expression "_rl_control_keypad(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })) (expression_statement "fflush(rl_outstream);" (call_expression "fflush(rl_outstream)" identifier (argument_list "(rl_outstream)" ( identifier ))) ;) (expression_statement "iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);" (assignment_expression "iVar1 = FUN_001b40b1(iVar1,&DAT_00216780)" identifier = (call_expression "FUN_001b40b1(iVar1,&DAT_00216780)" identifier (argument_list "(iVar1,&DAT_00216780)" ( identifier , (pointer_expression "&DAT_00216780" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    _rl_release_sigint();\n  }" { (expression_statement "_rl_release_sigint();" (call_expression "_rl_release_sigint()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" else (compound_statement "{\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" { (expression_statement "DAT_002167d0 = 0;" (assignment_expression "DAT_002167d0 = 0" identifier = number_literal) ;) (expression_statement "rl_readline_state = rl_readline_state & 0xfffffffffffffffb;" (assignment_expression "rl_readline_state = rl_readline_state & 0xfffffffffffffffb" identifier = (binary_expression "rl_readline_state & 0xfffffffffffffffb" identifier & number_literal)) ;) (expression_statement "_rl_release_sigint();" (call_expression "_rl_release_sigint()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid rl_deprep_terminal(void)\n\n{\n  int iVar1;\n  \n  if (terminal_prepped == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno((FILE *)rl_instream);\n  }\n  if ((terminal_prepped & 2U) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,(FILE *)rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,(FILE *)rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush((FILE *)rl_outstream);\n  iVar1 = _set_tty_settings(iVar1,&otio);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    terminal_prepped = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}\n\n" comment (function_definition "void rl_deprep_terminal(void)\n\n{\n  int iVar1;\n  \n  if (terminal_prepped == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno((FILE *)rl_instream);\n  }\n  if ((terminal_prepped & 2U) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,(FILE *)rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,(FILE *)rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush((FILE *)rl_outstream);\n  iVar1 = _set_tty_settings(iVar1,&otio);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    terminal_prepped = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}" primitive_type (function_declarator "rl_deprep_terminal(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (terminal_prepped == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno((FILE *)rl_instream);\n  }\n  if ((terminal_prepped & 2U) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,(FILE *)rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,(FILE *)rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush((FILE *)rl_outstream);\n  iVar1 = _set_tty_settings(iVar1,&otio);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    terminal_prepped = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (terminal_prepped == 0) {\n    return;\n  }" if (parenthesized_expression "(terminal_prepped == 0)" ( (binary_expression "terminal_prepped == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "_rl_block_sigint();" (call_expression "_rl_block_sigint()" identifier (argument_list "()" ( ))) ;) (if_statement "if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno((FILE *)rl_instream);\n  }" if (parenthesized_expression "(rl_instream == (FILE *)0x0)" ( (binary_expression "rl_instream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = fileno(stdin);\n  }" { (expression_statement "iVar1 = fileno(stdin);" (assignment_expression "iVar1 = fileno(stdin)" identifier = (call_expression "fileno(stdin)" identifier (argument_list "(stdin)" ( identifier )))) ;) }) (else_clause "else {\n    iVar1 = fileno((FILE *)rl_instream);\n  }" else (compound_statement "{\n    iVar1 = fileno((FILE *)rl_instream);\n  }" { (expression_statement "iVar1 = fileno((FILE *)rl_instream);" (assignment_expression "iVar1 = fileno((FILE *)rl_instream)" identifier = (call_expression "fileno((FILE *)rl_instream)" identifier (argument_list "((FILE *)rl_instream)" ( (cast_expression "(FILE *)rl_instream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) }))) (if_statement "if ((terminal_prepped & 2U) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,(FILE *)rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,(FILE *)rl_outstream);\n    }\n  }" if (parenthesized_expression "((terminal_prepped & 2U) != 0)" ( (binary_expression "(terminal_prepped & 2U) != 0" (parenthesized_expression "(terminal_prepped & 2U)" ( (binary_expression "terminal_prepped & 2U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    fwrite(&DAT_001ea1c5,1,9,(FILE *)rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,(FILE *)rl_outstream);\n    }\n  }" { (expression_statement "fwrite(&DAT_001ea1c5,1,9,(FILE *)rl_outstream);" (call_expression "fwrite(&DAT_001ea1c5,1,9,(FILE *)rl_outstream)" identifier (argument_list "(&DAT_001ea1c5,1,9,(FILE *)rl_outstream)" ( (pointer_expression "&DAT_001ea1c5" & identifier) , number_literal , number_literal , (cast_expression "(FILE *)rl_outstream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (if_statement "if (_rl_eof_found != 0) {\n      fputc(10,(FILE *)rl_outstream);\n    }" if (parenthesized_expression "(_rl_eof_found != 0)" ( (binary_expression "_rl_eof_found != 0" identifier != number_literal) )) (compound_statement "{\n      fputc(10,(FILE *)rl_outstream);\n    }" { (expression_statement "fputc(10,(FILE *)rl_outstream);" (call_expression "fputc(10,(FILE *)rl_outstream)" identifier (argument_list "(10,(FILE *)rl_outstream)" ( number_literal , (cast_expression "(FILE *)rl_outstream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) })) (if_statement "if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }" if (parenthesized_expression "(_rl_enable_keypad != 0)" ( (binary_expression "_rl_enable_keypad != 0" identifier != number_literal) )) (compound_statement "{\n    _rl_control_keypad(0);\n  }" { (expression_statement "_rl_control_keypad(0);" (call_expression "_rl_control_keypad(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })) (expression_statement "fflush((FILE *)rl_outstream);" (call_expression "fflush((FILE *)rl_outstream)" identifier (argument_list "((FILE *)rl_outstream)" ( (cast_expression "(FILE *)rl_outstream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "iVar1 = _set_tty_settings(iVar1,&otio);" (assignment_expression "iVar1 = _set_tty_settings(iVar1,&otio)" identifier = (call_expression "_set_tty_settings(iVar1,&otio)" identifier (argument_list "(iVar1,&otio)" ( identifier , (pointer_expression "&otio" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    terminal_prepped = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    _rl_release_sigint();\n  }" { (expression_statement "_rl_release_sigint();" (call_expression "_rl_release_sigint()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n    terminal_prepped = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" else (compound_statement "{\n    terminal_prepped = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" { (expression_statement "terminal_prepped = 0;" (assignment_expression "terminal_prepped = 0" identifier = number_literal) ;) (expression_statement "rl_readline_state = rl_readline_state & 0xfffffffffffffffb;" (assignment_expression "rl_readline_state = rl_readline_state & 0xfffffffffffffffb" identifier = (binary_expression "rl_readline_state & 0xfffffffffffffffb" identifier & number_literal)) ;) (expression_statement "_rl_release_sigint();" (call_expression "_rl_release_sigint()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void rl_deprep_terminal(void)\n\n{\n  int iVar1;\n  \n  if (DAT_002167d0 == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }\n  if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush(rl_outstream);\n  iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}\n\n" (function_definition "void rl_deprep_terminal(void)\n\n{\n  int iVar1;\n  \n  if (DAT_002167d0 == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }\n  if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush(rl_outstream);\n  iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}" primitive_type (function_declarator "rl_deprep_terminal(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  \n  if (DAT_002167d0 == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }\n  if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush(rl_outstream);\n  iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (DAT_002167d0 == 0) {\n    return;\n  }" if (parenthesized_expression "(DAT_002167d0 == 0)" ( (binary_expression "DAT_002167d0 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "_rl_block_sigint();" (call_expression "_rl_block_sigint()" identifier (argument_list "()" ( ))) ;) (if_statement "if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }" if (parenthesized_expression "(rl_instream == (FILE *)0x0)" ( (binary_expression "rl_instream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = fileno(stdin);\n  }" { (expression_statement "iVar1 = fileno(stdin);" (assignment_expression "iVar1 = fileno(stdin)" identifier = (call_expression "fileno(stdin)" identifier (argument_list "(stdin)" ( identifier )))) ;) }) (else_clause "else {\n    iVar1 = fileno(rl_instream);\n  }" else (compound_statement "{\n    iVar1 = fileno(rl_instream);\n  }" { (expression_statement "iVar1 = fileno(rl_instream);" (assignment_expression "iVar1 = fileno(rl_instream)" identifier = (call_expression "fileno(rl_instream)" identifier (argument_list "(rl_instream)" ( identifier )))) ;) }))) (if_statement "if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }" if (parenthesized_expression "((DAT_002167d0 & 2) != 0)" ( (binary_expression "(DAT_002167d0 & 2) != 0" (parenthesized_expression "(DAT_002167d0 & 2)" ( (binary_expression "DAT_002167d0 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }" { (expression_statement "fwrite(&DAT_001ea1c5,1,9,rl_outstream);" (call_expression "fwrite(&DAT_001ea1c5,1,9,rl_outstream)" identifier (argument_list "(&DAT_001ea1c5,1,9,rl_outstream)" ( (pointer_expression "&DAT_001ea1c5" & identifier) , number_literal , number_literal , identifier ))) ;) (if_statement "if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }" if (parenthesized_expression "(_rl_eof_found != 0)" ( (binary_expression "_rl_eof_found != 0" identifier != number_literal) )) (compound_statement "{\n      fputc(10,rl_outstream);\n    }" { (expression_statement "fputc(10,rl_outstream);" (call_expression "fputc(10,rl_outstream)" identifier (argument_list "(10,rl_outstream)" ( number_literal , identifier ))) ;) })) })) (if_statement "if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }" if (parenthesized_expression "(_rl_enable_keypad != 0)" ( (binary_expression "_rl_enable_keypad != 0" identifier != number_literal) )) (compound_statement "{\n    _rl_control_keypad(0);\n  }" { (expression_statement "_rl_control_keypad(0);" (call_expression "_rl_control_keypad(0)" identifier (argument_list "(0)" ( number_literal ))) ;) })) (expression_statement "fflush(rl_outstream);" (call_expression "fflush(rl_outstream)" identifier (argument_list "(rl_outstream)" ( identifier ))) ;) (expression_statement "iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);" (assignment_expression "iVar1 = FUN_001b40b1(iVar1,&DAT_00216780)" identifier = (call_expression "FUN_001b40b1(iVar1,&DAT_00216780)" identifier (argument_list "(iVar1,&DAT_00216780)" ( identifier , (pointer_expression "&DAT_00216780" & identifier) )))) ;) (if_statement "if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    _rl_release_sigint();\n  }" { (expression_statement "_rl_release_sigint();" (call_expression "_rl_release_sigint()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" else (compound_statement "{\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" { (expression_statement "DAT_002167d0 = 0;" (assignment_expression "DAT_002167d0 = 0" identifier = number_literal) ;) (expression_statement "rl_readline_state = rl_readline_state & 0xfffffffffffffffb;" (assignment_expression "rl_readline_state = rl_readline_state & 0xfffffffffffffffb" identifier = (binary_expression "rl_readline_state & 0xfffffffffffffffb" identifier & number_literal)) ;) (expression_statement "_rl_release_sigint();" (call_expression "_rl_release_sigint()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return ;) })))
(function_definition "void rl_deprep_terminal(void)\n\n{\n  int iVar1;\n  \n  if (DAT_002167d0 == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }\n  if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush(rl_outstream);\n  iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "rl_deprep_terminal(void)" (identifier "rl_deprep_terminal") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (DAT_002167d0 == 0) {\n    return;\n  }\n  _rl_block_sigint();\n  if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }\n  if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }\n  if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }\n  fflush(rl_outstream);\n  iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);\n  if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (DAT_002167d0 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(DAT_002167d0 == 0)" (( "(") (binary_expression "DAT_002167d0 == 0" (identifier "DAT_002167d0") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "_rl_block_sigint();" (call_expression "_rl_block_sigint()" (identifier "_rl_block_sigint") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (rl_instream == (FILE *)0x0) {\n    iVar1 = fileno(stdin);\n  }\n  else {\n    iVar1 = fileno(rl_instream);\n  }" (if "if") (parenthesized_expression "(rl_instream == (FILE *)0x0)" (( "(") (binary_expression "rl_instream == (FILE *)0x0" (identifier "rl_instream") (== "==") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = fileno(stdin);\n  }" ({ "{") (expression_statement "iVar1 = fileno(stdin);" (assignment_expression "iVar1 = fileno(stdin)" (identifier "iVar1") (= "=") (call_expression "fileno(stdin)" (identifier "fileno") (argument_list "(stdin)" (( "(") (identifier "stdin") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = fileno(rl_instream);\n  }" (else "else") (compound_statement "{\n    iVar1 = fileno(rl_instream);\n  }" ({ "{") (expression_statement "iVar1 = fileno(rl_instream);" (assignment_expression "iVar1 = fileno(rl_instream)" (identifier "iVar1") (= "=") (call_expression "fileno(rl_instream)" (identifier "fileno") (argument_list "(rl_instream)" (( "(") (identifier "rl_instream") () ")")))) (; ";")) (} "}")))) (if_statement "if ((DAT_002167d0 & 2) != 0) {\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }" (if "if") (parenthesized_expression "((DAT_002167d0 & 2) != 0)" (( "(") (binary_expression "(DAT_002167d0 & 2) != 0" (parenthesized_expression "(DAT_002167d0 & 2)" (( "(") (binary_expression "DAT_002167d0 & 2" (identifier "DAT_002167d0") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    fwrite(&DAT_001ea1c5,1,9,rl_outstream);\n    if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }\n  }" ({ "{") (expression_statement "fwrite(&DAT_001ea1c5,1,9,rl_outstream);" (call_expression "fwrite(&DAT_001ea1c5,1,9,rl_outstream)" (identifier "fwrite") (argument_list "(&DAT_001ea1c5,1,9,rl_outstream)" (( "(") (pointer_expression "&DAT_001ea1c5" (& "&") (identifier "DAT_001ea1c5")) (, ",") (number_literal "1") (, ",") (number_literal "9") (, ",") (identifier "rl_outstream") () ")"))) (; ";")) (if_statement "if (_rl_eof_found != 0) {\n      fputc(10,rl_outstream);\n    }" (if "if") (parenthesized_expression "(_rl_eof_found != 0)" (( "(") (binary_expression "_rl_eof_found != 0" (identifier "_rl_eof_found") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      fputc(10,rl_outstream);\n    }" ({ "{") (expression_statement "fputc(10,rl_outstream);" (call_expression "fputc(10,rl_outstream)" (identifier "fputc") (argument_list "(10,rl_outstream)" (( "(") (number_literal "10") (, ",") (identifier "rl_outstream") () ")"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (_rl_enable_keypad != 0) {\n    _rl_control_keypad(0);\n  }" (if "if") (parenthesized_expression "(_rl_enable_keypad != 0)" (( "(") (binary_expression "_rl_enable_keypad != 0" (identifier "_rl_enable_keypad") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    _rl_control_keypad(0);\n  }" ({ "{") (expression_statement "_rl_control_keypad(0);" (call_expression "_rl_control_keypad(0)" (identifier "_rl_control_keypad") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (} "}"))) (expression_statement "fflush(rl_outstream);" (call_expression "fflush(rl_outstream)" (identifier "fflush") (argument_list "(rl_outstream)" (( "(") (identifier "rl_outstream") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);" (assignment_expression "iVar1 = FUN_001b40b1(iVar1,&DAT_00216780)" (identifier "iVar1") (= "=") (call_expression "FUN_001b40b1(iVar1,&DAT_00216780)" (identifier "FUN_001b40b1") (argument_list "(iVar1,&DAT_00216780)" (( "(") (identifier "iVar1") (, ",") (pointer_expression "&DAT_00216780" (& "&") (identifier "DAT_00216780")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n    _rl_release_sigint();\n  }\n  else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    _rl_release_sigint();\n  }" ({ "{") (expression_statement "_rl_release_sigint();" (call_expression "_rl_release_sigint()" (identifier "_rl_release_sigint") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" (else "else") (compound_statement "{\n    DAT_002167d0 = 0;\n    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;\n    _rl_release_sigint();\n  }" ({ "{") (expression_statement "DAT_002167d0 = 0;" (assignment_expression "DAT_002167d0 = 0" (identifier "DAT_002167d0") (= "=") (number_literal "0")) (; ";")) (expression_statement "rl_readline_state = rl_readline_state & 0xfffffffffffffffb;" (assignment_expression "rl_readline_state = rl_readline_state & 0xfffffffffffffffb" (identifier "rl_readline_state") (= "=") (binary_expression "rl_readline_state & 0xfffffffffffffffb" (identifier "rl_readline_state") (& "&") (number_literal "0xfffffffffffffffb"))) (; ";")) (expression_statement "_rl_release_sigint();" (call_expression "_rl_release_sigint()" (identifier "_rl_release_sigint") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  int var_12;
  
  if (var_1 == 0) {
    return;
  }
  var_2();
  if (var_3 == (type_1 *)0x0) {
    var_12 = var_4(stdin);
  }
  else {
    var_12 = var_4((type_1 *)var_3);
  }
  if ((var_1 & 2U) != 0) {
    var_5(&DAT_001ea1c5,1,9,(type_1 *)rl_outstream);
    if (var_6 != 0) {
      var_7(10,(type_1 *)rl_outstream);
    }
  }
  if (var_8 != 0) {
    var_9(0);
  }
  var_10((type_1 *)rl_outstream);
  var_12 = var_11(var_12,&otio);
  if (var_12 < 0) {
    var_13();
  }
  else {
    var_1 = 0;
    var_14 = var_14 & 0xfffffffffffffffb;
    var_13();
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (number_literal) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement))))

void MASKED(void)

{
  int iVar1;
  
  if (DAT_002167d0 == 0) {
    return;
  }
  _rl_block_sigint();
  if (rl_instream == (FILE *)0x0) {
    iVar1 = fileno(stdin);
  }
  else {
    iVar1 = fileno(rl_instream);
  }
  if ((DAT_002167d0 & 2) != 0) {
    fwrite(&DAT_001ea1c5,1,9,rl_outstream);
    if (_rl_eof_found != 0) {
      fputc(10,rl_outstream);
    }
  }
  if (_rl_enable_keypad != 0) {
    _rl_control_keypad(0);
  }
  fflush(rl_outstream);
  iVar1 = FUN_001b40b1(iVar1,&DAT_00216780);
  if (iVar1 < 0) {
    _rl_release_sigint();
  }
  else {
    DAT_002167d0 = 0;
    rl_readline_state = rl_readline_state & 0xfffffffffffffffb;
    _rl_release_sigint();
  }
  return;
}

