// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/language.cpp
// Function: smooth::I18n::Language::ParseHeader(smooth::XML::Node*)
S::Errors::Error S::I18n::Language::ParseHeader(XML::Node *language)
{
	if (language == NIL) return Error();

	XML::Node	*info = language->GetNodeByName("info");

	/* Return an error if we didn't find an info node.
	 */
	if (info == NIL) return Error();

	for (Int i = 0; i < info->GetNOfNodes(); i++)
	{
		String	 property = info->GetNthNode(i)->GetAttributeByName("name")->GetContent();

		if (property == "language")	 SetName(info->GetNthNode(i)->GetContent());

		if (property == "righttoleft")	 rightToLeft = (info->GetNthNode(i)->GetContent() == "true" ? True : False);
		if (property == "encoding")	 encoding    =  info->GetNthNode(i)->GetContent();
		if (property == "author")	 author	     =  info->GetNthNode(i)->GetContent();
		if (property == "url")		 url	     =  info->GetNthNode(i)->GetContent();
		if (property == "incomplete")	 incomplete  = (info->GetNthNode(i)->GetContent() == "true" ? True : False);
	}

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %r12
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rdx, %rdx
je 0x9a86b
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x7a43c(%rip), %rsi     # 0x114a7e
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x579f0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x56810
movq %rax, %r15
leaq 0x28(%rsp), %rdi
callq 0x59200
testq %r15, %r15
je 0x9a86b
movq %r15, %rdi
callq 0x56050
testl %eax, %eax
jle 0x9a869
movq %r12, (%rsp)
leaq 0x8(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0xf0(%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0x120(%r14), %rax
movq %rax, 0x10(%rsp)
leaq 0x138(%r14), %rax
movq %rax, 0x8(%rsp)
xorl %r12d, %r12d
leaq 0x40(%rsp), %r13
leaq 0x28(%rsp), %rbp
movq %r15, %rdi
movl %r12d, %esi
callq 0x57e20
movq %rax, %rbx
movq %r13, %rdi
leaq 0x78f7e(%rip), %rsi     # 0x113654
callq 0x579f0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x58d10
movq %rax, %rdi
callq 0x55720
movq %rbp, %rdi
movq %rax, %rsi
callq 0x570b0
movq %r13, %rdi
callq 0x59200
movq %rbp, %rdi
leaq 0x5ccbe(%rip), %rsi     # 0xf73c9
callq 0x57ef0
testb %al, %al
je 0x9a734
movq %r15, %rdi
movl %r12d, %esi
callq 0x57e20
movq %rax, %rdi
callq 0x58e00
movq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x555f0
movq %rbp, %rdi
leaq 0x5cb94(%rip), %rsi     # 0xf72d2
callq 0x57ef0
testb %al, %al
je 0x9a770
movq %r15, %rdi
movl %r12d, %esi
callq 0x57e20
movq %rax, %rdi
callq 0x58e00
movq %rax, %rdi
leaq 0x7807e(%rip), %rsi     # 0x1127e2
callq 0x57ef0
movb %al, 0x150(%r14)
movq %rbp, %rdi
leaq 0x5cb64(%rip), %rsi     # 0xf72de
callq 0x57ef0
testb %al, %al
je 0x9a7a3
movq %r15, %rdi
movl %r12d, %esi
callq 0x57e20
movq %rax, %rdi
callq 0x58e00
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x555f0
movq %rbp, %rdi
leaq 0x5cb3a(%rip), %rsi     # 0xf72e7
callq 0x57ef0
testb %al, %al
je 0x9a7d6
movq %r15, %rdi
movl %r12d, %esi
callq 0x57e20
movq %rax, %rdi
callq 0x58e00
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x555f0
movq %rbp, %rdi
leaq 0x5cb0e(%rip), %rsi     # 0xf72ee
callq 0x57ef0
testb %al, %al
je 0x9a809
movq %r15, %rdi
movl %r12d, %esi
callq 0x57e20
movq %rax, %rdi
callq 0x58e00
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x555f0
movq %rbp, %rdi
leaq 0x5cadf(%rip), %rsi     # 0xf72f2
callq 0x57ef0
testb %al, %al
je 0x9a845
movq %r15, %rdi
movl %r12d, %esi
callq 0x57e20
movq %rax, %rdi
callq 0x58e00
movq %rax, %rdi
leaq 0x77fa9(%rip), %rsi     # 0x1127e2
callq 0x57ef0
movb %al, 0x151(%r14)
movq %rbp, %rdi
callq 0x59200
incl %r12d
movq %r15, %rdi
callq 0x56050
cmpl %eax, %r12d
jl 0x9a6be
xorl %ebp, %ebp
movq (%rsp), %r12
jmp 0x9a86b
xorl %ebp, %ebp
movq 0xd0e56(%rip), %rax     # 0x16b6c8
addq $0x10, %rax
movq %rax, (%r12)
movl %ebp, 0x8(%r12)
movq %r12, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9a89d
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
jmp 0x9a8a5
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090