// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
callq 0x34a0
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %rbx
movl $0x5413, %esi           # imm = 0x5413
movl %ebp, %edi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x3400
callq 0x3080
movl %ebp, %edi
movl %ebp, %esi
xorl %edx, %edx
callq 0x3050
movzwl (%rbx), %eax
movzwl 0x2(%rbx), %ecx
movw $0x3, %r15w
xorl %edx, %edx
divw %r15w
movzwl %ax, %edi
movw $0xa, %bp
movl %ecx, %eax
xorl %edx, %edx
divw %bp
movzwl %ax, %esi
leaq 0x1c65(%rip), %rdx      # 0x845f
xorl %eax, %eax
callq 0x33e0
movzwl (%rbx), %eax
movzwl 0x2(%rbx), %ecx
xorl %edx, %edx
divw %r15w
leal 0x1(%rax), %edi
movl $0xffff, %r12d          # imm = 0xFFFF
andl %r12d, %edi
movl %ecx, %eax
xorl %edx, %edx
divw %bp
movzwl %ax, %esi
leaq 0x1c48(%rip), %rdx      # 0x8473
xorl %eax, %eax
callq 0x33e0
movzwl (%rbx), %eax
movzwl 0x2(%rbx), %ecx
xorl %edx, %edx
divw %r15w
leal 0x2(%rax), %edi
andl %r12d, %edi
movl %ecx, %eax
xorl %edx, %edx
divw %bp
movzwl %ax, %esi
leaq 0x1c2f(%rip), %rdx      # 0x8485
xorl %eax, %eax
callq 0x33e0
movzwl (%rbx), %eax
movzwl 0x2(%rbx), %ecx
xorl %edx, %edx
divw %r15w
leal 0x3(%rax), %edi
andl %r12d, %edi
movl %ecx, %eax
xorl %edx, %edx
divw %bp
movzwl %ax, %esi
leaq 0x1c1f(%rip), %rdx      # 0x84a0
xorl %eax, %eax
callq 0x33e0
movzwl (%rbx), %eax
movzwl 0x2(%rbx), %ecx
xorl %edx, %edx
divw %r15w
leal 0x6(%rax), %edi
andl %r12d, %edi
movl %ecx, %eax
xorl %edx, %edx
divw %bp
movzwl %ax, %esi
leaq 0x1c07(%rip), %rdx      # 0x84b3
xorl %eax, %eax
callq 0x33e0
movq 0x5716(%rip), %r14      # 0xbfd0
movq (%r14), %rdi
movl $0x100, %esi            # imm = 0x100
xorl %edx, %edx
callq 0x3180
movq (%r14), %rdi
movzwl (%rbx), %eax
movzwl 0x2(%rbx), %ecx
xorl %edx, %edx
divw %r15w
movzwl %ax, %esi
movl %ecx, %eax
xorl %edx, %edx
divw %bp
leal 0x1(%rax), %edx
andl %r12d, %edx
callq 0x3320
cmpl $-0x1, %eax
je 0x68fe
movq (%r14), %rdi
pushq $0x31
popq %rsi
callq 0x30d0
movq (%r14), %rdi
movzwl 0x8(%rsp), %eax
movzwl 0xa(%rsp), %ecx
xorl %edx, %edx
divw %r15w
leal 0x1(%rax), %esi
andl %r12d, %esi
movl %ecx, %eax
xorl %edx, %edx
divw %bp
leal 0x1(%rax), %edx
andl %r12d, %edx
callq 0x3320
cmpl $-0x1, %eax
je 0x6939
movq (%r14), %rdi
pushq $0x32
popq %rsi
callq 0x30d0
movq (%r14), %rdi
movzwl 0x8(%rsp), %eax
movzwl 0xa(%rsp), %ecx
movw $0x3, %bp
xorl %edx, %edx
divw %bp
leal 0x2(%rax), %esi
movl $0xffff, %ebx           # imm = 0xFFFF
andl %ebx, %esi
movw $0xa, %r15w
movl %ecx, %eax
xorl %edx, %edx
divw %r15w
leal 0x1(%rax), %edx
andl %ebx, %edx
callq 0x3320
cmpl $-0x1, %eax
je 0x6980
movq (%r14), %rdi
pushq $0x33
popq %rsi
callq 0x30d0
movq (%r14), %rdi
movzwl 0x8(%rsp), %eax
movzwl 0xa(%rsp), %ecx
xorl %edx, %edx
divw %bp
leal 0x3(%rax), %esi
andl %ebx, %esi
movl %ecx, %eax
xorl %edx, %edx
divw %r15w
leal 0x1(%rax), %edx
andl %ebx, %edx
callq 0x3320
cmpl $-0x1, %eax
je 0x69b9
movq (%r14), %rdi
pushq $0x34
popq %rsi
callq 0x30d0
movq (%r14), %rdi
movzwl 0x8(%rsp), %eax
movzwl 0xa(%rsp), %ecx
movw $0x3, %si
xorl %edx, %edx
divw %si
leal 0x6(%rax), %esi
movl $0xffff, %r8d           # imm = 0xFFFF
andl %r8d, %esi
movw $0xa, %r9w
movl %ecx, %eax
xorl %edx, %edx
divw %r9w
leal 0x1(%rax), %edx
andl %r8d, %edx
callq 0x3320
cmpl $-0x1, %eax
je 0x6a03
movq (%r14), %rdi
pushq $0x51
popq %rsi
callq 0x30d0
movq (%r14), %rdi
movl $0x100, %esi            # imm = 0x100
xorl %edx, %edx
callq 0x33c0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop