// File: /workspace/github_c_makefile_star2_O3/vasusharma7[P]Text-Editor/stdedit.c
// Function: display_high
void display_high(int stline, int hx, int hy,int len){
    clear();
    move(0,0);
    int a,y,x;
    point *temp = data.front;
    for(a = 0; (a < stline) && (stline >=0); a++){
        temp = temp->tail;
    }
    int count = 1;
    while(temp){
        if(count >= (by - 3))
            break;
        node *row = temp->element.store;
        int check = 0;
        while(row->next){
            getyx(stdscr,y,x);
            if(((y+stline) == hy) && (x == hx)){
                wattron(stdscr,A_REVERSE);
                check = 1;
            }
            if(check == 1)
                len--;
            if(len  <= 0)
                wattroff(stdscr,A_REVERSE);    
            printw("%c",row->val);
            row = row->next;
        }
        count++;
        temp = temp->tail;
    }
    attroff(A_REVERSE);
    getyx(stdscr,y,x);
    refresh();
    line_num();
    move(y,x);
    return;
    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebx
movl %edx, -0x38(%rbp)
movl %esi, -0x30(%rbp)
movl %edi, %r15d
movq 0x5d7b(%rip), %r14      # 0x9fe0
movq (%r14), %rdi
callq 0x20a0
movq (%r14), %rdi
xorl %r14d, %r14d
xorl %esi, %esi
xorl %edx, %edx
callq 0x2230
testl %r15d, %r15d
movl %r15d, -0x34(%rbp)
cmovgl %r15d, %r14d
incl %r14d
leaq 0x5f47(%rip), %r13      # 0xa1d8
movq (%r13), %r13
decl %r14d
jne 0x4291
testq %r13, %r13
je 0x4379
movl $0x1, %ecx
leaq 0x5edd(%rip), %rax      # 0xa18c
movl (%rax), %eax
addl $-0x3, %eax
cmpl %eax, %ecx
jge 0x4379
movl %ecx, -0x2c(%rbp)
movq 0x8(%r13), %r14
cmpq $0x0, 0x10(%r14)
je 0x4367
leaq 0x10(%r14), %r15
xorl %r12d, %r12d
movq 0x5d04(%rip), %rax      # 0x9fe0
movq (%rax), %rdi
testq %rdi, %rdi
je 0x42ed
movswl (%rdi), %ecx
movswl 0x2(%rdi), %eax
jmp 0x42f7
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addl -0x34(%rbp), %ecx
cmpl -0x38(%rbp), %ecx
jne 0x431d
cmpl -0x30(%rbp), %eax
jne 0x431d
movl $0x40000, %esi          # imm = 0x40000
xorl %edx, %edx
callq 0x2160
movl $0x1, %r12d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x4328
xorl %eax, %eax
cmpl $0x1, %r12d
sete %al
negl %eax
addl %eax, %ebx
jg 0x4342
movq 0x5cad(%rip), %rax      # 0x9fe0
movq (%rax), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %edx, %edx
callq 0x22c0
movsbl 0x8(%r14), %esi
leaq 0x2cc6(%rip), %rdi      # 0x7014
xorl %eax, %eax
callq 0x2270
movq (%r15), %r14
leaq 0x10(%r14), %r15
cmpq $0x0, 0x10(%r14)
jne 0x42d5
movl -0x2c(%rbp), %ecx
incl %ecx
movq (%r13), %r13
testq %r13, %r13
jne 0x42a8
movq 0x5c60(%rip), %rbx      # 0x9fe0
movq (%rbx), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %edx, %edx
callq 0x22c0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x43a1
movswl (%rdi), %ebx
movswl 0x2(%rdi), %r14d
jmp 0x43ac
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
callq 0x2100
callq 0x27a5
movq 0x5c23(%rip), %rax      # 0x9fe0
movq (%rax), %rdi
movl %ebx, %esi
movl %r14d, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2230