// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/i18n/section.cpp
// Function: smooth::I18n::Section::SetContext(smooth::String const&)
S::Bool S::I18n::Section::SetContext(const String &nContext)
{
	context		= nContext;
	contextSection	= NIL;

	if (context != NIL)
	{
		Int	 index = context.Find("::");

		String	 contextFirst = context;
		String	 contextRest;

		if (index >= 0)
		{
			contextFirst = context.Head(index);
			contextRest = context.Tail(context.Length() - index - 2);
		}

		foreach (Section *section, sections)
		{
			if (section->GetName() == contextFirst)
			{
				section->SetContext(contextRest);

				contextSection = section;

				return True;
			}
		}

		return False;
	}

	return True;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
movq -0x18(%rbp), %rsi
addq $0x20, %rdi
callq 0x59760
movq -0xc8(%rbp), %rdi
movq $0x0, 0x38(%rdi)
addq $0x20, %rdi
xorl %esi, %esi
callq 0x5b110
testb $0x1, %al
jne 0xddf9e
jmp 0xde2c5
movq -0xc8(%rbp), %rax
addq $0x20, %rax
movq %rax, -0xe0(%rbp)
leaq 0xa9116(%rip), %rsi     # 0x1870cd
leaq -0x38(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x5c1f0
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x5bd60
movl %eax, -0xcc(%rbp)
jmp 0xddfe2
leaq -0x38(%rbp), %rdi
callq 0x5df00
movl -0xcc(%rbp), %eax
movq -0xc8(%rbp), %rsi
movl %eax, -0x1c(%rbp)
addq $0x20, %rsi
leaq -0x60(%rbp), %rdi
callq 0x5b6d0
leaq -0x78(%rbp), %rdi
xorl %esi, %esi
callq 0x5da90
jmp 0xde015
cmpl $0x0, -0x1c(%rbp)
jl 0xde131
movq -0xc8(%rbp), %rsi
addq $0x20, %rsi
movl -0x1c(%rbp), %edx
leaq -0x90(%rbp), %rdi
callq 0x5d6b0
jmp 0xde03b
leaq -0x60(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x59760
jmp 0xde04d
leaq -0x90(%rbp), %rdi
callq 0x5df00
movq -0xc8(%rbp), %rdi
addq $0x20, %rdi
movq %rdi, -0xf0(%rbp)
callq 0x5b800
movl %eax, -0xe4(%rbp)
jmp 0xde078
movq -0xf0(%rbp), %rsi
movl -0xe4(%rbp), %edx
movl -0x1c(%rbp), %eax
subl %eax, %edx
addl $-0x2, %edx
leaq -0xa8(%rbp), %rdi
callq 0x5c8a0
jmp 0xde09b
leaq -0x78(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x59760
jmp 0xde0ad
leaq -0xa8(%rbp), %rdi
callq 0x5df00
jmp 0xde131
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x5df00
jmp 0xde2d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xde2ba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0xde2b1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x90(%rbp), %rdi
callq 0x5df00
jmp 0xde2b1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x5df00
jmp 0xde2b1
movl $0x0, -0xac(%rbp)
movl $0xffffffff, -0xb0(%rbp) # imm = 0xFFFFFFFF
xorl %eax, %eax
cmpl $0x0, -0xac(%rbp)
movb %al, -0xf1(%rbp)
jne 0xde197
movq -0xc8(%rbp), %rdi
movl -0xb0(%rbp), %eax
movl %eax, -0xfc(%rbp)
addq $0x98, %rdi
callq 0x5c990
movl %eax, -0xf8(%rbp)
jmp 0xde17d
movl -0xfc(%rbp), %eax
movl -0xf8(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
setl %al
movb %al, -0xf1(%rbp)
movb -0xf1(%rbp), %al
testb $0x1, %al
jne 0xde1a6
jmp 0xde28f
movq -0xc8(%rbp), %rdi
addq $0x98, %rdi
movl -0xb0(%rbp), %esi
incl %esi
movl %esi, -0xb0(%rbp)
callq 0xde770
movq %rax, -0x108(%rbp)
jmp 0xde1d0
movq -0x108(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xb8(%rbp)
cmpl $0x0, -0xac(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xde1f6
jmp 0xde279
movq -0xb8(%rbp), %rdi
callq 0x5d530
movq %rax, -0x110(%rbp)
jmp 0xde20b
movq -0x110(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x59ac0
movb %al, -0x111(%rbp)
jmp 0xde223
movb -0x111(%rbp), %al
testb $0x1, %al
jne 0xde22f
jmp 0xde263
movq -0xb8(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x5a500
jmp 0xde241
movq -0xc8(%rbp), %rax
movq -0xb8(%rbp), %rcx
movq %rcx, 0x38(%rax)
movb $0x1, -0x1(%rbp)
movl $0x1, -0xbc(%rbp)
jmp 0xde29d
jmp 0xde265
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0xde1e1
jmp 0xde27b
movl -0xac(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0xde145
movb $0x0, -0x1(%rbp)
movl $0x1, -0xbc(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x5df00
leaq -0x60(%rbp), %rdi
callq 0x5df00
jmp 0xde2c9
leaq -0x78(%rbp), %rdi
callq 0x5df00
leaq -0x60(%rbp), %rdi
callq 0x5df00
jmp 0xde2d7
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x5b6b0