LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::Create()
S::Bool S::GUI::Window::Create()
{
	if (!IsRegistered() || created) return False;

#ifdef __WIN32__
	if (flags & WF_NORESIZE) frameWidth = 4;
#endif

	/* Check if there is a titlebar.
	 */
	flags |= WF_NOTITLE;

	for (Int i = 0; i < GetNOfObjects(); i++)
	{
		Widget	*widget = GetNthObject(i);

		if (widget->GetObjectType() == Titlebar::classID) { flags ^= WF_NOTITLE; break; }
	}

	/* Open the new window.
	 */
	if (backend->Open(text, GetPosition(), GetSize(), flags) == Success())
	{
		Surface	*surface = GetDrawSurface();

		surface->SetRightToLeft(IsRightToLeft());

		visible = False;

		return True;
	}

	return False;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x88(%rax)
testb %al, %al
je 0x98641
cmpb $0x0, 0x5ca(%rbx)
jne 0x98641
movl $0x4000, %r8d           # imm = 0x4000
orl 0x30(%rbx), %r8d
movl %r8d, 0x30(%rbx)
cmpl $0x0, 0x40(%rbx)
jle 0x9861b
leaq 0x38(%rbx), %r14
movq 0xd326b(%rip), %rax     # 0x16b848
xorl %ebp, %ebp
movswl (%rax), %r15d
movq %r14, %rdi
movl %ebp, %esi
callq 0x5b074
movq (%rax), %rdi
addq $0x20, %rdi
movl %r15d, %esi
callq 0x57520
testb %al, %al
jne 0x9860d
incl %ebp
cmpl 0x40(%rbx), %ebp
jl 0x985e3
movl 0x30(%rbx), %r8d
jmp 0x9861b
movl $0x4000, %r8d           # imm = 0x4000
xorl 0x30(%rbx), %r8d
movl %r8d, 0x30(%rbx)
movq 0x5c0(%rbx), %rdi
leaq 0xf0(%rbx), %rsi
leaq 0xa8(%rbx), %rdx
leaq 0xb0(%rbx), %rcx
movq (%rdi), %rax
callq *0x20(%rax)
testl %eax, %eax
je 0x9864e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x40(%rax)
movq %rax, %r14
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x160(%rax)
movzbl %al, %esi
movq %r14, %rdi
callq 0x58480
movb $0x0, 0xcb(%rbx)
movb $0x1, %al
jmp 0x98643
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::WaitUntilClosed()
S::Int S::GUI::Window::WaitUntilClosed()
{
	if (!IsRegistered()) return Error();

	if (!created) Create();
	if (!visible) Show();

	/* Wait here until window is closed.
	 */
	System::EventProcessor	 event;

	while (!destroyed) event.ProcessNextEvent();

	/* Sleep while Window is still in use.
	 */
	while (IsObjectInUse()) S::System::System::Sleep(10);

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x88(%rax)
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testb %cl, %cl
je 0x986fe
cmpb $0x0, 0x5ca(%rbx)
jne 0x986af
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x168(%rax)
cmpb $0x0, 0xcb(%rbx)
jne 0x986c1
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x58(%rax)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x57260
movb 0x5cb(%rbx), %al
cmpb $0x1, %al
je 0x986ec
movq %r14, %rdi
callq 0x568b0
jmp 0x986ce
movl $0xa, %edi
callq 0x578c0
cmpl $0x0, 0x1c(%rbx)
jg 0x986e2
leaq 0x8(%rsp), %rdi
callq 0x557d0
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
jmp 0x98708
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x557d0
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::OnCreate()
S::Void S::GUI::Window::OnCreate()
{
	EnterProtectedRegion();

	if (GetObjectType() != ToolWindow::classID) nOfActiveWindows++;

	created = True;

	CalculateOffsets();

	onCreate.Emit();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
addq $0x1c, %rdi
callq 0x578f0
leaq 0x20(%rbx), %rdi
movq 0xd3590(%rip), %rax     # 0x16bcd8
movswl (%rax), %esi
callq 0x57520
testb %al, %al
jne 0x9875e
movq 0xd2ee5(%rip), %rax     # 0x16b640
incw (%rax)
movb $0x1, 0x5ca(%rbx)
movq %rbx, %rdi
callq 0x55ef0
addq $0x628, %rbx            # imm = 0x628
movq %rbx, %rdi
popq %rbx
jmp 0x701aa
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::OnDestroy()
S::Void S::GUI::Window::OnDestroy()
{
	destroyed = True;
	visible	  = False;

	if (GetObjectType() != ToolWindow::classID) nOfActiveWindows--;

	LeaveProtectedRegion();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movb $0x1, 0x5cb(%rdi)
movb $0x0, 0xcb(%rdi)
addq $0x20, %rdi
movq 0xd353d(%rip), %rax     # 0x16bcd8
movswl (%rax), %esi
callq 0x57520
testb %al, %al
jne 0x987b1
movq 0xd2e92(%rip), %rax     # 0x16b640
decw (%rax)
addq $0x1c, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x55cc0
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::GetMousePosition() const
S::GUI::Point S::GUI::Window::GetMousePosition() const
{
	Point	 position = Input::Pointer::GetPosition();

	if (IsRightToLeft()) position = Point(GetRealSize().cx - (position.x - GetX()) - 1, position.y - GetY());
	else		     position -= GetPosition();

	return position;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x555d0
movq (%rax), %r14
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x160(%rax)
testb %al, %al
je 0x99287
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x50(%rax)
movl %r14d, %ecx
notl %ecx
addl 0xa8(%rbx), %ecx
addl %eax, %ecx
jmp 0x99292
movl 0xa8(%rbx), %eax
movl %r14d, %ecx
subl %eax, %ecx
shrq $0x20, %r14
subl 0xac(%rbx), %r14d
shlq $0x20, %r14
movl %ecx, %eax
orq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::IsMouseOn(smooth::GUI::Rect const&) const
S::Bool S::GUI::Window::IsMouseOn(const Rect &rect) const
{
	Surface	*surface = GetDrawSurface();

	if (surface->GetSystemSurface() == NIL) return False;

	Point	 mousePos = GetMousePosition();

	if ((mousePos.x >= rect.left) && (mousePos.x < rect.right) && (mousePos.y >= rect.top) && (mousePos.y < rect.bottom))
	{
		if (Input::Pointer::GetPointerWindow() != this)	return False;
		else						return True;
	}

	return False;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, %rdi
callq 0x556f0
testq %rax, %rax
je 0x99300
movq %rbx, %rdi
callq 0x56b50
movq %rax, %rcx
xorl %eax, %eax
cmpl %ecx, (%r14)
jg 0x99302
cmpl %ecx, 0x8(%r14)
jle 0x99302
shrq $0x20, %rcx
cmpl %ecx, 0x4(%r14)
jg 0x99302
cmpl %ecx, 0xc(%r14)
jle 0x99302
callq 0x57530
cmpq %rbx, %rax
sete %al
jmp 0x99302
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::Remove(smooth::GUI::Widget*)
S::Int S::GUI::Window::Remove(Widget *widget)
{
	if (widget == NIL) return Error();

	if (widget->GetOrientation() == OR_UPPERLEFT || widget->GetOrientation() == OR_UPPERRIGHT || widget->GetOrientation() == OR_LOWERLEFT || widget->GetOrientation() == OR_LOWERRIGHT)
	{
		if (mainLayer->Remove(widget) == Success())
		{
			/* Disable drag & drop if the removed widget was a target.
			 */
			if (!IsDropTarget()) backend->EnableDropFiles(False);

			return Success();
		}

		return Error();
	}

	if (Widget::Remove(widget) == Success())
	{
		/* Recalculate offsets unless the removed widget had free orientation.
		 */
		if (widget->GetOrientation() != OR_FREE) CalculateOffsets();

		/* Disable drag & drop if the removed widget was a target.
		 */
		if (!IsDropTarget()) backend->EnableDropFiles(False);

		return Success();
	}

	return Error();
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rsi, %rsi
je 0x99633
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x128(%rax)
cmpl $0x14, %eax
je 0x995fe
movq (%r14), %rax
movq %r14, %rdi
callq *0x128(%rax)
cmpl $0x24, %eax
je 0x995fe
movq (%r14), %rax
movq %r14, %rdi
callq *0x128(%rax)
cmpl $0x18, %eax
je 0x995fe
movq (%r14), %rax
movq %r14, %rdi
callq *0x128(%rax)
cmpl $0x28, %eax
jne 0x9963a
movq 0x620(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x38(%rax)
testl %eax, %eax
jne 0x99633
movq %rbx, %rdi
callq 0x57e00
testb %al, %al
je 0x99622
xorl %ebp, %ebp
jmp 0x99633
movq 0x5c0(%rbx), %rdi
movq (%rdi), %rax
xorl %ebp, %ebp
xorl %esi, %esi
callq *0x58(%rax)
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
callq 0x56df0
testl %eax, %eax
jne 0x99633
movq (%r14), %rax
movq %r14, %rdi
callq *0x128(%rax)
cmpl $0x80, %eax
je 0x99612
movq %rbx, %rdi
callq 0x55ef0
jmp 0x99612
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::GetWindow(void*)
S::GUI::Window *S::GUI::Window::GetWindow(Void *sysWindow)
{
	if (sysWindow == NIL) return NIL;

	for (Int i = 0; i < windows.Length(); i++)
	{
		Window		*window = windows.GetNth(i);

		if (window->GetSystemWindow() == sysWindow) return window;
	}

	return NIL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %r15d, %r15d
testq %rdi, %rdi
je 0x996b2
movq 0xd2034(%rip), %r14     # 0x16b6b0
cmpl $0x0, 0x8(%r14)
jle 0x996b2
movq %rdi, %rbx
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x5b074
movq (%rax), %r15
movq 0x5c0(%r15), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
cmpq %rbx, %rax
je 0x996b2
incl %ebp
cmpl 0x8(%r14), %ebp
jl 0x99688
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/../../../include/smooth/templates/signals/signalr.h
// Function: int smooth::SignalR3<int, int, int, int>::Disconnect<smooth::GUI::Window, smooth::GUI::Window>(int (smooth::GUI::Window::*)(int, int, int), smooth::GUI::Window*)
Int Disconnect(returnTYPE (classTYPE::*proc)(SIGNALS_ARGUMENT_TYPES), oClassTYPE *inst)
			{
				if (slotsN == NIL) return Error();

				SIGNALS_SLOT_CLASS_CLASS_NAME<classTYPE, returnTYPE SIGNALS_CONDITIONAL_COMMA SIGNALS_ARGUMENT_TYPES>	 slot(proc, inst);

				for (Int i = slotsN->Length() - 1; i >= 0; i--)
				{
					if ((*((SIGNALS_SLOT_BASE_CLASS_NAME<returnTYPE SIGNALS_CONDITIONAL_COMMA SIGNALS_ARGUMENT_TYPES> *) slotsN->GetNth(i))) == slot)
					{
						RemoveNthN(i);

						break;
					}
				}

				return Success();
			}

// Assembly:
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x99834
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0xce6ff(%rip), %rdi     # 0x167ee8
movq %rsp, %r14
movq %rdi, (%r14)
movq %rsi, 0x10(%r14)
movq %rdx, 0x18(%r14)
movq %rcx, 0x8(%r14)
movl 0x8(%rax), %ebp
testl %ebp, %ebp
jle 0x99829
decl %ebp
movq 0x10(%rbx), %rdi
movl %ebp, %esi
callq 0x5b074
movq (%rax), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
testb %al, %al
je 0x997fe
movq %rbx, %rdi
movl %ebp, %esi
callq 0x999da
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/../../../include/smooth/templates/signals/signalr.h
// Function: smooth::SignalR0<bool>::Connect(smooth::SignalR0<bool>*)
Int Connect(SIGNALS_SIGNAL_CLASS_NAME<returnTYPE SIGNALS_CONDITIONAL_COMMA SIGNALS_ARGUMENT_TYPES> *sig)
			{
				if ((Signal *) sig == (Signal *) this) return Error();

				if (slotsN == NIL)
				{
					slotsN = new Array<Void *>();
					slotsN->EnableLocking();
				}

				slotsN->Add(new SIGNALS_SLOT_SIGNAL_CLASS_NAME<returnTYPE SIGNALS_CONDITIONAL_COMMA SIGNALS_ARGUMENT_TYPES>(sig));

				return Success();
			}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
cmpq %rdi, %rsi
je 0x99da7
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %r15
testq %r15, %r15
jne 0x99d7b
movl $0x58, %edi
callq 0x556b0
movq %rax, %r15
movq %rax, %rdi
callq 0x55d90
leaq 0xc5aab(%rip), %rax     # 0x15f800
movq %rax, 0x40(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%r15)
leaq 0xc5bb8(%rip), %rax     # 0x15f920
movq %rax, (%r15)
movq %r15, 0x10(%r14)
movq %r15, %rdi
callq 0x571b0
movq 0x10(%r14), %r15
movl $0x10, %edi
callq 0x556b0
leaq 0xce20c(%rip), %rcx     # 0x167f98
movq %rcx, (%rax)
movq %rbx, 0x8(%rax)
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %r15, %rdi
callq 0x5aed8
xorl %eax, %eax
jmp 0x99dac
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x58, %esi
movq %r15, %rdi
callq 0x55480
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/gui/window/backends/windowbackend.cpp
// Function: smooth::GUI::WindowBackend::WindowBackend(void*)
S::GUI::WindowBackend::WindowBackend(Void *iWindow)
{
#if defined __WIN32__ && defined SMOOTH_STATIC
	volatile Bool	 null = 0;

	if (null) WindowGDI();
#endif

	type = WINDOW_NONE;

	drawSurface = NIL;

	doClose.Connect(True);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0xcdec7(%rip), %rax     # 0x168098
movq %rax, (%rdi)
leaq 0x30(%rdi), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rdi)
xorl %eax, %eax
movq %rax, 0x48(%rdi)
movups %xmm0, 0x18(%rdi)
movq %rax, 0x28(%rdi)
leaq 0xcdb8c(%rip), %rcx     # 0x167d80
movq %rcx, 0x30(%rdi)
leaq 0x58(%rdi), %rcx
movq %rcx, 0x10(%rsp)
movups %xmm0, 0x60(%rdi)
movq %rax, 0x70(%rdi)
leaq 0xcdbe0(%rip), %rcx     # 0x167df0
movq %rcx, 0x58(%rdi)
leaq 0x80(%rdi), %r15
movq %rax, 0x88(%rdi)
leaq 0xc751f(%rip), %rcx     # 0x161748
movq %rcx, 0x80(%rdi)
movups %xmm0, 0x90(%rdi)
leaq 0xa0(%rdi), %r12
movq %rax, 0xa8(%rdi)
movq %rcx, 0xa0(%rdi)
movups %xmm0, 0xb0(%rdi)
leaq 0xc0(%rdi), %r13
movq %rax, 0xc8(%rdi)
movq %rcx, 0xc0(%rdi)
movups %xmm0, 0xd0(%rdi)
leaq 0xe0(%rdi), %rbp
movq %rax, 0xe8(%rdi)
movq %rcx, 0xe0(%rdi)
movups %xmm0, 0xf0(%rdi)
leaq 0x100(%rdi), %r14
movq %rax, 0x108(%rdi)
movq %rcx, 0x100(%rdi)
movups %xmm0, 0x110(%rdi)
movw $0x0, 0x8(%rdi)
movq %rax, 0x10(%rdi)
movq %rbx, %rdi
callq 0x6b38c
movq %rbx, %rdi
movl $0x1, %esi
callq 0x99ecc
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0x700f4
movq %rbp, %rdi
callq 0x700f4
movq %r13, %rdi
callq 0x700f4
movq %r12, %rdi
callq 0x700f4
movq %r15, %rdi
callq 0x700f4
movq 0x10(%rsp), %rdi
callq 0x99780
movq %rbx, %rdi
callq 0x9979a
movq 0x8(%rsp), %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/language.cpp
// Function: smooth::I18n::Language::Parse(smooth::XML::Node*)
S::Errors::Error S::I18n::Language::Parse(XML::Node *language)
{
	if (language == NIL) return Error();

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

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

	return Section::Parse(data);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
testq %rdx, %rdx
je 0x9a908
movq %rdx, %r15
movq %rsi, %r14
leaq 0x5ca2b(%rip), %rsi     # 0xf72fd
movq %rsp, %r12
movq %r12, %rdi
callq 0x579f0
movq %r15, %rdi
movq %r12, %rsi
callq 0x56810
movq %rax, %r15
movq %rsp, %rdi
callq 0x59200
testq %r15, %r15
je 0x9a908
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x55800
jmp 0x9a91d
movq 0xd0db9(%rip), %rax     # 0x16b6c8
addq $0x10, %rax
movq %rax, (%rbx)
movl $0xffffffff, 0x8(%rbx)  # imm = 0xFFFFFFFF
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/section.cpp
// Function: smooth::I18n::Section::GetString(smooth::String const&) const
const S::String &S::I18n::Section::GetString(const String &string) const
{
	if (contextSection != NIL)
	{
		const String	&result = contextSection->GetString(string);

		if (result != NIL) return result;
	}

	return strings.Get(string.ComputeCRC32());
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
testq %rdi, %rdi
je 0x9ad7a
movq %r14, %rsi
callq 0x562e0
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
callq 0x56bd0
testb %al, %al
je 0x9ad7a
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
addq $0x40, %rbx
movq %r14, %rdi
callq 0x55640
movq %rbx, %rdi
movl %eax, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x9b2d4
nop
// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
leaq 0x20(%rdi), %r14
movq %r14, %rdi
callq 0x555f0
movq $0x0, 0x38(%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x56bd0
movb $0x1, %bpl
testb %al, %al
je 0x9aee5
leaq 0x58311(%rip), %rsi     # 0xf30e6
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x579f0
movq %r14, %rdi
movq %r15, %rsi
callq 0x57610
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x570b0
leaq 0x38(%rsp), %rdi
xorl %esi, %esi
callq 0x58e20
testl %ebp, %ebp
js 0x9ae73
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x58b00
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x555f0
leaq 0x8(%rsp), %rdi
callq 0x59200
movq %r14, %rdi
callq 0x57180
subl %ebp, %eax
addl $-0x2, %eax
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x57f90
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x555f0
leaq 0x8(%rsp), %rdi
callq 0x59200
cmpl $0x0, 0xa0(%rbx)
jle 0x9aeb9
leaq 0x98(%rbx), %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
leaq 0x20(%rsp), %r15
incl %ebp
movq %r14, %rdi
movl %ebp, %esi
callq 0x60a9a
movq (%rax), %r12
leaq 0x8(%r12), %rdi
movq %r15, %rsi
callq 0x55900
testb %al, %al
jne 0x9aebd
movl 0xa0(%rbx), %eax
decl %eax
cmpl %eax, %ebp
jl 0x9ae8d
xorl %ebp, %ebp
jmp 0x9aed1
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x56140
movq %r12, 0x38(%rbx)
movb $0x1, %bpl
leaq 0x38(%rsp), %rdi
callq 0x59200
leaq 0x20(%rsp), %rdi
callq 0x59200
movl %ebp, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9af14
jmp 0x9aef8
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0x9af17
jmp 0x9af14
jmp 0x9af0b
movq %rax, %rbx
jmp 0x9af21
jmp 0x9af14
jmp 0x9af14
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x59200
leaq 0x20(%rsp), %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/translator.cpp
// Function: smooth::I18n::Translator::Translator(smooth::String const&)
S::I18n::Translator::Translator(const String &iAppPrefix)
{
	appPrefix      = iAppPrefix.ToLower();
	activeLanguage = NIL;

	GetSupportedLanguages();

	ActivateLanguage("internal");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r12
movq %rdi, %r15
movq 0xd06b4(%rip), %rax     # 0x16b9f8
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x8(%rdi), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x20(%r15), %r14
movq %r14, %rdi
callq 0x55d90
leaq 0xc4494(%rip), %rax     # 0x15f800
movq %rax, 0x60(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%r15)
leaq 0xccef9(%rip), %rax     # 0x168278
movq %rax, 0x20(%r15)
movq %rsp, %rdi
movq %r12, %rsi
callq 0x58090
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x555f0
movq %rsp, %rdi
callq 0x59200
movq $0x0, 0x78(%r15)
movq %r15, %rdi
callq 0x55500
leaq 0x5bfba(%rip), %rsi     # 0xf7372
movq %rsp, %rdi
callq 0x579f0
movq (%r15), %rax
movq %rsp, %rsi
movq %r15, %rdi
callq *0x10(%rax)
movq %rsp, %rdi
callq 0x59200
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x9b3e6
jmp 0x9b3f3
jmp 0x9b3f3
movq %rax, %r15
movq %rsp, %rdi
callq 0x59200
jmp 0x9b3f6
movq %rax, %r15
movq %r14, %rdi
callq 0x5b0ee
movq %rbx, %rdi
callq 0x59200
movq %r15, %rdi
callq 0x57090
movq %rax, %r15
jmp 0x9b3fe
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/translator.cpp
// Function: smooth::I18n::Translator::SetInternalLanguageInfo(smooth::String const&, smooth::String const&, smooth::String const&, bool)
S::Int S::I18n::Translator::SetInternalLanguageInfo(const String &langName, const String &author, const String &url, Bool rightToLeft)
{
	Language	*iLang = NIL;

	for (Int n = 0; n < languages.Length(); n++)
	{
		if (languages.GetNth(n)->magic == "internal")
		{
			iLang = languages.GetNth(n);

			languages.Remove(languages.GetNthIndex(n));

			break;
		}
	}

	if (iLang != NIL)
	{
		iLang->SetName(langName);

		iLang->author	   = author;
		iLang->url	   = url;
		iLang->rightToLeft = rightToLeft;

		AddLanguage(iLang);
	}

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, 0x4(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
cmpl $0x0, 0x28(%rdi)
jle 0x9b896
movq %rsi, %r13
movq %rdi, %r14
leaq 0x20(%rdi), %rbp
xorl %ebx, %ebx
movl $0x108, %r12d           # imm = 0x108
leaq 0x5bb6c(%rip), %r15     # 0xf7372
movq %rbp, %rdi
movl %ebx, %esi
callq 0x5b074
movq (%rax), %rdi
addq %r12, %rdi
movq %r15, %rsi
callq 0x57ef0
testb %al, %al
jne 0x9b82c
incl %ebx
cmpl 0x28(%r14), %ebx
jl 0x9b806
jmp 0x9b896
movq %rbp, %rdi
movl %ebx, %esi
callq 0x5b074
movq (%rax), %r15
movq %rbp, %rdi
movl %ebx, %esi
callq 0x570f0
movq %rbp, %rdi
movl %eax, %esi
callq 0x58bb0
testq %r15, %r15
je 0x9b896
leaq 0x8(%r15), %rdi
movq %r13, %rsi
callq 0x555f0
leaq 0x120(%r15), %rdi
movq 0x8(%rsp), %rsi
callq 0x555f0
leaq 0x138(%r15), %rdi
movq 0x10(%rsp), %rsi
callq 0x555f0
movl 0x4(%rsp), %eax
movb %al, 0x150(%r15)
movq %r14, %rdi
movq %r15, %rsi
callq 0x55b30
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/translator.cpp
// Function: smooth::I18n::Translator::AddLanguage(smooth::I18n::Language*)
S::Int S::I18n::Translator::AddLanguage(Language *language)
{
	/* Check arguments and return an error if they are not sane.
	 */
	if (language == NIL) return Error();

	const String	&langName = language->GetName();

	for (Int i = 0; i < languages.Length(); i++)
	{
		const String	&compName = languages.GetNth(i)->GetName();

		for (Int j = 0; j < Math::Max(langName.Length(), compName.Length()); j++)
		{
			if (langName == compName) return Error();

			if ((langName[j] < compName[j] && !(langName[j] == '(' && compName[j] == '/')) || (langName[j] == '/' && compName[j] == '('))
			{
				languages.InsertAtPos(i, language);

				return Success();
			}

			if ((langName[j] > compName[j] && !(langName[j] == '/' && compName[j] == '(')) || (langName[j] == '(' && compName[j] == '/')) break;
		}
	}

	languages.Add(language);

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rsi, (%rsp)
testq %rsi, %rsi
je 0x9ba52
movq %rdi, %r12
addq $0x20, %rdi
cmpl $0x0, 0x28(%r12)
jle 0x9ba1e
movq (%rsp), %rax
leaq 0x8(%rax), %r13
xorl %ebp, %ebp
movq %rdi, 0x8(%rsp)
movl %ebp, %esi
callq 0x5b074
movq (%rax), %r15
addq $0x8, %r15
movq %r13, %rdi
callq 0x57180
movl %eax, %ebx
movq %r15, %rdi
callq 0x57180
cmpl %eax, %ebx
cmovgl %ebx, %eax
testl %eax, %eax
jle 0x9ba0c
xorl %ebx, %ebx
movq %r13, %rdi
movq %r15, %rsi
callq 0x55900
testb %al, %al
jne 0x9ba4d
movq %r13, %rdi
movl %ebx, %esi
callq 0x57fe0
movl %eax, %r14d
movq %r15, %rdi
movl %ebx, %esi
callq 0x57fe0
cmpl %eax, %r14d
jge 0x9b96e
movq %r13, %rdi
movl %ebx, %esi
callq 0x57fe0
cmpl $0x28, %eax
jne 0x9ba31
movq %r15, %rdi
movl %ebx, %esi
callq 0x57fe0
cmpl $0x2f, %eax
jne 0x9ba31
movq %r13, %rdi
movl %ebx, %esi
callq 0x57fe0
cmpl $0x2f, %eax
jne 0x9b990
movq %r15, %rdi
movl %ebx, %esi
callq 0x57fe0
cmpl $0x28, %eax
je 0x9ba31
movq %r13, %rdi
movl %ebx, %esi
callq 0x57fe0
movl %eax, %r14d
movq %r15, %rdi
movl %ebx, %esi
callq 0x57fe0
cmpl %eax, %r14d
jle 0x9b9ca
movq %r13, %rdi
movl %ebx, %esi
callq 0x57fe0
cmpl $0x2f, %eax
jne 0x9ba0c
movq %r15, %rdi
movl %ebx, %esi
callq 0x57fe0
cmpl $0x28, %eax
jne 0x9ba0c
movq %r13, %rdi
movl %ebx, %esi
callq 0x57fe0
cmpl $0x28, %eax
jne 0x9b9e8
movq %r15, %rdi
movl %ebx, %esi
callq 0x57fe0
cmpl $0x2f, %eax
je 0x9ba0c
incl %ebx
movq %r13, %rdi
callq 0x57180
movl %eax, %r14d
movq %r15, %rdi
callq 0x57180
cmpl %eax, %r14d
cmovgl %r14d, %eax
cmpl %eax, %ebx
jl 0x9b919
incl %ebp
cmpl 0x28(%r12), %ebp
movq 0x8(%rsp), %rdi
jl 0x9b8ea
leaq 0x10(%rsp), %rsi
movq (%rsp), %rax
movq %rax, (%rsi)
callq 0x5aed8
jmp 0x9ba49
leaq 0x10(%rsp), %rdx
movq (%rsp), %rax
movq %rax, (%rdx)
movq 0x8(%rsp), %rdi
movl %ebp, %esi
callq 0x9d3e0
xorl %eax, %eax
jmp 0x9ba52
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/translator.cpp
// Function: smooth::I18n::Translator::LoadDescription(smooth::XML::Document const&, smooth::I18n::Language*)
S::Int S::I18n::Translator::LoadDescription(const XML::Document &doc, Language *language)
{
	/* Check arguments and return an error if they are not sane.
	 */
	if (doc.GetRootNode() == NIL || language == NIL) return Error();

	XML::Node	*root	= doc.GetRootNode();
	Error		 result = language->ParseHeader(root);

	if (result != Success()) return Error();

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x56e60
movq %rax, %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rbx, %rbx
je 0x9cbb4
testq %rcx, %rcx
je 0x9cbb4
movq %r14, %rdi
callq 0x56e60
movq (%rbx), %rcx
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq *0x18(%rcx)
movq 0xceb9c(%rip), %rax     # 0x16b730
addq $0x10, %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movl $0x0, 0x8(%rsi)
movq %r14, %rdi
callq 0x566c0
movzbl %al, %eax
negl %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/translator.cpp
// Function: smooth::I18n::Translator::LoadData(smooth::XML::Document const&, smooth::I18n::Language*)
S::Int S::I18n::Translator::LoadData(const XML::Document &doc, Language *language)
{
	/* Check arguments and return an error if they are not sane.
	 */
	if (doc.GetRootNode() == NIL || language == NIL) return Error();

	XML::Node	*root	= doc.GetRootNode();
	Error		 result = language->Parse(root);

	if (result != Success()) return Error();

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rsi, %rdi
callq 0x56e60
movq %rax, %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rbx, %rbx
je 0x9d24e
testq %rcx, %rcx
je 0x9d24e
movq %r14, %rdi
callq 0x56e60
movq (%rbx), %rcx
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq *0x10(%rcx)
movq 0xce502(%rip), %rax     # 0x16b730
addq $0x10, %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movl $0x0, 0x8(%rsi)
movq %r14, %rdi
callq 0x566c0
movzbl %al, %eax
negl %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/../../include/smooth/templates/array/arraybackend.h
// Function: smooth::ArrayBackend<void*>::InsertAtPos(int, void* const&)
Int InsertAtPos(Int position, const s &value)
			{
				WriteLock	 lock(*this);
				Int		 index = greatestIndex + 1;

				if (!InsertAtPos(position, value, index)) index = -1;

				return index;
			}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
movq %rdi, (%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0x9d402
movq 0x38(%r15), %rdi
callq 0x551d0
movl 0xc(%r15), %r14d
incl %r14d
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
movl %r14d, %ecx
callq 0x9d44c
testb %al, %al
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmovnel %r14d, %ebx
movq %rsp, %rdi
callq 0x56310
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x56310
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/../../include/smooth/templates/array/arraybackend.h
// Function: smooth::ArrayBackend<void*>::InsertAtPos(int, void* const&, int)
Bool InsertAtPos(Int position, const s &value, Int index)
			{
				WriteLock	 lock(*this);
				Int		 nOfEntries = this->nOfEntries;

				if (position > nOfEntries || position < 0) return False;

				if (!IndexArray::InsertAtPos(position, index)) return False;

				if (entries.Size() == nOfEntries) entries.Resize(8 > nOfEntries * 1.25 ? 8 : nOfEntries * 1.25);

				memmove(entries + position + 1, entries + position, (nOfEntries - position) * sizeof(ArrayEntry
 *));

				entries[position] = new ArrayEntry
(value);

				return True;
			}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movq %rdi, (%rsp)
cmpb $0x1, 0x30(%rdi)
jne 0x9d475
movq 0x38(%rbx), %rdi
callq 0x551d0
movl 0x8(%rbx), %r13d
movl %r13d, %r12d
subl %ebp, %r12d
setl %al
testl %ebp, %ebp
sets %cl
orb %al, %cl
jne 0x9d4d6
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x551f0
testb %al, %al
je 0x9d4d6
cmpl %r13d, 0x50(%rbx)
jne 0x9d4c8
leaq 0x40(%rbx), %rdi
cvtsi2sd %r13d, %xmm0
mulsd 0x55b4d(%rip), %xmm0    # 0xf3000
movsd 0x55b4d(%rip), %xmm1    # 0xf3008
maxsd %xmm0, %xmm1
cvttsd2si %xmm1, %esi
callq 0x5afee
movq 0x48(%rbx), %rax
testq %rax, %rax
je 0x9d4da
movq (%rax), %rax
jmp 0x9d4dc
xorl %ebx, %ebx
jmp 0x9d514
xorl %eax, %eax
movl %ebp, %r15d
leaq (%rax,%r15,8), %rsi
leaq (%rax,%r15,8), %rdi
addq $0x8, %rdi
movslq %r12d, %rdx
shlq $0x3, %rdx
callq 0x556d0
movl $0x8, %edi
callq 0x556b0
movq (%r14), %rcx
movq %rcx, (%rax)
movq 0x48(%rbx), %rcx
movq (%rcx), %rcx
movq %rax, (%rcx,%r15,8)
movb $0x1, %bl
movq %rsp, %rdi
callq 0x56310
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x56310
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/translator_internal.cpp
// Function: smooth::I18n::TranslatorInternal::GetSupportedLanguages()
S::Int S::I18n::TranslatorInternal::GetSupportedLanguages()
{
	SetInternalLanguageInfo("English", "Robert Kausch", "http://www.smooth-project.org/", False);

	for (Int i = 0; languageXMLs[i] != NIL; i++)
	{
		const char	*xml = languageXMLs[i];
		XML::Document	 doc;

		if (doc.ParseMemory((void *) xml, strlen(xml)) == Success())
		{
			Language	*language = new Language();

			language->magic = languageMagics[i];

			if (LoadDescription(doc, language) == Success()) AddLanguage(language);
		}
	}

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x59e7a(%rip), %rsi     # 0xf743c
leaq 0x30(%rsp), %rdi
callq 0x579f0
leaq 0x59e71(%rip), %rsi     # 0xf7444
leaq 0x18(%rsp), %rdi
callq 0x579f0
leaq 0x59e6e(%rip), %rsi     # 0xf7452
movq %rsp, %rdi
callq 0x579f0
leaq 0x30(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq %rsp, %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0x58ae0
movq %rsp, %rdi
callq 0x59200
leaq 0x18(%rsp), %rdi
callq 0x59200
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x59200
xorl %r12d, %r12d
leaq 0xcacc3(%rip), %r13     # 0x1682f0
leaq 0xcae4c(%rip), %rbp     # 0x168480
movq (%r12,%r13), %r15
movq %r14, %rdi
callq 0x57be0
movq %r15, %rdi
callq 0x56370
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0x58d20
testl %eax, %eax
jne 0x9d69e
movl $0x158, %edi            # imm = 0x158
callq 0x556b0
movq %rax, %r15
movq %rax, %rdi
callq 0x572b0
movq (%r12,%rbp), %rsi
movq %r15, %rdi
addq $0x108, %rdi            # imm = 0x108
callq 0x55f40
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x57ca0
testl %eax, %eax
jne 0x9d69e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x55b30
movq %r14, %rdi
callq 0x55400
addq $0x8, %r12
cmpq $0x188, %r12            # imm = 0x188
jne 0x9d634
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x59200
jmp 0x9d6d4
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x59200
jmp 0x9d6e3
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x59200
jmp 0x9d710
movq %rax, %rbx
movl $0x158, %esi            # imm = 0x158
movq %r15, %rdi
callq 0x55480
jmp 0x9d706
jmp 0x9d703
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x55400
movq %rbx, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/i18n/translator_internal.cpp
// Function: smooth::I18n::TranslatorInternal::ActivateLanguage(smooth::String const&)
S::Int S::I18n::TranslatorInternal::ActivateLanguage(const String &magic)
{
	foreach (Language *language, languages)
	{
		if (language->magic != magic) continue;

		activeLanguage = language;

		/* Load actual language data.
		 */
		if (magic != "internal" && activeLanguage->strings.Length() == 0 && activeLanguage->sections.Length() == 0)
		{
			for (Int i = 0; languageMagics[i] != NIL; i++)
			{
				if (magic != languageMagics[i]) continue;

				XML::Document	 doc;

				if (doc.ParseMemory((void *) languageXMLs[i], strlen(languageXMLs[i])) == Success()) LoadData(doc, activeLanguage);
			}
		}

		return Success();
	}

	return Error();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x20(%rdi), %r15
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl 0x28(%r14), %eax
decl %eax
cmpl %eax, %r12d
jge 0x9d82d
incl %r12d
movq %r15, %rdi
movl %r12d, %esi
callq 0x60a9a
movq (%rax), %r13
leaq 0x108(%r13), %rdi
movq %rbx, %rsi
callq 0x56fa0
testb %al, %al
jne 0x9d759
movq %r13, 0x78(%r14)
leaq 0x59bdb(%rip), %rsi     # 0xf7372
movq %rbx, %rdi
callq 0x590a0
xorl %ebp, %ebp
testb %al, %al
je 0x9d82d
movq 0x78(%r14), %rax
cmpl $0x0, 0x48(%rax)
jne 0x9d82d
cmpl $0x0, 0xa0(%rax)
jne 0x9d82d
xorl %r13d, %r13d
leaq 0xcacba(%rip), %rbp     # 0x168480
movq %rsp, %r15
movq (%r13,%rbp), %rsi
movq %rbx, %rdi
callq 0x590a0
testb %al, %al
jne 0x9d81e
movq %r15, %rdi
callq 0x57be0
leaq 0xcab07(%rip), %rax     # 0x1682f0
movq (%r13,%rax), %r12
movq %r12, %rdi
callq 0x56370
movq %r15, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x58d20
testl %eax, %eax
jne 0x9d816
movq 0x78(%r14), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x55db0
movq %r15, %rdi
callq 0x55400
addq $0x8, %r13
cmpq $0x188, %r13            # imm = 0x188
jne 0x9d7c9
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x55400
movq %rbx, %rdi
callq 0x57090
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/driver.cpp
// Function: smooth::IO::Driver::Driver()
S::IO::Driver::Driver()
{
	streamID  = NIL;

	size	  = 2147483647;
	position  = 0;

	lastError = IO_ERROR_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xcdd1a(%rip), %rax     # 0x16bc58
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x20(%rdi), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58e20
movq %r14, %rdi
xorl %esi, %esi
callq 0x579e0
movq $0x7fffffff, 0x8(%rbx)  # imm = 0x7FFFFFFF
movq $0x0, 0x10(%rbx)
movl $0x0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InStream(int, smooth::IO::Driver*)
S::IO::InStream::InStream(Int type, Driver *iDriver)
{
	outStream	 = NIL;

	if (type != STREAM_DRIVER)		   { lastError = IO_ERROR_BADPARAM;	 return; }

	driver		 = iDriver;

	if (driver->GetLastError() != IO_ERROR_OK) { lastError = driver->GetLastError(); return; }

	streamType	 = STREAM_DRIVER;
	size		 = driver->GetSize();
	closefile	 = False;

	packageSize	 = defaultPackageSize;
	stdpacksize	 = packageSize;
	origpacksize	 = packageSize;
	currentBufferPos = defaultPackageSize;
	origsize	 = size;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x569d0
movq 0xcd268(%rip), %rax     # 0x16b3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x2, %ebp
jne 0x9e18f
movq %r14, 0xe8(%rbx)
movq %r14, %rdi
callq 0x55190
testl %eax, %eax
je 0x9e19a
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
jmp 0x9e1ce
movw $0x2, 0xf8(%rbx)
jmp 0x9e1ce
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movb $0x0, 0xb(%rbx)
movq 0xcd8dc(%rip), %rcx     # 0x16ba98
movl (%rcx), %ecx
movl %ecx, 0x38(%rbx)
movl %ecx, 0x3c(%rbx)
movl %ecx, 0x40(%rbx)
movl %ecx, 0x50(%rbx)
movq %rax, 0x18(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InStream(int, smooth::String const&, int)
S::IO::InStream::InStream(Int type, const String &fileName, Int mode)
{
	outStream	 = NIL;

	if (type != STREAM_FILE)		   { lastError = IO_ERROR_BADPARAM;			return; }
	if (Directory(fileName).Exists())	   { lastError = IO_ERROR_BADPARAM;			return; }

	driver		 = new DriverANSI(File(fileName), mode);

	if (driver->GetLastError() != IO_ERROR_OK) { lastError = driver->GetLastError(); delete driver; return; }

	streamType	 = STREAM_DRIVER;
	size		 = driver->GetSize();

	packageSize	 = defaultPackageSize;
	stdpacksize	 = packageSize;
	origpacksize	 = packageSize;
	currentBufferPos = defaultPackageSize;
	origsize	 = size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %ecx, %ebp
movq %rdx, %r15
movl %esi, %r14d
movq %rdi, %rbx
callq 0x569d0
movq 0xcd1ae(%rip), %rax     # 0x16b3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x3, %r14d
jne 0x9e266
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x38(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r15, %rsi
callq 0x58c60
leaq 0x38(%rsp), %rdi
callq 0x55440
movl %eax, %r14d
leaq 0x38(%rsp), %rdi
callq 0x59210
leaq 0x8(%rsp), %rdi
callq 0x59200
testb %r14b, %r14b
je 0x9e27d
movw $0x2, 0xf8(%rbx)
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x48, %edi
callq 0x556b0
movq %rax, %r14
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x38(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %r15, %rsi
callq 0x56800
leaq 0x8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x58fa0
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x581b0
movq %r14, 0xe8(%rbx)
leaq 0x8(%rsp), %rdi
callq 0x59200
leaq 0x38(%rsp), %rdi
callq 0x59178
leaq 0x20(%rsp), %rdi
callq 0x59200
movq 0xe8(%rbx), %rdi
callq 0x55190
testl %eax, %eax
je 0x9e329
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9e26f
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x9e26f
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movq 0xcd751(%rip), %rcx     # 0x16ba98
movl (%rcx), %ecx
movl %ecx, 0x38(%rbx)
movl %ecx, 0x3c(%rbx)
movl %ecx, 0x40(%rbx)
movl %ecx, 0x50(%rbx)
movq %rax, 0x18(%rbx)
jmp 0x9e26f
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0x9e370
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x59178
jmp 0x9e37f
movq %rax, %r15
leaq 0x20(%rsp), %rdi
callq 0x59200
jmp 0x9e38e
movq %rax, %r15
movl $0x48, %esi
movq %r14, %rdi
callq 0x55480
jmp 0x9e3c0
movq %rax, %r15
leaq 0x38(%rsp), %rdi
callq 0x59210
jmp 0x9e3af
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0x9e3c0
jmp 0x9e3bd
movq %rax, %r15
movq %rbx, %rdi
callq 0x573c0
movq %r15, %rdi
callq 0x57090
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InStream(int, _IO_FILE*)
S::IO::InStream::InStream(Int type, FILE *openFile)
{
	outStream	 = NIL;

	if (type != STREAM_ANSI)		   { lastError = IO_ERROR_BADPARAM;			return; }

	driver		 = new DriverANSI(openFile);

	if (driver->GetLastError() != IO_ERROR_OK) { lastError = driver->GetLastError(); delete driver; return; }

	streamType	 = STREAM_DRIVER;
	size		 = driver->GetSize();
	currentFilePos	 = driver->GetPos();

	currentBufferPos = defaultPackageSize;
	origsize	 = size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x569d0
movq 0xccfcd(%rip), %rax     # 0x16b3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x4, %ebp
jne 0x9e45c
movl $0x48, %edi
callq 0x556b0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x58470
movq %r15, 0xe8(%rbx)
movq %r15, %rdi
callq 0x55190
testl %eax, %eax
je 0x9e467
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9e4a3
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *0x8(%rax)
movw $0x2, 0xf8(%rbx)
jmp 0x9e4a3
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x48(%rax)
movq %rax, 0x48(%rbx)
movq 0xcd602(%rip), %rax     # 0x16ba98
movl (%rax), %eax
movl %eax, 0x50(%rbx)
movq 0x10(%rbx), %rax
movq %rax, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x48, %esi
movq %r15, %rdi
callq 0x55480
jmp 0x9e4c3
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InStream(int, void*, long)
S::IO::InStream::InStream(Int type, Void *inBuffer, Long bufferSize)
{
	outStream	 = NIL;

	if (type != STREAM_BUFFER)		   { lastError = IO_ERROR_BADPARAM;			return; }

	driver		 = new DriverMemory(inBuffer, bufferSize);

	if (driver->GetLastError() != IO_ERROR_OK) { lastError = driver->GetLastError(); delete driver; return; }

	streamType	 = STREAM_DRIVER;
	size		 = driver->GetSize();

	currentBufferPos = packageSize;
	origsize	 = size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
callq 0x569d0
movq 0xccec5(%rip), %rax     # 0x16b3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x5, %ebp
jne 0x9e565
movl $0x40, %edi
callq 0x556b0
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x57470
movq %r12, 0xe8(%rbx)
movq %r12, %rdi
callq 0x55190
testl %eax, %eax
je 0x9e570
movq 0xe8(%rbx), %rdi
callq 0x55190
movw %ax, 0xf8(%rbx)
movq 0xe8(%rbx), %rdi
testq %rdi, %rdi
je 0x9e591
movq (%rdi), %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmpq *0x8(%rax)
movw $0x2, 0xf8(%rbx)
jmp 0x9e591
movw $0x2, 0x8(%rbx)
movq 0xe8(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movl 0x38(%rbx), %ecx
movl %ecx, 0x50(%rbx)
movq %rax, 0x18(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x40, %esi
movq %r12, %rdi
callq 0x55480
jmp 0x9e5af
movq %rax, %r14
movq %rbx, %rdi
callq 0x573c0
movq %r14, %rdi
callq 0x57090
nop
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InStream(int, smooth::IO::OutStream*)
S::IO::InStream::InStream(Int type, OutStream *out)
{
	outStream	 = NIL;

	if (type != STREAM_STREAM)				{ lastError = IO_ERROR_BADPARAM;   return; }
	if (out->streamType == STREAM_NONE || out->crosslinked)	{ lastError = IO_ERROR_OPNOTAVAIL; return; }

	streamType	 = STREAM_STREAM;

	crosslinked		= True;
	outStream		= out;
	outStream->inStream	= this;
	outStream->crosslinked	= True;

	packageSize		= defaultPackageSize;
	stdpacksize		= packageSize;
	origpacksize		= packageSize;

	if (outStream->streamType == STREAM_DRIVER)
	{
		driver		 = outStream->driver;

		streamType	 = STREAM_DRIVER;
		size		 = outStream->size;
		currentFilePos	 = outStream->currentFilePos;
		closefile	 = False;

		packageSize	 = 1;
		stdpacksize	 = packageSize;
		origpacksize	 = packageSize;
		currentBufferPos = packageSize;
		origsize	 = size;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x569d0
movq 0xccde0(%rip), %rax     # 0x16b3b8
addq $0x10, %rax
movq %rax, (%rbx)
movq $0x0, 0x100(%rbx)
cmpl $0x1, %ebp
jne 0x9e609
cmpw $0x0, 0x8(%r14)
je 0x9e5fe
cmpb $0x1, 0xa(%r14)
jne 0x9e617
movw $0x6, 0xf8(%rbx)
jmp 0x9e612
movw $0x2, 0xf8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
movw $0x1, 0x8(%rbx)
movb $0x1, %al
movb %al, 0xa(%rbx)
movq %r14, 0x100(%rbx)
movq %rbx, 0x100(%r14)
movb %al, 0xa(%r14)
movq 0xcd45d(%rip), %rax     # 0x16ba98
movl (%rax), %eax
movl %eax, 0x38(%rbx)
movl %eax, 0x3c(%rbx)
movl %eax, 0x40(%rbx)
cmpw $0x2, 0x8(%r14)
jne 0x9e612
movq 0xe8(%r14), %rax
movq %rax, 0xe8(%rbx)
movw $0x2, 0x8(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movq 0x48(%r14), %rcx
movq %rcx, 0x48(%rbx)
movb $0x0, 0xb(%rbx)
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x38(%rbx)
movl $0x1, %ecx
movl %ecx, 0x40(%rbx)
movl %ecx, 0x50(%rbx)
movq %rax, 0x18(%rbx)
jmp 0x9e612
// File: /workspace/github_c_makefile_star2_O3/enzo1982[P]smooth/classes/io/instream.cpp
// Function: smooth::IO::InStream::InputNumber(int)
S::Int64 S::IO::InStream::InputNumber(Int bytes)	// Intel byte order DCBA
{
	if (streamType == STREAM_NONE)	{ lastError = IO_ERROR_NOTOPEN; return -1; }
	if (bytes > 8 || bytes < 0)	{ lastError = IO_ERROR_BADPARAM; return -1; }

	if (bitstreamActive && !keepBits) CompleteBitstream();

	Int64	 rval = 0;

	for (Int i = 0; i < bytes; i++)
	{
		if (currentFilePos >= (origfilepos + packageSize)) { lastError = IO_ERROR_UNKNOWN; return -1; }

		while (currentBufferPos >= packageSize)
		{
			if (!ReadData()) { lastError = IO_ERROR_NODATA; return -1; }
		}

		if (bytes <= 4)	rval += dataBuffer[currentBufferPos] * (1   << (i * 8));
		else		rval += dataBuffer[currentBufferPos] * (1LL << (i * 8));

		currentBufferPos++;
		currentFilePos++;
	}

	return rval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
je 0x9e921
movl %esi, %ebp
movw $0x2, %ax
cmpl $0x8, %esi
ja 0x9e92b
cmpb $0x1, 0x60(%rbx)
jne 0x9e898
cmpb $0x0, 0x61(%rbx)
jne 0x9e898
movl $0x0, 0x64(%rbx)
movb $0x0, 0x60(%rbx)
testl %ebp, %ebp
je 0x9e945
movl %ebp, %r15d
movq 0x48(%rbx), %rcx
movl 0x38(%rbx), %eax
xorl %r12d, %r12d
xorl %r14d, %r14d
cltq
addq 0x58(%rbx), %rax
cmpq %rax, %rcx
jge 0x9e94a
movslq 0x50(%rbx), %rdx
movl 0x38(%rbx), %eax
cmpl %eax, %edx
jl 0x9e8d8
movq %rbx, %rdi
callq 0x55a50
testb %al, %al
jne 0x9e8bf
jmp 0x9e927
movq 0x28(%rbx), %rcx
movq (%rcx), %rcx
movzbl (%rcx,%rdx), %esi
cmpl $0x4, %ebp
ja 0x9e8f7
leal (,%r12,8), %ecx
shll %cl, %esi
movslq %esi, %rsi
jmp 0x9e904
movl %esi, %esi
leal (,%r12,8), %ecx
shlq %cl, %rsi
addq %rsi, %r14
incl %edx
movl %edx, 0x50(%rbx)
movq 0x48(%rbx), %rcx
incq %rcx
movq %rcx, 0x48(%rbx)
incq %r12
cmpq %r15, %r12
jne 0x9e8b0
jmp 0x9e939
movw $0x5, %ax
jmp 0x9e92b
movw $0x8, %ax
movw %ax, 0xf8(%rbx)
movq $-0x1, %r14
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x9e939
movw $0x4, %ax
jmp 0x9e92b