// File: syky27[P]TicTacToe/src/DNWindow.cpp
// Function: DNWindow::drawHeaderWithGuide(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void DNWindow::drawHeaderWithGuide(string guide)
{
    
    int x_pos, y_pos;
    
    getsyx(y_pos, x_pos);
    
    move(0,0);
    
    
    struct winsize w;
    ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
    for (int i = 0; i < w.ws_col; i++) {
        if (i == 0) {
            addch(ACS_ULCORNER);
            continue;
        }
        if (i == w.ws_col - 1) {
            addch(ACS_URCORNER);
            continue;
        }
        addch(ACS_HLINE);
    }
    addch(ACS_VLINE);
    printw(guide.c_str());
    move(1, w.ws_col - 1);
    addch(ACS_VLINE);
    for (int i = 0; i < w.ws_col; i++) {
        if (i == 0) {
            addch(ACS_LLCORNER);
            continue;
        }
        if (i == w.ws_col - 1) {
            addch(ACS_LRCORNER);
            continue;
        }
        addch(ACS_HLINE);
    }
    move(y_pos,x_pos);
    refreshDN();

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0x72a5(%rip), %rax      # 0x10fc8
cmpq $0x0, (%rax)
je 0x9dd4
xorl %eax, %eax
movq 0x7292(%rip), %rcx      # 0x10fc8
cmpq (%rcx), %rax
je 0x9d52
movq 0x7286(%rip), %rax      # 0x10fc8
movq (%rax), %rax
movb 0x1a(%rax), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x3c(%rbp)
jmp 0x9d59
xorl %eax, %eax
movl %eax, -0x3c(%rbp)
jmp 0x9d59
movl -0x3c(%rbp), %eax
cmpl $0x0, %eax
je 0x9d71
movl $0xffffffff, -0x14(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0x18(%rbp) # imm = 0xFFFFFFFF
jmp 0x9dd2
xorl %eax, %eax
movq 0x724e(%rip), %rcx      # 0x10fc8
cmpq (%rcx), %rax
je 0x9d91
movq 0x7242(%rip), %rax      # 0x10fc8
movq (%rax), %rax
movswl (%rax), %eax
movl %eax, -0x40(%rbp)
jmp 0x9d9b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x40(%rbp)
jmp 0x9d9b
movl -0x40(%rbp), %eax
movl %eax, -0x18(%rbp)
xorl %eax, %eax
movq 0x721e(%rip), %rcx      # 0x10fc8
cmpq (%rcx), %rax
je 0x9dc2
movq 0x7212(%rip), %rax      # 0x10fc8
movq (%rax), %rax
movswl 0x2(%rax), %eax
movl %eax, -0x44(%rbp)
jmp 0x9dcc
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x44(%rbp)
jmp 0x9dcc
movl -0x44(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x9dd4
jmp 0x9dd6
xorl %esi, %esi
movl %esi, %edi
callq 0x3260
movl $0x1, %edi
movl $0x5413, %esi           # imm = 0x5413
leaq -0x20(%rbp), %rdx
movb $0x0, %al
callq 0x34f0
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movzwl -0x1e(%rbp), %ecx
cmpl %ecx, %eax
jge 0x9e80
cmpl $0x0, -0x24(%rbp)
jne 0x9e2a
movq 0x71bd(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movq 0x718b(%rip), %rax      # 0x10fa8
movl 0x1b0(%rax), %esi
callq 0x3100
jmp 0x9e72
movl -0x24(%rbp), %eax
movzwl -0x1e(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x9e56
movq 0x7191(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movq 0x715f(%rip), %rax      # 0x10fa8
movl 0x1ac(%rax), %esi
callq 0x3100
jmp 0x9e72
movq 0x7173(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movq 0x7141(%rip), %rax      # 0x10fa8
movl 0x1c4(%rax), %esi
callq 0x3100
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x9dfb
movq 0x7149(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movq 0x7117(%rip), %rax      # 0x10fa8
movl 0x1e0(%rax), %esi
callq 0x3100
movq -0x38(%rbp), %rdi
callq 0x3180
movq %rax, %rdi
movb $0x0, %al
callq 0x3380
movzwl -0x1e(%rbp), %esi
subl $0x1, %esi
movl $0x1, %edi
callq 0x3260
movq 0x7109(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movq 0x70d7(%rip), %rax      # 0x10fa8
movl 0x1e0(%rax), %esi
callq 0x3100
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
movzwl -0x1e(%rbp), %ecx
cmpl %ecx, %eax
jge 0x9f68
cmpl $0x0, -0x28(%rbp)
jne 0x9f12
movq 0x70d5(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movq 0x70a3(%rip), %rax      # 0x10fa8
movl 0x1b4(%rax), %esi
callq 0x3100
jmp 0x9f5a
movl -0x28(%rbp), %eax
movzwl -0x1e(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x9f3e
movq 0x70a9(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movq 0x7077(%rip), %rax      # 0x10fa8
movl 0x1a8(%rax), %esi
callq 0x3100
jmp 0x9f5a
movq 0x708b(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
movq 0x7059(%rip), %rax      # 0x10fa8
movl 0x1c4(%rax), %esi
callq 0x3100
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x9ee3
movl -0x18(%rbp), %edi
movl -0x14(%rbp), %esi
callq 0x3260
movq -0x30(%rbp), %rdi
callq 0x9ce0
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)