// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/tools/pciffmanager/main.cpp
// Function: PCIFFManager::PCIFFManager()
PCIFFManager::PCIFFManager() : Application("smooth PCIFF Manager")
{
	filename = "";

	wnd		= new GUI::Window(String("smooth PCIFF Manager v").Append(SMOOTH_VERSION), Point(50, 50), Size(600, 200));
	title		= new Titlebar(TB_MINBUTTON | TB_CLOSEBUTTON);
	menubar		= new Menubar();
	statusbar	= new Statusbar("Ready");

	menu_file	= new PopupMenu();

	menubar->AddEntry("File", menu_file);

	menu_file->AddEntry("Open")->onAction.Connect(&PCIFFManager::OpenFile, this);
	menu_file->AddEntry();
	menu_file->AddEntry("Exit")->onAction.Connect(&PCIFFManager::Close, this);

	Add(wnd);

	wnd->Add(title);
	wnd->Add(menubar);
	wnd->Add(statusbar);

	wnd->SetIcon(NIL);

	wnd->Show();
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x1a03(%rip), %rsi      # 0x501e
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3330
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3320
leaq 0x8(%rsp), %rdi
callq 0x31f0
leaq 0x44ac(%rip), %rax      # 0x7af0
movq %rax, (%rbx)
leaq 0x5e0(%rbx), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x3200
leaq 0x1a2e(%rip), %rsi      # 0x508d
movq %r14, %rdi
callq 0x32a0
movl $0x6d8, %edi            # imm = 0x6D8
callq 0x3240
movq %rax, %r12
leaq 0x19b8(%rip), %rsi      # 0x5033
leaq 0x8(%rsp), %rdi
callq 0x3330
leaq 0x19be(%rip), %rsi      # 0x504a
leaq 0x20(%rsp), %rdi
callq 0x3330
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x30c0
movabsq $0x3200000032, %rcx     # imm = 0x3200000032
leaq 0x40(%rsp), %rdx
movq %rcx, (%rdx)
movabsq $0xc800000258, %rsi     # imm = 0xC800000258
leaq 0x38(%rsp), %rcx
movq %rsi, (%rcx)
movq %r12, %rdi
movq %rax, %rsi
xorl %r8d, %r8d
callq 0x3160
movq %r12, 0x5b8(%rbx)
leaq 0x20(%rsp), %rdi
callq 0x31f0
leaq 0x8(%rsp), %rdi
callq 0x31f0
movl $0x5c8, %edi            # imm = 0x5C8
callq 0x3240
movq %rax, %r12
pushq $0x5
popq %rsi
movq %rax, %rdi
callq 0x30e0
movq %r12, 0x5c0(%rbx)
movl $0x688, %edi            # imm = 0x688
callq 0x3240
movq %rax, %r12
movq %rax, %rdi
callq 0x3130
movq %r12, 0x5c8(%rbx)
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x3240
movq %rax, %r12
leaq 0x1910(%rip), %rsi      # 0x5051
leaq 0x8(%rsp), %rdi
callq 0x3330
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x30d0
movq %r12, 0x5d0(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x31f0
movl $0x6b8, %edi            # imm = 0x6B8
callq 0x3240
movq %rax, %r12
movq %rax, %rdi
callq 0x33a0
movq %r12, 0x5d8(%rbx)
movq 0x5c8(%rbx), %r15
leaq 0x18c4(%rip), %rsi      # 0x5057
leaq 0x8(%rsp), %rdi
callq 0x3330
movq 0x5d8(%rbx), %rdx
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x3cde
leaq 0x8(%rsp), %rdi
callq 0x31f0
movq 0x5d8(%rbx), %r15
leaq 0x1893(%rip), %rsi      # 0x505c
leaq 0x8(%rsp), %rdi
callq 0x3330
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x3cde
addq $0x478, %rax            # imm = 0x478
leaq 0x1fb(%rip), %rsi       # 0x39ea
movq %rax, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x3d54
leaq 0x8(%rsp), %rdi
callq 0x31f0
movq 0x5d8(%rbx), %r15
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x3200
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x3cde
leaq 0x8(%rsp), %rdi
callq 0x31f0
movq 0x5d8(%rbx), %r15
leaq 0x1821(%rip), %rsi      # 0x5061
leaq 0x8(%rsp), %rdi
callq 0x3330
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x3cde
addq $0x478, %rax            # imm = 0x478
leaq 0x3dc(%rip), %rsi       # 0x3c42
movq %rax, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x3d54
leaq 0x8(%rsp), %rdi
callq 0x31f0
movq 0x5b8(%rbx), %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x30(%rax)
movq 0x5b8(%rbx), %rdi
movq 0x5c0(%rbx), %rsi
movq (%rdi), %rax
callq *0x30(%rax)
movq 0x5b8(%rbx), %rdi
movq 0x5c8(%rbx), %rsi
movq (%rdi), %rax
callq *0x30(%rax)
movq 0x5b8(%rbx), %rdi
movq 0x5d0(%rbx), %rsi
movq (%rdi), %rax
callq *0x30(%rax)
movq 0x5b8(%rbx), %r15
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x3380
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x31d0
leaq 0x8(%rsp), %rdi
callq 0x3110
movq 0x5b8(%rbx), %rdi
movq (%rdi), %rax
callq *0x58(%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x3110
jmp 0x39d2
jmp 0x39cf
jmp 0x39cf
jmp 0x39c0
jmp 0x39cf
jmp 0x39cf
jmp 0x39c0
jmp 0x39cf
movq %rax, %r15
movl $0x6b8, %esi            # imm = 0x6B8
jmp 0x39a0
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x31f0
jmp 0x395d
movq %rax, %r15
movl $0x5b8, %esi            # imm = 0x5B8
jmp 0x39a0
movq %rax, %r15
movl $0x688, %esi            # imm = 0x688
jmp 0x39a0
movq %rax, %r15
movl $0x5c8, %esi            # imm = 0x5C8
jmp 0x39a0
jmp 0x397a
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0x31f0
jmp 0x398c
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x31f0
jmp 0x399b
movq %rax, %r15
movl $0x6d8, %esi            # imm = 0x6D8
movq %r12, %rdi
callq 0x3040
jmp 0x39d2
movq %rax, %r15
jmp 0x39da
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x31f0
jmp 0x39e2
jmp 0x39c0
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x31f0
jmp 0x39d2
movq %rax, %r15
movq %r14, %rdi
callq 0x31f0
movq %rbx, %rdi
callq 0x3210
movq %r15, %rdi
callq 0x3150