
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Variable defined which should be unmapped: w */
/* WARNING: Unknown calling convention */

void rltty_set_default_bindings(Keymap kmap)

{
  int iVar1;
  termios ttybuff_00;
  int __fd;
  int iVar2;
  int *piVar3;
  int in_GS_OFFSET;
  undefined1 auStack_7c [12];
  undefined1 auStack_6c [8];
  winsize w;
  termios ttybuff;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  __fd = fileno((FILE *)rl_instream);
  iVar2 = ioctl(__fd,0x5413);
  if (iVar2 == 0) {
    ioctl(__fd,0x5414);
  }
  piVar3 = __errno_location();
  *piVar3 = 0;
  do {
    iVar2 = tcgetattr(__fd,(termios *)&ttybuff);
    if (-1 < iVar2) {
      if ((ttybuff.c_lflag & 0x1000) != 0) {
        _rl_errmsg("warning: turning off output flushing");
        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;
      }
      ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf];
      ttybuff_00.c_iflag = (uint)ttybuff.c_cc[0xe];
      ttybuff_00.c_oflag._1_3_ = 0;
      ttybuff_00.c_cflag = (tcflag_t)&w;
      ttybuff_00.c_lflag = 0xe80cb;
      ttybuff_00._16_12_ = auStack_7c;
      ttybuff_00.c_cc._11_4_ = kmap;
      ttybuff_00._32_28_ = _auStack_6c;
      _rl_bind_tty_special_chars(kmap,ttybuff_00);
      break;
    }
  } while (*piVar3 == 4);
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void rltty_set_default_bindings(void)

{
  int __fd;
  int iVar1;
  int *piVar2;
  int in_GS_OFFSET;
  undefined1 local_64 [8];
  termios local_5c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xe8079;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  __fd = fileno(rl_instream);
  iVar1 = ioctl(__fd,0x5413,local_64);
  if (iVar1 == 0) {
    ioctl(__fd,0x5414,local_64);
  }
  piVar2 = __errno_location();
  *piVar2 = 0;
  do {
    iVar1 = tcgetattr(__fd,&local_5c);
    if (-1 < iVar1) {
      if ((local_5c.c_lflag & 0x1000) != 0) {
        _rl_errmsg("warning: turning off output flushing");
        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;
      }
      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);
      break;
    }
  } while (*piVar2 == 4);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0010f8b0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x89f87
