// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x28
popq %rdi
callq 0x8530
movq %rax, %r15
movq %rax, %rdi
callq 0x8310
pushq $0x30
popq %rdi
callq 0x8530
movq %rax, %rbx
leaq 0x246e(%rip), %rsi      # 0x124f1
movq %rsp, %rdi
callq 0x8800
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x8480
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x81d0
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x23f3(%rip), %rsi      # 0x124b3
movq %rsp, %rdi
callq 0x8800
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x8480
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x8570
movq %rax, %r13
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x23fa(%rip), %rsi      # 0x124fa
movq %rsp, %rdi
callq 0x8800
leaq 0x6b8(%r12), %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0xab92
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x8570
movq %rax, %r14
leaq 0x1ef9(%rip), %rsi      # 0x12030
leaq 0x18(%rsp), %rdi
callq 0x8800
leaq 0x2370(%rip), %rsi      # 0x124b8
leaq 0x30(%rsp), %rdi
callq 0x8800
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x83c0
leaq 0x30(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x2373(%rip), %rsi      # 0x124fa
movq %rsp, %rdi
callq 0x8800
pushq $0x1
popq %rsi
movq %rbp, %rdi
callq 0xab92
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x8570
movq %rax, %r14
leaq 0x1e79(%rip), %rsi      # 0x12030
leaq 0x18(%rsp), %rdi
callq 0x8800
leaq 0x22f8(%rip), %rsi      # 0x124c0
leaq 0x30(%rsp), %rdi
callq 0x8800
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x83c0
leaq 0x30(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x22f3(%rip), %rsi      # 0x124fa
movq %rsp, %rdi
callq 0x8800
pushq $0x2
popq %rsi
movq %rbp, %rdi
callq 0xab92
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x8570
movq %rax, %r14
leaq 0x1df9(%rip), %rsi      # 0x12030
leaq 0x18(%rsp), %rdi
callq 0x8800
leaq 0x2280(%rip), %rsi      # 0x124c8
leaq 0x30(%rsp), %rdi
callq 0x8800
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x83c0
leaq 0x30(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x2273(%rip), %rsi      # 0x124fa
movq %rsp, %rdi
callq 0x8800
pushq $0x3
popq %rsi
movq %rbp, %rdi
callq 0xab92
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x8570
movq %rax, %r14
leaq 0x1d79(%rip), %rsi      # 0x12030
leaq 0x18(%rsp), %rdi
callq 0x8800
leaq 0x2209(%rip), %rsi      # 0x124d1
leaq 0x30(%rsp), %rdi
callq 0x8800
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x83c0
leaq 0x30(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x21f3(%rip), %rsi      # 0x124fa
movq %rsp, %rdi
callq 0x8800
leaq 0x21ed(%rip), %rsi      # 0x12503
leaq 0x18(%rsp), %rdi
callq 0x8800
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x8570
movq %rax, %r14
leaq 0x1cf6(%rip), %rsi      # 0x12030
leaq 0x30(%rsp), %rdi
callq 0x8800
leaq 0x21be(%rip), %rsi      # 0x12509
leaq 0x50(%rsp), %rdi
callq 0x8800
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %r14, %rdi
callq 0x83c0
leaq 0x50(%rsp), %rdi
callq 0x8990
leaq 0x30(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x2166(%rip), %rsi      # 0x124fa
movq %rsp, %rdi
callq 0x8800
pushq $0x4
popq %rsi
movq %rbp, %rdi
callq 0xab92
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x8570
movq %rax, %r14
leaq 0x1c6c(%rip), %rsi      # 0x12030
leaq 0x18(%rsp), %rdi
callq 0x8800
leaq 0x2108(%rip), %rsi      # 0x124dd
leaq 0x30(%rsp), %rdi
callq 0x8800
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x83c0
leaq 0x30(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x20e6(%rip), %rsi      # 0x124fa
movq %rsp, %rdi
callq 0x8800
pushq $0x5
popq %rsi
movq %rbp, %rdi
callq 0xab92
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x8570
movq %rax, %r14
leaq 0x1bec(%rip), %rsi      # 0x12030
leaq 0x18(%rsp), %rdi
callq 0x8800
leaq 0x2091(%rip), %rsi      # 0x124e6
leaq 0x30(%rsp), %rdi
callq 0x8800
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x83c0
leaq 0x30(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x2066(%rip), %rsi      # 0x124fa
movq %rsp, %rdi
callq 0x8800
pushq $0x6
popq %rsi
movq %rbp, %rdi
callq 0xab92
movl $0x648, %edx            # imm = 0x648
addq (%rax), %rdx
movq %rsp, %rsi
movq %r13, %rdi
callq 0x8570
movq %rax, %r14
leaq 0x1b6c(%rip), %rsi      # 0x12030
leaq 0x18(%rsp), %rdi
callq 0x8800
leaq 0x2018(%rip), %rsi      # 0x124ed
leaq 0x30(%rsp), %rdi
callq 0x8800
leaq 0x18(%rsp), %rsi
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x83c0
leaq 0x30(%rsp), %rdi
callq 0x8990
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
leaq 0x1f80(%rip), %rsi      # 0x12494
movq %rsp, %rdi
callq 0x8800
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x8480
movq %rsp, %rsi
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x8570
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x8990
movq %rsp, %rdi
callq 0x8990
movq 0x768(%r12), %rdi
leaq 0x6a0(%r12), %rdx
movq %r14, %rsi
callq 0x96bc
leaq 0x1f97(%rip), %rsi      # 0x12503
movq %rsp, %r14
movq %r14, %rdi
callq 0x8800
movq %r15, %rdi
movq %r14, %rsi
callq 0x8540
movq %rsp, %rdi
callq 0x8990
movq %r15, %rdi
movq %rbx, %rsi
callq 0x8490
movq %r15, %rdi
movq 0x48(%rsp), %r14
movq %r14, %rsi
callq 0x8300
movb $0x0, 0x770(%r12)
movq %r15, %rdi
callq 0x8500
pushq $0x28
popq %rsi
movq %r15, %rdi
callq 0x80a0
movq %rbx, %rdi
callq 0x8150
pushq $0x30
popq %rsi
movq %rbx, %rdi
callq 0x80a0
movq %r14, %rsi
callq 0x106be
movq %r14, %rsi
callq 0x108b0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x106aa
jmp 0x10656
jmp 0x106aa
jmp 0x10643
jmp 0x10656
jmp 0x106aa
jmp 0x10643
jmp 0x10656
jmp 0x106aa
jmp 0x10643
jmp 0x10656
jmp 0x106aa
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x8990
jmp 0x10646
jmp 0x10643
jmp 0x10656
jmp 0x10656
jmp 0x106aa
jmp 0x10643
jmp 0x10656
jmp 0x106aa
jmp 0x10643
jmp 0x10656
jmp 0x106aa
jmp 0x10643
jmp 0x10656
jmp 0x106aa
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x8990
jmp 0x10659
jmp 0x10656
jmp 0x106aa
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x8990
jmp 0x106ad
jmp 0x106aa
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x8990
jmp 0x10679
movq %rax, %r14
movq %rsp, %rdi
callq 0x8990
jmp 0x10686
movq %rax, %r14
pushq $0x30
popq %rsi
movq %rbx, %rdi
jmp 0x10697
movq %rax, %r14
pushq $0x28
popq %rsi
movq %r15, %rdi
callq 0x80a0
jmp 0x106b5
jmp 0x106aa
jmp 0x106aa
jmp 0x106aa
jmp 0x106aa
jmp 0x106aa
jmp 0x106aa
movq %rax, %r14
movq %rsp, %rdi
callq 0x8990
movq %r14, %rdi
callq 0x8290
nop