// File: /workspace/github_c_makefile_star2_O1/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 0x9b05b
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x7aa3c(%rip), %rsi     # 0x11586e
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 0x9b05b
movq %r15, %rdi
callq 0x56050
testl %eax, %eax
jle 0x9b059
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 0x79582(%rip), %rsi     # 0x114448
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 0x5d32a(%rip), %rsi     # 0xf8225
callq 0x57ef0
testb %al, %al
je 0x9af24
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 0x5d200(%rip), %rsi     # 0xf812e
callq 0x57ef0
testb %al, %al
je 0x9af60
movq %r15, %rdi
movl %r12d, %esi
callq 0x57e20
movq %rax, %rdi
callq 0x58e00
movq %rax, %rdi
leaq 0x786c9(%rip), %rsi     # 0x11361d
callq 0x57ef0
movb %al, 0x150(%r14)
movq %rbp, %rdi
leaq 0x5d1d0(%rip), %rsi     # 0xf813a
callq 0x57ef0
testb %al, %al
je 0x9af93
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 0x5d1a6(%rip), %rsi     # 0xf8143
callq 0x57ef0
testb %al, %al
je 0x9afc6
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 0x5d17a(%rip), %rsi     # 0xf814a
callq 0x57ef0
testb %al, %al
je 0x9aff9
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 0x5d14b(%rip), %rsi     # 0xf814e
callq 0x57ef0
testb %al, %al
je 0x9b035
movq %r15, %rdi
movl %r12d, %esi
callq 0x57e20
movq %rax, %rdi
callq 0x58e00
movq %rax, %rdi
leaq 0x785f4(%rip), %rsi     # 0x11361d
callq 0x57ef0
movb %al, 0x151(%r14)
movq %rbp, %rdi
callq 0x59200
incl %r12d
movq %r15, %rdi
callq 0x56050
cmpl %eax, %r12d
jl 0x9aeae
xorl %ebp, %ebp
movq (%rsp), %r12
jmp 0x9b05b
xorl %ebp, %ebp
movq 0xd1666(%rip), %rax     # 0x16c6c8
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 0x9b08d
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
jmp 0x9b095
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090