// File: /workspace/github_c_makefile_star2_O1/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 0x5cf4(%rip), %r14      # 0x9fe0
movq (%r14), %rdi
callq 0x20a0
movq (%r14), %rdi
xorl %r14d, %r14d
xorl %esi, %esi
xorl %edx, %edx
callq 0x2230
leaq 0x5ece(%rip), %r13      # 0xa1d8
movq (%r13), %r13
testl %r15d, %r15d
js 0x431f
leal 0x1(%r14), %eax
cmpl %r15d, %r14d
movl %eax, %r14d
jl 0x430a
movl %r15d, -0x34(%rbp)
testq %r13, %r13
je 0x43fe
movl $0x1, %ecx
leaq 0x5e54(%rip), %rax      # 0xa18c
movl (%rax), %eax
addl $-0x3, %eax
cmpl %eax, %ecx
jge 0x43fe
movl %ecx, -0x2c(%rbp)
movq 0x8(%r13), %r14
cmpq $0x0, 0x10(%r14)
je 0x43ec
leaq 0x10(%r14), %r15
xorl %r12d, %r12d
movq 0x5c7b(%rip), %rax      # 0x9fe0
movq (%rax), %rdi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0x437a
movswl (%rdi), %ecx
testq %rdi, %rdi
je 0x4383
movswl 0x2(%rdi), %eax
addl -0x34(%rbp), %ecx
cmpl -0x38(%rbp), %ecx
jne 0x43a2
cmpl -0x30(%rbp), %eax
jne 0x43a2
movl $0x40000, %esi          # imm = 0x40000
xorl %edx, %edx
callq 0x2160
movl $0x1, %r12d
xorl %eax, %eax
cmpl $0x1, %r12d
sete %al
subl %eax, %ebx
testl %ebx, %ebx
jg 0x43c7
movq 0x5c28(%rip), %rax      # 0x9fe0
movq (%rax), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %edx, %edx
callq 0x22c0
movsbl 0x8(%r14), %esi
leaq 0x2c41(%rip), %rdi      # 0x7014
xorl %eax, %eax
callq 0x2270
movq (%r15), %r14
leaq 0x10(%r14), %r15
cmpq $0x0, 0x10(%r14)
jne 0x435e
movl -0x2c(%rbp), %ecx
incl %ecx
movq (%r13), %r13
testq %r13, %r13
jne 0x4331
movq 0x5bdb(%rip), %rbx      # 0x9fe0
movq (%rbx), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %edx, %edx
callq 0x22c0
movq (%rbx), %rdi
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0x442b
movswl (%rdi), %r14d
testq %rdi, %rdi
je 0x4434
movswl 0x2(%rdi), %ebx
callq 0x2100
callq 0x27bd
movq 0x5b9b(%rip), %rax      # 0x9fe0
movq (%rax), %rdi
movl %r14d, %esi
movl %ebx, %edx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2230