// File: /workspace/github_c_makefile_star2_O3/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 0x6018(%rip), %r13      # 0x9fe0
movq (%r13), %rax
testq %rax, %rax
je 0x3fdb
movswl (%rax), %ebx
movswl 0x2(%rax), %r14d
jmp 0x3fe6
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq 0x619f(%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 0x6186(%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 0x2708
movq %rax, %r15
leaq 0x3089(%rip), %rcx      # 0x70bd
movq %rax, %rdi
movl $0x2, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3084(%rip), %rcx      # 0x70d3
movq %r15, %rdi
movl $0x4, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x307f(%rip), %rcx      # 0x70e9
movq %r15, %rdi
movl $0x6, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x612b(%rip), %rax      # 0xa1b0
movq (%rax), %r8
leaq 0x3073(%rip), %rcx      # 0x7102
movq %r15, %rdi
movl $0x8, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x60fe(%rip), %rax      # 0xa1a8
cmpl $0x0, (%rax)
leaq 0x305d(%rip), %rax      # 0x7111
leaq 0x3071(%rip), %rcx      # 0x712c
cmoveq %rax, %rcx
movq %r15, %rdi
movl $0xa, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x306e(%rip), %rcx      # 0x7148
movq %r15, %rdi
movl $0xc, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3068(%rip), %rcx      # 0x715d
movq %r15, %rdi
movl $0xe, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x306a(%rip), %rcx      # 0x717a
movq %r15, %rdi
movl $0x10, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x306b(%rip), %rcx      # 0x7196
movq %r15, %rdi
movl $0x12, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3066(%rip), %rcx      # 0x71ac
movq %r15, %rdi
movl $0x14, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3055(%rip), %rcx      # 0x71b6
movq %r15, %rdi
movl $0x16, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3050(%rip), %rcx      # 0x71cc
movq %r15, %rdi
movl $0x18, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x5ff1(%rip), %rax      # 0xa188
movl (%rax), %r8d
incl %r8d
leaq 0x303a(%rip), %rcx      # 0x71de
movq %r15, %rdi
movl $0x1a, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3031(%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 0x2756
andl $0xdf, %r12d
cmpl $0x47, %r12d
jne 0x420f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4c6a
movq (%r13), %rdi
callq 0x20a0
leaq 0x5f7d(%rip), %rax      # 0xa19c
movl (%rax), %edi
callq 0x284e
movq (%r13), %rdi
movl %ebx, %esi
movl %r14d, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2230