// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/tools/translator/translator.cpp
// Function: Translator::SaveFileName(smooth::String const&)
Void Translator::SaveFileName(const String &file)
{
	XML::Document	*doc = new XML::Document();
	XML::Node	*root = new XML::Node("LangFile");
	XML::Node	*info = root->AddNode("info");

	info->AddNode("property", ((InfoItem *) entries.GetNth(0))->GetValue())->SetAttribute("name", "program");
	info->AddNode("property", ((InfoItem *) entries.GetNth(1))->GetValue())->SetAttribute("name", "version");
	info->AddNode("property", ((InfoItem *) entries.GetNth(2))->GetValue())->SetAttribute("name", "language");
	info->AddNode("property", ((InfoItem *) entries.GetNth(3))->GetValue())->SetAttribute("name", "righttoleft");
	info->AddNode("property", "UTF-8")->SetAttribute("name", "encoding");
	info->AddNode("property", ((InfoItem *) entries.GetNth(4))->GetValue())->SetAttribute("name", "template");
	info->AddNode("property", ((InfoItem *) entries.GetNth(5))->GetValue())->SetAttribute("name", "author");
	info->AddNode("property", ((InfoItem *) entries.GetNth(6))->GetValue())->SetAttribute("name", "url");

	XML::Node	*data = root->AddNode("data");

	dataSection->Save(data, templateName);

	doc->SetEncoding("UTF-8");
	doc->SetRootNode(root);

	doc->SaveFile(file);

	modified = False;

	delete doc;
	delete root;

	ReplaceLineEndings(file);
	FormatLines(file);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, 0x48(%rsp)
movq %rdi, %r12
movl $0x28, %edi
callq 0x7530
movq %rax, %r15
movq %rax, %rdi
callq 0x7310
movl $0x30, %edi
callq 0x7530
movq %rax, %rbx
leaq 0x30a6(%rip), %rsi      # 0x12501
movq %rsp, %rdi
callq 0x77f0
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x7480
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x71d0
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x302b(%rip), %rsi      # 0x124c3
movq %rsp, %rdi
callq 0x77f0
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x7480
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x7570
movq %rax, %r13
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x3032(%rip), %rsi      # 0x1250a
movq %rsp, %rdi
callq 0x77f0
leaq 0x6b8(%r12), %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0x9c68
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x7570
movq %rax, %r14
leaq 0x2b31(%rip), %rsi      # 0x12040
leaq 0x18(%rsp), %rdi
callq 0x77f0
leaq 0x2fa8(%rip), %rsi      # 0x124c8
leaq 0x30(%rsp), %rdi
callq 0x77f0
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x73c0
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x2fab(%rip), %rsi      # 0x1250a
movq %rsp, %rdi
callq 0x77f0
movq %rbp, %rdi
movl $0x1, %esi
callq 0x9c68
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x7570
movq %rax, %r14
leaq 0x2aaf(%rip), %rsi      # 0x12040
leaq 0x18(%rsp), %rdi
callq 0x77f0
leaq 0x2f2e(%rip), %rsi      # 0x124d0
leaq 0x30(%rsp), %rdi
callq 0x77f0
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x73c0
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x2f29(%rip), %rsi      # 0x1250a
movq %rsp, %rdi
callq 0x77f0
movq %rbp, %rdi
movl $0x2, %esi
callq 0x9c68
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x7570
movq %rax, %r14
leaq 0x2a2d(%rip), %rsi      # 0x12040
leaq 0x18(%rsp), %rdi
callq 0x77f0
leaq 0x2eb4(%rip), %rsi      # 0x124d8
leaq 0x30(%rsp), %rdi
callq 0x77f0
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x73c0
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x2ea7(%rip), %rsi      # 0x1250a
movq %rsp, %rdi
callq 0x77f0
movq %rbp, %rdi
movl $0x3, %esi
callq 0x9c68
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x7570
movq %rax, %r14
leaq 0x29ab(%rip), %rsi      # 0x12040
leaq 0x18(%rsp), %rdi
callq 0x77f0
leaq 0x2e3b(%rip), %rsi      # 0x124e1
leaq 0x30(%rsp), %rdi
callq 0x77f0
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x73c0
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x2e25(%rip), %rsi      # 0x1250a
movq %rsp, %rdi
callq 0x77f0
leaq 0x2e1f(%rip), %rsi      # 0x12513
leaq 0x18(%rsp), %rdi
callq 0x77f0
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x7570
movq %rax, %r14
leaq 0x2928(%rip), %rsi      # 0x12040
leaq 0x30(%rsp), %rdi
callq 0x77f0
leaq 0x2df0(%rip), %rsi      # 0x12519
leaq 0x50(%rsp), %rdi
callq 0x77f0
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %r14, %rdi
callq 0x73c0
leaq 0x50(%rsp), %rdi
callq 0x7980
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x2d98(%rip), %rsi      # 0x1250a
movq %rsp, %rdi
callq 0x77f0
movq %rbp, %rdi
movl $0x4, %esi
callq 0x9c68
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x7570
movq %rax, %r14
leaq 0x289c(%rip), %rsi      # 0x12040
leaq 0x18(%rsp), %rdi
callq 0x77f0
leaq 0x2d38(%rip), %rsi      # 0x124ed
leaq 0x30(%rsp), %rdi
callq 0x77f0
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x73c0
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x2d16(%rip), %rsi      # 0x1250a
movq %rsp, %rdi
callq 0x77f0
movq %rbp, %rdi
movl $0x5, %esi
callq 0x9c68
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x7570
movq %rax, %r14
leaq 0x281a(%rip), %rsi      # 0x12040
leaq 0x18(%rsp), %rdi
callq 0x77f0
leaq 0x2cbf(%rip), %rsi      # 0x124f6
leaq 0x30(%rsp), %rdi
callq 0x77f0
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x73c0
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x2c94(%rip), %rsi      # 0x1250a
movq %rsp, %rdi
callq 0x77f0
movq %rbp, %rdi
movl $0x6, %esi
callq 0x9c68
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x7570
movq %rax, %r14
leaq 0x2798(%rip), %rsi      # 0x12040
leaq 0x18(%rsp), %rdi
callq 0x77f0
leaq 0x2c44(%rip), %rsi      # 0x124fd
leaq 0x30(%rsp), %rdi
callq 0x77f0
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x73c0
leaq 0x30(%rsp), %rdi
callq 0x7980
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
leaq 0x2bac(%rip), %rsi      # 0x124a4
movq %rsp, %rdi
callq 0x77f0
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x7480
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x7570
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x7980
movq %rsp, %rdi
callq 0x7980
movq 0x768(%r12), %rdi
leaq 0x6a0(%r12), %rdx
movq %r14, %rsi
callq 0x8734
leaq 0x2bc3(%rip), %rsi      # 0x12513
movq %rsp, %r14
movq %r14, %rdi
callq 0x77f0
movq %r15, %rdi
movq %r14, %rsi
callq 0x7540
movq %rsp, %rdi
callq 0x7980
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7490
movq %r15, %rdi
movq 0x48(%rsp), %r14
movq %r14, %rsi
callq 0x7300
movb $0x0, 0x770(%r12)
movq %r15, %rdi
callq 0x7500
movl $0x28, %esi
movq %r15, %rdi
callq 0x70a0
movq %rbx, %rdi
callq 0x7150
movl $0x30, %esi
movq %rbx, %rdi
callq 0x70a0
movq %r14, %rsi
callq 0xfaaa
movq %r14, %rsi
callq 0xfca6
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xfa96
jmp 0xfa3e
jmp 0xfa96
jmp 0xfa2b
jmp 0xfa3e
jmp 0xfa96
jmp 0xfa2b
jmp 0xfa3e
jmp 0xfa96
jmp 0xfa2b
jmp 0xfa3e
jmp 0xfa96
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x7980
jmp 0xfa2e
jmp 0xfa2b
jmp 0xfa3e
jmp 0xfa3e
jmp 0xfa96
jmp 0xfa2b
jmp 0xfa3e
jmp 0xfa96
jmp 0xfa2b
jmp 0xfa3e
jmp 0xfa96
jmp 0xfa2b
jmp 0xfa3e
jmp 0xfa96
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x7980
jmp 0xfa41
jmp 0xfa3e
jmp 0xfa96
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x7980
jmp 0xfa99
jmp 0xfa96
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x7980
jmp 0xfa61
movq %rax, %r14
movq %rsp, %rdi
callq 0x7980
jmp 0xfa6e
movq %rax, %r14
movl $0x30, %esi
movq %rbx, %rdi
jmp 0xfa83
movq %rax, %r14
movl $0x28, %esi
movq %r15, %rdi
callq 0x70a0
jmp 0xfaa1
jmp 0xfa96
jmp 0xfa96
jmp 0xfa96
jmp 0xfa96
jmp 0xfa96
jmp 0xfa96
movq %rax, %r14
movq %rsp, %rdi
callq 0x7980
movq %r14, %rdi
callq 0x7290
nop