// File: /workspace/github_c_makefile_star2_O2/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 0x619e(%rip), %r14      # 0x9fe0
movq (%r14), %rax
testq %rax, %rax
je 0x3e56
movswl (%rax), %ebx
movswl 0x2(%rax), %eax
movl %eax, -0x2c(%rbp)
jmp 0x3e5c
pushq $-0x1
popq %rbx
movl %ebx, -0x2c(%rbp)
leaq 0x6329(%rip), %rax      # 0xa18c
movl (%rax), %eax
pushq $0xf
popq %rcx
cltd
idivl %ecx
movl %eax, %ecx
leaq 0x6320(%rip), %rax      # 0xa194
movl (%rax), %eax
pushq $0x4
popq %r13
cltd
idivl %r13d
pushq $0x24
popq %rdi
pushq $0x46
popq %rsi
movl %ecx, %edx
movl %eax, %ecx
callq 0x26cc
movq %rax, %r15
leaq 0x3226(%rip), %rcx      # 0x70bd
pushq $0x2
popq %r12
movq %rax, %rdi
movl %r12d, %esi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3221(%rip), %rcx      # 0x70d3
movq %r15, %rdi
movl %r13d, %esi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3220(%rip), %rcx      # 0x70e9
pushq $0x6
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x62d0(%rip), %rax      # 0xa1b0
movq (%rax), %r8
leaq 0x3218(%rip), %rcx      # 0x7102
pushq $0x8
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x62a7(%rip), %rax      # 0xa1a8
cmpl $0x0, (%rax)
leaq 0x3206(%rip), %rax      # 0x7111
leaq 0x321a(%rip), %rcx      # 0x712c
cmoveq %rax, %rcx
pushq $0xa
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x321b(%rip), %rcx      # 0x7148
pushq $0xc
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3219(%rip), %rcx      # 0x715d
pushq $0xe
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x321f(%rip), %rcx      # 0x717a
pushq $0x10
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3224(%rip), %rcx      # 0x7196
pushq $0x12
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3223(%rip), %rcx      # 0x71ac
pushq $0x14
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3216(%rip), %rcx      # 0x71b6
pushq $0x16
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x3215(%rip), %rcx      # 0x71cc
pushq $0x18
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x61ba(%rip), %rax      # 0xa188
movl (%rax), %r8d
incl %r8d
leaq 0x3203(%rip), %rcx      # 0x71de
pushq $0x1a
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
leaq 0x31fe(%rip), %rcx      # 0x71f0
pushq $0x1c
popq %rsi
movq %r15, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2110
movq %r15, %rdi
callq 0x2100
movq (%r14), %rdi
callq 0x2090
movl %eax, %r12d
movq %r15, %rdi
callq 0x271c
andl $0xdf, %r12d
cmpl $0x47, %r12d
jne 0x403d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x499b
movq (%r14), %rdi
callq 0x20a0
leaq 0x6150(%rip), %rax      # 0xa19c
movl (%rax), %edi
callq 0x27dc
movq (%r14), %rdi
movl %ebx, %esi
movl -0x2c(%rbp), %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2230