// File: /workspace/github_c_makefile_star2_O1/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 0xe5fd
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 0x4164(%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 0x4124(%rip), %rsi      # 0x12522
leaq 0x38(%rsp), %rdi
callq 0x77f0
leaq 0x4124(%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 0x404b(%rip), %rsi      # 0x12496
leaq 0x38(%rsp), %rdi
callq 0x77f0
leaq 0x4044(%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 0xab2b(%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 0xe5f0
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 0x9ca8
movq (%rax), %r15
leaq 0x4048(%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 0x9ca8
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 0x9ca8
movl $0x648, %esi            # imm = 0x648
addq (%rax), %rsi
leaq 0x38(%rsp), %rdi
callq 0x7640
movq %r14, %rdi
movl $0x5, %esi
callq 0x9ca8
movl $0x648, %esi            # imm = 0x648
addq (%rax), %rsi
leaq 0x38(%rsp), %rdi
callq 0x7640
leaq 0x3f91(%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 0xe65f
jmp 0xe666
movq %rax, %rbx
jmp 0xe65a
jmp 0xe666
jmp 0xe666
jmp 0xe675
jmp 0xe675
jmp 0xe629
jmp 0xe63c
jmp 0xe675
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7980
jmp 0xe63f
jmp 0xe63c
jmp 0xe675
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x7980
jmp 0xe678
jmp 0xe675
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x7980
leaq 0x20(%rsp), %rdi
callq 0x7980
jmp 0xe669
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x7610
jmp 0xe678
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x7510
movq %rbx, %rdi
callq 0x7290
nop