// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/tools/pciffmanager/main.cpp
// Function: PCIFFManager::OpenFile()
Void PCIFFManager::OpenFile()
{
	FileSelection	 dialog;

	dialog.SetParentWindow(wnd);

	dialog.AddFilter("PCI Image Files", "*.pci");
	dialog.AddFilter("All Files", "*.*");

	if (dialog.ShowDialog() == Success())
	{
		filename = dialog.GetFileName();

		String	 file = filename.Tail(filename.Length() - filename.FindLast(Directory::GetDirectoryDelimiter()) - 1);

		wnd->SetText(String("smooth PCIFF Manager v").Append(SMOOTH_VERSION).Append(" - ").Append(file));
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x8b0, %rsp            # imm = 0x8B0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x850(%rbp)
leaq -0x748(%rbp), %rdi
movq %rdi, -0x848(%rbp)
callq 0x4340
movq -0x850(%rbp), %rax
movq -0x848(%rbp), %rdi
movq 0x5b8(%rax), %rsi
callq 0x4080
jmp 0x4e99
leaq 0x21c6(%rip), %rsi      # 0x7066
leaq -0x770(%rbp), %rdi
callq 0x4330
jmp 0x4eae
leaq 0x21c1(%rip), %rsi      # 0x7076
leaq -0x788(%rbp), %rdi
callq 0x4330
jmp 0x4ec3
leaq -0x748(%rbp), %rdi
leaq -0x770(%rbp), %rsi
leaq -0x788(%rbp), %rdx
callq 0x4120
jmp 0x4edf
leaq -0x788(%rbp), %rdi
callq 0x4200
leaq -0x770(%rbp), %rdi
callq 0x4200
leaq 0x217e(%rip), %rsi      # 0x707c
leaq -0x7a0(%rbp), %rdi
callq 0x4330
jmp 0x4f0c
leaq 0x2173(%rip), %rsi      # 0x7086
leaq -0x7b8(%rbp), %rdi
callq 0x4330
jmp 0x4f21
leaq -0x748(%rbp), %rdi
leaq -0x7a0(%rbp), %rsi
leaq -0x7b8(%rbp), %rdx
callq 0x4120
jmp 0x4f3d
leaq -0x7b8(%rbp), %rdi
callq 0x4200
leaq -0x7a0(%rbp), %rdi
callq 0x4200
leaq -0x748(%rbp), %rdi
callq 0x41b0
movq %rax, -0x858(%rbp)
jmp 0x4f6a
leaq -0x7c8(%rbp), %rdi
callq 0x56b0
jmp 0x4f78
movq -0x858(%rbp), %rdi
movq (%rdi), %rax
movq 0x18(%rax), %rax
leaq -0x7c8(%rbp), %rsi
callq *%rax
movb %al, -0x859(%rbp)
jmp 0x4f97
leaq -0x7c8(%rbp), %rdi
callq 0x56f0
movb -0x859(%rbp), %al
testb $0x1, %al
jne 0x4fb2
jmp 0x52e4
leaq -0x748(%rbp), %rdi
callq 0x4090
movq %rax, -0x868(%rbp)
jmp 0x4fc7
movq -0x868(%rbp), %rsi
movq -0x850(%rbp), %rdi
addq $0x5e0, %rdi            # imm = 0x5E0
callq 0x4260
jmp 0x4fe3
movq -0x850(%rbp), %rdi
addq $0x5e0, %rdi            # imm = 0x5E0
movq %rdi, -0x878(%rbp)
callq 0x4140
movl %eax, -0x86c(%rbp)
jmp 0x5005
movq -0x850(%rbp), %rax
addq $0x5e0, %rax            # imm = 0x5E0
movq %rax, -0x888(%rbp)
callq 0x4060
movq %rax, -0x880(%rbp)
jmp 0x5027
movq -0x880(%rbp), %rsi
leaq -0x7f8(%rbp), %rdi
callq 0x4330
jmp 0x503c
movq -0x888(%rbp), %rdi
leaq -0x7f8(%rbp), %rsi
callq 0x41f0
movl %eax, -0x88c(%rbp)
jmp 0x5057
movq -0x878(%rbp), %rsi
movl -0x86c(%rbp), %eax
movl -0x88c(%rbp), %edx
notl %edx
addl %eax, %edx
leaq -0x7e0(%rbp), %rdi
callq 0x4190
jmp 0x507c
leaq -0x7f8(%rbp), %rdi
callq 0x4200
movq -0x850(%rbp), %rax
movq 0x5b8(%rax), %rax
movq %rax, -0x898(%rbp)
leaq 0x1f8f(%rip), %rsi      # 0x7033
leaq -0x810(%rbp), %rdi
callq 0x4330
jmp 0x50b2
leaq 0x1f91(%rip), %rsi      # 0x704a
leaq -0x828(%rbp), %rdi
callq 0x4330
jmp 0x50c7
leaq -0x810(%rbp), %rdi
leaq -0x828(%rbp), %rsi
callq 0x40c0
movq %rax, -0x8a0(%rbp)
jmp 0x50e3
leaq 0x1fa0(%rip), %rsi      # 0x708a
leaq -0x840(%rbp), %rdi
callq 0x4330
jmp 0x50f8
movq -0x8a0(%rbp), %rdi
leaq -0x840(%rbp), %rsi
callq 0x40c0
movq %rax, -0x8a8(%rbp)
jmp 0x5114
movq -0x8a8(%rbp), %rdi
leaq -0x7e0(%rbp), %rsi
callq 0x40c0
movq %rax, -0x8b0(%rbp)
jmp 0x5130
movq -0x8b0(%rbp), %rsi
movq -0x898(%rbp), %rdi
movq (%rdi), %rax
movq 0xa0(%rax), %rax
callq *%rax
jmp 0x514c
leaq -0x840(%rbp), %rdi
callq 0x4200
leaq -0x828(%rbp), %rdi
callq 0x4200
leaq -0x810(%rbp), %rdi
callq 0x4200
leaq -0x7e0(%rbp), %rdi
callq 0x4200
jmp 0x52e4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x52f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x51ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x788(%rbp), %rdi
callq 0x4200
leaq -0x770(%rbp), %rdi
callq 0x4200
jmp 0x52f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x520d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x7b8(%rbp), %rdi
callq 0x4200
leaq -0x7a0(%rbp), %rdi
callq 0x4200
jmp 0x52f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x7c8(%rbp), %rdi
callq 0x56f0
jmp 0x52f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x7f8(%rbp), %rdi
callq 0x4200
jmp 0x52f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x52d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x52ca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x52be
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x840(%rbp), %rdi
callq 0x4200
leaq -0x828(%rbp), %rdi
callq 0x4200
leaq -0x810(%rbp), %rdi
callq 0x4200
leaq -0x7e0(%rbp), %rdi
callq 0x4200
jmp 0x52f9
leaq -0x748(%rbp), %rdi
callq 0x4240
addq $0x8b0, %rsp            # imm = 0x8B0
popq %rbp
retq
leaq -0x748(%rbp), %rdi
callq 0x4240
movq -0x750(%rbp), %rdi
callq 0x4150
nopw %cs:(%rax,%rax)