SUB ESP,0x78
MOV EAX,dword ptr [ESP + 0x8c]
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x68],EAX
XOR EAX,EAX
LEA EAX,[EBX + 0x7b3c]
PUSH dword ptr [EAX]
CALL 0x0002e900
ADD ESP,0xc
LEA EBP,[ESP + 0x1c]
MOV ESI,EAX
PUSH EBP
PUSH 0x5413
PUSH EAX
CALL 0x0002e4d0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000e8158
CALL 0x0002e8b0
LEA EDI,[ESP + 0x20]
MOV EBP,EAX
MOV dword ptr [EAX],0x0
JMP 0x000e80e6
CMP dword ptr [EBP],0x4
JNZ 0x000e813d
SUB ESP,0x8
PUSH EDI
PUSH ESI
CALL 0x0002ec60
ADD ESP,0x10
TEST EAX,EAX
JS 0x000e80e0
TEST byte ptr [ESP + 0x2d],0x10
JZ 0x000e8118
SUB ESP,0xc
LEA EAX,[EBX + 0xfffb6e68]
PUSH EAX
CALL 0x000fcff0
AND dword ptr [ESP + 0x3c],0xffffefff
ADD ESP,0x10
SUB ESP,0x8
MOVZX EAX,byte ptr [ESP + 0x48]
PUSH EAX
MOVZX EAX,byte ptr [ESP + 0x4b]
PUSH EAX
MOVZX ECX,byte ptr [ESP + 0x44]
MOVZX EDX,byte ptr [ESP + 0x43]
MOV EAX,dword ptr [ESP + 0x1c]
CALL 0x000e77f0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x5c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x000e816f
ADD ESP,0x6c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EBP
PUSH 0x5414
PUSH ESI
CALL 0x0002e4d0
ADD ESP,0x10
JMP 0x000e80c6
CALL 0x0010f8b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid rltty_set_default_bindings(void)\n\n{\n  int __fd;\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  undefined1 local_64 [8];\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe8079;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno(rl_instream);\n  iVar1 = ioctl(__fd,0x5413,local_64);\n  if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }\n  piVar2 = __errno_location();\n  *piVar2 = 0;\n  do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0010f8b0();\n}\n\n" comment (function_definition "void rltty_set_default_bindings(void)\n\n{\n  int __fd;\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  undefined1 local_64 [8];\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe8079;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno(rl_instream);\n  iVar1 = ioctl(__fd,0x5413,local_64);\n  if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }\n  piVar2 = __errno_location();\n  *piVar2 = 0;\n  do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0010f8b0();\n}" primitive_type (function_declarator "rltty_set_default_bindings(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int __fd;\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  undefined1 local_64 [8];\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe8079;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno(rl_instream);\n  iVar1 = ioctl(__fd,0x5413,local_64);\n  if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }\n  piVar2 = __errno_location();\n  *piVar2 = 0;\n  do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0010f8b0();\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_64 [8];" type_identifier (array_declarator "local_64 [8]" identifier [ number_literal ]) ;) (declaration "termios local_5c;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xe8079;" (assignment_expression "uStack_14 = 0xe8079" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__fd = fileno(rl_instream);" (assignment_expression "__fd = fileno(rl_instream)" identifier = (call_expression "fileno(rl_instream)" identifier (argument_list "(rl_instream)" ( identifier )))) ;) (expression_statement "iVar1 = ioctl(__fd,0x5413,local_64);" (assignment_expression "iVar1 = ioctl(__fd,0x5413,local_64)" identifier = (call_expression "ioctl(__fd,0x5413,local_64)" identifier (argument_list "(__fd,0x5413,local_64)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    ioctl(__fd,0x5414,local_64);\n  }" { (expression_statement "ioctl(__fd,0x5414,local_64);" (call_expression "ioctl(__fd,0x5414,local_64)" identifier (argument_list "(__fd,0x5414,local_64)" ( identifier , number_literal , identifier ))) ;) })) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (do_statement "do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);" do (compound_statement "{\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  }" { (expression_statement "iVar1 = tcgetattr(__fd,&local_5c);" (assignment_expression "iVar1 = tcgetattr(__fd,&local_5c)" identifier = (call_expression "tcgetattr(__fd,&local_5c)" identifier (argument_list "(__fd,&local_5c)" ( identifier , (pointer_expression "&local_5c" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }" { (if_statement "if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }" if (parenthesized_expression "((local_5c.c_lflag & 0x1000) != 0)" ( (binary_expression "(local_5c.c_lflag & 0x1000) != 0" (parenthesized_expression "(local_5c.c_lflag & 0x1000)" ( (binary_expression "local_5c.c_lflag & 0x1000" (field_expression "local_5c.c_lflag" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }" { (expression_statement "_rl_errmsg("warning: turning off output flushing");" (call_expression "_rl_errmsg("warning: turning off output flushing")" identifier (argument_list "("warning: turning off output flushing")" ( (string_literal ""warning: turning off output flushing"" " string_content ") ))) ;) (expression_statement "local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;" (assignment_expression "local_5c.c_lflag = local_5c.c_lflag & 0xffffefff" (field_expression "local_5c.c_lflag" identifier . field_identifier) = (binary_expression "local_5c.c_lflag & 0xffffefff" (field_expression "local_5c.c_lflag" identifier . field_identifier) & number_literal)) ;) })) (expression_statement "FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);" (call_expression "FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf])" identifier (argument_list "(local_5c.c_cc[0xe],local_5c.c_cc[0xf])" ( (subscript_expression "local_5c.c_cc[0xe]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) , (subscript_expression "local_5c.c_cc[0xf]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) ))) ;) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(*piVar2 == 4)" ( (binary_expression "*piVar2 == 4" (pointer_expression "*piVar2" * identifier) == number_literal) )) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0010f8b0();" (call_expression "FUN_0010f8b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Variable defined which should be unmapped: w */\n/* WARNING: Unknown calling convention */\n\nvoid rltty_set_default_bindings(Keymap kmap)\n\n{\n  int iVar1;\n  termios ttybuff_00;\n  int __fd;\n  int iVar2;\n  int *piVar3;\n  int in_GS_OFFSET;\n  undefined1 auStack_7c [12];\n  undefined1 auStack_6c [8];\n  winsize w;\n  termios ttybuff;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno((FILE *)rl_instream);\n  iVar2 = ioctl(__fd,0x5413);\n  if (iVar2 == 0) {\n    ioctl(__fd,0x5414);\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0;\n  do {\n    iVar2 = tcgetattr(__fd,(termios *)&ttybuff);\n    if (-1 < iVar2) {\n      if ((ttybuff.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;\n      }\n      ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf];\n      ttybuff_00.c_iflag = (uint)ttybuff.c_cc[0xe];\n      ttybuff_00.c_oflag._1_3_ = 0;\n      ttybuff_00.c_cflag = (tcflag_t)&w;\n      ttybuff_00.c_lflag = 0xe80cb;\n      ttybuff_00._16_12_ = auStack_7c;\n      ttybuff_00.c_cc._11_4_ = kmap;\n      ttybuff_00._32_28_ = _auStack_6c;\n      _rl_bind_tty_special_chars(kmap,ttybuff_00);\n      break;\n    }\n  } while (*piVar3 == 4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "void rltty_set_default_bindings(Keymap kmap)\n\n{\n  int iVar1;\n  termios ttybuff_00;\n  int __fd;\n  int iVar2;\n  int *piVar3;\n  int in_GS_OFFSET;\n  undefined1 auStack_7c [12];\n  undefined1 auStack_6c [8];\n  winsize w;\n  termios ttybuff;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno((FILE *)rl_instream);\n  iVar2 = ioctl(__fd,0x5413);\n  if (iVar2 == 0) {\n    ioctl(__fd,0x5414);\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0;\n  do {\n    iVar2 = tcgetattr(__fd,(termios *)&ttybuff);\n    if (-1 < iVar2) {\n      if ((ttybuff.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;\n      }\n      ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf];\n      ttybuff_00.c_iflag = (uint)ttybuff.c_cc[0xe];\n      ttybuff_00.c_oflag._1_3_ = 0;\n      ttybuff_00.c_cflag = (tcflag_t)&w;\n      ttybuff_00.c_lflag = 0xe80cb;\n      ttybuff_00._16_12_ = auStack_7c;\n      ttybuff_00.c_cc._11_4_ = kmap;\n      ttybuff_00._32_28_ = _auStack_6c;\n      _rl_bind_tty_special_chars(kmap,ttybuff_00);\n      break;\n    }\n  } while (*piVar3 == 4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "rltty_set_default_bindings(Keymap kmap)" identifier (parameter_list "(Keymap kmap)" ( (parameter_declaration "Keymap kmap" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  termios ttybuff_00;\n  int __fd;\n  int iVar2;\n  int *piVar3;\n  int in_GS_OFFSET;\n  undefined1 auStack_7c [12];\n  undefined1 auStack_6c [8];\n  winsize w;\n  termios ttybuff;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno((FILE *)rl_instream);\n  iVar2 = ioctl(__fd,0x5413);\n  if (iVar2 == 0) {\n    ioctl(__fd,0x5414);\n  }\n  piVar3 = __errno_location();\n  *piVar3 = 0;\n  do {\n    iVar2 = tcgetattr(__fd,(termios *)&ttybuff);\n    if (-1 < iVar2) {\n      if ((ttybuff.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;\n      }\n      ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf];\n      ttybuff_00.c_iflag = (uint)ttybuff.c_cc[0xe];\n      ttybuff_00.c_oflag._1_3_ = 0;\n      ttybuff_00.c_cflag = (tcflag_t)&w;\n      ttybuff_00.c_lflag = 0xe80cb;\n      ttybuff_00._16_12_ = auStack_7c;\n      ttybuff_00.c_cc._11_4_ = kmap;\n      ttybuff_00._32_28_ = _auStack_6c;\n      _rl_bind_tty_special_chars(kmap,ttybuff_00);\n      break;\n    }\n  } while (*piVar3 == 4);\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "termios ttybuff_00;" type_identifier identifier ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 auStack_7c [12];" type_identifier (array_declarator "auStack_7c [12]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_6c [8];" type_identifier (array_declarator "auStack_6c [8]" identifier [ number_literal ]) ;) (declaration "winsize w;" type_identifier identifier ;) (declaration "termios ttybuff;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__fd = fileno((FILE *)rl_instream);" (assignment_expression "__fd = 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) )))) ;) (expression_statement "iVar2 = ioctl(__fd,0x5413);" (assignment_expression "iVar2 = ioctl(__fd,0x5413)" identifier = (call_expression "ioctl(__fd,0x5413)" identifier (argument_list "(__fd,0x5413)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    ioctl(__fd,0x5414);\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    ioctl(__fd,0x5414);\n  }" { (expression_statement "ioctl(__fd,0x5414);" (call_expression "ioctl(__fd,0x5414)" identifier (argument_list "(__fd,0x5414)" ( identifier , number_literal ))) ;) })) (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar3 = 0;" (assignment_expression "*piVar3 = 0" (pointer_expression "*piVar3" * identifier) = number_literal) ;) (do_statement "do {\n    iVar2 = tcgetattr(__fd,(termios *)&ttybuff);\n    if (-1 < iVar2) {\n      if ((ttybuff.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;\n      }\n      ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf];\n      ttybuff_00.c_iflag = (uint)ttybuff.c_cc[0xe];\n      ttybuff_00.c_oflag._1_3_ = 0;\n      ttybuff_00.c_cflag = (tcflag_t)&w;\n      ttybuff_00.c_lflag = 0xe80cb;\n      ttybuff_00._16_12_ = auStack_7c;\n      ttybuff_00.c_cc._11_4_ = kmap;\n      ttybuff_00._32_28_ = _auStack_6c;\n      _rl_bind_tty_special_chars(kmap,ttybuff_00);\n      break;\n    }\n  } while (*piVar3 == 4);" do (compound_statement "{\n    iVar2 = tcgetattr(__fd,(termios *)&ttybuff);\n    if (-1 < iVar2) {\n      if ((ttybuff.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;\n      }\n      ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf];\n      ttybuff_00.c_iflag = (uint)ttybuff.c_cc[0xe];\n      ttybuff_00.c_oflag._1_3_ = 0;\n      ttybuff_00.c_cflag = (tcflag_t)&w;\n      ttybuff_00.c_lflag = 0xe80cb;\n      ttybuff_00._16_12_ = auStack_7c;\n      ttybuff_00.c_cc._11_4_ = kmap;\n      ttybuff_00._32_28_ = _auStack_6c;\n      _rl_bind_tty_special_chars(kmap,ttybuff_00);\n      break;\n    }\n  }" { (expression_statement "iVar2 = tcgetattr(__fd,(termios *)&ttybuff);" (assignment_expression "iVar2 = tcgetattr(__fd,(termios *)&ttybuff)" identifier = (call_expression "tcgetattr(__fd,(termios *)&ttybuff)" identifier (argument_list "(__fd,(termios *)&ttybuff)" ( identifier , (cast_expression "(termios *)&ttybuff" ( (type_descriptor "termios *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ttybuff" & identifier)) )))) ;) (if_statement "if (-1 < iVar2) {\n      if ((ttybuff.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;\n      }\n      ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf];\n      ttybuff_00.c_iflag = (uint)ttybuff.c_cc[0xe];\n      ttybuff_00.c_oflag._1_3_ = 0;\n      ttybuff_00.c_cflag = (tcflag_t)&w;\n      ttybuff_00.c_lflag = 0xe80cb;\n      ttybuff_00._16_12_ = auStack_7c;\n      ttybuff_00.c_cc._11_4_ = kmap;\n      ttybuff_00._32_28_ = _auStack_6c;\n      _rl_bind_tty_special_chars(kmap,ttybuff_00);\n      break;\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      if ((ttybuff.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;\n      }\n      ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf];\n      ttybuff_00.c_iflag = (uint)ttybuff.c_cc[0xe];\n      ttybuff_00.c_oflag._1_3_ = 0;\n      ttybuff_00.c_cflag = (tcflag_t)&w;\n      ttybuff_00.c_lflag = 0xe80cb;\n      ttybuff_00._16_12_ = auStack_7c;\n      ttybuff_00.c_cc._11_4_ = kmap;\n      ttybuff_00._32_28_ = _auStack_6c;\n      _rl_bind_tty_special_chars(kmap,ttybuff_00);\n      break;\n    }" { (if_statement "if ((ttybuff.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;\n      }" if (parenthesized_expression "((ttybuff.c_lflag & 0x1000) != 0)" ( (binary_expression "(ttybuff.c_lflag & 0x1000) != 0" (parenthesized_expression "(ttybuff.c_lflag & 0x1000)" ( (binary_expression "ttybuff.c_lflag & 0x1000" (field_expression "ttybuff.c_lflag" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n        _rl_errmsg("warning: turning off output flushing");\n        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;\n      }" { (expression_statement "_rl_errmsg("warning: turning off output flushing");" (call_expression "_rl_errmsg("warning: turning off output flushing")" identifier (argument_list "("warning: turning off output flushing")" ( (string_literal ""warning: turning off output flushing"" " string_content ") ))) ;) (expression_statement "ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;" (assignment_expression "ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff" (field_expression "ttybuff.c_lflag" identifier . field_identifier) = (binary_expression "ttybuff.c_lflag & 0xffffefff" (field_expression "ttybuff.c_lflag" identifier . field_identifier) & number_literal)) ;) })) (expression_statement "ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf];" (assignment_expression "ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf]" (field_expression "ttybuff_00.c_oflag._0_1_" (field_expression "ttybuff_00.c_oflag" identifier . field_identifier) . field_identifier) = (subscript_expression "ttybuff.c_cc[0xf]" (field_expression "ttybuff.c_cc" identifier . field_identifier) [ number_literal ])) ;) (expression_statement "ttybuff_00.c_iflag = (uint)ttybuff.c_cc[0xe];" (assignment_expression "ttybuff_00.c_iflag = (uint)ttybuff.c_cc[0xe]" (field_expression "ttybuff_00.c_iflag" identifier . field_identifier) = (cast_expression "(uint)ttybuff.c_cc[0xe]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "ttybuff.c_cc[0xe]" (field_expression "ttybuff.c_cc" identifier . field_identifier) [ number_literal ]))) ;) (expression_statement "ttybuff_00.c_oflag._1_3_ = 0;" (assignment_expression "ttybuff_00.c_oflag._1_3_ = 0" (field_expression "ttybuff_00.c_oflag._1_3_" (field_expression "ttybuff_00.c_oflag" identifier . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "ttybuff_00.c_cflag = (tcflag_t)&w;" (assignment_expression "ttybuff_00.c_cflag = (tcflag_t)&w" (field_expression "ttybuff_00.c_cflag" identifier . field_identifier) = (binary_expression "(tcflag_t)&w" (parenthesized_expression "(tcflag_t)" ( identifier )) & identifier)) ;) (expression_statement "ttybuff_00.c_lflag = 0xe80cb;" (assignment_expression "ttybuff_00.c_lflag = 0xe80cb" (field_expression "ttybuff_00.c_lflag" identifier . field_identifier) = number_literal) ;) (expression_statement "ttybuff_00._16_12_ = auStack_7c;" (assignment_expression "ttybuff_00._16_12_ = auStack_7c" (field_expression "ttybuff_00._16_12_" identifier . field_identifier) = identifier) ;) (expression_statement "ttybuff_00.c_cc._11_4_ = kmap;" (assignment_expression "ttybuff_00.c_cc._11_4_ = kmap" (field_expression "ttybuff_00.c_cc._11_4_" (field_expression "ttybuff_00.c_cc" identifier . field_identifier) . field_identifier) = identifier) ;) (expression_statement "ttybuff_00._32_28_ = _auStack_6c;" (assignment_expression "ttybuff_00._32_28_ = _auStack_6c" (field_expression "ttybuff_00._32_28_" identifier . field_identifier) = identifier) ;) (expression_statement "_rl_bind_tty_special_chars(kmap,ttybuff_00);" (call_expression "_rl_bind_tty_special_chars(kmap,ttybuff_00)" identifier (argument_list "(kmap,ttybuff_00)" ( identifier , identifier ))) ;) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(*piVar3 == 4)" ( (binary_expression "*piVar3 == 4" (pointer_expression "*piVar3" * identifier) == number_literal) )) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void rltty_set_default_bindings(void)\n\n{\n  int __fd;\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  undefined1 local_64 [8];\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe8079;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno(rl_instream);\n  iVar1 = ioctl(__fd,0x5413,local_64);\n  if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }\n  piVar2 = __errno_location();\n  *piVar2 = 0;\n  do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0010f8b0();\n}\n\n" (function_definition "void rltty_set_default_bindings(void)\n\n{\n  int __fd;\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  undefined1 local_64 [8];\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe8079;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno(rl_instream);\n  iVar1 = ioctl(__fd,0x5413,local_64);\n  if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }\n  piVar2 = __errno_location();\n  *piVar2 = 0;\n  do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0010f8b0();\n}" primitive_type (function_declarator "rltty_set_default_bindings(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int __fd;\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  undefined1 local_64 [8];\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe8079;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno(rl_instream);\n  iVar1 = ioctl(__fd,0x5413,local_64);\n  if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }\n  piVar2 = __errno_location();\n  *piVar2 = 0;\n  do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0010f8b0();\n}" { (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_64 [8];" type_identifier (array_declarator "local_64 [8]" identifier [ number_literal ]) ;) (declaration "termios local_5c;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xe8079;" (assignment_expression "uStack_14 = 0xe8079" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__fd = fileno(rl_instream);" (assignment_expression "__fd = fileno(rl_instream)" identifier = (call_expression "fileno(rl_instream)" identifier (argument_list "(rl_instream)" ( identifier )))) ;) (expression_statement "iVar1 = ioctl(__fd,0x5413,local_64);" (assignment_expression "iVar1 = ioctl(__fd,0x5413,local_64)" identifier = (call_expression "ioctl(__fd,0x5413,local_64)" identifier (argument_list "(__fd,0x5413,local_64)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    ioctl(__fd,0x5414,local_64);\n  }" { (expression_statement "ioctl(__fd,0x5414,local_64);" (call_expression "ioctl(__fd,0x5414,local_64)" identifier (argument_list "(__fd,0x5414,local_64)" ( identifier , number_literal , identifier ))) ;) })) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (do_statement "do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);" do (compound_statement "{\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  }" { (expression_statement "iVar1 = tcgetattr(__fd,&local_5c);" (assignment_expression "iVar1 = tcgetattr(__fd,&local_5c)" identifier = (call_expression "tcgetattr(__fd,&local_5c)" identifier (argument_list "(__fd,&local_5c)" ( identifier , (pointer_expression "&local_5c" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }" { (if_statement "if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }" if (parenthesized_expression "((local_5c.c_lflag & 0x1000) != 0)" ( (binary_expression "(local_5c.c_lflag & 0x1000) != 0" (parenthesized_expression "(local_5c.c_lflag & 0x1000)" ( (binary_expression "local_5c.c_lflag & 0x1000" (field_expression "local_5c.c_lflag" identifier . field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }" { (expression_statement "_rl_errmsg("warning: turning off output flushing");" (call_expression "_rl_errmsg("warning: turning off output flushing")" identifier (argument_list "("warning: turning off output flushing")" ( (string_literal ""warning: turning off output flushing"" " string_content ") ))) ;) (expression_statement "local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;" (assignment_expression "local_5c.c_lflag = local_5c.c_lflag & 0xffffefff" (field_expression "local_5c.c_lflag" identifier . field_identifier) = (binary_expression "local_5c.c_lflag & 0xffffefff" (field_expression "local_5c.c_lflag" identifier . field_identifier) & number_literal)) ;) })) (expression_statement "FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);" (call_expression "FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf])" identifier (argument_list "(local_5c.c_cc[0xe],local_5c.c_cc[0xf])" ( (subscript_expression "local_5c.c_cc[0xe]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) , (subscript_expression "local_5c.c_cc[0xf]" (field_expression "local_5c.c_cc" identifier . field_identifier) [ number_literal ]) ))) ;) (break_statement "break;" break ;) })) }) while (parenthesized_expression "(*piVar2 == 4)" ( (binary_expression "*piVar2 == 4" (pointer_expression "*piVar2" * identifier) == number_literal) )) ;) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0010f8b0();" (call_expression "FUN_0010f8b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (binary_expression (field_expression IDENT . field_identifier) & LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) , (subscript_expression (field_expression IDENT . field_identifier) [ LIT ]) ))) ;) (break_statement break ;) })) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void rltty_set_default_bindings(void)\n\n{\n  int __fd;\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  undefined1 local_64 [8];\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe8079;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno(rl_instream);\n  iVar1 = ioctl(__fd,0x5413,local_64);\n  if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }\n  piVar2 = __errno_location();\n  *piVar2 = 0;\n  do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0010f8b0();\n}" (primitive_type "void") (function_declarator "rltty_set_default_bindings(void)" (identifier "rltty_set_default_bindings") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int __fd;\n  int iVar1;\n  int *piVar2;\n  int in_GS_OFFSET;\n  undefined1 local_64 [8];\n  termios local_5c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xe8079;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __fd = fileno(rl_instream);\n  iVar1 = ioctl(__fd,0x5413,local_64);\n  if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }\n  piVar2 = __errno_location();\n  *piVar2 = 0;\n  do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0010f8b0();\n}" ({ "{") (declaration "int __fd;" (primitive_type "int") (identifier "__fd") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_64 [8];" (type_identifier "undefined1") (array_declarator "local_64 [8]" (identifier "local_64") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "termios local_5c;" (type_identifier "termios") (identifier "local_5c") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xe8079;" (assignment_expression "uStack_14 = 0xe8079" (identifier "uStack_14") (= "=") (number_literal "0xe8079")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "__fd = fileno(rl_instream);" (assignment_expression "__fd = fileno(rl_instream)" (identifier "__fd") (= "=") (call_expression "fileno(rl_instream)" (identifier "fileno") (argument_list "(rl_instream)" (( "(") (identifier "rl_instream") () ")")))) (; ";")) (expression_statement "iVar1 = ioctl(__fd,0x5413,local_64);" (assignment_expression "iVar1 = ioctl(__fd,0x5413,local_64)" (identifier "iVar1") (= "=") (call_expression "ioctl(__fd,0x5413,local_64)" (identifier "ioctl") (argument_list "(__fd,0x5413,local_64)" (( "(") (identifier "__fd") (, ",") (number_literal "0x5413") (, ",") (identifier "local_64") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    ioctl(__fd,0x5414,local_64);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    ioctl(__fd,0x5414,local_64);\n  }" ({ "{") (expression_statement "ioctl(__fd,0x5414,local_64);" (call_expression "ioctl(__fd,0x5414,local_64)" (identifier "ioctl") (argument_list "(__fd,0x5414,local_64)" (( "(") (identifier "__fd") (, ",") (number_literal "0x5414") (, ",") (identifier "local_64") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  } while (*piVar2 == 4);" (do "do") (compound_statement "{\n    iVar1 = tcgetattr(__fd,&local_5c);\n    if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }\n  }" ({ "{") (expression_statement "iVar1 = tcgetattr(__fd,&local_5c);" (assignment_expression "iVar1 = tcgetattr(__fd,&local_5c)" (identifier "iVar1") (= "=") (call_expression "tcgetattr(__fd,&local_5c)" (identifier "tcgetattr") (argument_list "(__fd,&local_5c)" (( "(") (identifier "__fd") (, ",") (pointer_expression "&local_5c" (& "&") (identifier "local_5c")) () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }\n      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);\n      break;\n    }" ({ "{") (if_statement "if ((local_5c.c_lflag & 0x1000) != 0) {\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }" (if "if") (parenthesized_expression "((local_5c.c_lflag & 0x1000) != 0)" (( "(") (binary_expression "(local_5c.c_lflag & 0x1000) != 0" (parenthesized_expression "(local_5c.c_lflag & 0x1000)" (( "(") (binary_expression "local_5c.c_lflag & 0x1000" (field_expression "local_5c.c_lflag" (identifier "local_5c") (. ".") (field_identifier "c_lflag")) (& "&") (number_literal "0x1000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        _rl_errmsg("warning: turning off output flushing");\n        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;\n      }" ({ "{") (expression_statement "_rl_errmsg("warning: turning off output flushing");" (call_expression "_rl_errmsg("warning: turning off output flushing")" (identifier "_rl_errmsg") (argument_list "("warning: turning off output flushing")" (( "(") (string_literal ""warning: turning off output flushing"" (" """) (string_content "warning: turning off output flushing") (" """)) () ")"))) (; ";")) (expression_statement "local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;" (assignment_expression "local_5c.c_lflag = local_5c.c_lflag & 0xffffefff" (field_expression "local_5c.c_lflag" (identifier "local_5c") (. ".") (field_identifier "c_lflag")) (= "=") (binary_expression "local_5c.c_lflag & 0xffffefff" (field_expression "local_5c.c_lflag" (identifier "local_5c") (. ".") (field_identifier "c_lflag")) (& "&") (number_literal "0xffffefff"))) (; ";")) (} "}"))) (expression_statement "FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);" (call_expression "FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf])" (identifier "FUN_000e77f0") (argument_list "(local_5c.c_cc[0xe],local_5c.c_cc[0xf])" (( "(") (subscript_expression "local_5c.c_cc[0xe]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xe") (] "]")) (, ",") (subscript_expression "local_5c.c_cc[0xf]" (field_expression "local_5c.c_cc" (identifier "local_5c") (. ".") (field_identifier "c_cc")) ([ "[") (number_literal "0xf") (] "]")) () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(*piVar2 == 4)" (( "(") (binary_expression "*piVar2 == 4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "4")) () ")")) (; ";")) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0010f8b0();" (call_expression "FUN_0010f8b0()" (identifier "FUN_0010f8b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Variable defined which should be unmapped: w */
/* WARNING: Unknown calling convention */

void function_1(type_1 kmap)

{
  int var_10;
  type_2 ttybuff_00;
  int __fd;
  int var_4;
  int *piVar3;
  int var_1;
  type_3 auStack_7c [12];
  type_3 auStack_6c [8];
  type_4 var_8;
  type_2 ttybuff;
  
  var_10 = *(int *)(var_1 + 0x14);
  __fd = var_2((type_5 *)rl_instream);
  var_4 = var_3(__fd,0x5413);
  if (var_4 == 0) {
    var_3(__fd,0x5414);
  }
  piVar3 = var_5();
  *piVar3 = 0;
  do {
    var_4 = var_6(__fd,(type_2 *)&ttybuff);
    if (-1 < var_4) {
      if ((ttybuff.c_lflag & 0x1000) != 0) {
        var_7("warning: turning off output flushing");
        ttybuff.c_lflag = ttybuff.c_lflag & 0xffffefff;
      }
      ttybuff_00.c_oflag._0_1_ = ttybuff.c_cc[0xf];
      ttybuff_00.c_iflag = (type_6)ttybuff.c_cc[0xe];
      ttybuff_00.c_oflag._1_3_ = 0;
      ttybuff_00.c_cflag = (tcflag_t)&var_8;
      ttybuff_00.c_lflag = 0xe80cb;
      ttybuff_00._16_12_ = auStack_7c;
      ttybuff_00.c_cc._11_4_ = kmap;
      ttybuff_00._32_28_ = _auStack_6c;
      var_9(kmap,ttybuff_00);
      break;
    }
  } while (*piVar3 == 4);
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


(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)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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 (identifier) (number_literal) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (do_statement body: (compound_statement (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: (number_literal) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content))))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal)) (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (number_literal))))) (break_statement)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(void)

{
  int __fd;
  int iVar1;
  int *piVar2;
  int in_GS_OFFSET;
  undefined1 local_64 [8];
  termios local_5c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xe8079;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  __fd = fileno(rl_instream);
  iVar1 = ioctl(__fd,0x5413,local_64);
  if (iVar1 == 0) {
    ioctl(__fd,0x5414,local_64);
  }
  piVar2 = __errno_location();
  *piVar2 = 0;
  do {
    iVar1 = tcgetattr(__fd,&local_5c);
    if (-1 < iVar1) {
      if ((local_5c.c_lflag & 0x1000) != 0) {
        _rl_errmsg("warning: turning off output flushing");
        local_5c.c_lflag = local_5c.c_lflag & 0xffffefff;
      }
      FUN_000e77f0(local_5c.c_cc[0xe],local_5c.c_cc[0xf]);
      break;
    }
  } while (*piVar2 == 4);
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0010f8b0();
}

