// File: /workspace/github_cpp_makefile_star2_O2/Stygain[P]bandwidth-monitor/src/settingsWindow.cpp
// Function: SettingsWindow::Update()
void SettingsWindow::Update()
{
	werase(this->win);
	wborder(this->win, 0, 0, 0, 0, 0, 0, 0, 0);

	char settingsWindowOptionString[settingsWindowOptionStringSize];
	int placementYIndex = 0;
	for (int i = 0; i < SWO_END; i++)
	{
		placementYIndex++;
		getSettingsWindowOptionString((SettingsWindowOption)i, settingsWindowOptionString);
		if ((SettingsWindowOption)i == SWO_HIDDEN_INTERFACES)
		{
			mvwprintw(this->win, placementYIndex, 1, "%s", settingsWindowOptionString);
			for (int j = 0; j < settings->root["hiddenInterfaces"].size(); j++)
			{
				placementYIndex++;
				if (j == activeItem)
				{
					wattron(this->win, COLOR_PAIR(HEADER_ACTIVE_COLOR));
				}
				mvwprintw(this->win, placementYIndex, 5, "%s", settings->root["hiddenInterfaces"][j].asString().c_str());
				if (j == activeItem)
				{
					wattroff(this->win, COLOR_PAIR(HEADER_ACTIVE_COLOR));
				}
			}
		}
		else if ((SettingsWindowOption)i == SWO_ZERO_ON_START)
		{
			mvwprintw(this->win, placementYIndex, 1, "%s", settingsWindowOptionString);
			if (settings->root["hiddenInterfaces"].size() == activeItem)
			{
				wattron(this->win, COLOR_PAIR(HEADER_ACTIVE_COLOR));
			}
			placementYIndex++;
			mvwprintw(this->win, placementYIndex, 5, "%s", settings->root["zeroOnStart"].asString().c_str());
			if (settings->root["hiddenInterfaces"].size() == activeItem)
			{
				wattroff(this->win, COLOR_PAIR(HEADER_ACTIVE_COLOR));
			}
		}
	}

	wrefresh(this->win);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x3050
movq (%rbx), %rdi
andl $0x0, 0x10(%rsp)
andl $0x0, 0x8(%rsp)
andl $0x0, (%rsp)
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x31c0
leaq 0x6312(%rip), %r12      # 0x10388
xorl %r14d, %r14d
xorl %eax, %eax
cmpl $0x2, %eax
je 0xa22a
leal 0x1(%r14), %ebp
movl %eax, 0x1c(%rsp)
movl 0x1c(%rsp), %edi
leaq 0x40(%rsp), %r15
movq %r15, %rsi
callq 0x96ce
movq (%rbx), %rdi
movl %ebp, %esi
pushq $0x1
popq %rdx
leaq 0x1672(%rip), %rcx      # 0xb71e
movq %r15, %r8
xorl %eax, %eax
callq 0x30b0
cmpl $0x0, 0x1c(%rsp)
je 0xa16d
movq (%r12), %rdi
leaq 0x10b2(%rip), %rsi      # 0xb17e
callq 0x3120
movq %rax, %rdi
callq 0x34e0
cmpl 0x1c(%rbx), %eax
jne 0xa0ed
movq (%rbx), %rdi
movl $0x400, %esi            # imm = 0x400
xorl %edx, %edx
callq 0x3180
addl $0x2, %r14d
movq (%rbx), %r15
movq (%r12), %rdi
leaq 0x1201(%rip), %rsi      # 0xb300
callq 0x3120
leaq 0x20(%rsp), %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x3570
movq 0x20(%rsp), %r8
movq %r15, %rdi
movl %r14d, %esi
pushq $0x5
popq %rdx
leaq 0x15f5(%rip), %rcx      # 0xb71e
xorl %eax, %eax
callq 0x30b0
movq %r13, %rdi
callq 0x3170
movq (%r12), %rdi
leaq 0x103b(%rip), %rsi      # 0xb17e
callq 0x3120
movq %rax, %rdi
callq 0x34e0
cmpl 0x1c(%rbx), %eax
jne 0xa21f
movq (%rbx), %rdi
movl $0x400, %esi            # imm = 0x400
xorl %edx, %edx
callq 0x33a0
jmp 0xa21f
xorl %r14d, %r14d
movq (%r12), %rdi
leaq 0x1003(%rip), %rsi      # 0xb17e
callq 0x3120
movq %rax, %rdi
callq 0x34e0
cmpl %eax, %r14d
jae 0xa21c
cmpl 0x1c(%rbx), %r14d
jne 0xa1a6
movq (%rbx), %rdi
movl $0x400, %esi            # imm = 0x400
xorl %edx, %edx
callq 0x3180
incl %ebp
movq (%rbx), %r15
movq %r12, %r13
movq (%r12), %rdi
leaq 0xfc5(%rip), %rsi       # 0xb17e
callq 0x3120
movq %rax, %rdi
movl %r14d, %esi
callq 0x3300
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0x3570
movq 0x20(%rsp), %r8
movq %r15, %rdi
movl %ebp, %esi
pushq $0x5
popq %rdx
leaq 0x1531(%rip), %rcx      # 0xb71e
xorl %eax, %eax
callq 0x30b0
movq %r12, %rdi
callq 0x3170
cmpl 0x1c(%rbx), %r14d
jne 0xa211
movq (%rbx), %rdi
movl $0x400, %esi            # imm = 0x400
xorl %edx, %edx
callq 0x33a0
incl %r14d
movq %r13, %r12
jmp 0xa170
movl %ebp, %r14d
movl 0x1c(%rsp), %eax
incl %eax
jmp 0xa07b
movq (%rbx), %rdi
callq 0x3310
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa243
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x3540