// File: syky27[P]TicTacToe/src/DNWindow.cpp
// Function: DNWindow::drawOptions()
void DNWindow::drawOptions()
{

    refresh();
    struct winsize w;
    ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
    start_color();
    init_pair(1, COLOR_RED, COLOR_BLACK);

    mvprintw(w.ws_row / 3, w.ws_col / 10, "( ) Human vs. Human");
    mvprintw(w.ws_row / 3 + 1, w.ws_col / 10, "( ) Human vs. CPU");
    mvprintw(w.ws_row / 3 + 2, w.ws_col / 10, "( ) Human vs. Remote Human");
    mvprintw(w.ws_row / 3 + 3, w.ws_col / 10, "( ) Spectate 2 CPU");
    //mvprintw(w.ws_row / 3 + 5, w.ws_col / 10, "( ) Info");
    mvprintw(w.ws_row / 3 + 6, w.ws_col / 10, "( ) Quit");
    attron(COLOR_PAIR(1));

    mvaddch(w.ws_row / 3, w.ws_col / 10 + 1, '1');
    mvaddch(w.ws_row / 3 + 1, w.ws_col / 10 + 1, '2');
    mvaddch(w.ws_row / 3 + 2, w.ws_col / 10 + 1, '3');
    mvaddch(w.ws_row / 3 + 3, w.ws_col / 10 + 1, '4');
    
    //mvaddch(w.ws_row / 3 + 5, w.ws_col / 10 + 1, 'I');
    mvaddch(w.ws_row / 3 + 6, w.ws_col / 10 + 1, 'Q');
    attroff(COLOR_PAIR(1));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
callq 0x35a0
movl $0x1, %edi
movl $0x5413, %esi           # imm = 0x5413
leaq -0x10(%rbp), %rdx
movb $0x0, %al
callq 0x34f0
callq 0x30b0
movl $0x1, %esi
xorl %edx, %edx
movl %esi, %edi
callq 0x3070
movzwl -0x10(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %edi
movzwl -0xe(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, %esi
leaq 0x24bf(%rip), %rdx      # 0xc4ab
movb $0x0, %al
callq 0x34d0
movzwl -0x10(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %edi
addl $0x1, %edi
movzwl -0xe(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, %esi
leaq 0x24a6(%rip), %rdx      # 0xc4bf
movb $0x0, %al
callq 0x34d0
movzwl -0x10(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %edi
addl $0x2, %edi
movzwl -0xe(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, %esi
leaq 0x248b(%rip), %rdx      # 0xc4d1
movb $0x0, %al
callq 0x34d0
movzwl -0x10(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %edi
addl $0x3, %edi
movzwl -0xe(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, %esi
leaq 0x2479(%rip), %rdx      # 0xc4ec
movb $0x0, %al
callq 0x34d0
movzwl -0x10(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %edi
addl $0x6, %edi
movzwl -0xe(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, %esi
leaq 0x245f(%rip), %rdx      # 0xc4ff
movb $0x0, %al
callq 0x34d0
movq 0x6f22(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movl $0x100, %esi            # imm = 0x100
xorl %eax, %eax
movl %eax, %edx
callq 0x31c0
movq 0x6f0a(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movzwl -0x10(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %esi
movzwl -0xe(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, %edx
addl $0x1, %edx
callq 0x33c0
cmpl $-0x1, %eax
jne 0xa0f4
jmp 0xa108
movq 0x6ed5(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movl $0x31, %esi
callq 0x3100
movq 0x6ec1(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movzwl -0x10(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %esi
addl $0x1, %esi
movzwl -0xe(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, %edx
addl $0x1, %edx
callq 0x33c0
cmpl $-0x1, %eax
jne 0xa140
jmp 0xa154
movq 0x6e89(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movl $0x32, %esi
callq 0x3100
movq 0x6e75(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movzwl -0x10(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %esi
addl $0x2, %esi
movzwl -0xe(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, %edx
addl $0x1, %edx
callq 0x33c0
cmpl $-0x1, %eax
jne 0xa18c
jmp 0xa1a0
movq 0x6e3d(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movl $0x33, %esi
callq 0x3100
movq 0x6e29(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movzwl -0x10(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %esi
addl $0x3, %esi
movzwl -0xe(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, %edx
addl $0x1, %edx
callq 0x33c0
cmpl $-0x1, %eax
jne 0xa1d8
jmp 0xa1ec
movq 0x6df1(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movl $0x34, %esi
callq 0x3100
movq 0x6ddd(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movzwl -0x10(%rbp), %eax
movl $0x3, %ecx
cltd
idivl %ecx
movl %eax, %esi
addl $0x6, %esi
movzwl -0xe(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, %edx
addl $0x1, %edx
callq 0x33c0
cmpl $-0x1, %eax
jne 0xa224
jmp 0xa238
movq 0x6da5(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movl $0x51, %esi
callq 0x3100
movq 0x6d91(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movl $0x100, %esi            # imm = 0x100
xorl %eax, %eax
movl %eax, %edx
callq 0x34c0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)