// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/tools/translator/translator.cpp
// Function: Translator::ExportAs()
Void Translator::ExportAs()
{
	if (fileName == NIL) return;

	FileSelection	 dialog;

	dialog.SetParentWindow(wnd);
	dialog.SetMode(SFM_SAVE);
	dialog.SetDefaultExtension("txt");

	dialog.AddFilter("Plain Text Files", "*.txt");
	dialog.AddFilter("All Files", "*.*");

	if (dialog.ShowDialog() == Success())
	{
		IO::OutStream	 stream(IO::STREAM_FILE, dialog.GetFileName(), IO::OS_REPLACE);

		stream.OutputLine(((InfoItem *) entries.GetNth(0))->GetValue().Append(" ").Append(((InfoItem *) entries.GetNth(1))->GetValue()));
		stream.OutputLine(((InfoItem *) entries.GetNth(2))->GetValue());
		stream.OutputLine(((InfoItem *) entries.GetNth(5))->GetValue());
		stream.OutputString("\n");

		dataSection->Export(stream, 0);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x880, %rsp            # imm = 0x880
movq %rdi, %rbx
addq $0x688, %rdi            # imm = 0x688
xorl %esi, %esi
callq 0x74e0
testb %al, %al
jne 0xe56b
leaq 0x140(%rsp), %r14
movq %r14, %rdi
callq 0x7810
movq 0x5b8(%rbx), %rsi
movq %r14, %rdi
callq 0x70f0
leaq 0x140(%rsp), %rdi
movl $0x1, %esi
callq 0x7210
leaq 0x41f6(%rip), %rsi      # 0x12535
leaq 0x38(%rsp), %rdi
callq 0x77f0
leaq 0x140(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x76b0
leaq 0x38(%rsp), %rdi
callq 0x7980
leaq 0x41b6(%rip), %rsi      # 0x12522
leaq 0x38(%rsp), %rdi
callq 0x77f0
leaq 0x41b6(%rip), %rsi      # 0x12533
leaq 0x8(%rsp), %rdi
callq 0x77f0
leaq 0x140(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x7230
leaq 0x8(%rsp), %rdi
callq 0x7980
leaq 0x38(%rsp), %rdi
callq 0x7980
leaq 0x40dd(%rip), %rsi      # 0x12496
leaq 0x38(%rsp), %rdi
callq 0x77f0
leaq 0x40d6(%rip), %rsi      # 0x124a0
leaq 0x8(%rsp), %rdi
callq 0x77f0
leaq 0x140(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x7230
leaq 0x8(%rsp), %rdi
callq 0x7980
leaq 0x38(%rsp), %rdi
callq 0x7980
leaq 0x140(%rsp), %rdi
callq 0x7370
movq 0xabbd(%rip), %rcx      # 0x18fd0
addq $0x10, %rcx
leaq 0x38(%rsp), %rsi
movq %rcx, (%rsi)
movl $0x0, 0x8(%rsi)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
testb %al, %al
je 0xe55e
leaq 0x140(%rsp), %rdi
callq 0x7100
leaq 0x38(%rsp), %rdi
movl $0x3, %esi
movq %rax, %rdx
movl $0x1, %ecx
callq 0x7880
leaq 0x6b8(%rbx), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x9c68
movq (%rax), %r15
leaq 0x40da(%rip), %rsi      # 0x12550
leaq 0x20(%rsp), %rdi
callq 0x77f0
addq $0x648, %r15            # imm = 0x648
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %r15, %rsi
callq 0x78a0
movq %r14, %rdi
movl $0x1, %esi
callq 0x9c68
movl $0x648, %esi            # imm = 0x648
addq (%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x7170
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
callq 0x7640
leaq 0x8(%rsp), %rdi
callq 0x7980
leaq 0x20(%rsp), %rdi
callq 0x7980
movq %r14, %rdi
movl $0x2, %esi
callq 0x9c68
movl $0x648, %esi            # imm = 0x648
addq (%rax), %rsi
leaq 0x38(%rsp), %rdi
callq 0x7640
movq %r14, %rdi
movl $0x5, %esi
callq 0x9c68
movl $0x648, %esi            # imm = 0x648
addq (%rax), %rsi
leaq 0x38(%rsp), %rdi
callq 0x7640
leaq 0x4023(%rip), %rsi      # 0x12541
leaq 0x8(%rsp), %rdi
callq 0x77f0
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x75b0
leaq 0x8(%rsp), %rdi
callq 0x7980
movq 0x768(%rbx), %rdi
leaq 0x38(%rsp), %rsi
xorl %edx, %edx
callq 0x8944
leaq 0x38(%rsp), %rdi
callq 0x7610
leaq 0x140(%rsp), %rdi
callq 0x7510
addq $0x880, %rsp            # imm = 0x880
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0xe5cd
jmp 0xe5d4
movq %rax, %rbx
jmp 0xe5c8
jmp 0xe5d4
jmp 0xe5d4
jmp 0xe5e3
jmp 0xe5e3
jmp 0xe597
jmp 0xe5aa
jmp 0xe5e3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7980
jmp 0xe5ad
jmp 0xe5aa
jmp 0xe5e3
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x7980
jmp 0xe5e6
jmp 0xe5e3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7980
leaq 0x20(%rsp), %rdi
callq 0x7980
jmp 0xe5d7
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x7610
jmp 0xe5e6
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x7510
movq %rbx, %rdi
callq 0x7290
nop