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

int update_line(filestruct *fileptr,size_t index)

{
  undefined *puVar1;
  WINDOW *pWVar2;
  size_t sVar3;
  char *converted;
  size_t sVar4;
  int iVar5;
  int iVar6;
  int local_30;
  
  pWVar2 = edit;
  puVar1 = PTR_COLS_0007af78;
  if (((byte)flags[1] & 2) != 0) {
    iVar5 = update_softwrapped_line(fileptr);
    return iVar5;
  }
  iVar5 = fileptr->lineno - openfile->edittop->lineno;
  if ((iVar5 < 0) || (editwinrows <= iVar5)) {
    statusline(ALERT,"Badness: tried to display a line on row %i -- please report a bug",iVar5);
    local_30 = 0;
  }
  else {
    iVar6 = *(int *)PTR_COLS_0007af78;
    wmove(edit,iVar5,0);
    if (0 < iVar6) {
      do {
        waddch(pWVar2,0x20);
        iVar6 = iVar6 + -1;
      } while (iVar6 != 0);
    }
    sVar3 = strnlenpt(fileptr->data,index);
    sVar3 = get_page_start(sVar3);
    converted = display_string(fileptr->data,sVar3,editwincols,true);
    edit_draw(fileptr,converted,iVar5,sVar3);
    free(converted);
    if ((sVar3 != 0) && (iVar6 = wmove(edit,iVar5,margin), iVar6 != -1)) {
      waddch(edit,0x24);
    }
    sVar4 = strlenpt(fileptr->data);
    if ((sVar3 + editwincols < sVar4) &&
       (iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {
      waddch(edit,0x24);
    }
    local_30 = 1;
    if ((spotlighted != false) && (inhelp == false)) {
      local_30 = 1;
      spotlight(light_from_col,light_to_col);
    }
  }
  return local_30;
}



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

undefined4 FUN_00044e30(undefined4 *param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  void *__ptr;
  uint uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 local_30;
  
  uVar2 = DAT_0007b65c;
  puVar1 = PTR_COLS_0007af78;
  if ((DAT_0007b668 & 2) != 0) {
    uVar2 = FUN_00044ae0();
    return uVar2;
  }
  iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);
  if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {
    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);
    local_30 = 0;
  }
  else {
    iVar6 = *(int *)PTR_COLS_0007af78;
    wmove(DAT_0007b65c,iVar5,0);
    if (0 < iVar6) {
      do {
        waddch(uVar2,0x20);
        iVar6 = iVar6 + -1;
      } while (iVar6 != 0);
    }
    uVar2 = FUN_0003e040(*param_1,param_2);
    iVar6 = FUN_0003dec0(uVar2);
    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);
    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);
    free(__ptr);
    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {
      waddch(DAT_0007b65c,0x24);
    }
    uVar3 = FUN_0003e0c0(*param_1);
    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&
       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {
      waddch(DAT_0007b65c,0x24);
    }
    local_30 = 1;
    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {
      local_30 = 1;
      FUN_00044960(DAT_0007b588,DAT_0007b584);
    }
  }
  return local_30;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015680
