// File: /workspace/github_c_makefile_star2_O0/vasusharma7[P]Text-Editor/stdedit.c
// Function: options
void options(){
    int y,x;
    getyx(stdscr,y,x);
    WINDOW *options = create_newwin(36,70 ,by/15,bx/4);
    mvwprintw(options,2,2,"COPY - F6 or CTRL + C");
    mvwprintw(options,4,2,"COPY - F3 or CTRL + X");
    mvwprintw(options,6,2,"PASTE  - F12 or CTRL + V");
    mvwprintw(options,8,2,"CLIPBOARD - %s",clip);
    if(Mmode == 0)
        mvwprintw(options,10,2,"ENABLE MOUSE MODE - F4 + M");
    else
        mvwprintw(options,10,2,"DISABLE MOUSE MODE - F4 + N");

    mvwprintw(options,12,2,"GOTO LINE NUMBER - G");
    mvwprintw(options,14,2,"REPLACE - F4 + R or CTRL + R");
    mvwprintw(options,16,2,"SEARCH - F4 + F or CTRL + F");
    mvwprintw(options,18,2,"EXIT - F2 or CTRL + W");
    mvwprintw(options,20,2,"SAVE - F5");
    mvwprintw(options,22,2,"SAVE AND EXIT- F5 + Q");
    mvwprintw(options,24,2,"SUGGESTIONS - TAB");
    mvwprintw(options,26,2,"NO. OF LINES - %d",lines+1);
    mvwprintw(options,28,2,"ELSE PRESS ANY OTHER KEY TO RETURN TO EDITOR");

    wrefresh(options);
    char ch = getch();
    destroy_win(options);
    if(ch == 'g' || ch == 'G'){
        goto_line();
        return;
    }
    clear();
    display(stline);
    move(y,x);
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
xorl %eax, %eax
movq 0x7caf(%rip), %rcx      # 0xcfe0
cmpq (%rcx), %rax
je 0x5348
movq 0x7ca3(%rip), %rax      # 0xcfe0
movq (%rax), %rax
movswl (%rax), %eax
movl %eax, -0x18(%rbp)
jmp 0x5352
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x18(%rbp)
jmp 0x5352
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
xorl %eax, %eax
movq 0x7c7f(%rip), %rcx      # 0xcfe0
cmpq (%rcx), %rax
je 0x5379
movq 0x7c73(%rip), %rax      # 0xcfe0
movq (%rax), %rax
movswl 0x2(%rax), %eax
movl %eax, -0x1c(%rbp)
jmp 0x5383
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x1c(%rbp)
jmp 0x5383
movl -0x1c(%rbp), %eax
movl %eax, -0x8(%rbp)
leaq 0x7e04(%rip), %rax      # 0xd194
movl (%rax), %eax
movl $0xf, %ecx
cltd
idivl %ecx
movl %eax, -0x20(%rbp)
leaq 0x7df8(%rip), %rax      # 0xd19c
movl (%rax), %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl -0x20(%rbp), %edx
movl %eax, %ecx
movl $0x24, %edi
movl $0x46, %esi
callq 0x2b30
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movl $0x2, %edx
leaq 0x4cd7(%rip), %rcx      # 0xa0ad
movl %edx, %esi
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
movl $0x4, %esi
movl $0x2, %edx
leaq 0x4ccf(%rip), %rcx      # 0xa0c3
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
movl $0x6, %esi
movl $0x2, %edx
leaq 0x4cc9(%rip), %rcx      # 0xa0d9
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
leaq 0x7d96(%rip), %rax      # 0xd1b8
movq (%rax), %r8
movl $0x8, %esi
movl $0x2, %edx
leaq 0x4cbc(%rip), %rcx      # 0xa0f2
movb $0x0, %al
callq 0x2100
leaq 0x7d6c(%rip), %rax      # 0xd1b0
cmpl $0x0, (%rax)
jne 0x5467
movq -0x10(%rbp), %rdi
movl $0xa, %esi
movl $0x2, %edx
leaq 0x4ca3(%rip), %rcx      # 0xa101
movb $0x0, %al
callq 0x2100
jmp 0x5483
movq -0x10(%rbp), %rdi
movl $0xa, %esi
movl $0x2, %edx
leaq 0x4ca0(%rip), %rcx      # 0xa11c
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
movl $0xc, %esi
movl $0x2, %edx
leaq 0x4ca0(%rip), %rcx      # 0xa138
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
movl $0xe, %esi
movl $0x2, %edx
leaq 0x4c99(%rip), %rcx      # 0xa14d
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
movl $0x10, %esi
movl $0x2, %edx
leaq 0x4c9a(%rip), %rcx      # 0xa16a
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
movl $0x12, %esi
movl $0x2, %edx
leaq 0x4c9a(%rip), %rcx      # 0xa186
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
movl $0x14, %esi
movl $0x2, %edx
leaq 0x4c94(%rip), %rcx      # 0xa19c
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
movl $0x16, %esi
movl $0x2, %edx
leaq 0x4c82(%rip), %rcx      # 0xa1a6
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
movl $0x18, %esi
movl $0x2, %edx
leaq 0x4c7c(%rip), %rcx      # 0xa1bc
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
leaq 0x7c3e(%rip), %rax      # 0xd190
movl (%rax), %r8d
addl $0x1, %r8d
movl $0x1a, %esi
movl $0x2, %edx
leaq 0x4c64(%rip), %rcx      # 0xa1ce
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
movl $0x1c, %esi
movl $0x2, %edx
leaq 0x4c5a(%rip), %rcx      # 0xa1e0
movb $0x0, %al
callq 0x2100
movq -0x10(%rbp), %rdi
callq 0x20f0
movq 0x7a43(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
callq 0x2080
movb %al, -0x11(%rbp)
movq -0x10(%rbp), %rdi
callq 0x2bb0
movsbl -0x11(%rbp), %eax
cmpl $0x67, %eax
je 0x55c3
movsbl -0x11(%rbp), %eax
cmpl $0x47, %eax
jne 0x55ca
callq 0x6620
jmp 0x55fc
movq 0x7a0f(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
callq 0x2090
leaq 0x7bc4(%rip), %rax      # 0xd1a4
movl (%rax), %edi
callq 0x2cb0
movq 0x79f2(%rip), %rax      # 0xcfe0
movq (%rax), %rdi
movl -0x4(%rbp), %esi
movl -0x8(%rbp), %edx
callq 0x2240
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)