// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x9a0, %rsp            # imm = 0x9A0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x938(%rbp)
addq $0x688, %rdi            # imm = 0x688
xorl %esi, %esi
callq 0x84f0
testb $0x1, %al
jne 0x15e4e
jmp 0x15e53
jmp 0x16371
leaq -0x748(%rbp), %rdi
movq %rdi, -0x940(%rbp)
callq 0x8820
movq -0x938(%rbp), %rax
movq -0x940(%rbp), %rdi
movq 0x5b8(%rax), %rsi
callq 0x80f0
jmp 0x15e82
leaq -0x748(%rbp), %rdi
movl $0x1, %esi
callq 0x8210
jmp 0x15e95
leaq 0x7689(%rip), %rsi      # 0x1d525
leaq -0x770(%rbp), %rdi
callq 0x8800
jmp 0x15eaa
leaq -0x748(%rbp), %rdi
leaq -0x770(%rbp), %rsi
callq 0x86c0
jmp 0x15ebf
leaq -0x770(%rbp), %rdi
callq 0x8990
leaq 0x7640(%rip), %rsi      # 0x1d512
leaq -0x788(%rbp), %rdi
callq 0x8800
jmp 0x15ee0
leaq 0x763c(%rip), %rsi      # 0x1d523
leaq -0x7a0(%rbp), %rdi
callq 0x8800
jmp 0x15ef5
leaq -0x748(%rbp), %rdi
leaq -0x788(%rbp), %rsi
leaq -0x7a0(%rbp), %rdx
callq 0x8230
jmp 0x15f11
leaq -0x7a0(%rbp), %rdi
callq 0x8990
leaq -0x788(%rbp), %rdi
callq 0x8990
leaq 0x7556(%rip), %rsi      # 0x1d486
leaq -0x7b8(%rbp), %rdi
callq 0x8800
jmp 0x15f3e
leaq 0x754b(%rip), %rsi      # 0x1d490
leaq -0x7d0(%rbp), %rdi
callq 0x8800
jmp 0x15f53
leaq -0x748(%rbp), %rdi
leaq -0x7b8(%rbp), %rsi
leaq -0x7d0(%rbp), %rdx
callq 0x8230
jmp 0x15f6f
leaq -0x7d0(%rbp), %rdi
callq 0x8990
leaq -0x7b8(%rbp), %rdi
callq 0x8990
leaq -0x748(%rbp), %rdi
callq 0x8370
movq %rax, -0x948(%rbp)
jmp 0x15f9c
leaq -0x7e0(%rbp), %rdi
callq 0x8eb0
jmp 0x15faa
movq -0x948(%rbp), %rdi
movq (%rdi), %rax
movq 0x18(%rax), %rax
leaq -0x7e0(%rbp), %rsi
callq *%rax
movb %al, -0x949(%rbp)
jmp 0x15fc9
leaq -0x7e0(%rbp), %rdi
callq 0x8f10
movb -0x949(%rbp), %al
testb $0x1, %al
jne 0x15fe4
jmp 0x16365
leaq -0x748(%rbp), %rdi
callq 0x8100
movq %rax, -0x958(%rbp)
jmp 0x15ff9
movq -0x958(%rbp), %rdx
leaq -0x8e8(%rbp), %rdi
movl $0x3, %esi
movl $0x1, %ecx
callq 0x8890
jmp 0x16018
movq -0x938(%rbp), %rdi
addq $0x6b8, %rdi            # imm = 0x6B8
xorl %esi, %esi
callq 0x1a500
movq %rax, -0x960(%rbp)
jmp 0x16036
movq -0x960(%rbp), %rax
movq (%rax), %rdi
callq 0x1a660
movq %rax, -0x968(%rbp)
jmp 0x1604e
leaq 0x74eb(%rip), %rsi      # 0x1d540
leaq -0x918(%rbp), %rdi
callq 0x8800
jmp 0x16063
movq -0x968(%rbp), %rsi
leaq -0x900(%rbp), %rdi
leaq -0x918(%rbp), %rdx
callq 0x88b0
jmp 0x1607f
movq -0x938(%rbp), %rdi
addq $0x6b8, %rdi            # imm = 0x6B8
movl $0x1, %esi
callq 0x1a500
movq %rax, -0x970(%rbp)
jmp 0x160a0
movq -0x970(%rbp), %rax
movq (%rax), %rdi
callq 0x1a660
movq %rax, -0x978(%rbp)
jmp 0x160b8
movq -0x978(%rbp), %rsi
leaq -0x900(%rbp), %rdi
callq 0x8170
movq %rax, -0x980(%rbp)
jmp 0x160d4
movq -0x980(%rbp), %rsi
leaq -0x8e8(%rbp), %rdi
callq 0x8650
jmp 0x160e9
leaq -0x900(%rbp), %rdi
callq 0x8990
leaq -0x918(%rbp), %rdi
callq 0x8990
movq -0x938(%rbp), %rdi
addq $0x6b8, %rdi            # imm = 0x6B8
movl $0x2, %esi
callq 0x1a500
movq %rax, -0x988(%rbp)
jmp 0x16122
movq -0x988(%rbp), %rax
movq (%rax), %rdi
callq 0x1a660
movq %rax, -0x990(%rbp)
jmp 0x1613a
movq -0x990(%rbp), %rsi
leaq -0x8e8(%rbp), %rdi
callq 0x8650
jmp 0x1614f
movq -0x938(%rbp), %rdi
addq $0x6b8, %rdi            # imm = 0x6B8
movl $0x5, %esi
callq 0x1a500
movq %rax, -0x998(%rbp)
jmp 0x16170
movq -0x998(%rbp), %rax
movq (%rax), %rdi
callq 0x1a660
movq %rax, -0x9a0(%rbp)
jmp 0x16188
movq -0x9a0(%rbp), %rsi
leaq -0x8e8(%rbp), %rdi
callq 0x8650
jmp 0x1619d
leaq 0x738d(%rip), %rsi      # 0x1d531
leaq -0x930(%rbp), %rdi
callq 0x8800
jmp 0x161b2
leaq -0x8e8(%rbp), %rdi
leaq -0x930(%rbp), %rsi
callq 0x85c0
jmp 0x161c7
leaq -0x930(%rbp), %rdi
callq 0x8990
movq -0x938(%rbp), %rax
movq 0x768(%rax), %rdi
leaq -0x8e8(%rbp), %rsi
xorl %edx, %edx
callq 0xa920
jmp 0x161f1
leaq -0x8e8(%rbp), %rdi
callq 0x8620
jmp 0x16365
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x1637a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x770(%rbp), %rdi
callq 0x8990
jmp 0x1637a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x1626e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x7a0(%rbp), %rdi
callq 0x8990
leaq -0x788(%rbp), %rdi
callq 0x8990
jmp 0x1637a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x162b1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x7d0(%rbp), %rdi
callq 0x8990
leaq -0x7b8(%rbp), %rdi
callq 0x8990
jmp 0x1637a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x7e0(%rbp), %rdi
callq 0x8f10
jmp 0x1637a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x16357
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
jmp 0x1632b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x900(%rbp), %rdi
callq 0x8990
leaq -0x918(%rbp), %rdi
callq 0x8990
jmp 0x16357
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x750(%rbp)
movl %eax, -0x754(%rbp)
leaq -0x930(%rbp), %rdi
callq 0x8990
leaq -0x8e8(%rbp), %rdi
callq 0x8620
jmp 0x1637a
leaq -0x748(%rbp), %rdi
callq 0x8520
addq $0x9a0, %rsp            # imm = 0x9A0
popq %rbp
retq
leaq -0x748(%rbp), %rdi
callq 0x8520
movq -0x750(%rbp), %rdi
callq 0x8290
nopw %cs:(%rax,%rax)