ADD EBX,0x35d97
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x44]
MOV EDI,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0xc],EAX
LEA EAX,[EBX + 0xa94]
TEST byte ptr [EAX + 0x4],0x2
JNZ 0x00044fb0
LEA EAX,[EBX + 0xa70]
MOV EDX,dword ptr [EDI + 0x4]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0xc]
SUB EDX,dword ptr [EAX + 0x4]
MOV EBP,EDX
JS 0x00044e7d
LEA EAX,[EBX + 0xa84]
CMP dword ptr [EAX],EDX
JG 0x00044ea0
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe6a58]
PUSH EBP
PUSH EAX
PUSH 0x3
CALL 0x00040b60
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX + 0x3a8]
SUB ESP,0x4
MOV dword ptr [ESP + 0x20],EAX
MOV ESI,dword ptr [EAX]
LEA EAX,[EBX + 0xa8c]
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [EAX]
PUSH 0x0
PUSH EDX
MOV dword ptr [ESP + 0x1c],EAX
PUSH EAX
CALL 0x000130b0
ADD ESP,0x10
TEST ESI,ESI
JLE 0x00044ef7
MOV dword ptr [ESP + 0x18],EBP
MOV EBP,dword ptr [ESP + 0x10]
LEA ESI,[ESI]
NOP
SUB ESP,0x8
PUSH 0x20
PUSH EBP
CALL 0x000139e0
ADD ESP,0x10
SUB ESI,0x1
JNZ 0x00044ee0
MOV EBP,dword ptr [ESP + 0x18]
SUB ESP,0x8
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [EDI]
CALL 0x0003e040
MOV dword ptr [ESP],EAX
CALL 0x0003dec0
PUSH 0x1
MOV ESI,EAX
LEA EAX,[EBX + 0x49c]
MOV dword ptr [ESP + 0x20],EAX
PUSH dword ptr [EAX]
PUSH ESI
PUSH dword ptr [EDI]
CALL 0x0003fe90
ADD ESP,0x20
PUSH ESI
PUSH EBP
PUSH EAX
MOV dword ptr [ESP + 0x1c],EAX
PUSH EDI
CALL 0x00041aa0
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [ESP],EAX
CALL 0x00013200
ADD ESP,0x10
TEST ESI,ESI
JNZ 0x00045000
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x0003e0c0
MOV ECX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
ADD ESI,dword ptr [ECX]
CMP EAX,ESI
JA 0x00044fc0
LEA EDX,[EBX + 0x9bc]
MOV EAX,0x1
CMP byte ptr [EDX],0x0
JZ 0x00044e94
LEA EDX,[EBX + 0xabc]
CMP byte ptr [EDX],0x0
JNZ 0x00044e94
LEA EDX,[EBX + 0x9b4]
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0x8
PUSH dword ptr [EDX]
LEA EDX,[EBX + 0x9b8]
PUSH dword ptr [EDX]
CALL 0x00044960
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
JMP 0x00044e94
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00044ae0
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX]
SUB EAX,0x1
PUSH EAX
PUSH EBP
MOV EDI,dword ptr [ESP + 0x20]
PUSH dword ptr [EDI]
CALL 0x000130b0
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00044f63
SUB ESP,0x8
PUSH 0x24
PUSH dword ptr [EDI]
CALL 0x000139e0
ADD ESP,0x10
JMP 0x00044f63
LEA EAX,[EBX + 0xa80]
SUB ESP,0x4
PUSH dword ptr [EAX]
PUSH EBP
MOV EAX,dword ptr [ESP + 0x20]
PUSH dword ptr [EAX]
CALL 0x000130b0
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x00044f4c
SUB ESP,0x8
PUSH 0x24
MOV EAX,dword ptr [ESP + 0x20]
PUSH dword ptr [EAX]
CALL 0x000139e0
ADD ESP,0x10
JMP 0x00044f4c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00044e30(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 local_30;\n  \n  uVar2 = DAT_0007b65c;\n  puVar1 = PTR_COLS_0007af78;\n  if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }\n  iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);\n  if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }\n  return local_30;\n}\n\n" comment (function_definition "undefined4 FUN_00044e30(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 local_30;\n  \n  uVar2 = DAT_0007b65c;\n  puVar1 = PTR_COLS_0007af78;\n  if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }\n  iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);\n  if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }\n  return local_30;\n}" type_identifier (function_declarator "FUN_00044e30(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 local_30;\n  \n  uVar2 = DAT_0007b65c;\n  puVar1 = PTR_COLS_0007af78;\n  if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }\n  iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);\n  if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }\n  return local_30;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (expression_statement "uVar2 = DAT_0007b65c;" (assignment_expression "uVar2 = DAT_0007b65c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_COLS_0007af78;" (assignment_expression "puVar1 = PTR_COLS_0007af78" identifier = identifier) ;) (if_statement "if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }" if (parenthesized_expression "((DAT_0007b668 & 2) != 0)" ( (binary_expression "(DAT_0007b668 & 2) != 0" (parenthesized_expression "(DAT_0007b668 & 2)" ( (binary_expression "DAT_0007b668 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_00044ae0();" (assignment_expression "uVar2 = FUN_00044ae0()" identifier = (call_expression "FUN_00044ae0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);" (assignment_expression "iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" identifier = (binary_expression "param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (pointer_expression "*(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0007b640 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_0007b640 + 0xc) + 4" (pointer_expression "*(int *)(DAT_0007b640 + 0xc)" * (cast_expression "(int *)(DAT_0007b640 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0xc)" ( (binary_expression "DAT_0007b640 + 0xc" identifier + number_literal) )))) + number_literal) )))))) ;) (if_statement "if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }" if (parenthesized_expression "((iVar5 < 0) || (DAT_0007b654 <= iVar5))" ( (binary_expression "(iVar5 < 0) || (DAT_0007b654 <= iVar5)" (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) || (parenthesized_expression "(DAT_0007b654 <= iVar5)" ( (binary_expression "DAT_0007b654 <= iVar5" identifier <= identifier) ))) )) (compound_statement "{\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }" { (expression_statement "FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);" (call_expression "FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5)" identifier (argument_list "(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5)" ( number_literal , (string_literal ""Badness: tried to display a line on row %i -- please report a bug"" " string_content ") , identifier ))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }" else (compound_statement "{\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }" { (expression_statement "iVar6 = *(int *)PTR_COLS_0007af78;" (assignment_expression "iVar6 = *(int *)PTR_COLS_0007af78" identifier = (pointer_expression "*(int *)PTR_COLS_0007af78" * (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "wmove(DAT_0007b65c,iVar5,0);" (call_expression "wmove(DAT_0007b65c,iVar5,0)" identifier (argument_list "(DAT_0007b65c,iVar5,0)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }" { (do_statement "do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);" do (compound_statement "{\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      }" { (expression_statement "waddch(uVar2,0x20);" (call_expression "waddch(uVar2,0x20)" identifier (argument_list "(uVar2,0x20)" ( identifier , number_literal ))) ;) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) })) (expression_statement "uVar2 = FUN_0003e040(*param_1,param_2);" (assignment_expression "uVar2 = FUN_0003e040(*param_1,param_2)" identifier = (call_expression "FUN_0003e040(*param_1,param_2)" identifier (argument_list "(*param_1,param_2)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "iVar6 = FUN_0003dec0(uVar2);" (assignment_expression "iVar6 = FUN_0003dec0(uVar2)" identifier = (call_expression "FUN_0003dec0(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "__ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);" (assignment_expression "__ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1)" identifier = (cast_expression "(void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1)" identifier (argument_list "(*param_1,iVar6,DAT_0007b06c,1)" ( (pointer_expression "*param_1" * identifier) , identifier , identifier , number_literal ))))) ;) (expression_statement "FUN_00041aa0(param_1,__ptr,iVar5,iVar6);" (call_expression "FUN_00041aa0(param_1,__ptr,iVar5,iVar6)" identifier (argument_list "(param_1,__ptr,iVar5,iVar6)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }" if (parenthesized_expression "((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1))" ( (binary_expression "(iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)" ( (comma_expression "iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1" (assignment_expression "iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650)" identifier = (call_expression "wmove(DAT_0007b65c,iVar5,DAT_0007b650)" identifier (argument_list "(DAT_0007b65c,iVar5,DAT_0007b650)" ( identifier , identifier , identifier )))) , (binary_expression "iVar4 != -1" identifier != number_literal)) ))) )) (compound_statement "{\n      waddch(DAT_0007b65c,0x24);\n    }" { (expression_statement "waddch(DAT_0007b65c,0x24);" (call_expression "waddch(DAT_0007b65c,0x24)" identifier (argument_list "(DAT_0007b65c,0x24)" ( identifier , number_literal ))) ;) })) (expression_statement "uVar3 = FUN_0003e0c0(*param_1);" (assignment_expression "uVar3 = FUN_0003e0c0(*param_1)" identifier = (call_expression "FUN_0003e0c0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }" if (parenthesized_expression "(((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1))" ( (binary_expression "((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)" (parenthesized_expression "((uint)(iVar6 + DAT_0007b06c) < uVar3)" ( (binary_expression "(uint)(iVar6 + DAT_0007b06c) < uVar3" (call_expression "(uint)(iVar6 + DAT_0007b06c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar6 + DAT_0007b06c)" ( (binary_expression "iVar6 + DAT_0007b06c" identifier + identifier) ))) < identifier) )) && (parenthesized_expression "(iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)" ( (comma_expression "iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1" (assignment_expression "iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1)" identifier = (call_expression "wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1)" identifier (argument_list "(DAT_0007b65c,iVar5,*(int *)puVar1 + -1)" ( identifier , identifier , (binary_expression "*(int *)puVar1 + -1" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) , (binary_expression "iVar5 != -1" identifier != number_literal)) ))) )) (compound_statement "{\n      waddch(DAT_0007b65c,0x24);\n    }" { (expression_statement "waddch(DAT_0007b65c,0x24);" (call_expression "waddch(DAT_0007b65c,0x24)" identifier (argument_list "(DAT_0007b65c,0x24)" ( identifier , number_literal ))) ;) })) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (if_statement "if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }" if (parenthesized_expression "((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0'))" ( (binary_expression "(DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')" (parenthesized_expression "(DAT_0007b58c != '\0')" ( (binary_expression "DAT_0007b58c != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(DAT_0007b68c == '\0')" ( (binary_expression "DAT_0007b68c == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (expression_statement "FUN_00044960(DAT_0007b588,DAT_0007b584);" (call_expression "FUN_00044960(DAT_0007b588,DAT_0007b584)" identifier (argument_list "(DAT_0007b588,DAT_0007b584)" ( identifier , identifier ))) ;) })) }))) (return_statement "return local_30;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint update_line(filestruct *fileptr,size_t index)\n\n{\n  undefined *puVar1;\n  WINDOW *pWVar2;\n  size_t sVar3;\n  char *converted;\n  size_t sVar4;\n  int iVar5;\n  int iVar6;\n  int local_30;\n  \n  pWVar2 = edit;\n  puVar1 = PTR_COLS_0007af78;\n  if (((byte)flags[1] & 2) != 0) {\n    iVar5 = update_softwrapped_line(fileptr);\n    return iVar5;\n  }\n  iVar5 = fileptr->lineno - openfile->edittop->lineno;\n  if ((iVar5 < 0) || (editwinrows <= iVar5)) {\n    statusline(ALERT,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(edit,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(pWVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    sVar3 = strnlenpt(fileptr->data,index);\n    sVar3 = get_page_start(sVar3);\n    converted = display_string(fileptr->data,sVar3,editwincols,true);\n    edit_draw(fileptr,converted,iVar5,sVar3);\n    free(converted);\n    if ((sVar3 != 0) && (iVar6 = wmove(edit,iVar5,margin), iVar6 != -1)) {\n      waddch(edit,0x24);\n    }\n    sVar4 = strlenpt(fileptr->data);\n    if ((sVar3 + editwincols < sVar4) &&\n       (iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(edit,0x24);\n    }\n    local_30 = 1;\n    if ((spotlighted != false) && (inhelp == false)) {\n      local_30 = 1;\n      spotlight(light_from_col,light_to_col);\n    }\n  }\n  return local_30;\n}\n\n" comment comment (function_definition "int update_line(filestruct *fileptr,size_t index)\n\n{\n  undefined *puVar1;\n  WINDOW *pWVar2;\n  size_t sVar3;\n  char *converted;\n  size_t sVar4;\n  int iVar5;\n  int iVar6;\n  int local_30;\n  \n  pWVar2 = edit;\n  puVar1 = PTR_COLS_0007af78;\n  if (((byte)flags[1] & 2) != 0) {\n    iVar5 = update_softwrapped_line(fileptr);\n    return iVar5;\n  }\n  iVar5 = fileptr->lineno - openfile->edittop->lineno;\n  if ((iVar5 < 0) || (editwinrows <= iVar5)) {\n    statusline(ALERT,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(edit,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(pWVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    sVar3 = strnlenpt(fileptr->data,index);\n    sVar3 = get_page_start(sVar3);\n    converted = display_string(fileptr->data,sVar3,editwincols,true);\n    edit_draw(fileptr,converted,iVar5,sVar3);\n    free(converted);\n    if ((sVar3 != 0) && (iVar6 = wmove(edit,iVar5,margin), iVar6 != -1)) {\n      waddch(edit,0x24);\n    }\n    sVar4 = strlenpt(fileptr->data);\n    if ((sVar3 + editwincols < sVar4) &&\n       (iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(edit,0x24);\n    }\n    local_30 = 1;\n    if ((spotlighted != false) && (inhelp == false)) {\n      local_30 = 1;\n      spotlight(light_from_col,light_to_col);\n    }\n  }\n  return local_30;\n}" primitive_type (function_declarator "update_line(filestruct *fileptr,size_t index)" identifier (parameter_list "(filestruct *fileptr,size_t index)" ( (parameter_declaration "filestruct *fileptr" type_identifier (pointer_declarator "*fileptr" * identifier)) , (parameter_declaration "size_t index" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  WINDOW *pWVar2;\n  size_t sVar3;\n  char *converted;\n  size_t sVar4;\n  int iVar5;\n  int iVar6;\n  int local_30;\n  \n  pWVar2 = edit;\n  puVar1 = PTR_COLS_0007af78;\n  if (((byte)flags[1] & 2) != 0) {\n    iVar5 = update_softwrapped_line(fileptr);\n    return iVar5;\n  }\n  iVar5 = fileptr->lineno - openfile->edittop->lineno;\n  if ((iVar5 < 0) || (editwinrows <= iVar5)) {\n    statusline(ALERT,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(edit,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(pWVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    sVar3 = strnlenpt(fileptr->data,index);\n    sVar3 = get_page_start(sVar3);\n    converted = display_string(fileptr->data,sVar3,editwincols,true);\n    edit_draw(fileptr,converted,iVar5,sVar3);\n    free(converted);\n    if ((sVar3 != 0) && (iVar6 = wmove(edit,iVar5,margin), iVar6 != -1)) {\n      waddch(edit,0x24);\n    }\n    sVar4 = strlenpt(fileptr->data);\n    if ((sVar3 + editwincols < sVar4) &&\n       (iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(edit,0x24);\n    }\n    local_30 = 1;\n    if ((spotlighted != false) && (inhelp == false)) {\n      local_30 = 1;\n      spotlight(light_from_col,light_to_col);\n    }\n  }\n  return local_30;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "WINDOW *pWVar2;" type_identifier (pointer_declarator "*pWVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *converted;" primitive_type (pointer_declarator "*converted" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (expression_statement "pWVar2 = edit;" (assignment_expression "pWVar2 = edit" identifier = identifier) ;) (expression_statement "puVar1 = PTR_COLS_0007af78;" (assignment_expression "puVar1 = PTR_COLS_0007af78" identifier = identifier) ;) (if_statement "if (((byte)flags[1] & 2) != 0) {\n    iVar5 = update_softwrapped_line(fileptr);\n    return iVar5;\n  }" if (parenthesized_expression "(((byte)flags[1] & 2) != 0)" ( (binary_expression "((byte)flags[1] & 2) != 0" (parenthesized_expression "((byte)flags[1] & 2)" ( (binary_expression "(byte)flags[1] & 2" (cast_expression "(byte)flags[1]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "flags[1]" identifier [ number_literal ])) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar5 = update_softwrapped_line(fileptr);\n    return iVar5;\n  }" { (expression_statement "iVar5 = update_softwrapped_line(fileptr);" (assignment_expression "iVar5 = update_softwrapped_line(fileptr)" identifier = (call_expression "update_softwrapped_line(fileptr)" identifier (argument_list "(fileptr)" ( identifier )))) ;) (return_statement "return iVar5;" return identifier ;) })) (expression_statement "iVar5 = fileptr->lineno - openfile->edittop->lineno;" (assignment_expression "iVar5 = fileptr->lineno - openfile->edittop->lineno" identifier = (binary_expression "fileptr->lineno - openfile->edittop->lineno" (field_expression "fileptr->lineno" identifier -> field_identifier) - (field_expression "openfile->edittop->lineno" (field_expression "openfile->edittop" identifier -> field_identifier) -> field_identifier))) ;) (if_statement "if ((iVar5 < 0) || (editwinrows <= iVar5)) {\n    statusline(ALERT,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(edit,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(pWVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    sVar3 = strnlenpt(fileptr->data,index);\n    sVar3 = get_page_start(sVar3);\n    converted = display_string(fileptr->data,sVar3,editwincols,true);\n    edit_draw(fileptr,converted,iVar5,sVar3);\n    free(converted);\n    if ((sVar3 != 0) && (iVar6 = wmove(edit,iVar5,margin), iVar6 != -1)) {\n      waddch(edit,0x24);\n    }\n    sVar4 = strlenpt(fileptr->data);\n    if ((sVar3 + editwincols < sVar4) &&\n       (iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(edit,0x24);\n    }\n    local_30 = 1;\n    if ((spotlighted != false) && (inhelp == false)) {\n      local_30 = 1;\n      spotlight(light_from_col,light_to_col);\n    }\n  }" if (parenthesized_expression "((iVar5 < 0) || (editwinrows <= iVar5))" ( (binary_expression "(iVar5 < 0) || (editwinrows <= iVar5)" (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) || (parenthesized_expression "(editwinrows <= iVar5)" ( (binary_expression "editwinrows <= iVar5" identifier <= identifier) ))) )) (compound_statement "{\n    statusline(ALERT,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }" { (expression_statement "statusline(ALERT,"Badness: tried to display a line on row %i -- please report a bug",iVar5);" (call_expression "statusline(ALERT,"Badness: tried to display a line on row %i -- please report a bug",iVar5)" identifier (argument_list "(ALERT,"Badness: tried to display a line on row %i -- please report a bug",iVar5)" ( identifier , (string_literal ""Badness: tried to display a line on row %i -- please report a bug"" " string_content ") , identifier ))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(edit,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(pWVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    sVar3 = strnlenpt(fileptr->data,index);\n    sVar3 = get_page_start(sVar3);\n    converted = display_string(fileptr->data,sVar3,editwincols,true);\n    edit_draw(fileptr,converted,iVar5,sVar3);\n    free(converted);\n    if ((sVar3 != 0) && (iVar6 = wmove(edit,iVar5,margin), iVar6 != -1)) {\n      waddch(edit,0x24);\n    }\n    sVar4 = strlenpt(fileptr->data);\n    if ((sVar3 + editwincols < sVar4) &&\n       (iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(edit,0x24);\n    }\n    local_30 = 1;\n    if ((spotlighted != false) && (inhelp == false)) {\n      local_30 = 1;\n      spotlight(light_from_col,light_to_col);\n    }\n  }" else (compound_statement "{\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(edit,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(pWVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    sVar3 = strnlenpt(fileptr->data,index);\n    sVar3 = get_page_start(sVar3);\n    converted = display_string(fileptr->data,sVar3,editwincols,true);\n    edit_draw(fileptr,converted,iVar5,sVar3);\n    free(converted);\n    if ((sVar3 != 0) && (iVar6 = wmove(edit,iVar5,margin), iVar6 != -1)) {\n      waddch(edit,0x24);\n    }\n    sVar4 = strlenpt(fileptr->data);\n    if ((sVar3 + editwincols < sVar4) &&\n       (iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(edit,0x24);\n    }\n    local_30 = 1;\n    if ((spotlighted != false) && (inhelp == false)) {\n      local_30 = 1;\n      spotlight(light_from_col,light_to_col);\n    }\n  }" { (expression_statement "iVar6 = *(int *)PTR_COLS_0007af78;" (assignment_expression "iVar6 = *(int *)PTR_COLS_0007af78" identifier = (pointer_expression "*(int *)PTR_COLS_0007af78" * (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "wmove(edit,iVar5,0);" (call_expression "wmove(edit,iVar5,0)" identifier (argument_list "(edit,iVar5,0)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (0 < iVar6) {\n      do {\n        waddch(pWVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n      do {\n        waddch(pWVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }" { (do_statement "do {\n        waddch(pWVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);" do (compound_statement "{\n        waddch(pWVar2,0x20);\n        iVar6 = iVar6 + -1;\n      }" { (expression_statement "waddch(pWVar2,0x20);" (call_expression "waddch(pWVar2,0x20)" identifier (argument_list "(pWVar2,0x20)" ( identifier , number_literal ))) ;) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) })) (expression_statement "sVar3 = strnlenpt(fileptr->data,index);" (assignment_expression "sVar3 = strnlenpt(fileptr->data,index)" identifier = (call_expression "strnlenpt(fileptr->data,index)" identifier (argument_list "(fileptr->data,index)" ( (field_expression "fileptr->data" identifier -> field_identifier) , identifier )))) ;) (expression_statement "sVar3 = get_page_start(sVar3);" (assignment_expression "sVar3 = get_page_start(sVar3)" identifier = (call_expression "get_page_start(sVar3)" identifier (argument_list "(sVar3)" ( identifier )))) ;) (expression_statement "converted = display_string(fileptr->data,sVar3,editwincols,true);" (assignment_expression "converted = display_string(fileptr->data,sVar3,editwincols,true)" identifier = (call_expression "display_string(fileptr->data,sVar3,editwincols,true)" identifier (argument_list "(fileptr->data,sVar3,editwincols,true)" ( (field_expression "fileptr->data" identifier -> field_identifier) , identifier , identifier , true )))) ;) (expression_statement "edit_draw(fileptr,converted,iVar5,sVar3);" (call_expression "edit_draw(fileptr,converted,iVar5,sVar3)" identifier (argument_list "(fileptr,converted,iVar5,sVar3)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "free(converted);" (call_expression "free(converted)" identifier (argument_list "(converted)" ( identifier ))) ;) (if_statement "if ((sVar3 != 0) && (iVar6 = wmove(edit,iVar5,margin), iVar6 != -1)) {\n      waddch(edit,0x24);\n    }" if (parenthesized_expression "((sVar3 != 0) && (iVar6 = wmove(edit,iVar5,margin), iVar6 != -1))" ( (binary_expression "(sVar3 != 0) && (iVar6 = wmove(edit,iVar5,margin), iVar6 != -1)" (parenthesized_expression "(sVar3 != 0)" ( (binary_expression "sVar3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar6 = wmove(edit,iVar5,margin), iVar6 != -1)" ( (comma_expression "iVar6 = wmove(edit,iVar5,margin), iVar6 != -1" (assignment_expression "iVar6 = wmove(edit,iVar5,margin)" identifier = (call_expression "wmove(edit,iVar5,margin)" identifier (argument_list "(edit,iVar5,margin)" ( identifier , identifier , identifier )))) , (binary_expression "iVar6 != -1" identifier != number_literal)) ))) )) (compound_statement "{\n      waddch(edit,0x24);\n    }" { (expression_statement "waddch(edit,0x24);" (call_expression "waddch(edit,0x24)" identifier (argument_list "(edit,0x24)" ( identifier , number_literal ))) ;) })) (expression_statement "sVar4 = strlenpt(fileptr->data);" (assignment_expression "sVar4 = strlenpt(fileptr->data)" identifier = (call_expression "strlenpt(fileptr->data)" identifier (argument_list "(fileptr->data)" ( (field_expression "fileptr->data" identifier -> field_identifier) )))) ;) (if_statement "if ((sVar3 + editwincols < sVar4) &&\n       (iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(edit,0x24);\n    }" if (parenthesized_expression "((sVar3 + editwincols < sVar4) &&\n       (iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1))" ( (binary_expression "(sVar3 + editwincols < sVar4) &&\n       (iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1)" (parenthesized_expression "(sVar3 + editwincols < sVar4)" ( (binary_expression "sVar3 + editwincols < sVar4" (binary_expression "sVar3 + editwincols" identifier + identifier) < identifier) )) && (parenthesized_expression "(iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1)" ( (comma_expression "iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1), iVar5 != -1" (assignment_expression "iVar5 = wmove(edit,iVar5,*(int *)puVar1 + -1)" identifier = (call_expression "wmove(edit,iVar5,*(int *)puVar1 + -1)" identifier (argument_list "(edit,iVar5,*(int *)puVar1 + -1)" ( identifier , identifier , (binary_expression "*(int *)puVar1 + -1" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) , (binary_expression "iVar5 != -1" identifier != number_literal)) ))) )) (compound_statement "{\n      waddch(edit,0x24);\n    }" { (expression_statement "waddch(edit,0x24);" (call_expression "waddch(edit,0x24)" identifier (argument_list "(edit,0x24)" ( identifier , number_literal ))) ;) })) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (if_statement "if ((spotlighted != false) && (inhelp == false)) {\n      local_30 = 1;\n      spotlight(light_from_col,light_to_col);\n    }" if (parenthesized_expression "((spotlighted != false) && (inhelp == false))" ( (binary_expression "(spotlighted != false) && (inhelp == false)" (parenthesized_expression "(spotlighted != false)" ( (binary_expression "spotlighted != false" identifier != false) )) && (parenthesized_expression "(inhelp == false)" ( (binary_expression "inhelp == false" identifier == false) ))) )) (compound_statement "{\n      local_30 = 1;\n      spotlight(light_from_col,light_to_col);\n    }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (expression_statement "spotlight(light_from_col,light_to_col);" (call_expression "spotlight(light_from_col,light_to_col)" identifier (argument_list "(light_from_col,light_to_col)" ( identifier , identifier ))) ;) })) }))) (return_statement "return local_30;" return identifier ;) })))
(translation_unit "undefined4 FUN_00044e30(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 local_30;\n  \n  uVar2 = DAT_0007b65c;\n  puVar1 = PTR_COLS_0007af78;\n  if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }\n  iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);\n  if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }\n  return local_30;\n}\n\n" (function_definition "undefined4 FUN_00044e30(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 local_30;\n  \n  uVar2 = DAT_0007b65c;\n  puVar1 = PTR_COLS_0007af78;\n  if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }\n  iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);\n  if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }\n  return local_30;\n}" type_identifier (function_declarator "FUN_00044e30(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 local_30;\n  \n  uVar2 = DAT_0007b65c;\n  puVar1 = PTR_COLS_0007af78;\n  if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }\n  iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);\n  if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }\n  return local_30;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (expression_statement "uVar2 = DAT_0007b65c;" (assignment_expression "uVar2 = DAT_0007b65c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_COLS_0007af78;" (assignment_expression "puVar1 = PTR_COLS_0007af78" identifier = identifier) ;) (if_statement "if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }" if (parenthesized_expression "((DAT_0007b668 & 2) != 0)" ( (binary_expression "(DAT_0007b668 & 2) != 0" (parenthesized_expression "(DAT_0007b668 & 2)" ( (binary_expression "DAT_0007b668 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_00044ae0();" (assignment_expression "uVar2 = FUN_00044ae0()" identifier = (call_expression "FUN_00044ae0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);" (assignment_expression "iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" identifier = (binary_expression "param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" (subscript_expression "param_1[1]" identifier [ number_literal ]) - (pointer_expression "*(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0007b640 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_0007b640 + 0xc) + 4" (pointer_expression "*(int *)(DAT_0007b640 + 0xc)" * (cast_expression "(int *)(DAT_0007b640 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0007b640 + 0xc)" ( (binary_expression "DAT_0007b640 + 0xc" identifier + number_literal) )))) + number_literal) )))))) ;) (if_statement "if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }" if (parenthesized_expression "((iVar5 < 0) || (DAT_0007b654 <= iVar5))" ( (binary_expression "(iVar5 < 0) || (DAT_0007b654 <= iVar5)" (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) || (parenthesized_expression "(DAT_0007b654 <= iVar5)" ( (binary_expression "DAT_0007b654 <= iVar5" identifier <= identifier) ))) )) (compound_statement "{\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }" { (expression_statement "FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);" (call_expression "FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5)" identifier (argument_list "(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5)" ( number_literal , (string_literal ""Badness: tried to display a line on row %i -- please report a bug"" " string_content ") , identifier ))) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }" else (compound_statement "{\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }" { (expression_statement "iVar6 = *(int *)PTR_COLS_0007af78;" (assignment_expression "iVar6 = *(int *)PTR_COLS_0007af78" identifier = (pointer_expression "*(int *)PTR_COLS_0007af78" * (cast_expression "(int *)PTR_COLS_0007af78" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "wmove(DAT_0007b65c,iVar5,0);" (call_expression "wmove(DAT_0007b65c,iVar5,0)" identifier (argument_list "(DAT_0007b65c,iVar5,0)" ( identifier , identifier , number_literal ))) ;) (if_statement "if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }" { (do_statement "do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);" do (compound_statement "{\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      }" { (expression_statement "waddch(uVar2,0x20);" (call_expression "waddch(uVar2,0x20)" identifier (argument_list "(uVar2,0x20)" ( identifier , number_literal ))) ;) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" identifier = (binary_expression "iVar6 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) })) (expression_statement "uVar2 = FUN_0003e040(*param_1,param_2);" (assignment_expression "uVar2 = FUN_0003e040(*param_1,param_2)" identifier = (call_expression "FUN_0003e040(*param_1,param_2)" identifier (argument_list "(*param_1,param_2)" ( (pointer_expression "*param_1" * identifier) , identifier )))) ;) (expression_statement "iVar6 = FUN_0003dec0(uVar2);" (assignment_expression "iVar6 = FUN_0003dec0(uVar2)" identifier = (call_expression "FUN_0003dec0(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "__ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);" (assignment_expression "__ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1)" identifier = (cast_expression "(void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1)" identifier (argument_list "(*param_1,iVar6,DAT_0007b06c,1)" ( (pointer_expression "*param_1" * identifier) , identifier , identifier , number_literal ))))) ;) (expression_statement "FUN_00041aa0(param_1,__ptr,iVar5,iVar6);" (call_expression "FUN_00041aa0(param_1,__ptr,iVar5,iVar6)" identifier (argument_list "(param_1,__ptr,iVar5,iVar6)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }" if (parenthesized_expression "((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1))" ( (binary_expression "(iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)" ( (comma_expression "iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1" (assignment_expression "iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650)" identifier = (call_expression "wmove(DAT_0007b65c,iVar5,DAT_0007b650)" identifier (argument_list "(DAT_0007b65c,iVar5,DAT_0007b650)" ( identifier , identifier , identifier )))) , (binary_expression "iVar4 != -1" identifier != number_literal)) ))) )) (compound_statement "{\n      waddch(DAT_0007b65c,0x24);\n    }" { (expression_statement "waddch(DAT_0007b65c,0x24);" (call_expression "waddch(DAT_0007b65c,0x24)" identifier (argument_list "(DAT_0007b65c,0x24)" ( identifier , number_literal ))) ;) })) (expression_statement "uVar3 = FUN_0003e0c0(*param_1);" (assignment_expression "uVar3 = FUN_0003e0c0(*param_1)" identifier = (call_expression "FUN_0003e0c0(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (if_statement "if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }" if (parenthesized_expression "(((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1))" ( (binary_expression "((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)" (parenthesized_expression "((uint)(iVar6 + DAT_0007b06c) < uVar3)" ( (binary_expression "(uint)(iVar6 + DAT_0007b06c) < uVar3" (call_expression "(uint)(iVar6 + DAT_0007b06c)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar6 + DAT_0007b06c)" ( (binary_expression "iVar6 + DAT_0007b06c" identifier + identifier) ))) < identifier) )) && (parenthesized_expression "(iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)" ( (comma_expression "iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1" (assignment_expression "iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1)" identifier = (call_expression "wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1)" identifier (argument_list "(DAT_0007b65c,iVar5,*(int *)puVar1 + -1)" ( identifier , identifier , (binary_expression "*(int *)puVar1 + -1" (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) , (binary_expression "iVar5 != -1" identifier != number_literal)) ))) )) (compound_statement "{\n      waddch(DAT_0007b65c,0x24);\n    }" { (expression_statement "waddch(DAT_0007b65c,0x24);" (call_expression "waddch(DAT_0007b65c,0x24)" identifier (argument_list "(DAT_0007b65c,0x24)" ( identifier , number_literal ))) ;) })) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (if_statement "if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }" if (parenthesized_expression "((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0'))" ( (binary_expression "(DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')" (parenthesized_expression "(DAT_0007b58c != '\0')" ( (binary_expression "DAT_0007b58c != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(DAT_0007b68c == '\0')" ( (binary_expression "DAT_0007b68c == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) (expression_statement "FUN_00044960(DAT_0007b588,DAT_0007b584);" (call_expression "FUN_00044960(DAT_0007b588,DAT_0007b584)" identifier (argument_list "(DAT_0007b588,DAT_0007b584)" ( identifier , identifier ))) ;) })) }))) (return_statement "return local_30;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT <= IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) ))) < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00044e30(undefined4 *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 local_30;\n  \n  uVar2 = DAT_0007b65c;\n  puVar1 = PTR_COLS_0007af78;\n  if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }\n  iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);\n  if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }\n  return local_30;\n}" (type_identifier "undefined4") (function_declarator "FUN_00044e30(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_00044e30") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  void *__ptr;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 local_30;\n  \n  uVar2 = DAT_0007b65c;\n  puVar1 = PTR_COLS_0007af78;\n  if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }\n  iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);\n  if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }\n  return local_30;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (expression_statement "uVar2 = DAT_0007b65c;" (assignment_expression "uVar2 = DAT_0007b65c" (identifier "uVar2") (= "=") (identifier "DAT_0007b65c")) (; ";")) (expression_statement "puVar1 = PTR_COLS_0007af78;" (assignment_expression "puVar1 = PTR_COLS_0007af78" (identifier "puVar1") (= "=") (identifier "PTR_COLS_0007af78")) (; ";")) (if_statement "if ((DAT_0007b668 & 2) != 0) {\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }" (if "if") (parenthesized_expression "((DAT_0007b668 & 2) != 0)" (( "(") (binary_expression "(DAT_0007b668 & 2) != 0" (parenthesized_expression "(DAT_0007b668 & 2)" (( "(") (binary_expression "DAT_0007b668 & 2" (identifier "DAT_0007b668") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = FUN_00044ae0();\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_00044ae0();" (assignment_expression "uVar2 = FUN_00044ae0()" (identifier "uVar2") (= "=") (call_expression "FUN_00044ae0()" (identifier "FUN_00044ae0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);" (assignment_expression "iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" (identifier "iVar5") (= "=") (binary_expression "param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (- "-") (pointer_expression "*(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" (* "*") (cast_expression "(int *)(*(int *)(DAT_0007b640 + 0xc) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0007b640 + 0xc) + 4)" (( "(") (binary_expression "*(int *)(DAT_0007b640 + 0xc) + 4" (pointer_expression "*(int *)(DAT_0007b640 + 0xc)" (* "*") (cast_expression "(int *)(DAT_0007b640 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0007b640 + 0xc)" (( "(") (binary_expression "DAT_0007b640 + 0xc" (identifier "DAT_0007b640") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4")) () ")")))))) (; ";")) (if_statement "if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }\n  else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }" (if "if") (parenthesized_expression "((iVar5 < 0) || (DAT_0007b654 <= iVar5))" (( "(") (binary_expression "(iVar5 < 0) || (DAT_0007b654 <= iVar5)" (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(DAT_0007b654 <= iVar5)" (( "(") (binary_expression "DAT_0007b654 <= iVar5" (identifier "DAT_0007b654") (<= "<=") (identifier "iVar5")) () ")"))) () ")")) (compound_statement "{\n    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);\n    local_30 = 0;\n  }" ({ "{") (expression_statement "FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);" (call_expression "FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5)" (identifier "FUN_00040b60") (argument_list "(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5)" (( "(") (number_literal "3") (, ",") (string_literal ""Badness: tried to display a line on row %i -- please report a bug"" (" """) (string_content "Badness: tried to display a line on row %i -- please report a bug") (" """)) (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }" (else "else") (compound_statement "{\n    iVar6 = *(int *)PTR_COLS_0007af78;\n    wmove(DAT_0007b65c,iVar5,0);\n    if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }\n    uVar2 = FUN_0003e040(*param_1,param_2);\n    iVar6 = FUN_0003dec0(uVar2);\n    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);\n    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);\n    free(__ptr);\n    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    uVar3 = FUN_0003e0c0(*param_1);\n    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }\n    local_30 = 1;\n    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }\n  }" ({ "{") (expression_statement "iVar6 = *(int *)PTR_COLS_0007af78;" (assignment_expression "iVar6 = *(int *)PTR_COLS_0007af78" (identifier "iVar6") (= "=") (pointer_expression "*(int *)PTR_COLS_0007af78" (* "*") (cast_expression "(int *)PTR_COLS_0007af78" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_COLS_0007af78")))) (; ";")) (expression_statement "wmove(DAT_0007b65c,iVar5,0);" (call_expression "wmove(DAT_0007b65c,iVar5,0)" (identifier "wmove") (argument_list "(DAT_0007b65c,iVar5,0)" (( "(") (identifier "DAT_0007b65c") (, ",") (identifier "iVar5") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if (0 < iVar6) {\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }" (if "if") (parenthesized_expression "(0 < iVar6)" (( "(") (binary_expression "0 < iVar6" (number_literal "0") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n      do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);\n    }" ({ "{") (do_statement "do {\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      } while (iVar6 != 0);" (do "do") (compound_statement "{\n        waddch(uVar2,0x20);\n        iVar6 = iVar6 + -1;\n      }" ({ "{") (expression_statement "waddch(uVar2,0x20);" (call_expression "waddch(uVar2,0x20)" (identifier "waddch") (argument_list "(uVar2,0x20)" (( "(") (identifier "uVar2") (, ",") (number_literal "0x20") () ")"))) (; ";")) (expression_statement "iVar6 = iVar6 + -1;" (assignment_expression "iVar6 = iVar6 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + -1" (identifier "iVar6") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_0003e040(*param_1,param_2);" (assignment_expression "uVar2 = FUN_0003e040(*param_1,param_2)" (identifier "uVar2") (= "=") (call_expression "FUN_0003e040(*param_1,param_2)" (identifier "FUN_0003e040") (argument_list "(*param_1,param_2)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "iVar6 = FUN_0003dec0(uVar2);" (assignment_expression "iVar6 = FUN_0003dec0(uVar2)" (identifier "iVar6") (= "=") (call_expression "FUN_0003dec0(uVar2)" (identifier "FUN_0003dec0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "__ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);" (assignment_expression "__ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1)" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1)" (identifier "FUN_0003fe90") (argument_list "(*param_1,iVar6,DAT_0007b06c,1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "iVar6") (, ",") (identifier "DAT_0007b06c") (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "FUN_00041aa0(param_1,__ptr,iVar5,iVar6);" (call_expression "FUN_00041aa0(param_1,__ptr,iVar5,iVar6)" (identifier "FUN_00041aa0") (argument_list "(param_1,__ptr,iVar5,iVar6)" (( "(") (identifier "param_1") (, ",") (identifier "__ptr") (, ",") (identifier "iVar5") (, ",") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (if_statement "if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }" (if "if") (parenthesized_expression "((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1))" (( "(") (binary_expression "(iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)" (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)" (( "(") (comma_expression "iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1" (assignment_expression "iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650)" (identifier "iVar4") (= "=") (call_expression "wmove(DAT_0007b65c,iVar5,DAT_0007b650)" (identifier "wmove") (argument_list "(DAT_0007b65c,iVar5,DAT_0007b650)" (( "(") (identifier "DAT_0007b65c") (, ",") (identifier "iVar5") (, ",") (identifier "DAT_0007b650") () ")")))) (, ",") (binary_expression "iVar4 != -1" (identifier "iVar4") (!= "!=") (number_literal "-1"))) () ")"))) () ")")) (compound_statement "{\n      waddch(DAT_0007b65c,0x24);\n    }" ({ "{") (expression_statement "waddch(DAT_0007b65c,0x24);" (call_expression "waddch(DAT_0007b65c,0x24)" (identifier "waddch") (argument_list "(DAT_0007b65c,0x24)" (( "(") (identifier "DAT_0007b65c") (, ",") (number_literal "0x24") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = FUN_0003e0c0(*param_1);" (assignment_expression "uVar3 = FUN_0003e0c0(*param_1)" (identifier "uVar3") (= "=") (call_expression "FUN_0003e0c0(*param_1)" (identifier "FUN_0003e0c0") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (if_statement "if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {\n      waddch(DAT_0007b65c,0x24);\n    }" (if "if") (parenthesized_expression "(((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1))" (( "(") (binary_expression "((uint)(iVar6 + DAT_0007b06c) < uVar3) &&\n       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)" (parenthesized_expression "((uint)(iVar6 + DAT_0007b06c) < uVar3)" (( "(") (binary_expression "(uint)(iVar6 + DAT_0007b06c) < uVar3" (call_expression "(uint)(iVar6 + DAT_0007b06c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar6 + DAT_0007b06c)" (( "(") (binary_expression "iVar6 + DAT_0007b06c" (identifier "iVar6") (+ "+") (identifier "DAT_0007b06c")) () ")"))) (< "<") (identifier "uVar3")) () ")")) (&& "&&") (parenthesized_expression "(iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)" (( "(") (comma_expression "iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1" (assignment_expression "iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1)" (identifier "iVar5") (= "=") (call_expression "wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1)" (identifier "wmove") (argument_list "(DAT_0007b65c,iVar5,*(int *)puVar1 + -1)" (( "(") (identifier "DAT_0007b65c") (, ",") (identifier "iVar5") (, ",") (binary_expression "*(int *)puVar1 + -1" (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (+ "+") (number_literal "-1")) () ")")))) (, ",") (binary_expression "iVar5 != -1" (identifier "iVar5") (!= "!=") (number_literal "-1"))) () ")"))) () ")")) (compound_statement "{\n      waddch(DAT_0007b65c,0x24);\n    }" ({ "{") (expression_statement "waddch(DAT_0007b65c,0x24);" (call_expression "waddch(DAT_0007b65c,0x24)" (identifier "waddch") (argument_list "(DAT_0007b65c,0x24)" (( "(") (identifier "DAT_0007b65c") (, ",") (number_literal "0x24") () ")"))) (; ";")) (} "}"))) (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" (identifier "local_30") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }" (if "if") (parenthesized_expression "((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0'))" (( "(") (binary_expression "(DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')" (parenthesized_expression "(DAT_0007b58c != '\0')" (( "(") (binary_expression "DAT_0007b58c != '\0'" (identifier "DAT_0007b58c") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(DAT_0007b68c == '\0')" (( "(") (binary_expression "DAT_0007b68c == '\0'" (identifier "DAT_0007b68c") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      local_30 = 1;\n      FUN_00044960(DAT_0007b588,DAT_0007b584);\n    }" ({ "{") (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" (identifier "local_30") (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_00044960(DAT_0007b588,DAT_0007b584);" (call_expression "FUN_00044960(DAT_0007b588,DAT_0007b584)" (identifier "FUN_00044960") (argument_list "(DAT_0007b588,DAT_0007b584)" (( "(") (identifier "DAT_0007b588") (, ",") (identifier "DAT_0007b584") () ")"))) (; ";")) (} "}"))) (} "}")))) (return_statement "return local_30;" (return "return") (identifier "local_30") (; ";")) (} "}")))

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

int function_1(type_1 *fileptr,size_t index)

{
  type_2 *puVar1;
  type_3 *pWVar2;
  size_t var_13;
  char *converted;
  size_t var_16;
  int var_2;
  int var_6;
  int local_30;
  
  pWVar2 = edit;
  puVar1 = PTR_COLS_0007af78;
  if (((type_4)flags[1] & 2) != 0) {
    var_2 = var_1(fileptr);
    return var_2;
  }
  var_2 = fileptr->lineno - openfile->edittop->lineno;
  if ((var_2 < 0) || (var_3 <= var_2)) {
    var_4(ALERT,"Badness: tried to display a line on row %i -- please report a bug",var_2);
    local_30 = 0;
  }
  else {
    var_6 = *(int *)PTR_COLS_0007af78;
    var_5(edit,var_2,0);
    if (0 < var_6) {
      do {
        var_7(pWVar2,0x20);
        var_6 = var_6 + -1;
      } while (var_6 != 0);
    }
    var_13 = var_8(fileptr->data,index);
    var_13 = var_9(var_13);
    converted = var_10(fileptr->data,var_13,var_15,true);
    var_11(fileptr,converted,var_2,var_13);
    var_12(converted);
    if ((var_13 != 0) && (var_6 = var_5(edit,var_2,margin), var_6 != -1)) {
      var_7(edit,0x24);
    }
    var_16 = var_14(fileptr->data);
    if ((var_13 + var_15 < var_16) &&
       (var_2 = var_5(edit,var_2,*(int *)puVar1 + -1), var_2 != -1)) {
      var_7(edit,0x24);
    }
    local_30 = 1;
    if ((var_17 != false) && (var_18 == false)) {
      local_30 = 1;
      var_19(light_from_col,light_to_col);
    }
  }
  return local_30;
}


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

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

undefined4 MASKED(undefined4 *param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  void *__ptr;
  uint uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 local_30;
  
  uVar2 = DAT_0007b65c;
  puVar1 = PTR_COLS_0007af78;
  if ((DAT_0007b668 & 2) != 0) {
    uVar2 = FUN_00044ae0();
    return uVar2;
  }
  iVar5 = param_1[1] - *(int *)(*(int *)(DAT_0007b640 + 0xc) + 4);
  if ((iVar5 < 0) || (DAT_0007b654 <= iVar5)) {
    FUN_00040b60(3,"Badness: tried to display a line on row %i -- please report a bug",iVar5);
    local_30 = 0;
  }
  else {
    iVar6 = *(int *)PTR_COLS_0007af78;
    wmove(DAT_0007b65c,iVar5,0);
    if (0 < iVar6) {
      do {
        waddch(uVar2,0x20);
        iVar6 = iVar6 + -1;
      } while (iVar6 != 0);
    }
    uVar2 = FUN_0003e040(*param_1,param_2);
    iVar6 = FUN_0003dec0(uVar2);
    __ptr = (void *)FUN_0003fe90(*param_1,iVar6,DAT_0007b06c,1);
    FUN_00041aa0(param_1,__ptr,iVar5,iVar6);
    free(__ptr);
    if ((iVar6 != 0) && (iVar4 = wmove(DAT_0007b65c,iVar5,DAT_0007b650), iVar4 != -1)) {
      waddch(DAT_0007b65c,0x24);
    }
    uVar3 = FUN_0003e0c0(*param_1);
    if (((uint)(iVar6 + DAT_0007b06c) < uVar3) &&
       (iVar5 = wmove(DAT_0007b65c,iVar5,*(int *)puVar1 + -1), iVar5 != -1)) {
      waddch(DAT_0007b65c,0x24);
    }
    local_30 = 1;
    if ((DAT_0007b58c != '\0') && (DAT_0007b68c == '\0')) {
      local_30 = 1;
      FUN_00044960(DAT_0007b588,DAT_0007b584);
    }
  }
  return local_30;
}

