// File: /workspace/github_c_makefile_star2_O0/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
subq $0x50, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl %ecx, -0x10(%rbp)
movq 0x79b5(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
callq 0x2090
movq 0x79a6(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x2240
leaq 0x7b93(%rip), %rax      # 0xd1e0
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %ecx
xorl %eax, %eax
cmpl -0x4(%rbp), %ecx
movb %al, -0x3d(%rbp)
jge 0x5672
cmpl $0x0, -0x4(%rbp)
setge %al
movb %al, -0x3d(%rbp)
movb -0x3d(%rbp), %al
testb $0x1, %al
jne 0x567b
jmp 0x5691
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x565b
movl $0x1, -0x2c(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x57dd
movl -0x2c(%rbp), %eax
leaq 0x7ae7(%rip), %rcx      # 0xd194
movl (%rcx), %ecx
subl $0x3, %ecx
cmpl %ecx, %eax
jl 0x56bb
jmp 0x57dd
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x57c4
xorl %eax, %eax
movq 0x78fa(%rip), %rcx      # 0xcfe0
cmpq (%rcx), %rax
je 0x56fd
movq 0x78ee(%rip), %rax      # 0xcfe0
movq (%rax), %rax
movswl (%rax), %eax
movl %eax, -0x44(%rbp)
jmp 0x5707
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x44(%rbp)
jmp 0x5707
movl -0x44(%rbp), %eax
movl %eax, -0x18(%rbp)
xorl %eax, %eax
movq 0x78ca(%rip), %rcx      # 0xcfe0
cmpq (%rcx), %rax
je 0x572e
movq 0x78be(%rip), %rax      # 0xcfe0
movq (%rax), %rax
movswl 0x2(%rax), %eax
movl %eax, -0x48(%rbp)
jmp 0x5738
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x48(%rbp)
jmp 0x5738
movl -0x48(%rbp), %eax
movl %eax, -0x1c(%rbp)
movl -0x18(%rbp), %eax
addl -0x4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jne 0x5770
movl -0x1c(%rbp), %eax
cmpl -0x8(%rbp), %eax
jne 0x5770
movq 0x7888(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %eax, %eax
movl %eax, %edx
callq 0x2160
movl $0x1, -0x3c(%rbp)
cmpl $0x1, -0x3c(%rbp)
jne 0x577f
movl -0x10(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x10(%rbp)
cmpl $0x0, -0x10(%rbp)
jg 0x579d
movq 0x7854(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %eax, %eax
movl %eax, %edx
callq 0x22d0
movq -0x38(%rbp), %rax
movsbl 0x8(%rax), %esi
leaq 0x4858(%rip), %rdi      # 0xa004
movb $0x0, %al
callq 0x2280
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x56ce
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
jmp 0x5698
movq 0x77fc(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
movl $0x40000, %esi          # imm = 0x40000
xorl %eax, %eax
movl %eax, %edx
callq 0x22d0
xorl %eax, %eax
movq 0x77e2(%rip), %rcx      # 0xcfe0
cmpq (%rcx), %rax
je 0x5815
movq 0x77d6(%rip), %rax      # 0xcfe0
movq (%rax), %rax
movswl (%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0x581f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x4c(%rbp)
jmp 0x581f
movl -0x4c(%rbp), %eax
movl %eax, -0x18(%rbp)
xorl %eax, %eax
movq 0x77b2(%rip), %rcx      # 0xcfe0
cmpq (%rcx), %rax
je 0x5846
movq 0x77a6(%rip), %rax      # 0xcfe0
movq (%rax), %rax
movswl 0x2(%rax), %eax
movl %eax, -0x50(%rbp)
jmp 0x5850
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x50(%rbp)
jmp 0x5850
movl -0x50(%rbp), %eax
movl %eax, -0x1c(%rbp)
movq 0x7783(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
callq 0x20f0
callq 0x2c10
movq 0x776f(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
movl -0x18(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0x2240
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)