// File: Stygain[P]bandwidth-monitor/src/footer.cpp
// Function: Footer::Print()
void Footer::Print()
{
	werase(this->win);

	char modeString[modeStringSize];
	getModeString(this->mode, modeString);
	wprintw(this->win, " Mode: %s ",
			modeString);

	wattron(this->win, COLOR_PAIR(OPTION_COLOR));
	if (this->mode == MODE_SEARCH)
	{
		wprintw(this->win, " %s | %s | %s ",
				"hl enter to Select", "q Quit", "d Deselect");
	}
	else if (this->mode == MODE_GRAPH)
	{
		wprintw(this->win, " %s | %s | %s | %s ",
				"hl enter to Select", "q Quit", "c clear", "C clear all");
	}
	else if (this->mode == MODE_GRAPH_SELECTION)
	{
		wprintw(this->win, " %s | %s ",
				"jk enter to Select", "q Quit");
	}
	else if (mode == MODE_INTERFACE_DETAIL)
	{
		wprintw(this->win, " %s | %s ",
				"jk enter to Select", "q Quit");
	}
	else if (mode == MODE_SETTINGS)
	{
		wprintw(this->win, " %s | %s ",
				"jk enter to Select", "q Quit");
	}
	else
	{
		wprintw(this->win, " %s | %s | %s | %s | %s | %s | %s | %s ",
		"jk enter to Select", "q Quit", "d Deselect", "s Sort", "S Settings", "g Graph", "z Zero", "Z Un-Zero");
	}
	wattroff(this->win, COLOR_PAIR(OPTION_COLOR));

	wrefresh(this->win);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x58, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq (%rax), %rdi
callq 0x3060
movq -0x38(%rbp), %rax
movl 0x8(%rax), %edi
leaq -0x30(%rbp), %rsi
callq 0x136c0
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq -0x30(%rbp), %rdx
leaq 0x2049(%rip), %rsi      # 0x16858
movb $0x0, %al
callq 0x3070
movq -0x38(%rbp), %rax
movq (%rax), %rdi
movl $0x300, %esi            # imm = 0x300
xorl %eax, %eax
movl %eax, %edx
callq 0x31a0
movq -0x38(%rbp), %rax
cmpl $0x1, 0x8(%rax)
jne 0x14864
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x2085(%rip), %rsi      # 0x168c8
leaq 0x2019(%rip), %rdx      # 0x16863
leaq 0x2025(%rip), %rcx      # 0x16876
leaq 0x2025(%rip), %r8       # 0x1687d
movb $0x0, %al
callq 0x3070
jmp 0x1499f
movq -0x38(%rbp), %rax
cmpl $0x2, 0x8(%rax)
jne 0x148a4
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x2047(%rip), %rsi      # 0x168c3
leaq 0x1fe0(%rip), %rdx      # 0x16863
leaq 0x1fec(%rip), %rcx      # 0x16876
leaq 0x1ff7(%rip), %r8       # 0x16888
leaq 0x1ff8(%rip), %r9       # 0x16890
movb $0x0, %al
callq 0x3070
jmp 0x1499d
movq -0x38(%rbp), %rax
cmpl $0x3, 0x8(%rax)
jne 0x148d6
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x2011(%rip), %rsi      # 0x168cd
leaq 0x1fd9(%rip), %rdx      # 0x1689c
leaq 0x1fac(%rip), %rcx      # 0x16876
movb $0x0, %al
callq 0x3070
jmp 0x1499b
movq -0x38(%rbp), %rax
cmpl $0x4, 0x8(%rax)
jne 0x14908
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x1fdf(%rip), %rsi      # 0x168cd
leaq 0x1fa7(%rip), %rdx      # 0x1689c
leaq 0x1f7a(%rip), %rcx      # 0x16876
movb $0x0, %al
callq 0x3070
jmp 0x14999
movq -0x38(%rbp), %rax
cmpl $0x5, 0x8(%rax)
jne 0x14937
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x1fad(%rip), %rsi      # 0x168cd
leaq 0x1f75(%rip), %rdx      # 0x1689c
leaq 0x1f48(%rip), %rcx      # 0x16876
movb $0x0, %al
callq 0x3070
jmp 0x14997
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x1f6a(%rip), %rsi      # 0x168af
leaq 0x1f50(%rip), %rdx      # 0x1689c
leaq 0x1f23(%rip), %rcx      # 0x16876
leaq 0x1f23(%rip), %r8       # 0x1687d
leaq 0x1f76(%rip), %r9       # 0x168d7
leaq 0x1f76(%rip), %rbx      # 0x168de
leaq 0x1f7a(%rip), %r11      # 0x168e9
leaq 0x1f7b(%rip), %r10      # 0x168f1
leaq 0x1f7b(%rip), %rax      # 0x168f8
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movb $0x0, %al
callq 0x3070
jmp 0x14999
jmp 0x1499b
jmp 0x1499d
jmp 0x1499f
movq -0x38(%rbp), %rax
movq (%rax), %rdi
movl $0x300, %esi            # imm = 0x300
xorl %eax, %eax
movl %eax, %edx
callq 0x3420
movq -0x38(%rbp), %rax
movq (%rax), %rdi
callq 0x3390
addq $0x58, %rsp
popq %rbx
popq %rbp
retq
nopw (%rax,%rax)