// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/tools/translator/translator.cpp
// Function: Translator::OpenTemplate(smooth::String const&)
Int Translator::OpenTemplate(const String &fileName)
{
	if (!File(fileName).Exists()) return Error();

	XML::Document	 doc;

	if (doc.LoadFile(fileName) == Error()) return Error();

	XML::Node	*data = doc.GetRootNode()->GetNodeByName("data");

	dataSection->Parse(data, list_entries, entries);

	return Success();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq -0x60(%rbp), %rdi
movq %rdi, -0x108(%rbp)
xorl %esi, %esi
callq 0x8490
movq -0x110(%rbp), %rsi
movq -0x108(%rbp), %rdx
leaq -0x48(%rbp), %rdi
callq 0x8670
jmp 0x17b44
leaq -0x48(%rbp), %rdi
callq 0x8740
movb %al, -0x119(%rbp)
jmp 0x17b55
movb -0x119(%rbp), %al
xorb $-0x1, %al
movb %al, -0x11a(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x8250
leaq -0x60(%rbp), %rdi
callq 0x8990
movb -0x11a(%rbp), %al
testb $0x1, %al
jne 0x17b84
jmp 0x17c0f
leaq -0x80(%rbp), %rdi
movq %rdi, -0x128(%rbp)
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x9230
movq -0x128(%rbp), %rdi
callq 0x8ef0
movl %eax, -0x120(%rbp)
jmp 0x17bad
movl -0x120(%rbp), %eax
movl %eax, -0x4(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x9260
jmp 0x17e34
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x17be7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x8250
leaq -0x60(%rbp), %rdi
callq 0x8990
jmp 0x17e40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x9260
jmp 0x17e40
leaq -0xa8(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x8310
movq -0x138(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x80c0
movl %eax, -0x12c(%rbp)
jmp 0x17c3a
leaq -0xb8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x9230
jmp 0x17c4d
leaq -0xb8(%rbp), %rdi
callq 0x8ef0
movl %eax, -0x13c(%rbp)
jmp 0x17c61
leaq -0xb8(%rbp), %rdi
callq 0x9260
movl -0x13c(%rbp), %ecx
movl -0x12c(%rbp), %eax
cmpl %ecx, %eax
jne 0x17d17
leaq -0xc8(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x9230
jmp 0x17c94
leaq -0xc8(%rbp), %rdi
callq 0x8ef0
movl %eax, -0x140(%rbp)
jmp 0x17ca8
movl -0x140(%rbp), %eax
movl %eax, -0x4(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x9260
movl $0x1, -0xcc(%rbp)
jmp 0x17e18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
jmp 0x17e26
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x9260
jmp 0x17e26
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x9260
jmp 0x17e26
leaq -0xa8(%rbp), %rdi
callq 0x8260
movq %rax, -0x148(%rbp)
jmp 0x17d2c
leaq 0x5761(%rip), %rsi      # 0x1d494
leaq -0xf0(%rbp), %rdi
callq 0x8800
jmp 0x17d41
movq -0x148(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x86b0
movq %rax, -0x150(%rbp)
jmp 0x17d5d
leaq -0xf0(%rbp), %rdi
callq 0x8990
movq -0x150(%rbp), %rax
movq -0x118(%rbp), %rcx
movq %rax, -0xd8(%rbp)
movq 0x600(%rcx), %rdx
movq 0x768(%rcx), %rdi
movq -0xd8(%rbp), %rsi
addq $0x6b8, %rcx            # imm = 0x6B8
callq 0x95f0
jmp 0x17da1
leaq -0x100(%rbp), %rdi
callq 0x8eb0
jmp 0x17daf
leaq -0x100(%rbp), %rdi
callq 0x8ef0
movl %eax, -0x154(%rbp)
jmp 0x17dc3
movl -0x154(%rbp), %eax
movl %eax, -0x4(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x8f10
movl $0x1, -0xcc(%rbp)
jmp 0x17e18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x8990
jmp 0x17e26
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x68(%rbp)
movl %eax, -0x6c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x8f10
jmp 0x17e26
leaq -0xa8(%rbp), %rdi
callq 0x8510
jmp 0x17e34
leaq -0xa8(%rbp), %rdi
callq 0x8510
jmp 0x17e40
movl -0x4(%rbp), %eax
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq -0x68(%rbp), %rdi
callq 0x8290
nopl (%rax)