
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void regenerate_screen(void)

{
  int iVar1;
  char *__file;
  int __fd;
  int iVar2;
  int in_GS_OFFSET;
  winsize win;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  __file = ttyname(0);
  the_window_resized = 0;
  if (__file != (char *)0x0) {
    __fd = open64(__file,2);
    if (__fd != -1) {
      iVar2 = ioctl(__fd,0x5413,&win);
      close(__fd);
      if (iVar2 != -1) {
        editwincols = *(int *)PTR_COLS_0006af7c - margin;
        ensure_firstcolumn_is_aligned();
        endwin();
        doupdate();
        terminal_init();
        window_init();
        total_refresh();
      }
    }
  }
  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 FUN_00027ae0(void)

{
  char *__file;
  int __fd;
  int iVar1;
  int in_GS_OFFSET;
  undefined1 local_18 [8];
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  __file = ttyname(0);
  DAT_0006b69c = 0;
  if (__file != (char *)0x0) {
    __fd = open64(__file,2);
    if (__fd != -1) {
      iVar1 = ioctl(__fd,0x5413,local_18);
      close(__fd);
      if (iVar1 != -1) {
        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;
        FUN_0003aa30();
        endwin();
        doupdate();
        FUN_000277f0();
        FUN_000263b0();
        FUN_0003bd30();
      }
    }
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0004be20();
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014e20
ADD EBX,0x430e8
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x18],EAX
XOR EAX,EAX
PUSH 0x0
CALL 0x00013610
LEA EDX,[EBX + 0xacc]
ADD ESP,0x10
MOV dword ptr [EDX],0x0
TEST EAX,EAX
JZ 0x00027b87
SUB ESP,0x8
PUSH 0x2
PUSH EAX
CALL 0x00013130
ADD ESP,0x10
MOV ESI,EAX
CMP EAX,-0x1
JZ 0x00027b87
SUB ESP,0x4
LEA EAX,[ESP + 0x8]
PUSH EAX
PUSH 0x5413
PUSH ESI
CALL 0x00013400
MOV dword ptr [ESP],ESI
MOV EDI,EAX
CALL 0x00013ab0
ADD ESP,0x10
CMP EDI,-0x1
JZ 0x00027b87
LEA EDX,[EBX + 0xa80]
MOV EAX,dword ptr [EBX + 0x3ac]
MOV EAX,dword ptr [EAX]
SUB EAX,dword ptr [EDX]
LEA EDX,[EBX + 0x49c]
MOV dword ptr [EDX],EAX
CALL 0x0003aa30
CALL 0x00013a80
CALL 0x00013780
CALL 0x000277f0
CALL 0x000263b0
CALL 0x0003bd30
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00027b9b
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
CALL 0x0004be20
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00027ae0(void)\n\n{\n  char *__file;\n  int __fd;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_18 [8];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  DAT_0006b69c = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004be20();\n}\n\n" comment (function_definition "void FUN_00027ae0(void)\n\n{\n  char *__file;\n  int __fd;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_18 [8];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  DAT_0006b69c = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004be20();\n}" primitive_type (function_declarator "FUN_00027ae0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *__file;\n  int __fd;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_18 [8];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  DAT_0006b69c = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0004be20();\n}" { (declaration "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_18 [8];" type_identifier (array_declarator "local_18 [8]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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 "__file = ttyname(0);" (assignment_expression "__file = ttyname(0)" identifier = (call_expression "ttyname(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "DAT_0006b69c = 0;" (assignment_expression "DAT_0006b69c = 0" identifier = number_literal) ;) (if_statement "if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }" if (parenthesized_expression "(__file != (char *)0x0)" ( (binary_expression "__file != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }" { (expression_statement "__fd = open64(__file,2);" (assignment_expression "__fd = open64(__file,2)" identifier = (call_expression "open64(__file,2)" identifier (argument_list "(__file,2)" ( identifier , number_literal )))) ;) (if_statement "if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }" if (parenthesized_expression "(__fd != -1)" ( (binary_expression "__fd != -1" identifier != number_literal) )) (compound_statement "{\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }" { (expression_statement "iVar1 = ioctl(__fd,0x5413,local_18);" (assignment_expression "iVar1 = ioctl(__fd,0x5413,local_18)" identifier = (call_expression "ioctl(__fd,0x5413,local_18)" identifier (argument_list "(__fd,0x5413,local_18)" ( identifier , number_literal , identifier )))) ;) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (if_statement "if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }" { (expression_statement "DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;" (assignment_expression "DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650" identifier = (binary_expression "*(int *)PTR_COLS_0006af7c - DAT_0006b650" (pointer_expression "*(int *)PTR_COLS_0006af7c" * (cast_expression "(int *)PTR_COLS_0006af7c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) - identifier)) ;) (expression_statement "FUN_0003aa30();" (call_expression "FUN_0003aa30()" identifier (argument_list "()" ( ))) ;) (expression_statement "endwin();" (call_expression "endwin()" identifier (argument_list "()" ( ))) ;) (expression_statement "doupdate();" (call_expression "doupdate()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000277f0();" (call_expression "FUN_000277f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000263b0();" (call_expression "FUN_000263b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0003bd30();" (call_expression "FUN_0003bd30()" identifier (argument_list "()" ( ))) ;) })) })) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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_0004be20();" (call_expression "FUN_0004be20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n\nvoid regenerate_screen(void)\n\n{\n  int iVar1;\n  char *__file;\n  int __fd;\n  int iVar2;\n  int in_GS_OFFSET;\n  winsize win;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  the_window_resized = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar2 = ioctl(__fd,0x5413,&win);\n      close(__fd);\n      if (iVar2 != -1) {\n        editwincols = *(int *)PTR_COLS_0006af7c - margin;\n        ensure_firstcolumn_is_aligned();\n        endwin();\n        doupdate();\n        terminal_init();\n        window_init();\n        total_refresh();\n      }\n    }\n  }\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 (function_definition "void regenerate_screen(void)\n\n{\n  int iVar1;\n  char *__file;\n  int __fd;\n  int iVar2;\n  int in_GS_OFFSET;\n  winsize win;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  the_window_resized = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar2 = ioctl(__fd,0x5413,&win);\n      close(__fd);\n      if (iVar2 != -1) {\n        editwincols = *(int *)PTR_COLS_0006af7c - margin;\n        ensure_firstcolumn_is_aligned();\n        endwin();\n        doupdate();\n        terminal_init();\n        window_init();\n        total_refresh();\n      }\n    }\n  }\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 "regenerate_screen(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  char *__file;\n  int __fd;\n  int iVar2;\n  int in_GS_OFFSET;\n  winsize win;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  the_window_resized = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar2 = ioctl(__fd,0x5413,&win);\n      close(__fd);\n      if (iVar2 != -1) {\n        editwincols = *(int *)PTR_COLS_0006af7c - margin;\n        ensure_firstcolumn_is_aligned();\n        endwin();\n        doupdate();\n        terminal_init();\n        window_init();\n        total_refresh();\n      }\n    }\n  }\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 "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "winsize win;" 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 "__file = ttyname(0);" (assignment_expression "__file = ttyname(0)" identifier = (call_expression "ttyname(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "the_window_resized = 0;" (assignment_expression "the_window_resized = 0" identifier = number_literal) ;) (if_statement "if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar2 = ioctl(__fd,0x5413,&win);\n      close(__fd);\n      if (iVar2 != -1) {\n        editwincols = *(int *)PTR_COLS_0006af7c - margin;\n        ensure_firstcolumn_is_aligned();\n        endwin();\n        doupdate();\n        terminal_init();\n        window_init();\n        total_refresh();\n      }\n    }\n  }" if (parenthesized_expression "(__file != (char *)0x0)" ( (binary_expression "__file != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar2 = ioctl(__fd,0x5413,&win);\n      close(__fd);\n      if (iVar2 != -1) {\n        editwincols = *(int *)PTR_COLS_0006af7c - margin;\n        ensure_firstcolumn_is_aligned();\n        endwin();\n        doupdate();\n        terminal_init();\n        window_init();\n        total_refresh();\n      }\n    }\n  }" { (expression_statement "__fd = open64(__file,2);" (assignment_expression "__fd = open64(__file,2)" identifier = (call_expression "open64(__file,2)" identifier (argument_list "(__file,2)" ( identifier , number_literal )))) ;) (if_statement "if (__fd != -1) {\n      iVar2 = ioctl(__fd,0x5413,&win);\n      close(__fd);\n      if (iVar2 != -1) {\n        editwincols = *(int *)PTR_COLS_0006af7c - margin;\n        ensure_firstcolumn_is_aligned();\n        endwin();\n        doupdate();\n        terminal_init();\n        window_init();\n        total_refresh();\n      }\n    }" if (parenthesized_expression "(__fd != -1)" ( (binary_expression "__fd != -1" identifier != number_literal) )) (compound_statement "{\n      iVar2 = ioctl(__fd,0x5413,&win);\n      close(__fd);\n      if (iVar2 != -1) {\n        editwincols = *(int *)PTR_COLS_0006af7c - margin;\n        ensure_firstcolumn_is_aligned();\n        endwin();\n        doupdate();\n        terminal_init();\n        window_init();\n        total_refresh();\n      }\n    }" { (expression_statement "iVar2 = ioctl(__fd,0x5413,&win);" (assignment_expression "iVar2 = ioctl(__fd,0x5413,&win)" identifier = (call_expression "ioctl(__fd,0x5413,&win)" identifier (argument_list "(__fd,0x5413,&win)" ( identifier , number_literal , (pointer_expression "&win" & identifier) )))) ;) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (if_statement "if (iVar2 != -1) {\n        editwincols = *(int *)PTR_COLS_0006af7c - margin;\n        ensure_firstcolumn_is_aligned();\n        endwin();\n        doupdate();\n        terminal_init();\n        window_init();\n        total_refresh();\n      }" if (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) (compound_statement "{\n        editwincols = *(int *)PTR_COLS_0006af7c - margin;\n        ensure_firstcolumn_is_aligned();\n        endwin();\n        doupdate();\n        terminal_init();\n        window_init();\n        total_refresh();\n      }" { (expression_statement "editwincols = *(int *)PTR_COLS_0006af7c - margin;" (assignment_expression "editwincols = *(int *)PTR_COLS_0006af7c - margin" identifier = (binary_expression "*(int *)PTR_COLS_0006af7c - margin" (pointer_expression "*(int *)PTR_COLS_0006af7c" * (cast_expression "(int *)PTR_COLS_0006af7c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) - identifier)) ;) (expression_statement "ensure_firstcolumn_is_aligned();" (call_expression "ensure_firstcolumn_is_aligned()" identifier (argument_list "()" ( ))) ;) (expression_statement "endwin();" (call_expression "endwin()" identifier (argument_list "()" ( ))) ;) (expression_statement "doupdate();" (call_expression "doupdate()" identifier (argument_list "()" ( ))) ;) (expression_statement "terminal_init();" (call_expression "terminal_init()" identifier (argument_list "()" ( ))) ;) (expression_statement "window_init();" (call_expression "window_init()" identifier (argument_list "()" ( ))) ;) (expression_statement "total_refresh();" (call_expression "total_refresh()" identifier (argument_list "()" ( ))) ;) })) })) })) (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 FUN_00027ae0(void)\n\n{\n  char *__file;\n  int __fd;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_18 [8];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  DAT_0006b69c = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}\n\n" (function_definition "void FUN_00027ae0(void)\n\n{\n  char *__file;\n  int __fd;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_18 [8];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  DAT_0006b69c = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" primitive_type (function_declarator "FUN_00027ae0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *__file;\n  int __fd;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_18 [8];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  DAT_0006b69c = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" { (declaration "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "int __fd;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_18 [8];" type_identifier (array_declarator "local_18 [8]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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 "__file = ttyname(0);" (assignment_expression "__file = ttyname(0)" identifier = (call_expression "ttyname(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "DAT_0006b69c = 0;" (assignment_expression "DAT_0006b69c = 0" identifier = number_literal) ;) (if_statement "if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }" if (parenthesized_expression "(__file != (char *)0x0)" ( (binary_expression "__file != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }" { (expression_statement "__fd = open64(__file,2);" (assignment_expression "__fd = open64(__file,2)" identifier = (call_expression "open64(__file,2)" identifier (argument_list "(__file,2)" ( identifier , number_literal )))) ;) (if_statement "if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }" if (parenthesized_expression "(__fd != -1)" ( (binary_expression "__fd != -1" identifier != number_literal) )) (compound_statement "{\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }" { (expression_statement "iVar1 = ioctl(__fd,0x5413,local_18);" (assignment_expression "iVar1 = ioctl(__fd,0x5413,local_18)" identifier = (call_expression "ioctl(__fd,0x5413,local_18)" identifier (argument_list "(__fd,0x5413,local_18)" ( identifier , number_literal , identifier )))) ;) (expression_statement "close(__fd);" (call_expression "close(__fd)" identifier (argument_list "(__fd)" ( identifier ))) ;) (if_statement "if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }" { (expression_statement "DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;" (assignment_expression "DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650" identifier = (binary_expression "*(int *)PTR_COLS_0006af7c - DAT_0006b650" (pointer_expression "*(int *)PTR_COLS_0006af7c" * (cast_expression "(int *)PTR_COLS_0006af7c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) - identifier)) ;) (expression_statement "FUN_0003aa30();" (call_expression "FUN_0003aa30()" identifier (argument_list "()" ( ))) ;) (expression_statement "endwin();" (call_expression "endwin()" identifier (argument_list "()" ( ))) ;) (expression_statement "doupdate();" (call_expression "doupdate()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000277f0();" (call_expression "FUN_000277f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000263b0();" (call_expression "FUN_000263b0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0003bd30();" (call_expression "FUN_0003bd30()" identifier (argument_list "()" ( ))) ;) })) })) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(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_0004be20();" (call_expression "FUN_0004be20()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (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 ( LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (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 , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) - IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) })) (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 FUN_00027ae0(void)\n\n{\n  char *__file;\n  int __fd;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_18 [8];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  DAT_0006b69c = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" (primitive_type "void") (function_declarator "FUN_00027ae0(void)" (identifier "FUN_00027ae0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char *__file;\n  int __fd;\n  int iVar1;\n  int in_GS_OFFSET;\n  undefined1 local_18 [8];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  __file = ttyname(0);\n  DAT_0006b69c = 0;\n  if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0004be20();\n}" ({ "{") (declaration "char *__file;" (primitive_type "char") (pointer_declarator "*__file" (* "*") (identifier "__file")) (; ";")) (declaration "int __fd;" (primitive_type "int") (identifier "__fd") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_18 [8];" (type_identifier "undefined1") (array_declarator "local_18 [8]" (identifier "local_18") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (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 "__file = ttyname(0);" (assignment_expression "__file = ttyname(0)" (identifier "__file") (= "=") (call_expression "ttyname(0)" (identifier "ttyname") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "DAT_0006b69c = 0;" (assignment_expression "DAT_0006b69c = 0" (identifier "DAT_0006b69c") (= "=") (number_literal "0")) (; ";")) (if_statement "if (__file != (char *)0x0) {\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }" (if "if") (parenthesized_expression "(__file != (char *)0x0)" (( "(") (binary_expression "__file != (char *)0x0" (identifier "__file") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __fd = open64(__file,2);\n    if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }\n  }" ({ "{") (expression_statement "__fd = open64(__file,2);" (assignment_expression "__fd = open64(__file,2)" (identifier "__fd") (= "=") (call_expression "open64(__file,2)" (identifier "open64") (argument_list "(__file,2)" (( "(") (identifier "__file") (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (__fd != -1) {\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }" (if "if") (parenthesized_expression "(__fd != -1)" (( "(") (binary_expression "__fd != -1" (identifier "__fd") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      iVar1 = ioctl(__fd,0x5413,local_18);\n      close(__fd);\n      if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }\n    }" ({ "{") (expression_statement "iVar1 = ioctl(__fd,0x5413,local_18);" (assignment_expression "iVar1 = ioctl(__fd,0x5413,local_18)" (identifier "iVar1") (= "=") (call_expression "ioctl(__fd,0x5413,local_18)" (identifier "ioctl") (argument_list "(__fd,0x5413,local_18)" (( "(") (identifier "__fd") (, ",") (number_literal "0x5413") (, ",") (identifier "local_18") () ")")))) (; ";")) (expression_statement "close(__fd);" (call_expression "close(__fd)" (identifier "close") (argument_list "(__fd)" (( "(") (identifier "__fd") () ")"))) (; ";")) (if_statement "if (iVar1 != -1) {\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;\n        FUN_0003aa30();\n        endwin();\n        doupdate();\n        FUN_000277f0();\n        FUN_000263b0();\n        FUN_0003bd30();\n      }" ({ "{") (expression_statement "DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;" (assignment_expression "DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650" (identifier "DAT_0006b06c") (= "=") (binary_expression "*(int *)PTR_COLS_0006af7c - DAT_0006b650" (pointer_expression "*(int *)PTR_COLS_0006af7c" (* "*") (cast_expression "(int *)PTR_COLS_0006af7c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0006af7c"))) (- "-") (identifier "DAT_0006b650"))) (; ";")) (expression_statement "FUN_0003aa30();" (call_expression "FUN_0003aa30()" (identifier "FUN_0003aa30") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "endwin();" (call_expression "endwin()" (identifier "endwin") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "doupdate();" (call_expression "doupdate()" (identifier "doupdate") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_000277f0();" (call_expression "FUN_000277f0()" (identifier "FUN_000277f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_000263b0();" (call_expression "FUN_000263b0()" (identifier "FUN_000263b0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0003bd30();" (call_expression "FUN_0003bd30()" (identifier "FUN_0003bd30") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (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_0004be20();" (call_expression "FUN_0004be20()" (identifier "FUN_0004be20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  int var_16;
  char *var_3;
  int var_5;
  int var_8;
  int var_1;
  type_1 win;
  
  var_16 = *(int *)(var_1 + 0x14);
  var_3 = var_2(0);
  the_window_resized = 0;
  if (var_3 != (char *)0x0) {
    var_5 = var_4(var_3,2);
    if (var_5 != -1) {
      var_8 = var_6(var_5,0x5413,&win);
      var_7(var_5);
      if (var_8 != -1) {
        editwincols = *(int *)PTR_COLS_0006af7c - var_9;
        var_10();
        var_11();
        var_12();
        var_13();
        var_14();
        var_15();
      }
    }
  }
  if (var_16 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_17();
}


(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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (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 (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) 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) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))))) (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)

{
  char *__file;
  int __fd;
  int iVar1;
  int in_GS_OFFSET;
  undefined1 local_18 [8];
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  __file = ttyname(0);
  DAT_0006b69c = 0;
  if (__file != (char *)0x0) {
    __fd = open64(__file,2);
    if (__fd != -1) {
      iVar1 = ioctl(__fd,0x5413,local_18);
      close(__fd);
      if (iVar1 != -1) {
        DAT_0006b06c = *(int *)PTR_COLS_0006af7c - DAT_0006b650;
        FUN_0003aa30();
        endwin();
        doupdate();
        FUN_000277f0();
        FUN_000263b0();
        FUN_0003bd30();
      }
    }
  }
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0004be20();
}

