// File: /workspace/github_c_makefile_star2_O2/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 0x84e0
testb %al, %al
jne 0xf1f4
leaq 0x140(%rsp), %r14
movq %r14, %rdi
callq 0x8820
movq 0x5b8(%rbx), %rsi
movq %r14, %rdi
callq 0x80f0
leaq 0x140(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x8210
leaq 0x3550(%rip), %rsi      # 0x12525
leaq 0x38(%rsp), %rdi
callq 0x8800
leaq 0x140(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x86b0
leaq 0x38(%rsp), %rdi
callq 0x8990
leaq 0x3510(%rip), %rsi      # 0x12512
leaq 0x38(%rsp), %rdi
callq 0x8800
leaq 0x3510(%rip), %rsi      # 0x12523
leaq 0x8(%rsp), %rdi
callq 0x8800
leaq 0x140(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x8230
leaq 0x8(%rsp), %rdi
callq 0x8990
leaq 0x38(%rsp), %rdi
callq 0x8990
leaq 0x3437(%rip), %rsi      # 0x12486
leaq 0x38(%rsp), %rdi
callq 0x8800
leaq 0x3430(%rip), %rsi      # 0x12490
leaq 0x8(%rsp), %rdi
callq 0x8800
leaq 0x140(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x8230
leaq 0x8(%rsp), %rdi
callq 0x8990
leaq 0x38(%rsp), %rdi
callq 0x8990
leaq 0x140(%rsp), %rdi
callq 0x8370
movq 0x9f27(%rip), %rcx      # 0x18fd0
addq $0x10, %rcx
leaq 0x38(%rsp), %rsi
movq %rcx, (%rsi)
andl $0x0, 0x8(%rsi)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
testb %al, %al
je 0xf1e7
leaq 0x140(%rsp), %rdi
callq 0x8100
leaq 0x38(%rsp), %rdi
pushq $0x3
popq %rsi
pushq $0x1
popq %rcx
movq %rax, %rdx
callq 0x8890
leaq 0x6b8(%rbx), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0xab92
movq (%rax), %r15
leaq 0x343b(%rip), %rsi      # 0x12540
leaq 0x20(%rsp), %rdi
callq 0x8800
addq $0x648, %r15            # imm = 0x648
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %r15, %rsi
callq 0x88b0
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0xab92
movl $0x648, %esi            # imm = 0x648
addq (%rax), %rsi
leaq 0x8(%rsp), %rdi
callq 0x8170
leaq 0x38(%rsp), %rdi
movq %rax, %rsi
callq 0x8640
leaq 0x8(%rsp), %rdi
callq 0x8990
leaq 0x20(%rsp), %rdi
callq 0x8990
pushq $0x2
popq %rsi
movq %r14, %rdi
callq 0xab92
movl $0x648, %esi            # imm = 0x648
addq (%rax), %rsi
leaq 0x38(%rsp), %rdi
callq 0x8640
pushq $0x5
popq %rsi
movq %r14, %rdi
callq 0xab92
movl $0x648, %esi            # imm = 0x648
addq (%rax), %rsi
leaq 0x38(%rsp), %rdi
callq 0x8640
leaq 0x338a(%rip), %rsi      # 0x12531
leaq 0x8(%rsp), %rdi
callq 0x8800
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x85b0
leaq 0x8(%rsp), %rdi
callq 0x8990
movq 0x768(%rbx), %rdi
leaq 0x38(%rsp), %rsi
xorl %edx, %edx
callq 0x98bc
leaq 0x38(%rsp), %rdi
callq 0x8610
leaq 0x140(%rsp), %rdi
callq 0x8510
addq $0x880, %rsp            # imm = 0x880
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
jmp 0xf256
jmp 0xf25d
movq %rax, %rbx
jmp 0xf251
jmp 0xf25d
jmp 0xf25d
jmp 0xf26c
jmp 0xf26c
jmp 0xf220
jmp 0xf233
jmp 0xf26c
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8990
jmp 0xf236
jmp 0xf233
jmp 0xf26c
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x8990
jmp 0xf26f
jmp 0xf26c
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x8990
leaq 0x20(%rsp), %rdi
callq 0x8990
jmp 0xf260
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x8610
jmp 0xf26f
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x8510
movq %rbx, %rdi
callq 0x8290