// File: /workspace/github_cpp_makefile_star2_O3/phillip-h[P]todo/src/draw.cpp
// Function: drawControls()
void drawControls()
{
    controlWin->clear();
    stringstream line;
    
    controlWin->move(0, 0);
    line << "[" << ((char) EXIT_KEY) << "] quit          ";
    line << "[Space] new task          ";
    line << "[" << ((char) MOVE_UP_KEY) << "] move task up  ";
    controlWin->print(line.str());
    line.str("");

    controlWin->move(0, 1);
    line << "[" << ((char) REMOVE_KEY) << "] delete task   ";
    line << "[Return] mark task done   ";
    line << "[" << ((char) MOVE_DOWN_KEY) << "] move task down  ";
    controlWin->print(line.str());
    line.str("");

    controlWin->color(BORDER_COLOR_PAIR, true);
    controlWin->draw();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1f0, %rsp            # imm = 0x1F0
movq 0x966a(%rip), %rdi      # 0x10670
callq 0xb56e
leaq 0x68(%rsp), %rdi
callq 0x3200
movq 0x9654(%rip), %rdi      # 0x10670
xorl %esi, %esi
xorl %edx, %edx
callq 0xb6f0
leaq 0x78(%rsp), %rbx
leaq 0x544b(%rip), %rsi      # 0xc47c
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x8(%rsp), %rsi
movb $0x71, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x5455(%rip), %rsi      # 0xc4af
movl $0x10, %edx
movq %rax, %rdi
callq 0x3310
leaq 0x5452(%rip), %rsi      # 0xc4c0
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x53fa(%rip), %rsi      # 0xc47c
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x8(%rsp), %rsi
movb $0x6b, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x5430(%rip), %rsi      # 0xc4db
movl $0x10, %edx
movq %rax, %rdi
callq 0x3310
movq 0x95b1(%rip), %r15      # 0x10670
leaq 0x80(%rsp), %r14
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x3480
leaq 0x48(%rsp), %rsi
movq %r15, %rdi
callq 0xb6fe
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x70fc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5384(%rip), %rdx      # 0xc490
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x5c8a
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x33f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x713d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x952c(%rip), %rdi      # 0x10670
xorl %esi, %esi
movl $0x1, %edx
callq 0xb6f0
leaq 0x5325(%rip), %rsi      # 0xc47c
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x8(%rsp), %rsi
movb $0x64, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x536c(%rip), %rsi      # 0xc4ec
movl $0x10, %edx
movq %rax, %rdi
callq 0x3310
leaq 0x5369(%rip), %rsi      # 0xc4fd
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x52d4(%rip), %rsi      # 0xc47c
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x8(%rsp), %rsi
movb $0x6a, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x5347(%rip), %rsi      # 0xc518
movl $0x12, %edx
movq %rax, %rdi
callq 0x3310
movq 0x948b(%rip), %rbx      # 0x10670
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x3480
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0xb6fe
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x721a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x5267(%rip), %rdx      # 0xc490
movq %rdx, %rsi
callq 0x5c8a
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x33f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7255
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x9414(%rip), %rdi      # 0x10670
movl $0x4, %esi
movl $0x1, %edx
callq 0xb71e
movq 0x93fe(%rip), %rdi      # 0x10670
callq 0xb584
movq 0x8d1a(%rip), %rsi      # 0xff98
leaq 0x68(%rsp), %rdi
callq 0x3220
leaq 0xe8(%rsp), %rdi
callq 0x3120
addq $0x1f0, %rsp            # imm = 0x1F0
popq %rbx
popq %r14
popq %r15
retq
jmp 0x72be
jmp 0x72f4
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x72f7
movq 0x38(%rsp), %rsi
jmp 0x72ea
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x72f7
movq 0x18(%rsp), %rsi
jmp 0x72ea
jmp 0x72f4
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x72f7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x72f7
movq %rax, %rbx
movq 0x8c9a(%rip), %rsi      # 0xff98
leaq 0x68(%rsp), %rdi
callq 0x3220
leaq 0xe8(%rsp), %rdi
callq 0x3120
movq %rbx, %rdi
callq 0x3500