// File: /workspace/github_cpp_makefile_star2_O1/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 0x9576(%rip), %rdi      # 0x10670
callq 0xb71e
leaq 0x68(%rsp), %rdi
callq 0x3200
movq 0x9560(%rip), %rdi      # 0x10670
xorl %esi, %esi
xorl %edx, %edx
callq 0xb8a0
leaq 0x78(%rsp), %rbx
leaq 0x5357(%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 0x5361(%rip), %rsi      # 0xc4af
movl $0x10, %edx
movq %rax, %rdi
callq 0x3310
leaq 0x535e(%rip), %rsi      # 0xc4c0
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x5306(%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 0x533c(%rip), %rsi      # 0xc4db
movl $0x10, %edx
movq %rax, %rdi
callq 0x3310
movq 0x94bd(%rip), %r15      # 0x10670
leaq 0x80(%rsp), %r14
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x3480
leaq 0x48(%rsp), %rsi
movq %r15, %rdi
callq 0xb8ae
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x71f0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5290(%rip), %rdx      # 0xc490
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x5d4c
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x33f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7231
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x9438(%rip), %rdi      # 0x10670
xorl %esi, %esi
movl $0x1, %edx
callq 0xb8a0
leaq 0x5231(%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 0x5278(%rip), %rsi      # 0xc4ec
movl $0x10, %edx
movq %rax, %rdi
callq 0x3310
leaq 0x5275(%rip), %rsi      # 0xc4fd
movl $0x1a, %edx
movq %rbx, %rdi
callq 0x3310
leaq 0x51e0(%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 0x5253(%rip), %rsi      # 0xc518
movl $0x12, %edx
movq %rax, %rdi
callq 0x3310
movq 0x9397(%rip), %rbx      # 0x10670
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x3480
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0xb8ae
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x730e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x5173(%rip), %rdx      # 0xc490
movq %rdx, %rsi
callq 0x5d4c
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x33f0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7349
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x9320(%rip), %rdi      # 0x10670
movl $0x4, %esi
movl $0x1, %edx
callq 0xb8ce
movq 0x930a(%rip), %rdi      # 0x10670
callq 0xb734
movq 0x8c26(%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 0x73b2
jmp 0x73e8
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73eb
movq 0x38(%rsp), %rsi
jmp 0x73de
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x73eb
movq 0x18(%rsp), %rsi
jmp 0x73de
jmp 0x73e8
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73eb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x73eb
movq %rax, %rbx
movq 0x8ba6(%rip), %rsi      # 0xff98
leaq 0x68(%rsp), %rdi
callq 0x3220
leaq 0xe8(%rsp), %rdi
callq 0x3120
movq %rbx, %rdi
callq 0x3500