// File: JD297[P]cedit/src/cedit.cpp
// Function: cedit::Cedit::display()
void Cedit::display()
{
	this->display_header();
	this->display_content();

	wbkgd(this->menu.window, A_REVERSE);
	wmove(this->menu.window, 0, 0);

	for(auto it = this->session.begin(); it != session.end(); it++) {
		std::string end = this->filename == it->first ? "* " : "  ";

		std::string sessionItem = "[" + std::to_string(std::distance(this->session.begin(), it)) + "]" + it->first + end;

		wprintw(this->menu.window, sessionItem.c_str());
	}

	wrefresh(this->menu.window);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x8730
movq -0x110(%rbp), %rdi
callq 0x88d0
movq -0x110(%rbp), %rax
movq 0xb0(%rax), %rdi
movl $0x40000, %esi          # imm = 0x40000
callq 0x46d0
movq -0x110(%rbp), %rax
movq 0xb0(%rax), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x4450
movq -0x110(%rbp), %rdi
addq $0x20, %rdi
callq 0x9ed0
movq %rax, -0x10(%rbp)
movq -0x110(%rbp), %rdi
addq $0x20, %rdi
callq 0x9cd0
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x9c70
testb $0x1, %al
jne 0x4fa8
jmp 0x5234
movq -0x110(%rbp), %rax
addq $0x70, %rax
movq %rax, -0x118(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x9f70
movq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x9f90
testb $0x1, %al
jne 0x4fd8
jmp 0x4fe8
leaq 0x9161(%rip), %rax      # 0xe140
movq %rax, -0x120(%rbp)
jmp 0x4ff8
leaq 0x9154(%rip), %rax      # 0xe143
movq %rax, -0x120(%rbp)
jmp 0x4ff8
movq -0x120(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x4710
movq -0x130(%rbp), %rsi
movq -0x128(%rbp), %rdx
leaq -0x38(%rbp), %rdi
callq 0x90c0
jmp 0x502f
leaq -0x39(%rbp), %rdi
callq 0x44a0
movq -0x110(%rbp), %rdi
addq $0x20, %rdi
callq 0x9ed0
movq %rax, -0xf8(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0xf8(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0xa1a0
movq %rax, -0x138(%rbp)
jmp 0x5076
movq -0x138(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0xa070
jmp 0x508b
leaq 0x90b4(%rip), %rsi      # 0xe146
leaq -0xd0(%rbp), %rdi
leaq -0xf0(%rbp), %rdx
callq 0x9810
jmp 0x50a7
leaq 0x91ed(%rip), %rdx      # 0xe29b
leaq -0xb0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x9390
jmp 0x50c3
leaq -0x10(%rbp), %rdi
callq 0x9f70
movq %rax, %rdx
leaq -0x90(%rbp), %rdi
leaq -0xb0(%rbp), %rsi
callq 0xa020
jmp 0x50e4
leaq -0x70(%rbp), %rdi
leaq -0x90(%rbp), %rsi
leaq -0x38(%rbp), %rdx
callq 0xa020
jmp 0x50fa
leaq -0x90(%rbp), %rdi
callq 0x42d0
leaq -0xb0(%rbp), %rdi
callq 0x42d0
leaq -0xd0(%rbp), %rdi
callq 0x42d0
leaq -0xf0(%rbp), %rdi
callq 0x42d0
movq -0x110(%rbp), %rax
movq 0xb0(%rax), %rax
movq %rax, -0x140(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x4220
movq -0x140(%rbp), %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x4080
jmp 0x515b
leaq -0x70(%rbp), %rdi
callq 0x42d0
leaq -0x38(%rbp), %rdi
callq 0x42d0
leaq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0xa1e0
movq %rax, -0x108(%rbp)
jmp 0x4f7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x39(%rbp), %rdi
callq 0x44a0
jmp 0x5250
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x5229
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x5206
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x51fa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x51ee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x42d0
leaq -0xb0(%rbp), %rdi
callq 0x42d0
leaq -0xd0(%rbp), %rdi
callq 0x42d0
leaq -0xf0(%rbp), %rdi
callq 0x42d0
jmp 0x5229
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x42d0
leaq -0x38(%rbp), %rdi
callq 0x42d0
jmp 0x5250
movq -0x110(%rbp), %rax
movq 0xb0(%rax), %rdi
callq 0x44f0
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x4700
nopl (%rax)