// File: /workspace/github_c_makefile_star2_O1/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 0x1a09(%rip), %rsi      # 0x501e
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3320
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3310
leaq 0x8(%rsp), %rdi
callq 0x31f0
leaq 0x44b2(%rip), %rax      # 0x7af0
movq %rax, (%rbx)
leaq 0x5e0(%rbx), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x3200
leaq 0x1a34(%rip), %rsi      # 0x508d
movq %r14, %rdi
callq 0x32a0
movl $0x6d8, %edi            # imm = 0x6D8
callq 0x3240
movq %rax, %r12
leaq 0x19be(%rip), %rsi      # 0x5033
leaq 0x8(%rsp), %rdi
callq 0x3320
leaq 0x19c4(%rip), %rsi      # 0x504a
leaq 0x20(%rsp), %rdi
callq 0x3320
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
movq %rax, %rdi
movl $0x5, %esi
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 0x1914(%rip), %rsi      # 0x5051
leaq 0x8(%rsp), %rdi
callq 0x3320
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 0x3390
movq %r12, 0x5d8(%rbx)
movq 0x5c8(%rbx), %r15
leaq 0x18c8(%rip), %rsi      # 0x5057
leaq 0x8(%rsp), %rdi
callq 0x3320
movq 0x5d8(%rbx), %rdx
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x3cce
leaq 0x8(%rsp), %rdi
callq 0x31f0
movq 0x5d8(%rbx), %r15
leaq 0x1897(%rip), %rsi      # 0x505c
leaq 0x8(%rsp), %rdi
callq 0x3320
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x3cce
addq $0x478, %rax            # imm = 0x478
leaq 0x1fb(%rip), %rsi       # 0x39e6
movq %rax, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x3d48
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 0x3cce
leaq 0x8(%rsp), %rdi
callq 0x31f0
movq 0x5d8(%rbx), %r15
leaq 0x1825(%rip), %rsi      # 0x5061
leaq 0x8(%rsp), %rdi
callq 0x3320
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x3cce
addq $0x478, %rax            # imm = 0x478
leaq 0x3e0(%rip), %rsi       # 0x3c42
movq %rax, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x3d48
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 0x3370
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 0x39ce
jmp 0x39cb
jmp 0x39cb
jmp 0x39bc
jmp 0x39cb
jmp 0x39cb
jmp 0x39bc
jmp 0x39cb
movq %rax, %r15
movl $0x6b8, %esi            # imm = 0x6B8
jmp 0x399c
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x31f0
jmp 0x3959
movq %rax, %r15
movl $0x5b8, %esi            # imm = 0x5B8
jmp 0x399c
movq %rax, %r15
movl $0x688, %esi            # imm = 0x688
jmp 0x399c
movq %rax, %r15
movl $0x5c8, %esi            # imm = 0x5C8
jmp 0x399c
jmp 0x3976
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0x31f0
jmp 0x3988
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x31f0
jmp 0x3997
movq %rax, %r15
movl $0x6d8, %esi            # imm = 0x6D8
movq %r12, %rdi
callq 0x3040
jmp 0x39ce
movq %rax, %r15
jmp 0x39d6
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x31f0
jmp 0x39de
jmp 0x39bc
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x31f0
jmp 0x39ce
movq %rax, %r15
movq %r14, %rdi
callq 0x31f0
movq %rbx, %rdi
callq 0x3210
movq %r15, %rdi
callq 0x3150