// File: /workspace/github_c_makefile_star2_O0/vasusharma7[P]Text-Editor/stdedit.c
// Function: goto_line
void goto_line(){
    int q,v,u;
    WINDOW *lgoto = create_newwin(10,40,by/3,bx/3);
    mvwprintw(lgoto,2  ,1,  "HEY ! ENTER LINE NUMBER : -  \n");
    char ch[2] = {'\0'};
    char *querry = (char *)calloc(2,1);
    wmove(lgoto,4,1);
    ch[0] = wgetch(lgoto);
    while((ch[0] != '\n')  &&  (ch[0] != ' ')){
            if(ch[0] == KEY_BACKSPACE){
                ch[0] = wgetch(lgoto);
                continue;
            }
            getyx(lgoto,u,v);
            mvwprintw(lgoto,u,v++,ch);
            wrefresh(lgoto);
            strcat(querry,ch);
            querry = realloc(querry,strlen(querry) + 2);
            ch[0] = wgetch(lgoto);
    }
    q = atoi(querry);
    wclear(lgoto);
    box(lgoto,0,0);
    mvwprintw(lgoto,4,1,"LINE NUMBER  - %d",q);
    mvwprintw(lgoto,6,1,  "PRESS ANY KEY TO GO....GOING->\n");
    wrefresh(lgoto);
    getchar();
    clear();
    wclear(lgoto);
    int st = 1;
    if(fdr != -1){
        while((q > lines)){
            st = read_chunck();
            if(st == 0)
                    break;
        }
        //missing
    }
    if((st == 0) || q > lines){
            wclear(lgoto);
            box(lgoto,0,0);
            getyx(stdscr,u,v); 
            box(lgoto,0,0);
            mvwprintw(lgoto,2  ,1, "NO SUCH LINE EXITING \n");
            mvwprintw(lgoto,4,1,"Press any key to exit");
            wrefresh(lgoto);
            getchar();
            destroy_win(lgoto);
            clear();
            display(stline);
            move(u,v);
            return;
        }
        else{
            destroy_win(lgoto);
        }
    stline = q - (by - 5);
    if( stline <= 0){
        stline = 0;
        display_high(stline,0,q-1,getwidth(q-1) );
        move(q - 1,0);
    }
    else{
        display_high(stline,0,q-1,getwidth(q-1) );
        move(q - stline - 1,0);
    }
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
leaq 0x6b62(%rip), %rax      # 0xd194
movl (%rax), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, -0x30(%rbp)
leaq 0x6b56(%rip), %rax      # 0xd19c
movl (%rax), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl -0x30(%rbp), %edx
movl %eax, %ecx
movl $0xa, %edi
movl $0x28, %esi
callq 0x2b30
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movl $0x2, %esi
movl $0x1, %edx
leaq 0x3d72(%rip), %rcx      # 0xa3ef
movb $0x0, %al
callq 0x2100
leaq -0x1a(%rbp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x2110
movl $0x2, %edi
movl $0x1, %esi
callq 0x2180
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
movl $0x4, %esi
movl $0x1, %edx
callq 0x2240
movq -0x18(%rbp), %rdi
callq 0x2080
movb %al, -0x1a(%rbp)
movsbl -0x1a(%rbp), %ecx
xorl %eax, %eax
cmpl $0xa, %ecx
movb %al, -0x31(%rbp)
je 0x66e1
movsbl -0x1a(%rbp), %eax
cmpl $0x20, %eax
setne %al
movb %al, -0x31(%rbp)
movb -0x31(%rbp), %al
testb $0x1, %al
jne 0x66ed
jmp 0x67b8
movsbl -0x1a(%rbp), %eax
cmpl $0x107, %eax            # imm = 0x107
jne 0x6706
movq -0x18(%rbp), %rdi
callq 0x2080
movb %al, -0x1a(%rbp)
jmp 0x66c6
xorl %eax, %eax
cmpq -0x18(%rbp), %rax
je 0x671a
movq -0x18(%rbp), %rax
movswl (%rax), %eax
movl %eax, -0x38(%rbp)
jmp 0x6724
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x38(%rbp)
jmp 0x6724
movl -0x38(%rbp), %eax
movl %eax, -0xc(%rbp)
xorl %eax, %eax
cmpq -0x18(%rbp), %rax
je 0x673f
movq -0x18(%rbp), %rax
movswl 0x2(%rax), %eax
movl %eax, -0x3c(%rbp)
jmp 0x6749
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x3c(%rbp)
jmp 0x6749
movl -0x3c(%rbp), %eax
movl %eax, -0x8(%rbp)
movq -0x18(%rbp), %rdi
movl -0xc(%rbp), %esi
movl -0x8(%rbp), %edx
movl %edx, %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
leaq -0x1a(%rbp), %rcx
movb $0x0, %al
callq 0x2100
movq -0x18(%rbp), %rdi
callq 0x20f0
movq -0x28(%rbp), %rdi
leaq -0x1a(%rbp), %rsi
callq 0x2270
movq -0x28(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rdi
callq 0x20b0
movq -0x48(%rbp), %rdi
movq %rax, %rsi
addq $0x2, %rsi
callq 0x2210
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2080
movb %al, -0x1a(%rbp)
jmp 0x66c6
movq -0x28(%rbp), %rdi
callq 0x2260
movl %eax, -0x4(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2090
movq -0x18(%rbp), %rdi
xorl %r9d, %r9d
movl %r9d, %esi
movl %r9d, %edx
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
callq 0x2060
movq -0x18(%rbp), %rdi
movl -0x4(%rbp), %r8d
movl $0x4, %esi
movl $0x1, %edx
leaq 0x3bf9(%rip), %rcx      # 0xa40e
movb $0x0, %al
callq 0x2100
movq -0x18(%rbp), %rdi
movl $0x6, %esi
movl $0x1, %edx
leaq 0x3bef(%rip), %rcx      # 0xa420
movb $0x0, %al
callq 0x2100
movq -0x18(%rbp), %rdi
callq 0x20f0
callq 0x21a0
movq 0x6793(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
callq 0x2090
movq -0x18(%rbp), %rdi
callq 0x2090
movl $0x1, -0x2c(%rbp)
leaq 0x6934(%rip), %rax      # 0xd1a0
cmpl $-0x1, (%rax)
je 0x6895
jmp 0x6873
movl -0x4(%rbp), %eax
leaq 0x6913(%rip), %rcx      # 0xd190
cmpl (%rcx), %eax
jle 0x6893
callq 0x42d0
movl %eax, -0x2c(%rbp)
cmpl $0x0, -0x2c(%rbp)
jne 0x6891
jmp 0x6893
jmp 0x6873
jmp 0x6895
cmpl $0x0, -0x2c(%rbp)
je 0x68ad
movl -0x4(%rbp), %eax
leaq 0x68eb(%rip), %rcx      # 0xd190
cmpl (%rcx), %eax
jle 0x69fb
movq -0x18(%rbp), %rdi
callq 0x2090
movq -0x18(%rbp), %rdi
xorl %r9d, %r9d
movl %r9d, %esi
movl %r9d, %edx
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
callq 0x2060
xorl %eax, %eax
movq 0x66f2(%rip), %rcx      # 0xcfe0
cmpq (%rcx), %rax
je 0x6905
movq 0x66e6(%rip), %rax      # 0xcfe0
movq (%rax), %rax
movswl (%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0x690f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x4c(%rbp)
jmp 0x690f
movl -0x4c(%rbp), %eax
movl %eax, -0xc(%rbp)
xorl %eax, %eax
movq 0x66c2(%rip), %rcx      # 0xcfe0
cmpq (%rcx), %rax
je 0x6936
movq 0x66b6(%rip), %rax      # 0xcfe0
movq (%rax), %rax
movswl 0x2(%rax), %eax
movl %eax, -0x50(%rbp)
jmp 0x6940
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x50(%rbp)
jmp 0x6940
movl -0x50(%rbp), %eax
movl %eax, -0x8(%rbp)
movq -0x18(%rbp), %rdi
xorl %r9d, %r9d
movl %r9d, %esi
movl %r9d, %edx
movl %r9d, %ecx
movl %r9d, %r8d
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
callq 0x2060
movq -0x18(%rbp), %rdi
movl $0x2, %esi
movl $0x1, %edx
leaq 0x3ab6(%rip), %rcx      # 0xa440
movb $0x0, %al
callq 0x2100
movq -0x18(%rbp), %rdi
movl $0x4, %esi
movl $0x1, %edx
leaq 0x3ab1(%rip), %rcx      # 0xa457
movb $0x0, %al
callq 0x2100
movq -0x18(%rbp), %rdi
callq 0x20f0
callq 0x21a0
movq -0x18(%rbp), %rdi
callq 0x2bb0
movq 0x6615(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
callq 0x2090
leaq 0x67ca(%rip), %rax      # 0xd1a4
movl (%rax), %edi
callq 0x2cb0
movq 0x65f8(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
movl -0xc(%rbp), %esi
movl -0x8(%rbp), %edx
callq 0x2240
jmp 0x6ad0
movq -0x18(%rbp), %rdi
callq 0x2bb0
movl -0x4(%rbp), %ecx
leaq 0x6786(%rip), %rax      # 0xd194
movl (%rax), %eax
subl $0x5, %eax
subl %eax, %ecx
leaq 0x6788(%rip), %rax      # 0xd1a4
movl %ecx, (%rax)
leaq 0x677f(%rip), %rax      # 0xd1a4
cmpl $0x0, (%rax)
jg 0x6a7f
leaq 0x6773(%rip), %rax      # 0xd1a4
movl $0x0, (%rax)
leaq 0x6766(%rip), %rax      # 0xd1a4
movl (%rax), %eax
movl %eax, -0x58(%rbp)
movl -0x4(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x54(%rbp)
movl -0x4(%rbp), %edi
subl $0x1, %edi
callq 0x3ad0
movl -0x58(%rbp), %edi
movl -0x54(%rbp), %edx
movl %eax, %ecx
xorl %esi, %esi
callq 0x5610
movq 0x6573(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
movl -0x4(%rbp), %esi
subl $0x1, %esi
xorl %edx, %edx
callq 0x2240
jmp 0x6ace
leaq 0x671e(%rip), %rax      # 0xd1a4
movl (%rax), %eax
movl %eax, -0x60(%rbp)
movl -0x4(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x5c(%rbp)
movl -0x4(%rbp), %edi
subl $0x1, %edi
callq 0x3ad0
movl -0x60(%rbp), %edi
movl -0x5c(%rbp), %edx
movl %eax, %ecx
xorl %esi, %esi
callq 0x5610
movq 0x652b(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
movl -0x4(%rbp), %esi
leaq 0x66e2(%rip), %rax      # 0xd1a4
subl (%rax), %esi
subl $0x1, %esi
xorl %edx, %edx
callq 0x2240
jmp 0x6ad0
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)