// File: fulhax[P]ncpamixer/src/ui/tab.cpp
// Function: Tab::borderBox(int, int, int, int)
void Tab::borderBox(int w, int h, int px, int py)
{
    wattron(ui.window, COLOR_PAIR(COLOR_BORDER));

    mvwvline(ui.window, py, px, ACS_VLINE, h);
    mvwvline(ui.window, py, px + w, ACS_VLINE, h);

    mvwhline(ui.window, py, px, ACS_HLINE, w);
    mvwhline(ui.window, py + h, px, ACS_HLINE, w);

    mvwhline(ui.window, py, px, ACS_ULCORNER, 1);
    mvwhline(ui.window, py, px + w, ACS_URCORNER, 1);

    mvwhline(ui.window, py + h, px, ACS_LLCORNER, 1);
    mvwhline(ui.window, py + h, px + w, ACS_LRCORNER, 1);

    wattroff(ui.window, COLOR_PAIR(COLOR_BORDER));
}

// Assembly:
subq $0x18, %rsp
movl %edi, 0x14(%rsp)
movl %esi, 0x10(%rsp)
movl %edx, 0xc(%rsp)
movl %ecx, 0x8(%rsp)
leaq 0x1342d(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movl $0xd00, %esi            # imm = 0xD00
xorl %eax, %eax
movl %eax, %edx
callq 0x7360
leaq 0x13414(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movl 0x8(%rsp), %esi
movl 0xc(%rsp), %edx
callq 0x76f0
cmpl $-0x1, %eax
jne 0x184fc
jmp 0x1851d
leaq 0x133f5(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movq 0x12a22(%rip), %rax     # 0x2af30
movl 0x1e0(%rax), %esi
movl 0x10(%rsp), %edx
callq 0x78a0
leaq 0x133d4(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movl 0x8(%rsp), %esi
movl 0xc(%rsp), %edx
addl 0x14(%rsp), %edx
callq 0x76f0
cmpl $-0x1, %eax
jne 0x18540
jmp 0x18561
leaq 0x133b1(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movq 0x129de(%rip), %rax     # 0x2af30
movl 0x1e0(%rax), %esi
movl 0x10(%rsp), %edx
callq 0x78a0
leaq 0x13390(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movl 0x8(%rsp), %esi
movl 0xc(%rsp), %edx
callq 0x76f0
cmpl $-0x1, %eax
jne 0x18580
jmp 0x185a1
leaq 0x13371(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movq 0x1299e(%rip), %rax     # 0x2af30
movl 0x1c4(%rax), %esi
movl 0x14(%rsp), %edx
callq 0x7640
leaq 0x13350(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movl 0x8(%rsp), %esi
addl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
callq 0x76f0
cmpl $-0x1, %eax
jne 0x185c4
jmp 0x185e5
leaq 0x1332d(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movq 0x1295a(%rip), %rax     # 0x2af30
movl 0x1c4(%rax), %esi
movl 0x14(%rsp), %edx
callq 0x7640
leaq 0x1330c(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movl 0x8(%rsp), %esi
movl 0xc(%rsp), %edx
callq 0x76f0
cmpl $-0x1, %eax
jne 0x18604
jmp 0x18626
leaq 0x132ed(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movq 0x1291a(%rip), %rax     # 0x2af30
movl 0x1b0(%rax), %esi
movl $0x1, %edx
callq 0x7640
leaq 0x132cb(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movl 0x8(%rsp), %esi
movl 0xc(%rsp), %edx
addl 0x14(%rsp), %edx
callq 0x76f0
cmpl $-0x1, %eax
jne 0x18649
jmp 0x1866b
leaq 0x132a8(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movq 0x128d5(%rip), %rax     # 0x2af30
movl 0x1ac(%rax), %esi
movl $0x1, %edx
callq 0x7640
leaq 0x13286(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movl 0x8(%rsp), %esi
addl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
callq 0x76f0
cmpl $-0x1, %eax
jne 0x1868e
jmp 0x186b0
leaq 0x13263(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movq 0x12890(%rip), %rax     # 0x2af30
movl 0x1b4(%rax), %esi
movl $0x1, %edx
callq 0x7640
leaq 0x13241(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movl 0x8(%rsp), %esi
addl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
addl 0x14(%rsp), %edx
callq 0x76f0
cmpl $-0x1, %eax
jne 0x186d7
jmp 0x186f9
leaq 0x1321a(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movq 0x12847(%rip), %rax     # 0x2af30
movl 0x1a8(%rax), %esi
movl $0x1, %edx
callq 0x7640
leaq 0x131f8(%rip), %rax     # 0x2b8f8
movq 0x10(%rax), %rdi
movl $0xd00, %esi            # imm = 0xD00
xorl %eax, %eax
movl %eax, %edx
callq 0x78b0
addq $0x18, %rsp
retq
nopw (%rax,%rax)