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

int __regparm3 getch_fl(int cursor_char)

{
  short *psVar1;
  bool bVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  int iVar6;
  int in_GS_OFFSET;
  int local_44;
  int local_40;
  int return_char;
  int local_20;
  undefined4 uStack_14;
  
  puVar3 = PTR_stdscr_0001efdc;
  uStack_14 = 0x15dab;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  psVar1 = *(short **)PTR_stdscr_0001efdc;
  if (psVar1 == (short *)0x0) {
    local_40 = -1;
    local_44 = -1;
  }
  else {
    local_40 = (int)*psVar1;
    local_44 = (int)psVar1[1];
  }
  if (cursor_char == 0) {
    curs_set(0);
    wrefresh(*(undefined4 *)puVar3);
    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);
    cbreak();
    get_widech(&return_char);
    wmove(*(undefined4 *)puVar3,local_40,local_44);
  }
  else if (cl_term_cursor) {
    curs_set(1);
    wrefresh(*(undefined4 *)puVar3);
    cbreak();
    get_widech(&return_char);
    curs_set(0);
    wrefresh(*(undefined4 *)puVar3);
  }
  else {
    wideaddch_rev(cursor_char);
    curs_set(0);
    wrefresh(*(undefined4 *)puVar3);
    puVar5 = PTR_LINES_0001eff0;
    puVar4 = PTR_COLS_0001efe4;
    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);
    if (cl_curs_flash < 2) {
      cbreak();
      get_widech(&return_char);
    }
    else {
      halfdelay(cl_curs_flash >> 1);
      bVar2 = false;
      while( true ) {
        iVar6 = get_widech(&return_char);
        if (iVar6 != -1) break;
        wmove(*(undefined4 *)puVar3,local_40,local_44);
        if (bVar2) {
          wideaddch_rev(cursor_char);
        }
        else {
          wideaddch(cursor_char);
        }
        bVar2 = (bool)(bVar2 ^ 1);
        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);
      }
    }
    wmove(*(undefined4 *)puVar3,local_40,local_44);
    wideaddch(cursor_char);
    wmove(*(undefined4 *)puVar3,local_40,local_44);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return return_char;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 __regparm3 FUN_00015da0(int param_1)

