// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x5f94(%rip), %r13      # 0x9fe0
movq (%r13), %rax
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x4064
movswl (%rax), %r14d
testq %rax, %rax
je 0x406d
movswl 0x2(%rax), %ebx
leaq 0x6118(%rip), %rax      # 0xa18c
movslq (%rax), %rax
imulq $-0x77777777, %rax, %rdx # imm = 0x88888889
shrq $0x20, %rdx
addl %eax, %edx
movl %edx, %eax
shrl $0x1f, %eax
sarl $0x3, %edx
addl %eax, %edx
leaq 0x60ff(%rip), %rax      # 0xa194
movl (%rax), %eax
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x2, %ecx
movl $0x24, %edi
movl $0x46, %esi
callq 0x2720
movq %rax, %r15
leaq 0x3002(%rip), %rcx      # 0x70bd
movq %rax, %rdi
movl $0x2, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x2ffd(%rip), %rcx      # 0x70d3
movq %r15, %rdi
movl $0x4, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x2ff8(%rip), %rcx      # 0x70e9
movq %r15, %rdi
movl $0x6, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x60a4(%rip), %rax      # 0xa1b0
movq (%rax), %r8
leaq 0x2fec(%rip), %rcx      # 0x7102
movq %r15, %rdi
movl $0x8, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x6077(%rip), %rax      # 0xa1a8
cmpl $0x0, (%rax)
leaq 0x2fd6(%rip), %rax      # 0x7111
leaq 0x2fea(%rip), %rcx      # 0x712c
cmoveq %rax, %rcx
movq %r15, %rdi
movl $0xa, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x2fe7(%rip), %rcx      # 0x7148
movq %r15, %rdi
movl $0xc, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x2fe1(%rip), %rcx      # 0x715d
movq %r15, %rdi
movl $0xe, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x2fe3(%rip), %rcx      # 0x717a
movq %r15, %rdi
movl $0x10, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x2fe4(%rip), %rcx      # 0x7196
movq %r15, %rdi
movl $0x12, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x2fdf(%rip), %rcx      # 0x71ac
movq %r15, %rdi
movl $0x14, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x2fce(%rip), %rcx      # 0x71b6
movq %r15, %rdi
movl $0x16, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x2fc9(%rip), %rcx      # 0x71cc
movq %r15, %rdi
movl $0x18, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x5f6a(%rip), %rax      # 0xa188
movl (%rax), %r8d
incl %r8d
leaq 0x2fb3(%rip), %rcx      # 0x71de
movq %r15, %rdi
movl $0x1a, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x2faa(%rip), %rcx      # 0x71f0
movq %r15, %rdi
movl $0x1c, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
movq %r15, %rdi
callq 0x2100
movq (%r13), %rdi
callq 0x2090
movl %eax, %r12d
movq %r15, %rdi
callq 0x276e
andl $0xdf, %r12d
cmpl $0x47, %r12d
jne 0x4296
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4d06
movq (%r13), %rdi
callq 0x20a0
leaq 0x5ef6(%rip), %rax      # 0xa19c
movl (%rax), %edi
callq 0x2866
movq (%r13), %rdi
movl %r14d, %esi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2230