// File: /workspace/github_c_makefile_star2_O3/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 0x9b0fa
movq %rdx, %r14
movq %rsi, %r15
movb 0xd3bc6(%rip), %al      # 0x16eb20
testb %al, %al
je 0x9b126
movb 0xd3bd8(%rip), %al      # 0x16eb40
testb %al, %al
je 0x9b178
movb 0xd3bea(%rip), %al      # 0x16eb60
testb %al, %al
je 0x9b1ca
movb 0xd3bfc(%rip), %al      # 0x16eb80
testb %al, %al
je 0x9b21c
leaq 0xd3b95(%rip), %rsi     # 0x16eb28
movq %r14, %rdi
callq 0x58d10
testq %rax, %rax
je 0x9afc3
leaq 0xd3b81(%rip), %rsi     # 0x16eb28
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 0x9b101
movq %rbx, 0x8(%rsp)
leaq 0x40(%r15), %rax
movq %rax, 0x18(%rsp)
addq $0x98, %r15
movq %r15, 0x10(%rsp)
xorl %ebp, %ebp
leaq 0xd3b52(%rip), %r13     # 0x16eb48
leaq 0xd3b6b(%rip), %rbx     # 0x16eb68
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 0x9b068
movq %r12, %rdi
movq %rbx, %rsi
callq 0x58d10
testq %rax, %rax
je 0x9b068
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 0x64316
jmp 0x9b0df
movq %r12, %rdi
callq 0x57d50
movq %rax, %rdi
leaq 0xd3a8e(%rip), %rsi     # 0x16eb08
callq 0x55900
testb %al, %al
je 0x9b0df
movq %r12, %rdi
leaq 0xd3a9b(%rip), %rsi     # 0x16eb28
callq 0x58d10
testq %rax, %rax
je 0x9b0df
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 0x5af42
incl %ebp
movq %r14, %rdi
callq 0x56050
cmpl %eax, %ebp
jl 0x9affd
xorl %eax, %eax
movq 0x8(%rsp), %rbx
jmp 0x9b103
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x9b103
xorl %eax, %eax
movq 0xd05be(%rip), %rcx     # 0x16b6c8
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 0xd39f3(%rip), %rdi     # 0x16eb20
callq 0x56120
testl %eax, %eax
je 0x9af62
leaq 0xd39c7(%rip), %rdi     # 0x16eb08
leaq 0x5c1d8(%rip), %rsi     # 0xf7320
callq 0x579f0
movq 0xd0ddc(%rip), %rdi     # 0x16bf30
leaq 0xd39ad(%rip), %rsi     # 0x16eb08
leaq 0xd2f1e(%rip), %rdx     # 0x16e080
callq 0x57e10
leaq 0xd39b2(%rip), %rdi     # 0x16eb20
callq 0x56b80
jmp 0x9af62
leaq 0xd39c1(%rip), %rdi     # 0x16eb40
callq 0x56120
testl %eax, %eax
je 0x9af70
leaq 0xd3995(%rip), %rdi     # 0x16eb28
leaq 0x784ba(%rip), %rsi     # 0x113654
callq 0x579f0
movq 0xd0d8a(%rip), %rdi     # 0x16bf30
leaq 0xd397b(%rip), %rsi     # 0x16eb28
leaq 0xd2ecc(%rip), %rdx     # 0x16e080
callq 0x57e10
leaq 0xd3980(%rip), %rdi     # 0x16eb40
callq 0x56b80
jmp 0x9af70
leaq 0xd398f(%rip), %rdi     # 0x16eb60
callq 0x56120
testl %eax, %eax
je 0x9af7e
leaq 0xd3963(%rip), %rdi     # 0x16eb48
leaq 0x5c13c(%rip), %rsi     # 0xf7328
callq 0x579f0
movq 0xd0d38(%rip), %rdi     # 0x16bf30
leaq 0xd3949(%rip), %rsi     # 0x16eb48
leaq 0xd2e7a(%rip), %rdx     # 0x16e080
callq 0x57e10
leaq 0xd394e(%rip), %rdi     # 0x16eb60
callq 0x56b80
jmp 0x9af7e
leaq 0xd395d(%rip), %rdi     # 0x16eb80
callq 0x56120
testl %eax, %eax
je 0x9af8c
leaq 0xd3931(%rip), %rdi     # 0x16eb68
leaq 0x5c0f0(%rip), %rsi     # 0xf732e
callq 0x579f0
movq 0xd0ce6(%rip), %rdi     # 0x16bf30
leaq 0xd3917(%rip), %rsi     # 0x16eb68
leaq 0xd2e28(%rip), %rdx     # 0x16e080
callq 0x57e10
leaq 0xd391c(%rip), %rdi     # 0x16eb80
callq 0x56b80
jmp 0x9af8c
movq %rax, %rbx
leaq 0xd3908(%rip), %rdi     # 0x16eb80
jmp 0x9b29c
movq %rax, %rbx
leaq 0xd38dc(%rip), %rdi     # 0x16eb60
jmp 0x9b29c
movq %rax, %rbx
leaq 0xd38b0(%rip), %rdi     # 0x16eb40
jmp 0x9b29c
movq %rax, %rbx
leaq 0xd3884(%rip), %rdi     # 0x16eb20
callq 0x56420
jmp 0x9b2b3
movq %rax, %rbx
movl $0xf0, %esi
movq %r15, %rdi
callq 0x55480
movq %rbx, %rdi
callq 0x57090
nop