{
  short *psVar1;
  bool bVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  int iVar6;
  int in_GS_OFFSET;
  int local_44;
  int local_40;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  puVar3 = PTR_stdscr_0001efdc;
  uStack_14 = 0x15dab;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  psVar1 = *(short **)PTR_stdscr_0001efdc;
  if (psVar1 == (short *)0x0) {
    local_40 = -1;
    local_44 = -1;
  }
  else {
    local_40 = (int)*psVar1;
    local_44 = (int)psVar1[1];
  }
  if (param_1 == 0) {
    curs_set(0);
    wrefresh(*(undefined4 *)puVar3);
    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);
    cbreak();
    FUN_000194e0(&local_24);
    wmove(*(undefined4 *)puVar3,local_40,local_44);
  }
  else if (DAT_0001f399 == '\0') {
    FUN_000192c0(param_1);
    curs_set(0);
    wrefresh(*(undefined4 *)puVar3);
    puVar5 = PTR_LINES_0001eff0;
    puVar4 = PTR_COLS_0001efe4;
    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);
    if (DAT_0001f1a0 < 2) {
      cbreak();
      FUN_000194e0(&local_24);
    }
    else {
      halfdelay(DAT_0001f1a0 >> 1);
      bVar2 = false;
      while( true ) {
        iVar6 = FUN_000194e0(&local_24);
        if (iVar6 != -1) break;
        wmove(*(undefined4 *)puVar3,local_40,local_44);
        if (bVar2) {
          FUN_000192c0(param_1);
        }
        else {
          FUN_000191f0(param_1);
        }
        bVar2 = (bool)(bVar2 ^ 1);
        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);
      }
    }
    wmove(*(undefined4 *)puVar3,local_40,local_44);
    FUN_000191f0(param_1);
    wmove(*(undefined4 *)puVar3,local_40,local_44);
  }
  else {
    curs_set(1);
    wrefresh(*(undefined4 *)puVar3);
    cbreak();
    FUN_000194e0(&local_24);
    curs_set(0);
    wrefresh(*(undefined4 *)puVar3);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_24;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00019660();
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015a90
ADD EBX,0x9255
SUB ESP,0x3c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV ESI,dword ptr [EBX + 0xffffffdc]
MOV EAX,dword ptr [ESI]
TEST EAX,EAX
JZ 0x00015fb0
MOVSX EDX,word ptr [EAX]
MOVSX EAX,word ptr [EAX + 0x2]
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x8],EAX
TEST EBP,EBP
JZ 0x00015f50
MOVZX EDI,byte ptr [EBX + 0x399]
MOV EAX,EDI
TEST AL,AL
JZ 0x00015e50
SUB ESP,0xc
PUSH 0x1
CALL 0x000120d0
POP EAX
PUSH dword ptr [ESI]
CALL 0x00012230
CALL 0x00012370
POP EDX
LEA EAX,[ESP + 0x34]
PUSH EAX
CALL 0x000194e0
MOV dword ptr [ESP],0x0
CALL 0x000120d0
POP ECX
PUSH dword ptr [ESI]
CALL 0x00012230
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x2c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,dword ptr [ESP + 0x28]
JNZ 0x0001600f
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EBP
CALL 0x000192c0
MOV dword ptr [ESP],0x0
CALL 0x000120d0
POP EAX
PUSH dword ptr [ESI]
CALL 0x00012230
MOV EAX,dword ptr [EBX + 0xffffffe4]
ADD ESP,0xc
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x14],EAX
SUB EAX,0x1
PUSH EAX
MOV EAX,dword ptr [EBX + 0xfffffff0]
MOV dword ptr [ESP + 0x20],EAX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x18],EAX
SUB EAX,0x1
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00012080
MOV EAX,dword ptr [EBX + 0x1a0]
ADD ESP,0x10
CMP EAX,0x1
JLE 0x00015fc8
SUB ESP,0xc
SAR EAX,0x1
PUSH EAX
CALL 0x000120a0
ADD ESP,0x10
LEA EAX,[ESP + 0x28]
MOV dword ptr [ESP + 0x14],EAX
JMP 0x00015f08
SUB ESP,0xc
PUSH EBP
CALL 0x000192c0
ADD ESP,0x10
SUB ESP,0x4
XOR EDI,0x1
MOV EAX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x14],EAX
SUB EAX,0x1
PUSH EAX
MOV EAX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x18],EAX
SUB EAX,0x1
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00012080
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [ESP + 0x20]
CALL 0x000194e0
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x00015fdd
SUB ESP,0x4
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESI]
CALL 0x00012080
MOV EAX,EDI
ADD ESP,0x10
TEST AL,AL
JNZ 0x00015ed0
SUB ESP,0xc
PUSH EBP
CALL 0x000191f0
ADD ESP,0x10
JMP 0x00015edc
SUB ESP,0xc
PUSH 0x0
CALL 0x000120d0
POP EAX
PUSH dword ptr [ESI]
CALL 0x00012230
MOV EAX,dword ptr [EBX + 0xffffffe4]
ADD ESP,0xc
MOV EAX,dword ptr [EAX]
SUB EAX,0x1
PUSH EAX
MOV EAX,dword ptr [EBX + 0xfffffff0]
MOV EAX,dword ptr [EAX]
SUB EAX,0x1
PUSH EAX
PUSH dword ptr [ESI]
CALL 0x00012080
CALL 0x00012370
POP EAX
LEA EAX,[ESP + 0x34]
PUSH EAX
CALL 0x000194e0
ADD ESP,0xc
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESI]
CALL 0x00012080
ADD ESP,0x10
JMP 0x00015e2d
MOV dword ptr [ESP + 0xc],0xffffffff
MOV dword ptr [ESP + 0x8],0xffffffff
JMP 0x00015ddf
CALL 0x00012370
SUB ESP,0xc
LEA EAX,[ESP + 0x34]
PUSH EAX
CALL 0x000194e0
ADD ESP,0x10
SUB ESP,0x4
PUSH dword ptr [ESP + 0xc]
MOV EDI,dword ptr [ESP + 0x14]
PUSH EDI
PUSH dword ptr [ESI]
CALL 0x00012080
MOV dword ptr [ESP],EBP
CALL 0x000191f0
ADD ESP,0xc
PUSH dword ptr [ESP + 0xc]
PUSH EDI
PUSH dword ptr [ESI]
CALL 0x00012080
ADD ESP,0x10
JMP 0x00015e2d
CALL 0x00019660
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00015da0(int param_1)\n\n{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00019660();\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00015da0(int param_1)\n\n{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00019660();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00015da0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00019660();\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "puVar3 = PTR_stdscr_0001efdc;" (assignment_expression "puVar3 = PTR_stdscr_0001efdc" identifier = identifier) ;) (expression_statement "uStack_14 = 0x15dab;" (assignment_expression "uStack_14 = 0x15dab" 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 "psVar1 = *(short **)PTR_stdscr_0001efdc;" (assignment_expression "psVar1 = *(short **)PTR_stdscr_0001efdc" identifier = (pointer_expression "*(short **)PTR_stdscr_0001efdc" * (cast_expression "(short **)PTR_stdscr_0001efdc" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" if (parenthesized_expression "(psVar1 == (short *)0x0)" ( (binary_expression "psVar1 == (short *)0x0" identifier == (cast_expression "(short *)0x0" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_40 = -1;\n    local_44 = -1;\n  }" { (expression_statement "local_40 = -1;" (assignment_expression "local_40 = -1" identifier = number_literal) ;) (expression_statement "local_44 = -1;" (assignment_expression "local_44 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" else (compound_statement "{\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" { (expression_statement "local_40 = (int)*psVar1;" (assignment_expression "local_40 = (int)*psVar1" identifier = (cast_expression "(int)*psVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*psVar1" * identifier))) ;) (expression_statement "local_44 = (int)psVar1[1];" (assignment_expression "local_44 = (int)psVar1[1]" identifier = (cast_expression "(int)psVar1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "psVar1[1]" identifier [ number_literal ]))) ;) }))) (if_statement "if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" { (expression_statement "curs_set(0);" (call_expression "curs_set(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" identifier (argument_list "(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*(int *)PTR_LINES_0001eff0 + -1" (pointer_expression "*(int *)PTR_LINES_0001eff0" * (cast_expression "(int *)PTR_LINES_0001eff0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) , (binary_expression "*(int *)PTR_COLS_0001efe4 + -1" (pointer_expression "*(int *)PTR_COLS_0001efe4" * (cast_expression "(int *)PTR_COLS_0001efe4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (expression_statement "cbreak();" (call_expression "cbreak()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000194e0(&local_24);" (call_expression "FUN_000194e0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) }) (else_clause "else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" else (if_statement "if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" if (parenthesized_expression "(DAT_0001f399 == '\0')" ( (binary_expression "DAT_0001f399 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" { (expression_statement "FUN_000192c0(param_1);" (call_expression "FUN_000192c0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "curs_set(0);" (call_expression "curs_set(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "puVar5 = PTR_LINES_0001eff0;" (assignment_expression "puVar5 = PTR_LINES_0001eff0" identifier = identifier) ;) (expression_statement "puVar4 = PTR_COLS_0001efe4;" (assignment_expression "puVar4 = PTR_COLS_0001efe4" identifier = identifier) ;) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" identifier (argument_list "(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*(int *)PTR_LINES_0001eff0 + -1" (pointer_expression "*(int *)PTR_LINES_0001eff0" * (cast_expression "(int *)PTR_LINES_0001eff0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) , (binary_expression "*(int *)PTR_COLS_0001efe4 + -1" (pointer_expression "*(int *)PTR_COLS_0001efe4" * (cast_expression "(int *)PTR_COLS_0001efe4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (if_statement "if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" if (parenthesized_expression "(DAT_0001f1a0 < 2)" ( (binary_expression "DAT_0001f1a0 < 2" identifier < number_literal) )) (compound_statement "{\n      cbreak();\n      FUN_000194e0(&local_24);\n    }" { (expression_statement "cbreak();" (call_expression "cbreak()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000194e0(&local_24);" (call_expression "FUN_000194e0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) }) (else_clause "else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" else (compound_statement "{\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" { (expression_statement "halfdelay(DAT_0001f1a0 >> 1);" (call_expression "halfdelay(DAT_0001f1a0 >> 1)" identifier (argument_list "(DAT_0001f1a0 >> 1)" ( (binary_expression "DAT_0001f1a0 >> 1" identifier >> number_literal) ))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (while_statement "while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }" { (expression_statement "iVar6 = FUN_000194e0(&local_24);" (assignment_expression "iVar6 = FUN_000194e0(&local_24)" identifier = (call_expression "FUN_000194e0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar6 != -1) break;" if (parenthesized_expression "(iVar6 != -1)" ( (binary_expression "iVar6 != -1" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) (if_statement "if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n          FUN_000192c0(param_1);\n        }" { (expression_statement "FUN_000192c0(param_1);" (call_expression "FUN_000192c0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }) (else_clause "else {\n          FUN_000191f0(param_1);\n        }" else (compound_statement "{\n          FUN_000191f0(param_1);\n        }" { (expression_statement "FUN_000191f0(param_1);" (call_expression "FUN_000191f0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }))) (expression_statement "bVar2 = (bool)(bVar2 ^ 1);" (assignment_expression "bVar2 = (bool)(bVar2 ^ 1)" identifier = (cast_expression "(bool)(bVar2 ^ 1)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(bVar2 ^ 1)" ( (binary_expression "bVar2 ^ 1" identifier ^ number_literal) )))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1)" identifier (argument_list "(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*(int *)puVar5 + -1" (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) , (binary_expression "*(int *)puVar4 + -1" (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) })) }))) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) (expression_statement "FUN_000191f0(param_1);" (call_expression "FUN_000191f0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) }) (else_clause "else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" else (compound_statement "{\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" { (expression_statement "curs_set(1);" (call_expression "curs_set(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "cbreak();" (call_expression "cbreak()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000194e0(&local_24);" (call_expression "FUN_000194e0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "curs_set(0);" (call_expression "curs_set(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) }))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\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 local_24;\n  }" { (return_statement "return local_24;" return identifier ;) })) comment (expression_statement "FUN_00019660();" (call_expression "FUN_00019660()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 getch_fl(int cursor_char)\n\n{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  int return_char;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (cursor_char == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    get_widech(&return_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (cl_term_cursor) {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    get_widech(&return_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  else {\n    wideaddch_rev(cursor_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (cl_curs_flash < 2) {\n      cbreak();\n      get_widech(&return_char);\n    }\n    else {\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    wideaddch(cursor_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return return_char;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "int __regparm3 getch_fl(int cursor_char)\n\n{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  int return_char;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (cursor_char == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    get_widech(&return_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (cl_term_cursor) {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    get_widech(&return_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  else {\n    wideaddch_rev(cursor_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (cl_curs_flash < 2) {\n      cbreak();\n      get_widech(&return_char);\n    }\n    else {\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    wideaddch(cursor_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return return_char;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "getch_fl(int cursor_char)" identifier (parameter_list "(int cursor_char)" ( (parameter_declaration "int cursor_char" primitive_type identifier) ))) (compound_statement "{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  int return_char;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (cursor_char == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    get_widech(&return_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (cl_term_cursor) {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    get_widech(&return_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  else {\n    wideaddch_rev(cursor_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (cl_curs_flash < 2) {\n      cbreak();\n      get_widech(&return_char);\n    }\n    else {\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    wideaddch(cursor_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return return_char;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int return_char;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "puVar3 = PTR_stdscr_0001efdc;" (assignment_expression "puVar3 = PTR_stdscr_0001efdc" identifier = identifier) ;) (expression_statement "uStack_14 = 0x15dab;" (assignment_expression "uStack_14 = 0x15dab" 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 "psVar1 = *(short **)PTR_stdscr_0001efdc;" (assignment_expression "psVar1 = *(short **)PTR_stdscr_0001efdc" identifier = (pointer_expression "*(short **)PTR_stdscr_0001efdc" * (cast_expression "(short **)PTR_stdscr_0001efdc" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" if (parenthesized_expression "(psVar1 == (short *)0x0)" ( (binary_expression "psVar1 == (short *)0x0" identifier == (cast_expression "(short *)0x0" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_40 = -1;\n    local_44 = -1;\n  }" { (expression_statement "local_40 = -1;" (assignment_expression "local_40 = -1" identifier = number_literal) ;) (expression_statement "local_44 = -1;" (assignment_expression "local_44 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" else (compound_statement "{\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" { (expression_statement "local_40 = (int)*psVar1;" (assignment_expression "local_40 = (int)*psVar1" identifier = (cast_expression "(int)*psVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*psVar1" * identifier))) ;) (expression_statement "local_44 = (int)psVar1[1];" (assignment_expression "local_44 = (int)psVar1[1]" identifier = (cast_expression "(int)psVar1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "psVar1[1]" identifier [ number_literal ]))) ;) }))) (if_statement "if (cursor_char == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    get_widech(&return_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (cl_term_cursor) {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    get_widech(&return_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  else {\n    wideaddch_rev(cursor_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (cl_curs_flash < 2) {\n      cbreak();\n      get_widech(&return_char);\n    }\n    else {\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    wideaddch(cursor_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" if (parenthesized_expression "(cursor_char == 0)" ( (binary_expression "cursor_char == 0" identifier == number_literal) )) (compound_statement "{\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    get_widech(&return_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" { (expression_statement "curs_set(0);" (call_expression "curs_set(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" identifier (argument_list "(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*(int *)PTR_LINES_0001eff0 + -1" (pointer_expression "*(int *)PTR_LINES_0001eff0" * (cast_expression "(int *)PTR_LINES_0001eff0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) , (binary_expression "*(int *)PTR_COLS_0001efe4 + -1" (pointer_expression "*(int *)PTR_COLS_0001efe4" * (cast_expression "(int *)PTR_COLS_0001efe4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (expression_statement "cbreak();" (call_expression "cbreak()" identifier (argument_list "()" ( ))) ;) (expression_statement "get_widech(&return_char);" (call_expression "get_widech(&return_char)" identifier (argument_list "(&return_char)" ( (pointer_expression "&return_char" & identifier) ))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) }) (else_clause "else if (cl_term_cursor) {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    get_widech(&return_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  else {\n    wideaddch_rev(cursor_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (cl_curs_flash < 2) {\n      cbreak();\n      get_widech(&return_char);\n    }\n    else {\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    wideaddch(cursor_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" else (if_statement "if (cl_term_cursor) {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    get_widech(&return_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  else {\n    wideaddch_rev(cursor_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (cl_curs_flash < 2) {\n      cbreak();\n      get_widech(&return_char);\n    }\n    else {\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    wideaddch(cursor_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" if (parenthesized_expression "(cl_term_cursor)" ( identifier )) (compound_statement "{\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    get_widech(&return_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" { (expression_statement "curs_set(1);" (call_expression "curs_set(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "cbreak();" (call_expression "cbreak()" identifier (argument_list "()" ( ))) ;) (expression_statement "get_widech(&return_char);" (call_expression "get_widech(&return_char)" identifier (argument_list "(&return_char)" ( (pointer_expression "&return_char" & identifier) ))) ;) (expression_statement "curs_set(0);" (call_expression "curs_set(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) }) (else_clause "else {\n    wideaddch_rev(cursor_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (cl_curs_flash < 2) {\n      cbreak();\n      get_widech(&return_char);\n    }\n    else {\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    wideaddch(cursor_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" else (compound_statement "{\n    wideaddch_rev(cursor_char);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (cl_curs_flash < 2) {\n      cbreak();\n      get_widech(&return_char);\n    }\n    else {\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    wideaddch(cursor_char);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" { (expression_statement "wideaddch_rev(cursor_char);" (call_expression "wideaddch_rev(cursor_char)" identifier (argument_list "(cursor_char)" ( identifier ))) ;) (expression_statement "curs_set(0);" (call_expression "curs_set(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "puVar5 = PTR_LINES_0001eff0;" (assignment_expression "puVar5 = PTR_LINES_0001eff0" identifier = identifier) ;) (expression_statement "puVar4 = PTR_COLS_0001efe4;" (assignment_expression "puVar4 = PTR_COLS_0001efe4" identifier = identifier) ;) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" identifier (argument_list "(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*(int *)PTR_LINES_0001eff0 + -1" (pointer_expression "*(int *)PTR_LINES_0001eff0" * (cast_expression "(int *)PTR_LINES_0001eff0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) , (binary_expression "*(int *)PTR_COLS_0001efe4 + -1" (pointer_expression "*(int *)PTR_COLS_0001efe4" * (cast_expression "(int *)PTR_COLS_0001efe4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (if_statement "if (cl_curs_flash < 2) {\n      cbreak();\n      get_widech(&return_char);\n    }\n    else {\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" if (parenthesized_expression "(cl_curs_flash < 2)" ( (binary_expression "cl_curs_flash < 2" identifier < number_literal) )) (compound_statement "{\n      cbreak();\n      get_widech(&return_char);\n    }" { (expression_statement "cbreak();" (call_expression "cbreak()" identifier (argument_list "()" ( ))) ;) (expression_statement "get_widech(&return_char);" (call_expression "get_widech(&return_char)" identifier (argument_list "(&return_char)" ( (pointer_expression "&return_char" & identifier) ))) ;) }) (else_clause "else {\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" else (compound_statement "{\n      halfdelay(cl_curs_flash >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" { (expression_statement "halfdelay(cl_curs_flash >> 1);" (call_expression "halfdelay(cl_curs_flash >> 1)" identifier (argument_list "(cl_curs_flash >> 1)" ( (binary_expression "cl_curs_flash >> 1" identifier >> number_literal) ))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (while_statement "while( true ) {\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar6 = get_widech(&return_char);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }" { (expression_statement "iVar6 = get_widech(&return_char);" (assignment_expression "iVar6 = get_widech(&return_char)" identifier = (call_expression "get_widech(&return_char)" identifier (argument_list "(&return_char)" ( (pointer_expression "&return_char" & identifier) )))) ;) (if_statement "if (iVar6 != -1) break;" if (parenthesized_expression "(iVar6 != -1)" ( (binary_expression "iVar6 != -1" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) (if_statement "if (bVar2) {\n          wideaddch_rev(cursor_char);\n        }\n        else {\n          wideaddch(cursor_char);\n        }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n          wideaddch_rev(cursor_char);\n        }" { (expression_statement "wideaddch_rev(cursor_char);" (call_expression "wideaddch_rev(cursor_char)" identifier (argument_list "(cursor_char)" ( identifier ))) ;) }) (else_clause "else {\n          wideaddch(cursor_char);\n        }" else (compound_statement "{\n          wideaddch(cursor_char);\n        }" { (expression_statement "wideaddch(cursor_char);" (call_expression "wideaddch(cursor_char)" identifier (argument_list "(cursor_char)" ( identifier ))) ;) }))) (expression_statement "bVar2 = (bool)(bVar2 ^ 1);" (assignment_expression "bVar2 = (bool)(bVar2 ^ 1)" identifier = (cast_expression "(bool)(bVar2 ^ 1)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(bVar2 ^ 1)" ( (binary_expression "bVar2 ^ 1" identifier ^ number_literal) )))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1)" identifier (argument_list "(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*(int *)puVar5 + -1" (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) , (binary_expression "*(int *)puVar4 + -1" (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) })) }))) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) (expression_statement "wideaddch(cursor_char);" (call_expression "wideaddch(cursor_char)" identifier (argument_list "(cursor_char)" ( identifier ))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) }))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return return_char;\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 return_char;\n  }" { (return_statement "return return_char;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 __regparm3 FUN_00015da0(int param_1)\n\n{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\n  }\n                    \n  FUN_00019660();\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00015da0(int param_1)\n\n{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\n  }\n                    \n  FUN_00019660();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00015da0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\n  }\n                    \n  FUN_00019660();\n}" { (declaration "short *psVar1;" (sized_type_specifier "short" short) (pointer_declarator "*psVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "puVar3 = PTR_stdscr_0001efdc;" (assignment_expression "puVar3 = PTR_stdscr_0001efdc" identifier = identifier) ;) (expression_statement "uStack_14 = 0x15dab;" (assignment_expression "uStack_14 = 0x15dab" 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 "psVar1 = *(short **)PTR_stdscr_0001efdc;" (assignment_expression "psVar1 = *(short **)PTR_stdscr_0001efdc" identifier = (pointer_expression "*(short **)PTR_stdscr_0001efdc" * (cast_expression "(short **)PTR_stdscr_0001efdc" ( (type_descriptor "short **" (sized_type_specifier "short" short) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" if (parenthesized_expression "(psVar1 == (short *)0x0)" ( (binary_expression "psVar1 == (short *)0x0" identifier == (cast_expression "(short *)0x0" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_40 = -1;\n    local_44 = -1;\n  }" { (expression_statement "local_40 = -1;" (assignment_expression "local_40 = -1" identifier = number_literal) ;) (expression_statement "local_44 = -1;" (assignment_expression "local_44 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" else (compound_statement "{\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" { (expression_statement "local_40 = (int)*psVar1;" (assignment_expression "local_40 = (int)*psVar1" identifier = (cast_expression "(int)*psVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*psVar1" * identifier))) ;) (expression_statement "local_44 = (int)psVar1[1];" (assignment_expression "local_44 = (int)psVar1[1]" identifier = (cast_expression "(int)psVar1[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "psVar1[1]" identifier [ number_literal ]))) ;) }))) (if_statement "if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" { (expression_statement "curs_set(0);" (call_expression "curs_set(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" identifier (argument_list "(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*(int *)PTR_LINES_0001eff0 + -1" (pointer_expression "*(int *)PTR_LINES_0001eff0" * (cast_expression "(int *)PTR_LINES_0001eff0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) , (binary_expression "*(int *)PTR_COLS_0001efe4 + -1" (pointer_expression "*(int *)PTR_COLS_0001efe4" * (cast_expression "(int *)PTR_COLS_0001efe4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (expression_statement "cbreak();" (call_expression "cbreak()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000194e0(&local_24);" (call_expression "FUN_000194e0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) }) (else_clause "else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" else (if_statement "if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" if (parenthesized_expression "(DAT_0001f399 == '\0')" ( (binary_expression "DAT_0001f399 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" { (expression_statement "FUN_000192c0(param_1);" (call_expression "FUN_000192c0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "curs_set(0);" (call_expression "curs_set(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "puVar5 = PTR_LINES_0001eff0;" (assignment_expression "puVar5 = PTR_LINES_0001eff0" identifier = identifier) ;) (expression_statement "puVar4 = PTR_COLS_0001efe4;" (assignment_expression "puVar4 = PTR_COLS_0001efe4" identifier = identifier) ;) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" identifier (argument_list "(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*(int *)PTR_LINES_0001eff0 + -1" (pointer_expression "*(int *)PTR_LINES_0001eff0" * (cast_expression "(int *)PTR_LINES_0001eff0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) , (binary_expression "*(int *)PTR_COLS_0001efe4 + -1" (pointer_expression "*(int *)PTR_COLS_0001efe4" * (cast_expression "(int *)PTR_COLS_0001efe4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) (if_statement "if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" if (parenthesized_expression "(DAT_0001f1a0 < 2)" ( (binary_expression "DAT_0001f1a0 < 2" identifier < number_literal) )) (compound_statement "{\n      cbreak();\n      FUN_000194e0(&local_24);\n    }" { (expression_statement "cbreak();" (call_expression "cbreak()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000194e0(&local_24);" (call_expression "FUN_000194e0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) }) (else_clause "else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" else (compound_statement "{\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" { (expression_statement "halfdelay(DAT_0001f1a0 >> 1);" (call_expression "halfdelay(DAT_0001f1a0 >> 1)" identifier (argument_list "(DAT_0001f1a0 >> 1)" ( (binary_expression "DAT_0001f1a0 >> 1" identifier >> number_literal) ))) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (while_statement "while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }" { (expression_statement "iVar6 = FUN_000194e0(&local_24);" (assignment_expression "iVar6 = FUN_000194e0(&local_24)" identifier = (call_expression "FUN_000194e0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar6 != -1) break;" if (parenthesized_expression "(iVar6 != -1)" ( (binary_expression "iVar6 != -1" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) (if_statement "if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n          FUN_000192c0(param_1);\n        }" { (expression_statement "FUN_000192c0(param_1);" (call_expression "FUN_000192c0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }) (else_clause "else {\n          FUN_000191f0(param_1);\n        }" else (compound_statement "{\n          FUN_000191f0(param_1);\n        }" { (expression_statement "FUN_000191f0(param_1);" (call_expression "FUN_000191f0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) }))) (expression_statement "bVar2 = (bool)(bVar2 ^ 1);" (assignment_expression "bVar2 = (bool)(bVar2 ^ 1)" identifier = (cast_expression "(bool)(bVar2 ^ 1)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(bVar2 ^ 1)" ( (binary_expression "bVar2 ^ 1" identifier ^ number_literal) )))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1)" identifier (argument_list "(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "*(int *)puVar5 + -1" (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) , (binary_expression "*(int *)puVar4 + -1" (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))) ;) })) }))) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) (expression_statement "FUN_000191f0(param_1);" (call_expression "FUN_000191f0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" identifier (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) , identifier , identifier ))) ;) }) (else_clause "else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" else (compound_statement "{\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" { (expression_statement "curs_set(1);" (call_expression "curs_set(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "cbreak();" (call_expression "cbreak()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000194e0(&local_24);" (call_expression "FUN_000194e0(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) (expression_statement "curs_set(0);" (call_expression "curs_set(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" identifier (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) }))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\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 local_24;\n  }" { (return_statement "return local_24;" return identifier ;) })) (expression_statement "FUN_00019660();" (call_expression "FUN_00019660()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier short) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT >> LIT) ))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT ^ LIT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) ))) ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) }))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 __regparm3 FUN_00015da0(int param_1)\n\n{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\n  }\n                    \n  FUN_00019660();\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00015da0(int param_1)" (identifier "FUN_00015da0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  short *psVar1;\n  bool bVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  int iVar6;\n  int in_GS_OFFSET;\n  int local_44;\n  int local_40;\n  undefined4 local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  puVar3 = PTR_stdscr_0001efdc;\n  uStack_14 = 0x15dab;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  psVar1 = *(short **)PTR_stdscr_0001efdc;\n  if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }\n  if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\n  }\n                    \n  FUN_00019660();\n}" ({ "{") (declaration "short *psVar1;" (sized_type_specifier "short" (short "short")) (pointer_declarator "*psVar1" (* "*") (identifier "psVar1")) (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "puVar3 = PTR_stdscr_0001efdc;" (assignment_expression "puVar3 = PTR_stdscr_0001efdc" (identifier "puVar3") (= "=") (identifier "PTR_stdscr_0001efdc")) (; ";")) (expression_statement "uStack_14 = 0x15dab;" (assignment_expression "uStack_14 = 0x15dab" (identifier "uStack_14") (= "=") (number_literal "0x15dab")) (; ";")) (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 "psVar1 = *(short **)PTR_stdscr_0001efdc;" (assignment_expression "psVar1 = *(short **)PTR_stdscr_0001efdc" (identifier "psVar1") (= "=") (pointer_expression "*(short **)PTR_stdscr_0001efdc" (* "*") (cast_expression "(short **)PTR_stdscr_0001efdc" (( "(") (type_descriptor "short **" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stdscr_0001efdc")))) (; ";")) (if_statement "if (psVar1 == (short *)0x0) {\n    local_40 = -1;\n    local_44 = -1;\n  }\n  else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" (if "if") (parenthesized_expression "(psVar1 == (short *)0x0)" (( "(") (binary_expression "psVar1 == (short *)0x0" (identifier "psVar1") (== "==") (cast_expression "(short *)0x0" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_40 = -1;\n    local_44 = -1;\n  }" ({ "{") (expression_statement "local_40 = -1;" (assignment_expression "local_40 = -1" (identifier "local_40") (= "=") (number_literal "-1")) (; ";")) (expression_statement "local_44 = -1;" (assignment_expression "local_44 = -1" (identifier "local_44") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" (else "else") (compound_statement "{\n    local_40 = (int)*psVar1;\n    local_44 = (int)psVar1[1];\n  }" ({ "{") (expression_statement "local_40 = (int)*psVar1;" (assignment_expression "local_40 = (int)*psVar1" (identifier "local_40") (= "=") (cast_expression "(int)*psVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*psVar1" (* "*") (identifier "psVar1")))) (; ";")) (expression_statement "local_44 = (int)psVar1[1];" (assignment_expression "local_44 = (int)psVar1[1]" (identifier "local_44") (= "=") (cast_expression "(int)psVar1[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "psVar1[1]" (identifier "psVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (} "}")))) (if_statement "if (param_1 == 0) {\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    cbreak();\n    FUN_000194e0(&local_24);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" ({ "{") (expression_statement "curs_set(0);" (call_expression "curs_set(0)" (identifier "curs_set") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" (identifier "wrefresh") (argument_list "(*(undefined4 *)puVar3)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")"))) (; ";")) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" (identifier "wmove") (argument_list "(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (, ",") (binary_expression "*(int *)PTR_LINES_0001eff0 + -1" (pointer_expression "*(int *)PTR_LINES_0001eff0" (* "*") (cast_expression "(int *)PTR_LINES_0001eff0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LINES_0001eff0"))) (+ "+") (number_literal "-1")) (, ",") (binary_expression "*(int *)PTR_COLS_0001efe4 + -1" (pointer_expression "*(int *)PTR_COLS_0001efe4" (* "*") (cast_expression "(int *)PTR_COLS_0001efe4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0001efe4"))) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (expression_statement "cbreak();" (call_expression "cbreak()" (identifier "cbreak") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_000194e0(&local_24);" (call_expression "FUN_000194e0(&local_24)" (identifier "FUN_000194e0") (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" (identifier "wmove") (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (, ",") (identifier "local_40") (, ",") (identifier "local_44") () ")"))) (; ";")) (} "}")) (else_clause "else if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" (else "else") (if_statement "if (DAT_0001f399 == '\0') {\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }\n  else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" (if "if") (parenthesized_expression "(DAT_0001f399 == '\0')" (( "(") (binary_expression "DAT_0001f399 == '\0'" (identifier "DAT_0001f399") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_000192c0(param_1);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n    puVar5 = PTR_LINES_0001eff0;\n    puVar4 = PTR_COLS_0001efe4;\n    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);\n    if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n    FUN_000191f0(param_1);\n    wmove(*(undefined4 *)puVar3,local_40,local_44);\n  }" ({ "{") (expression_statement "FUN_000192c0(param_1);" (call_expression "FUN_000192c0(param_1)" (identifier "FUN_000192c0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "curs_set(0);" (call_expression "curs_set(0)" (identifier "curs_set") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" (identifier "wrefresh") (argument_list "(*(undefined4 *)puVar3)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")"))) (; ";")) (expression_statement "puVar5 = PTR_LINES_0001eff0;" (assignment_expression "puVar5 = PTR_LINES_0001eff0" (identifier "puVar5") (= "=") (identifier "PTR_LINES_0001eff0")) (; ";")) (expression_statement "puVar4 = PTR_COLS_0001efe4;" (assignment_expression "puVar4 = PTR_COLS_0001efe4" (identifier "puVar4") (= "=") (identifier "PTR_COLS_0001efe4")) (; ";")) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" (identifier "wmove") (argument_list "(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (, ",") (binary_expression "*(int *)PTR_LINES_0001eff0 + -1" (pointer_expression "*(int *)PTR_LINES_0001eff0" (* "*") (cast_expression "(int *)PTR_LINES_0001eff0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LINES_0001eff0"))) (+ "+") (number_literal "-1")) (, ",") (binary_expression "*(int *)PTR_COLS_0001efe4 + -1" (pointer_expression "*(int *)PTR_COLS_0001efe4" (* "*") (cast_expression "(int *)PTR_COLS_0001efe4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0001efe4"))) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (if_statement "if (DAT_0001f1a0 < 2) {\n      cbreak();\n      FUN_000194e0(&local_24);\n    }\n    else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" (if "if") (parenthesized_expression "(DAT_0001f1a0 < 2)" (( "(") (binary_expression "DAT_0001f1a0 < 2" (identifier "DAT_0001f1a0") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n      cbreak();\n      FUN_000194e0(&local_24);\n    }" ({ "{") (expression_statement "cbreak();" (call_expression "cbreak()" (identifier "cbreak") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_000194e0(&local_24);" (call_expression "FUN_000194e0(&local_24)" (identifier "FUN_000194e0") (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" (else "else") (compound_statement "{\n      halfdelay(DAT_0001f1a0 >> 1);\n      bVar2 = false;\n      while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }\n    }" ({ "{") (expression_statement "halfdelay(DAT_0001f1a0 >> 1);" (call_expression "halfdelay(DAT_0001f1a0 >> 1)" (identifier "halfdelay") (argument_list "(DAT_0001f1a0 >> 1)" (( "(") (binary_expression "DAT_0001f1a0 >> 1" (identifier "DAT_0001f1a0") (>> ">>") (number_literal "1")) () ")"))) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (while_statement "while( true ) {\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar6 = FUN_000194e0(&local_24);\n        if (iVar6 != -1) break;\n        wmove(*(undefined4 *)puVar3,local_40,local_44);\n        if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }\n        bVar2 = (bool)(bVar2 ^ 1);\n        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);\n      }" ({ "{") (expression_statement "iVar6 = FUN_000194e0(&local_24);" (assignment_expression "iVar6 = FUN_000194e0(&local_24)" (identifier "iVar6") (= "=") (call_expression "FUN_000194e0(&local_24)" (identifier "FUN_000194e0") (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar6 != -1) break;" (if "if") (parenthesized_expression "(iVar6 != -1)" (( "(") (binary_expression "iVar6 != -1" (identifier "iVar6") (!= "!=") (number_literal "-1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" (identifier "wmove") (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (, ",") (identifier "local_40") (, ",") (identifier "local_44") () ")"))) (; ";")) (if_statement "if (bVar2) {\n          FUN_000192c0(param_1);\n        }\n        else {\n          FUN_000191f0(param_1);\n        }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n          FUN_000192c0(param_1);\n        }" ({ "{") (expression_statement "FUN_000192c0(param_1);" (call_expression "FUN_000192c0(param_1)" (identifier "FUN_000192c0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          FUN_000191f0(param_1);\n        }" (else "else") (compound_statement "{\n          FUN_000191f0(param_1);\n        }" ({ "{") (expression_statement "FUN_000191f0(param_1);" (call_expression "FUN_000191f0(param_1)" (identifier "FUN_000191f0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}")))) (expression_statement "bVar2 = (bool)(bVar2 ^ 1);" (assignment_expression "bVar2 = (bool)(bVar2 ^ 1)" (identifier "bVar2") (= "=") (cast_expression "(bool)(bVar2 ^ 1)" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (parenthesized_expression "(bVar2 ^ 1)" (( "(") (binary_expression "bVar2 ^ 1" (identifier "bVar2") (^ "^") (number_literal "1")) () ")")))) (; ";")) (expression_statement "wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);" (call_expression "wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1)" (identifier "wmove") (argument_list "(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (, ",") (binary_expression "*(int *)puVar5 + -1" (pointer_expression "*(int *)puVar5" (* "*") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5"))) (+ "+") (number_literal "-1")) (, ",") (binary_expression "*(int *)puVar4 + -1" (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) (+ "+") (number_literal "-1")) () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" (identifier "wmove") (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (, ",") (identifier "local_40") (, ",") (identifier "local_44") () ")"))) (; ";")) (expression_statement "FUN_000191f0(param_1);" (call_expression "FUN_000191f0(param_1)" (identifier "FUN_000191f0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "wmove(*(undefined4 *)puVar3,local_40,local_44);" (call_expression "wmove(*(undefined4 *)puVar3,local_40,local_44)" (identifier "wmove") (argument_list "(*(undefined4 *)puVar3,local_40,local_44)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) (, ",") (identifier "local_40") (, ",") (identifier "local_44") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" (else "else") (compound_statement "{\n    curs_set(1);\n    wrefresh(*(undefined4 *)puVar3);\n    cbreak();\n    FUN_000194e0(&local_24);\n    curs_set(0);\n    wrefresh(*(undefined4 *)puVar3);\n  }" ({ "{") (expression_statement "curs_set(1);" (call_expression "curs_set(1)" (identifier "curs_set") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" (identifier "wrefresh") (argument_list "(*(undefined4 *)puVar3)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")"))) (; ";")) (expression_statement "cbreak();" (call_expression "cbreak()" (identifier "cbreak") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_000194e0(&local_24);" (call_expression "FUN_000194e0(&local_24)" (identifier "FUN_000194e0") (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (expression_statement "curs_set(0);" (call_expression "curs_set(0)" (identifier "curs_set") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "wrefresh(*(undefined4 *)puVar3);" (call_expression "wrefresh(*(undefined4 *)puVar3)" (identifier "wrefresh") (argument_list "(*(undefined4 *)puVar3)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")"))) (; ";")) (} "}")))))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return local_24;\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 local_24;\n  }" ({ "{") (return_statement "return local_24;" (return "return") (identifier "local_24") (; ";")) (} "}"))) (expression_statement "FUN_00019660();" (call_expression "FUN_00019660()" (identifier "FUN_00019660") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

int __regparm3 function_1(int var_3)

{
  short *var_2;
  bool var_14;
  type_1 *puVar3;
  type_1 *puVar4;
  type_1 *puVar5;
  int var_12;
  int var_1;
  int local_44;
  int local_40;
  int return_char;
  int var_15;
  type_2 uStack_14;
  
  puVar3 = PTR_stdscr_0001efdc;
  uStack_14 = 0x15dab;
  var_15 = *(int *)(var_1 + 0x14);
  var_2 = *(short **)PTR_stdscr_0001efdc;
  if (var_2 == (short *)0x0) {
    local_40 = -1;
    local_44 = -1;
  }
  else {
    local_40 = (int)*var_2;
    local_44 = (int)var_2[1];
  }
  if (var_3 == 0) {
    var_4(0);
    var_5(*(type_2 *)puVar3);
    var_6(*(type_2 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);
    var_7();
    var_8(&return_char);
    var_6(*(type_2 *)puVar3,local_40,local_44);
  }
  else if (cl_term_cursor) {
    var_4(1);
    var_5(*(type_2 *)puVar3);
    var_7();
    var_8(&return_char);
    var_4(0);
    var_5(*(type_2 *)puVar3);
  }
  else {
    var_9(var_3);
    var_4(0);
    var_5(*(type_2 *)puVar3);
    puVar5 = PTR_LINES_0001eff0;
    puVar4 = PTR_COLS_0001efe4;
    var_6(*(type_2 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);
    if (var_10 < 2) {
      var_7();
      var_8(&return_char);
    }
    else {
      var_11(var_10 >> 1);
      var_14 = false;
      while( true ) {
        var_12 = var_8(&return_char);
        if (var_12 != -1) break;
        var_6(*(type_2 *)puVar3,local_40,local_44);
        if (var_14) {
          var_9(var_3);
        }
        else {
          var_13(var_3);
        }
        var_14 = (bool)(var_14 ^ 1);
        var_6(*(type_2 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);
      }
    }
    var_6(*(type_2 *)puVar3,local_40,local_44);
    var_13(var_3);
    var_6(*(type_2 *)puVar3,local_40,local_44);
  }
  if (var_15 == *(int *)(var_1 + 0x14)) {
    return return_char;
  }
                    /* WARNING: Subroutine does not return */
  var_16();
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (identifier) (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (false))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (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 (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

undefined4 __regparm3 MASKED(int param_1)

{
  short *psVar1;
  bool bVar2;
  undefined *puVar3;
  undefined *puVar4;
  undefined *puVar5;
  int iVar6;
  int in_GS_OFFSET;
  int local_44;
  int local_40;
  undefined4 local_24;
  int local_20;
  undefined4 uStack_14;
  
  puVar3 = PTR_stdscr_0001efdc;
  uStack_14 = 0x15dab;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  psVar1 = *(short **)PTR_stdscr_0001efdc;
  if (psVar1 == (short *)0x0) {
    local_40 = -1;
    local_44 = -1;
  }
  else {
    local_40 = (int)*psVar1;
    local_44 = (int)psVar1[1];
  }
  if (param_1 == 0) {
    curs_set(0);
    wrefresh(*(undefined4 *)puVar3);
    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);
    cbreak();
    FUN_000194e0(&local_24);
    wmove(*(undefined4 *)puVar3,local_40,local_44);
  }
  else if (DAT_0001f399 == '\0') {
    FUN_000192c0(param_1);
    curs_set(0);
    wrefresh(*(undefined4 *)puVar3);
    puVar5 = PTR_LINES_0001eff0;
    puVar4 = PTR_COLS_0001efe4;
    wmove(*(undefined4 *)puVar3,*(int *)PTR_LINES_0001eff0 + -1,*(int *)PTR_COLS_0001efe4 + -1);
    if (DAT_0001f1a0 < 2) {
      cbreak();
      FUN_000194e0(&local_24);
    }
    else {
      halfdelay(DAT_0001f1a0 >> 1);
      bVar2 = false;
      while( true ) {
        iVar6 = FUN_000194e0(&local_24);
        if (iVar6 != -1) break;
        wmove(*(undefined4 *)puVar3,local_40,local_44);
        if (bVar2) {
          FUN_000192c0(param_1);
        }
        else {
          FUN_000191f0(param_1);
        }
        bVar2 = (bool)(bVar2 ^ 1);
        wmove(*(undefined4 *)puVar3,*(int *)puVar5 + -1,*(int *)puVar4 + -1);
      }
    }
    wmove(*(undefined4 *)puVar3,local_40,local_44);
    FUN_000191f0(param_1);
    wmove(*(undefined4 *)puVar3,local_40,local_44);
  }
  else {
    curs_set(1);
    wrefresh(*(undefined4 *)puVar3);
    cbreak();
    FUN_000194e0(&local_24);
    curs_set(0);
    wrefresh(*(undefined4 *)puVar3);
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return local_24;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00019660();
}

