// File: /workspace/github_c_makefile_star2_O3/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 0x74e0
testb %al, %al
jne 0xe26d
leaq 0x60(%rsp), %r15
movq %r15, %rdi
callq 0x7810
movq 0x5b8(%r14), %rsi
movq %r15, %rdi
callq 0x70f0
leaq 0x60(%rsp), %rdi
movl $0x1, %esi
callq 0x7210
leaq 0x43ce(%rip), %rsi      # 0x12492
movq %rsp, %rdi
callq 0x77f0
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
callq 0x76b0
movq %rsp, %rdi
callq 0x7980
leaq 0x4395(%rip), %rsi      # 0x1247d
movq %rsp, %rdi
callq 0x77f0
leaq 0x4399(%rip), %rsi      # 0x12490
leaq 0x18(%rsp), %rdi
callq 0x77f0
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
callq 0x7230
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x436a(%rip), %rsi      # 0x12496
movq %rsp, %rdi
callq 0x77f0
leaq 0x4365(%rip), %rsi      # 0x124a0
leaq 0x18(%rsp), %rdi
callq 0x77f0
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
callq 0x7230
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x60(%rsp), %rdi
callq 0x7370
movq 0xae56(%rip), %rcx      # 0x18fd0
addq $0x10, %rcx
movq %rsp, %rsi
movq %rcx, (%rsi)
movl $0x0, 0x8(%rsi)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x18(%rcx)
testb %al, %al
je 0xe263
leaq 0x60(%rsp), %rdi
callq 0x7100
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7550
movq %r14, %rdi
movq %rbx, %rsi
callq 0xf41c
movq 0x5b8(%r14), %r14
leaq 0x413f(%rip), %rsi      # 0x12309
movq %rsp, %rdi
callq 0x77f0
leaq 0x4144(%rip), %rsi      # 0x1231d
leaq 0x18(%rsp), %rdi
callq 0x77f0
movq %rsp, %rdi
leaq 0x18(%rsp), %rsi
callq 0x7170
movq %rax, %r15
leaq 0x42c5(%rip), %rsi      # 0x124bf
leaq 0x48(%rsp), %rdi
callq 0x77f0
leaq 0x48(%rsp), %rsi
movq %r15, %rdi
callq 0x7170
movq %rax, %r15
leaq 0x30(%rsp), %rdi
movq %rbx, %rdx
callq 0xf1f6
leaq 0x30(%rsp), %rsi
movq %r15, %rdi
callq 0x7170
movq (%r14), %rcx
movq %r14, %rdi
movq %rax, %rsi
callq *0xa0(%rcx)
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x48(%rsp), %rdi
callq 0x7980
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x60(%rsp), %rdi
callq 0x7510
addq $0x7a0, %rsp            # imm = 0x7A0
popq %rbx
popq %r14
popq %r15
retq
jmp 0xe27c
movq %rax, %rbx
jmp 0xe296
jmp 0xe2aa
jmp 0xe2aa
jmp 0xe2bd
jmp 0xe2cc
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x48(%rsp), %rdi
callq 0x7980
jmp 0xe2ad
jmp 0xe2cc
jmp 0xe2aa
jmp 0xe2bd
jmp 0xe2cc
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x7980
jmp 0xe2c0
jmp 0xe2bd
jmp 0xe2cc
movq %rax, %rbx
movq %rsp, %rdi
callq 0x7980
jmp 0xe2cf
jmp 0xe2cc
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x7510
movq %rbx, %rdi
callq 0x7290
nop