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

	FileSelection	 dialog;

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

	dialog.AddFilter("XML Language Files", "*.xml");
	dialog.AddFilter("All Files", "*.*");

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

		SaveFileName(fileName);

		wnd->SetText(String("smooth Translator v").Append(SMOOTH_VERSION).Append(" - ").Append(GetShortFileName(fileName)));
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x7a0, %rsp            # imm = 0x7A0
movq %rdi, %r14
leaq 0x688(%rdi), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x84e0
testb %al, %al
jne 0xef06
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0x8820
movq 0x5b8(%r14), %rsi
movq %r15, %rdi
callq 0x80f0
leaq 0x60(%rsp), %rdi
pushq $0x1
popq %rsi
callq 0x8210
leaq 0x3722(%rip), %rsi      # 0x12482
movq %rsp, %rdi
callq 0x8800
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
callq 0x86b0
movq %rsp, %rdi
callq 0x8990
leaq 0x36e9(%rip), %rsi      # 0x1246d
movq %rsp, %rdi
callq 0x8800
leaq 0x36ed(%rip), %rsi      # 0x12480
leaq 0x18(%rsp), %rdi
callq 0x8800
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
callq 0x8230
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x36be(%rip), %rsi      # 0x12486
movq %rsp, %rdi
callq 0x8800
leaq 0x36b9(%rip), %rsi      # 0x12490
leaq 0x18(%rsp), %rdi
callq 0x8800
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
callq 0x8230
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x60(%rsp), %rdi
callq 0x8370
movq 0xa1ba(%rip), %rcx      # 0x18fd0
addq $0x10, %rcx
movq %rsp, %rsi
movq %rcx, (%rsi)
andl $0x0, 0x8(%rsi)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
testb %al, %al
je 0xeefc
leaq 0x60(%rsp), %rdi
callq 0x8100
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8550
movq %r14, %rdi
movq %rbx, %rsi
callq 0x10048
movq 0x5b8(%r14), %r14
leaq 0x3496(%rip), %rsi      # 0x122f9
movq %rsp, %rdi
callq 0x8800
leaq 0x349b(%rip), %rsi      # 0x1230d
leaq 0x18(%rsp), %rdi
callq 0x8800
movq %rsp, %rdi
leaq 0x18(%rsp), %rsi
callq 0x8170
movq %rax, %r15
leaq 0x361c(%rip), %rsi      # 0x124af
leaq 0x48(%rsp), %rdi
callq 0x8800
leaq 0x48(%rsp), %rsi
movq %r15, %rdi
callq 0x8170
movq %rax, %r15
leaq 0x30(%rsp), %rdi
movq %rbx, %rdx
callq 0xfe32
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
callq 0x8170
movq (%r14), %rcx
movq %r14, %rdi
movq %rax, %rsi
callq *0xa0(%rcx)
leaq 0x30(%rsp), %rdi
callq 0x8990
leaq 0x48(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x60(%rsp), %rdi
callq 0x8510
addq $0x7a0, %rsp            # imm = 0x7A0
popq %rbx
popq %r14
popq %r15
retq
jmp 0xef15
movq %rax, %rbx
jmp 0xef2f
jmp 0xef43
jmp 0xef43
jmp 0xef56
jmp 0xef65
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x8990
leaq 0x48(%rsp), %rdi
callq 0x8990
jmp 0xef46
jmp 0xef65
jmp 0xef43
jmp 0xef56
jmp 0xef65
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x8990
jmp 0xef59
jmp 0xef56
jmp 0xef65
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8990
jmp 0xef68
jmp 0xef65
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x8510
movq %rbx, %rdi
callq 0x8290