// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/i18n/section.cpp
// Function: smooth::I18n::Section::Parse(smooth::XML::Node*)
S::Errors::Error S::I18n::Section::Parse(XML::Node *section)
{
	if (section == NIL) return Error();

	static String	 sectionNode	 = "section";
	static String	 nameAttribute	 = "name";
	static String	 entryNode	 = "entry";
	static String	 stringAttribute = "string";

	if (section->GetAttributeByName(nameAttribute) != NIL) SetName(section->GetAttributeByName(nameAttribute)->GetContent());

	for (Int i = 0; i < section->GetNOfNodes(); i++)
	{
		XML::Node	*entry = section->GetNthNode(i);

		if (entry->GetName() == entryNode && entry->GetAttributeByName(stringAttribute) != NIL)
		{
			strings.Add(entry->GetContent(), entry->GetAttributeByName(stringAttribute)->GetContent().ComputeCRC32());
		}
		else if (entry->GetName() == sectionNode && entry->GetAttributeByName(nameAttribute) != NIL)
		{
			Section	*section = new Section();

			section->Parse(entry);

			sections.Add(section, section->GetName().ComputeCRC32());
		}
	}

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
testq %rdx, %rdx
je 0x9b92e
movq %rdx, %r14
movq %rsi, %r15
movb 0xd4392(%rip), %al      # 0x16fb20
testb %al, %al
je 0x9b95a
movb 0xd43a4(%rip), %al      # 0x16fb40
testb %al, %al
je 0x9b9ac
movb 0xd43b6(%rip), %al      # 0x16fb60
testb %al, %al
je 0x9b9fe
movb 0xd43c8(%rip), %al      # 0x16fb80
testb %al, %al
je 0x9ba50
leaq 0xd4361(%rip), %rsi     # 0x16fb28
movq %r14, %rdi
callq 0x58d10
testq %rax, %rax
je 0x9b7f7
leaq 0xd434d(%rip), %rsi     # 0x16fb28
movq %r14, %rdi
callq 0x58d10
movq %rax, %rdi
callq 0x55720
leaq 0x8(%r15), %rdi
movq %rax, %rsi
callq 0x555f0
movq %r14, %rdi
callq 0x56050
testl %eax, %eax
jle 0x9b935
movq %rbx, 0x8(%rsp)
leaq 0x40(%r15), %rax
movq %rax, 0x18(%rsp)
addq $0x98, %r15
movq %r15, 0x10(%rsp)
xorl %ebp, %ebp
leaq 0xd431e(%rip), %r13     # 0x16fb48
leaq 0xd4337(%rip), %rbx     # 0x16fb68
movq %r14, %rdi
movl %ebp, %esi
callq 0x57e20
movq %rax, %r12
movq %rax, %rdi
callq 0x57d50
movq %rax, %rdi
movq %r13, %rsi
callq 0x55900
testb %al, %al
je 0x9b89c
movq %r12, %rdi
movq %rbx, %rsi
callq 0x58d10
testq %rax, %rax
je 0x9b89c
movq %r12, %rdi
callq 0x58e00
movq %rax, %r15
movq %r12, %rdi
movq %rbx, %rsi
callq 0x58d10
movq %rax, %rdi
callq 0x55720
movq %rax, %rdi
callq 0x55640
movq 0x18(%rsp), %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x642ea
jmp 0x9b913
movq %r12, %rdi
callq 0x57d50
movq %rax, %rdi
leaq 0xd425a(%rip), %rsi     # 0x16fb08
callq 0x55900
testb %al, %al
je 0x9b913
movq %r12, %rdi
leaq 0xd4267(%rip), %rsi     # 0x16fb28
callq 0x58d10
testq %rax, %rax
je 0x9b913
movl $0xf0, %edi
callq 0x556b0
movq %rax, %r15
movq %rax, %rdi
callq 0x56460
movq (%r15), %rax
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq *0x10(%rax)
movq %r15, %rdi
addq $0x8, %rdi
callq 0x55640
movq %r15, 0x20(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl %eax, %edx
callq 0x5af72
incl %ebp
movq %r14, %rdi
callq 0x56050
cmpl %eax, %ebp
jl 0x9b831
xorl %eax, %eax
movq 0x8(%rsp), %rbx
jmp 0x9b937
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x9b937
xorl %eax, %eax
movq 0xd0d8a(%rip), %rcx     # 0x16c6c8
addq $0x10, %rcx
movq %rcx, (%rbx)
movl %eax, 0x8(%rbx)
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd41bf(%rip), %rdi     # 0x16fb20
callq 0x56120
testl %eax, %eax
je 0x9b796
leaq 0xd4193(%rip), %rdi     # 0x16fb08
leaq 0x5c800(%rip), %rsi     # 0xf817c
callq 0x579f0
movq 0xd15a8(%rip), %rdi     # 0x16cf30
leaq 0xd4179(%rip), %rsi     # 0x16fb08
leaq 0xd36ea(%rip), %rdx     # 0x16f080
callq 0x57e10
leaq 0xd417e(%rip), %rdi     # 0x16fb20
callq 0x56b80
jmp 0x9b796
leaq 0xd418d(%rip), %rdi     # 0x16fb40
callq 0x56120
testl %eax, %eax
je 0x9b7a4
leaq 0xd4161(%rip), %rdi     # 0x16fb28
leaq 0x78a7a(%rip), %rsi     # 0x114448
callq 0x579f0
movq 0xd1556(%rip), %rdi     # 0x16cf30
leaq 0xd4147(%rip), %rsi     # 0x16fb28
leaq 0xd3698(%rip), %rdx     # 0x16f080
callq 0x57e10
leaq 0xd414c(%rip), %rdi     # 0x16fb40
callq 0x56b80
jmp 0x9b7a4
leaq 0xd415b(%rip), %rdi     # 0x16fb60
callq 0x56120
testl %eax, %eax
je 0x9b7b2
leaq 0xd412f(%rip), %rdi     # 0x16fb48
leaq 0x5c764(%rip), %rsi     # 0xf8184
callq 0x579f0
movq 0xd1504(%rip), %rdi     # 0x16cf30
leaq 0xd4115(%rip), %rsi     # 0x16fb48
leaq 0xd3646(%rip), %rdx     # 0x16f080
callq 0x57e10
leaq 0xd411a(%rip), %rdi     # 0x16fb60
callq 0x56b80
jmp 0x9b7b2
leaq 0xd4129(%rip), %rdi     # 0x16fb80
callq 0x56120
testl %eax, %eax
je 0x9b7c0
leaq 0xd40fd(%rip), %rdi     # 0x16fb68
leaq 0x5c718(%rip), %rsi     # 0xf818a
callq 0x579f0
movq 0xd14b2(%rip), %rdi     # 0x16cf30
leaq 0xd40e3(%rip), %rsi     # 0x16fb68
leaq 0xd35f4(%rip), %rdx     # 0x16f080
callq 0x57e10
leaq 0xd40e8(%rip), %rdi     # 0x16fb80
callq 0x56b80
jmp 0x9b7c0
movq %rax, %rbx
leaq 0xd40d4(%rip), %rdi     # 0x16fb80
jmp 0x9bad0
movq %rax, %rbx
leaq 0xd40a8(%rip), %rdi     # 0x16fb60
jmp 0x9bad0
movq %rax, %rbx
leaq 0xd407c(%rip), %rdi     # 0x16fb40
jmp 0x9bad0
movq %rax, %rbx
leaq 0xd4050(%rip), %rdi     # 0x16fb20
callq 0x56420
jmp 0x9bae7
movq %rax, %rbx
movl $0xf0, %esi
movq %r15, %rdi
callq 0x55480
movq %rbx, %rdi
callq 0x57090
nop