// File: 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 %rbp
movq %rsp, %rbp
subq $0x290, %rsp            # imm = 0x290
movq 0xd846(%rip), %rdi      # 0x18748
callq 0x11ad0
leaq -0x188(%rbp), %rdi
callq 0x4280
movq 0xd82e(%rip), %rdi      # 0x18748
xorl %edx, %edx
movl %edx, %esi
callq 0x11cc0
jmp 0xaf25
leaq -0x178(%rbp), %rdi
leaq 0x7506(%rip), %rsi      # 0x12439
callq 0x4340
movq %rax, -0x230(%rbp)
jmp 0xaf41
movq -0x230(%rbp), %rdi
movl $0x71, %esi
callq 0x4440
movq %rax, -0x238(%rbp)
jmp 0xaf5b
movq -0x238(%rbp), %rdi
leaq 0x7500(%rip), %rsi      # 0x12469
callq 0x4340
jmp 0xaf70
leaq -0x178(%rbp), %rdi
leaq 0x74fc(%rip), %rsi      # 0x1247a
callq 0x4340
jmp 0xaf85
leaq -0x178(%rbp), %rdi
leaq 0x74a6(%rip), %rsi      # 0x12439
callq 0x4340
movq %rax, -0x240(%rbp)
jmp 0xafa1
movq -0x240(%rbp), %rdi
movl $0x6b, %esi
callq 0x4440
movq %rax, -0x248(%rbp)
jmp 0xafbb
movq -0x248(%rbp), %rdi
leaq 0x74cc(%rip), %rsi      # 0x12495
callq 0x4340
jmp 0xafd0
movq 0xd771(%rip), %rax      # 0x18748
movq %rax, -0x250(%rbp)
leaq -0x1b8(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x4330
jmp 0xaff3
movq -0x250(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
callq 0x11cf0
jmp 0xb008
leaq -0x1b8(%rbp), %rdi
callq 0x4738
leaq -0x1d9(%rbp), %rdi
movq %rdi, -0x258(%rbp)
callq 0x4690
movq -0x258(%rbp), %rdx
leaq 0x7415(%rip), %rsi      # 0x1244a
leaq -0x1d8(%rbp), %rdi
callq 0x85c0
jmp 0xb043
leaq -0x188(%rbp), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x4410
jmp 0xb058
leaq -0x1d8(%rbp), %rdi
callq 0x4738
leaq -0x1d9(%rbp), %rdi
callq 0x43d0
movq 0xd6d1(%rip), %rdi      # 0x18748
xorl %esi, %esi
movl $0x1, %edx
callq 0x11cc0
jmp 0xb085
leaq -0x178(%rbp), %rdi
leaq 0x73a6(%rip), %rsi      # 0x12439
callq 0x4340
movq %rax, -0x260(%rbp)
jmp 0xb0a1
movq -0x260(%rbp), %rdi
movl $0x64, %esi
callq 0x4440
movq %rax, -0x268(%rbp)
jmp 0xb0bb
movq -0x268(%rbp), %rdi
leaq 0x73dd(%rip), %rsi      # 0x124a6
callq 0x4340
jmp 0xb0d0
leaq -0x178(%rbp), %rdi
leaq 0x73d9(%rip), %rsi      # 0x124b7
callq 0x4340
jmp 0xb0e5
leaq -0x178(%rbp), %rdi
leaq 0x7346(%rip), %rsi      # 0x12439
callq 0x4340
movq %rax, -0x270(%rbp)
jmp 0xb101
movq -0x270(%rbp), %rdi
movl $0x6a, %esi
callq 0x4440
movq %rax, -0x278(%rbp)
jmp 0xb11b
movq -0x278(%rbp), %rdi
leaq 0x73a9(%rip), %rsi      # 0x124d2
callq 0x4340
jmp 0xb130
movq 0xd611(%rip), %rax      # 0x18748
movq %rax, -0x280(%rbp)
leaq -0x200(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0x4330
jmp 0xb153
movq -0x280(%rbp), %rdi
leaq -0x200(%rbp), %rsi
callq 0x11cf0
jmp 0xb168
leaq -0x200(%rbp), %rdi
callq 0x4738
leaq -0x221(%rbp), %rdi
movq %rdi, -0x288(%rbp)
callq 0x4690
movq -0x288(%rbp), %rdx
leaq 0x72b5(%rip), %rsi      # 0x1244a
leaq -0x220(%rbp), %rdi
callq 0x85c0
jmp 0xb1a3
leaq -0x188(%rbp), %rdi
leaq -0x220(%rbp), %rsi
callq 0x4410
jmp 0xb1b8
leaq -0x220(%rbp), %rdi
callq 0x4738
leaq -0x221(%rbp), %rdi
callq 0x43d0
movq 0xd571(%rip), %rdi      # 0x18748
movl $0x4, %esi
movl $0x1, %edx
callq 0x11d90
jmp 0xb1e8
movq 0xd559(%rip), %rdi      # 0x18748
callq 0x11b00
jmp 0xb1f6
leaq -0x188(%rbp), %rdi
callq 0x42a0
addq $0x290, %rsp            # imm = 0x290
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0xb2e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x1b8(%rbp), %rdi
callq 0x4738
jmp 0xb2e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0xb277
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x1d8(%rbp), %rdi
callq 0x4738
leaq -0x1d9(%rbp), %rdi
callq 0x43d0
jmp 0xb2e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x200(%rbp), %rdi
callq 0x4738
jmp 0xb2e3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
jmp 0xb2d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x190(%rbp)
movl %eax, -0x194(%rbp)
leaq -0x220(%rbp), %rdi
callq 0x4738
leaq -0x221(%rbp), %rdi
callq 0x43d0
leaq -0x188(%rbp), %rdi
callq 0x42a0
movq -0x190(%rbp), %rdi
callq 0x4680
nopl (%rax,%rax)