// File: JD297[P]cedit/src/cedit.cpp
// Function: cedit::Cedit::Cedit()
Cedit::Cedit():
	currentIndex(0),
	savedIndex(0),
	entryLine(0),
	key(0),
	refreshDisplay(true),
	refreshHeader(true),
	isrunning(true),
	filename(""),
	showLineNumbers(false)
{
	this->wheader = newwin(1, this->width, 0, 0);
	this->wcontent = newwin(this->height, this->width, 1, 0);

	this->content.emplace_back("");
	this->contentIt = this->content.begin();

	keypad(this->wcontent, true);
	scrollok(this->wcontent, true);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq %rdi, %rax
movq %rax, -0x50(%rbp)
callq 0x9060
movq -0x40(%rbp), %rdi
addq $0x18, %rdi
callq 0x9080
movq -0x40(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0x48(%rbp)
callq 0x90a0
movq -0x40(%rbp), %rax
movq $0x0, 0x50(%rax)
movq $0x0, 0x58(%rax)
movq $0x0, 0x60(%rax)
movl $0x0, 0x68(%rax)
movb $0x1, 0x6c(%rax)
movb $0x1, 0x6d(%rax)
movb $0x1, 0x6e(%rax)
addq $0x70, %rax
movq %rax, -0x38(%rbp)
leaq -0x9(%rbp), %rdi
movq %rdi, -0x30(%rbp)
callq 0x4710
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq 0x98b5(%rip), %rsi      # 0xe279
callq 0x90c0
jmp 0x49cb
leaq -0x9(%rbp), %rdi
callq 0x44a0
movq -0x50(%rbp), %rdi
movb $0x0, 0x90(%rdi)
movl $0x0, 0x94(%rdi)
movl $0x0, 0x98(%rdi)
movl $0x0, 0x9c(%rdi)
addq $0xb0, %rdi
movq %rdi, -0x58(%rbp)
callq 0xd440
jmp 0x4a0f
movq -0x50(%rbp), %rax
addq $0xf8, %rax
movq %rax, -0x60(%rbp)
xorl %eax, %eax
movq 0xe5aa(%rip), %rcx      # 0x12fd0
cmpq (%rcx), %rax
je 0x4a41
movq 0xe59e(%rip), %rax      # 0x12fd0
movq (%rax), %rax
movswl 0x6(%rax), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
jmp 0x4a4b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x64(%rbp)
jmp 0x4a4b
movq -0x50(%rbp), %rax
movq -0x60(%rbp), %rcx
movl -0x64(%rbp), %edx
movslq %edx, %rdx
movq %rdx, (%rcx)
addq $0x100, %rax            # imm = 0x100
movq %rax, -0x70(%rbp)
xorl %eax, %eax
movq 0xe561(%rip), %rcx      # 0x12fd0
cmpq (%rcx), %rax
je 0x4a8a
movq 0xe555(%rip), %rax      # 0x12fd0
movq (%rax), %rax
movswl 0x4(%rax), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
jmp 0x4a94
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x74(%rbp)
jmp 0x4a94
movq -0x50(%rbp), %rax
movq -0x70(%rbp), %rcx
movl -0x74(%rbp), %edx
subl $0x2, %edx
movslq %edx, %rdx
movq %rdx, (%rcx)
addq $0x108, %rax            # imm = 0x108
movq %rax, -0x80(%rbp)
xorl %eax, %eax
movq 0xe515(%rip), %rcx      # 0x12fd0
cmpq (%rcx), %rax
je 0x4ad9
movq 0xe509(%rip), %rax      # 0x12fd0
movq (%rax), %rax
movswl 0x6(%rax), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x4ae6
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x84(%rbp)
jmp 0x4ae6
movq -0x50(%rbp), %rax
movq -0x80(%rbp), %rcx
movl -0x84(%rbp), %edx
movslq %edx, %rdx
movq %rdx, (%rcx)
addq $0x110, %rax            # imm = 0x110
movq %rax, -0x90(%rbp)
xorl %eax, %eax
movq 0xe4c0(%rip), %rcx      # 0x12fd0
cmpq (%rcx), %rax
je 0x4b2e
movq 0xe4b4(%rip), %rax      # 0x12fd0
movq (%rax), %rax
movswl 0x4(%rax), %eax
addl $0x1, %eax
movl %eax, -0x94(%rbp)
jmp 0x4b3b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, -0x94(%rbp)
jmp 0x4b3b
movq -0x50(%rbp), %rax
movq -0x90(%rbp), %rcx
movl -0x94(%rbp), %edx
movslq %edx, %rdx
movq %rdx, (%rcx)
movl 0xf8(%rax), %esi
movl $0x1, %edi
xorl %ecx, %ecx
movl %ecx, %edx
callq 0x4440
movq %rax, -0xa0(%rbp)
jmp 0x4b6f
movq -0x50(%rbp), %rax
movq -0xa0(%rbp), %rcx
movq %rcx, 0xa0(%rax)
movl 0xf8(%rax), %esi
movl 0x100(%rax), %edi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x4440
movq %rax, -0xa8(%rbp)
jmp 0x4ba2
movq -0x50(%rbp), %rdi
movq -0xa8(%rbp), %rax
movq %rax, 0xa8(%rdi)
leaq 0x96be(%rip), %rsi      # 0xe279
callq 0x9170
jmp 0x4bc2
movq -0x50(%rbp), %rdi
callq 0x91c0
movq %rax, %rcx
movq -0x50(%rbp), %rax
movq %rcx, -0x28(%rbp)
movq -0x28(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq 0xa8(%rax), %rdi
movl $0x1, %esi
callq 0x41e0
jmp 0x4bf1
movq -0x50(%rbp), %rax
movq 0xa8(%rax), %rdi
movl $0x1, %esi
callq 0x4520
jmp 0x4c08
addq $0xb0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x9(%rbp), %rdi
callq 0x44a0
jmp 0x4c54
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x4c4b
movq -0x58(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x91f0
movq -0x38(%rbp), %rdi
callq 0x42d0
movq -0x48(%rbp), %rdi
callq 0x9210
movq -0x40(%rbp), %rdi
callq 0x9230
movq -0x18(%rbp), %rdi
callq 0x4700
nop