// File: /workspace/github_c_makefile_star2_O1/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 0xe2ff
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 0x433c(%rip), %rsi      # 0x12492
movq %rsp, %rdi
callq 0x77f0
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
callq 0x76b0
movq %rsp, %rdi
callq 0x7980
leaq 0x4303(%rip), %rsi      # 0x1247d
movq %rsp, %rdi
callq 0x77f0
leaq 0x4307(%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 0x42d8(%rip), %rsi      # 0x12496
movq %rsp, %rdi
callq 0x77f0
leaq 0x42d3(%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 0xadc4(%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 0xe2f5
leaq 0x60(%rsp), %rdi
callq 0x7100
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7550
movq %r14, %rdi
movq %rbx, %rsi
callq 0xf4f8
movq 0x5b8(%r14), %r14
leaq 0x40ad(%rip), %rsi      # 0x12309
movq %rsp, %rdi
callq 0x77f0
leaq 0x40b2(%rip), %rsi      # 0x1231d
leaq 0x18(%rsp), %rdi
callq 0x77f0
movq %rsp, %rdi
leaq 0x18(%rsp), %rsi
callq 0x7170
movq %rax, %r15
leaq 0x4233(%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 0xf2d2
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 0xe30e
movq %rax, %rbx
jmp 0xe328
jmp 0xe33c
jmp 0xe33c
jmp 0xe34f
jmp 0xe35e
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x48(%rsp), %rdi
callq 0x7980
jmp 0xe33f
jmp 0xe35e
jmp 0xe33c
jmp 0xe34f
jmp 0xe35e
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x7980
jmp 0xe352
jmp 0xe34f
jmp 0xe35e
movq %rax, %rbx
movq %rsp, %rdi
callq 0x7980
jmp 0xe361
jmp 0xe35e
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x7510
movq %rbx, %rdi
callq 0x7290
nop