LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/widgets/special/shortcut.cpp
// Function: smooth::GUI::Shortcut::Process(int, int, int)
S::Int S::GUI::Shortcut::Process(Int message, Int wParam, Int lParam)
{
	if (!IsRegistered()) return Error();
	if (!IsActive())     return Success();

	if (ref != NIL && !ref->IsActive()) return Success();

	switch (message)
	{
		case SM_KEYDOWN:
			if (wParam == key)
			{
				if ((((flags & SC_ALT) 	 && Input::Keyboard::GetKeyState(Input::Keyboard::KeyAlt))     || (!(flags & SC_ALT)   && !Input::Keyboard::GetKeyState(Input::Keyboard::KeyAlt)))     &&
				    (((flags & SC_CTRL)  && Input::Keyboard::GetKeyState(Input::Keyboard::KeyControl)) || (!(flags & SC_CTRL)  && !Input::Keyboard::GetKeyState(Input::Keyboard::KeyControl))) &&
				    (((flags & SC_CMD)   && Input::Keyboard::GetKeyState(Input::Keyboard::KeyCommand)) || (!(flags & SC_CMD)   && !Input::Keyboard::GetKeyState(Input::Keyboard::KeyCommand))) &&
				    (((flags & SC_SHIFT) && Input::Keyboard::GetKeyState(Input::Keyboard::KeyShift))   || (!(flags & SC_SHIFT) && !Input::Keyboard::GetKeyState(Input::Keyboard::KeyShift))))
				{
					onKeyDown.Emit(param);

					return MessageProcessed;
				}
			}

			break;
	}

	return Widget::Process(message, wParam, lParam);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
movq (%rdi), %rax
callq *0x88(%rax)
pushq $-0x1
popq %r13
testb %al, %al
je 0x92455
movq (%r14), %rax
movq %r14, %rdi
callq *0x98(%rax)
xorl %r12d, %r12d
testb %al, %al
je 0x92458
movq 0x5c0(%r14), %rdi
testq %rdi, %rdi
je 0x92364
movq (%rdi), %rax
callq *0x98(%rax)
testb %al, %al
je 0x92458
cmpl $0x780e, %r15d          # imm = 0x780E
jne 0x92422
cmpl %ebp, 0x5b8(%r14)
jne 0x92422
movl 0x30(%r14), %eax
testb $0x1, %al
je 0x92396
pushq $0x12
popq %rdi
callq 0x58710
testb %al, %al
jne 0x923aa
movl 0x30(%r14), %eax
testb $0x1, %al
jne 0x92422
pushq $0x12
popq %rdi
callq 0x58710
testb %al, %al
jne 0x92422
movl 0x30(%r14), %eax
testb $0x2, %al
je 0x923c2
pushq $0x11
popq %rdi
callq 0x58710
testb %al, %al
jne 0x923d2
movl 0x30(%r14), %eax
testb $0x2, %al
jne 0x92422
pushq $0x11
popq %rdi
callq 0x58710
testb %al, %al
jne 0x92422
movl 0x30(%r14), %eax
testb $0x4, %al
je 0x923ea
pushq $0x5b
popq %rdi
callq 0x58710
testb %al, %al
jne 0x923fa
movl 0x30(%r14), %eax
testb $0x4, %al
jne 0x92422
pushq $0x5b
popq %rdi
callq 0x58710
testb %al, %al
jne 0x92422
movl 0x30(%r14), %eax
testb $0x8, %al
je 0x92412
pushq $0x10
popq %rdi
callq 0x58710
testb %al, %al
jne 0x9243f
movl 0x30(%r14), %eax
testb $0x8, %al
jne 0x92422
pushq $0x10
popq %rdi
callq 0x58710
testb %al, %al
je 0x9243f
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
movl %ebx, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x594d0
movl 0x5bc(%r14), %esi
addq $0x5c8, %r14            # imm = 0x5C8
movq %r14, %rdi
callq 0x72596
movl %r13d, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/widgets/special/tooltip.cpp
// Function: smooth::GUI::Tooltip::Tooltip()
S::GUI::Tooltip::Tooltip() : Widget(Point(), Size())
{
	type		= classID;
	orientation	= OR_FREE;
	toolWindow	= NIL;
	timeOut		= 5000;
	timer		= NIL;

	layer		= NIL;

	font.SetColor(Setup::TooltipTextColor);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
leaq 0x8(%rsp), %rdx
andq $0x0, (%rdx)
callq 0x58c80
movq 0xcef98(%rip), %rax     # 0x161d48
addq $0x10, %rax
movq %rax, (%rbx)
movq 0xce88a(%rip), %rax     # 0x161648
movzwl (%rax), %eax
movw %ax, 0x20(%rbx)
movw $0x80, 0xd0(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x5b8(%rbx)
movl $0x1388, 0x5c8(%rbx)    # imm = 0x1388
andq $0x0, 0x5d0(%rbx)
leaq 0x140(%rbx), %rdi
movq 0xcea98(%rip), %rsi     # 0x161890
callq 0x59940
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x58860
movq %r14, %rdi
callq 0x58260
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/widgets/special/tooltip.cpp
// Function: smooth::GUI::Tooltip::~Tooltip()
S::GUI::Tooltip::~Tooltip()
{
	if (timer != NIL)
	{
		timer->Stop();

		DeleteObject(timer);
	}

	if (toolWindow != NIL) DeleteObject(toolWindow);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0xcef25(%rip), %rax     # 0x161d48
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x5c0(%rdi), %rdi
testq %rdi, %rdi
je 0x92e47
callq 0x5a518
movq 0x5c0(%rbx), %rdi
callq 0x5a010
movq 0x5b8(%rbx), %rdi
testq %rdi, %rdi
je 0x92e58
callq 0x5a010
movq %rbx, %rdi
popq %rbx
jmp 0x58860
movq %rax, %rdi
callq 0x5bffa
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/widgets/special/tooltip.cpp
// Function: smooth::GUI::Tooltip::OnToolWindowPaint()
S::Void S::GUI::Tooltip::OnToolWindowPaint()
{
	Surface	*surface = toolWindow->GetDrawSurface();
	Rect	 tRect	 = Rect(Point(0, 0), surface->GetSize());

	surface->Box(tRect, Color(0, 0, 0), Rect::Outlined);

	surface->SetText(text, tRect + Point(2, 1), font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x5b8(%rdi), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, %r14
movq %rax, %rdi
callq 0x58cc0
leaq 0x18(%rsp), %r15
andq $0x0, (%r15)
movq (%rax), %rax
leaq 0x8(%rsp), %r12
andq $0x0, 0x8(%r12)
andl $0x0, (%r12)
movq %rax, 0x8(%r15)
movq 0xce65a(%rip), %rax     # 0x161820
movl (%rax), %ecx
movq %rsp, %r13
andq $0x0, (%r13)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %r8
callq 0x58b80
leaq 0xf0(%rbx), %rbp
movabsq $0x100000002, %rax      # imm = 0x100000002
movq %rax, (%r13)
movq %rsp, %rsi
movq %r15, %rdi
callq 0x58930
movq %rax, (%r12)
movq %rdx, 0x8(%r12)
addq $0x140, %rbx            # imm = 0x140
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x58df0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/widgets/special/tooltip.cpp
// Function: smooth::GUI::Tooltip::OnToolWindowEvent(int, int, int)
S::Void S::GUI::Tooltip::OnToolWindowEvent(Int message, Int wParam, Int lParam)
{
	static Bool	 forwarding = False;

	if (forwarding) return;

	Window	*window	= container ? container->GetContainerWindow() : NIL;

	if (window == NIL) return;

	forwarding = True;

	EnterProtectedRegion();

	switch (message)
	{
		/* Forward mouse wheel messages posted to
		 * the tool window to our parent window.
		 */
		case SM_MOUSEWHEEL:
			window->Process(message, wParam, lParam);

			break;

		/* Pass on keyboard events as well and hide
		 * the tooltip immediately after char events.
		 */
		case SM_KEYDOWN:
		case SM_KEYUP:
#ifdef __WIN32__
			window->Process(message, wParam, lParam);
#endif
			break;
		case SM_CHAR:
#ifdef __WIN32__
			window->Process(message, wParam, lParam);
#endif
			Hide();

			break;
	}

	LeaveProtectedRegion();

	forwarding = False;
}

// Assembly:
cmpb $0x0, 0xd19c3(%rip)     # 0x164c00
jne 0x932d4
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movq 0x190(%rdi), %rdi
testq %rdi, %rdi
je 0x932c6
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r12d
callq 0x56a50
testq %rax, %rax
je 0x932c6
movq %rax, %r13
movb $0x1, 0xd1988(%rip)     # 0x164c00
leaq 0x1c(%r15), %r14
movq %r14, %rdi
callq 0x58b40
cmpl $0x7810, %r12d          # imm = 0x7810
je 0x932ae
cmpl $0x780c, %r12d          # imm = 0x780C
jne 0x932b7
movq (%r13), %rax
movq %r13, %rdi
movl $0x780c, %esi           # imm = 0x780C
movl %ebp, %edx
movl %ebx, %ecx
callq *0x80(%rax)
jmp 0x932b7
movq (%r15), %rax
movq %r15, %rdi
callq *0x60(%rax)
movq %r14, %rdi
callq 0x56d60
movb $0x0, 0xd193a(%rip)     # 0x164c00
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/widgets/special/tooltip.cpp
// Function: smooth::GUI::Tooltip::OnTimer()
S::Void S::GUI::Tooltip::OnTimer()
{
	Hide();

	timer->Stop();

	DeleteObject(timer);

	timer = NIL;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x60(%rax)
movq 0x5c0(%rbx), %rdi
callq 0x5a518
movq 0x5c0(%rbx), %rdi
callq 0x5a010
andq $0x0, 0x5c0(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/widgets/special/tooltip.cpp
// Function: smooth::GUI::Tooltip::Hide()
S::Int S::GUI::Tooltip::Hide()
{
	if (!visible) return Success();

	visible = False;

	if (!IsRegistered()) return Success();

	if (toolWindow != NIL)
	{
		toolWindow->Close();

		Remove(toolWindow);

		if (layer != NIL) toolWindow->Remove(layer);

		toolWindow->onPaint.Disconnect(&Tooltip::OnToolWindowPaint, this);
		toolWindow->onEvent.Disconnect(&Tooltip::OnToolWindowEvent, this);

		DeleteObject(toolWindow);

		toolWindow = NIL;
	}

	onHide.Emit();

	return Success();
}

// Assembly:
cmpb $0x1, 0xcb(%rdi)
jne 0x933c3
pushq %rbx
movq %rdi, %rbx
movb $0x0, 0xcb(%rdi)
movq (%rdi), %rax
callq *0x88(%rax)
testb %al, %al
je 0x933c2
movq 0x5b8(%rbx), %rdi
testq %rdi, %rdi
je 0x933b3
callq 0x59700
movq 0x5b8(%rbx), %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
movq 0x5d0(%rbx), %rsi
testq %rsi, %rsi
je 0x93365
movq 0x5b8(%rbx), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movl $0x648, %edi            # imm = 0x648
addq 0x5b8(%rbx), %rdi
movq 0xcdfe0(%rip), %rsi     # 0x161358
xorl %edx, %edx
movq %rbx, %rcx
callq 0x934fe
movl $0x668, %edi            # imm = 0x668
addq 0x5b8(%rbx), %rdi
movq 0xce8b3(%rip), %rsi     # 0x161c48
xorl %edx, %edx
movq %rbx, %rcx
callq 0x93568
movq 0x5b8(%rbx), %rdi
callq 0x5a010
andq $0x0, 0x5b8(%rbx)
addq $0x218, %rbx            # imm = 0x218
movq %rbx, %rdi
callq 0x70196
popq %rbx
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/toolwindow.cpp
// Function: smooth::GUI::ToolWindow::ToolWindow(smooth::GUI::Point const&, smooth::GUI::Size const&)
S::GUI::ToolWindow::ToolWindow(const Point &iPos, const Size &iSize) : Window("smooth ToolWindow", iPos, iSize)
{
	type		= classID;
	orientation	= OR_FREE;
	visible		= True;

	frameWidth	= 0;

	backend->SetSizeModifier(Size());

	SetFlags(WF_TOPMOST | WF_NOTASKBUTTON | WF_THINBORDER);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x538d3(%rip), %rsi     # 0xe6fe2
movq %rsp, %r12
movq %r12, %rdi
callq 0x58c40
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x59f60
movq %rsp, %r14
movq %r14, %rdi
callq 0x5a588
movq 0xcde78(%rip), %rax     # 0x1615b8
addq $0x10, %rax
movq %rax, (%rbx)
movq 0xce58a(%rip), %rax     # 0x161cd8
movzwl (%rax), %eax
movw %ax, 0x20(%rbx)
movw $0x80, 0xd0(%rbx)
movb $0x1, 0xcb(%rbx)
andl $0x0, 0x5e8(%rbx)
movq 0x5c0(%rbx), %rdi
andq $0x0, (%r14)
movq %rsp, %rsi
callq 0x9655e
movl $0x1a, 0x30(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x56a20
jmp 0x937aa
movq %rax, %r14
movq %rsp, %rdi
callq 0x5a588
movq %r14, %rdi
callq 0x58260
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/toolwindow.cpp
// Function: smooth::GUI::ToolWindow::Create()
S::Bool S::GUI::ToolWindow::Create()
{
	if (IsRegistered())
	{
		Window	*containerWindow = container->GetContainerWindow();

		if (containerWindow != NIL)
		{
			if (IsRightToLeft()) Window::SetMetrics(Point(containerWindow->GetRealSize().cx - (GetX() + GetRealSize().cx), GetY()), GetSize());

			Window::SetMetrics(GetPosition() + containerWindow->GetPosition(), GetSize());
		}
	}

	return Window::Create();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x88(%rax)
testb %al, %al
je 0x93887
movq 0x190(%rbx), %rdi
callq 0x56a50
testq %rax, %rax
je 0x93887
movq %rax, %r14
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x160(%rax)
testb %al, %al
je 0x93851
movq (%r14), %rax
movq %r14, %rdi
callq *0x50(%rax)
movq %rax, %r15
movl 0xa8(%rbx), %ebp
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x50(%rax)
addl %ebp, %eax
subl %eax, %r15d
movl 0xac(%rbx), %eax
movq %rsp, %rsi
movl %r15d, (%rsi)
movl %eax, 0x4(%rsi)
leaq 0xb0(%rbx), %rdx
movq %rbx, %rdi
callq 0x56c80
movl 0xa8(%r14), %eax
addl 0xa8(%rbx), %eax
movl 0xac(%r14), %ecx
addl 0xac(%rbx), %ecx
shlq $0x20, %rcx
orq %rcx, %rax
movq %rsp, %rsi
movq %rax, (%rsi)
leaq 0xb0(%rbx), %rdx
movq %rbx, %rdi
callq 0x56c80
movq %rbx, %rdi
callq 0x56430
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/toolwindow.cpp
// Function: smooth::GUI::ToolWindow::SetMetrics(smooth::GUI::Point const&, smooth::GUI::Size const&)
S::Int S::GUI::ToolWindow::SetMetrics(const Point &nPos, const Size &nSize)
{
	Point	 position = nPos;

	if (IsRegistered() && created)
	{
		Window	*containerWindow = container->GetContainerWindow();

		if (containerWindow != NIL)
		{
			if (IsRightToLeft())
			{
				Surface	*surface  = GetDrawSurface();
				Float	 fontSize = surface->GetSurfaceDPI() / 96.0;

				position.x = containerWindow->GetRealSize().cx - (nPos.x + Math::Round(nSize.cx * fontSize));
			}

			position += containerWindow->GetPosition();
		}
	}

	return Window::SetMetrics(position, nSize);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq (%rsi), %r13
movq %r13, 0x8(%rsp)
movq (%rdi), %rax
callq *0x88(%rax)
testb %al, %al
je 0x93982
cmpb $0x1, 0x5ca(%r14)
jne 0x93982
movq 0x190(%r14), %rdi
callq 0x56a50
testq %rax, %rax
je 0x93982
movq %rax, %r12
movq %r13, %rbp
shrq $0x20, %rbp
movq (%r14), %rax
movq %r14, %rdi
callq *0x160(%rax)
testb %al, %al
je 0x93969
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movq %rax, %rdi
callq 0x59c60
cwtl
cvtsi2sd %eax, %xmm0
divsd 0x4fbeb(%rip), %xmm0    # 0xe3510
movsd %xmm0, 0x10(%rsp)
movq (%r12), %rax
movq %r12, %rdi
callq *0x50(%rax)
cvtsi2sdl (%rbx), %xmm0
movq %rax, %r13
mulsd 0x10(%rsp), %xmm0
xorpd %xmm1, %xmm1
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
movl (%r15), %ecx
leaq 0x50017(%rip), %rdx     # 0xe3970
addsd (%rdx,%rax,8), %xmm0
cvttsd2si %xmm0, %rax
addq %rcx, %rax
subq %rax, %r13
addl 0xa8(%r12), %r13d
movl %r13d, 0x8(%rsp)
addl 0xac(%r12), %ebp
movl %ebp, 0xc(%rsp)
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x56c80
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/toolwindow.cpp
// Function: smooth::GUI::ToolWindow::IsRightToLeft() const
S::Bool S::GUI::ToolWindow::IsRightToLeft() const
{
	if (IsRegistered() && layoutDirection == LD_DEFAULT)
	{
		Window	*containerWindow = container->GetContainerWindow();

		if (containerWindow != NIL) return containerWindow->IsRightToLeft();
	}

	return Window::IsRightToLeft();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x88(%rax)
testb %al, %al
je 0x939da
cmpl $0x0, 0x618(%rbx)
jne 0x939da
movq 0x190(%rbx), %rdi
callq 0x56a50
testq %rax, %rax
je 0x939da
movq (%rax), %rcx
movq %rax, %rdi
popq %rbx
jmpq *0x160(%rcx)
movq %rbx, %rdi
popq %rbx
jmp 0x58640
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::~Window()
S::GUI::Window::~Window()
{
	backend->onEvent.Disconnect(&Window::Process, this);

	if (created && !destroyed) backend->Close();

	Remove(mainLayer);
	DeleteObject(mainLayer);

	windows.Remove(GetHandle());

	delete backend;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0xcd95b(%rip), %rax     # 0x161748
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x5c0(%rdi), %rdi
addq $0x58, %rdi
movl $0x81, %esi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x95a8e
cmpb $0x1, 0x5ca(%rbx)
jne 0x93e2d
cmpb $0x0, 0x5cb(%rbx)
jne 0x93e2d
movq 0x5c0(%rbx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movq 0x620(%rbx), %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x38(%rax)
movq 0x620(%rbx), %rdi
callq 0x5a010
movl 0x8(%rbx), %esi
movq 0xcd85d(%rip), %rdi     # 0x1616b0
callq 0x59f00
movq 0x5c0(%rbx), %rdi
testq %rdi, %rdi
je 0x93e6a
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x6b0(%rbx), %rdi
callq 0x95a40
leaq 0x688(%rbx), %rdi
callq 0x95a5a
leaq 0x668(%rbx), %rdi
callq 0x95a74
leaq 0x648(%rbx), %rdi
callq 0x700e0
leaq 0x628(%rbx), %rdi
callq 0x700e0
leaq 0x600(%rbx), %rdi
callq 0x5a588
leaq 0x5d0(%rbx), %rdi
callq 0x5a4c8
movq %rbx, %rdi
popq %rbx
jmp 0x58860
movq %rax, %rdi
callq 0x5bffa
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::SetMetrics(smooth::GUI::Point const&, smooth::GUI::Size const&)
S::Int S::GUI::Window::SetMetrics(const Point &nPos, const Size &nSize)
{
	if (created && visible) backend->SetMetrics(nPos, nSize);

	Bool	 resized     = (GetSize() != nSize);
	Bool	 prevVisible = visible;

	visible = False;

	Widget::SetMetrics(nPos, nSize);

	if (resized) CalculateOffsets();

	visible = prevVisible;

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
cmpb $0x1, 0x5ca(%rdi)
jne 0x93f24
cmpb $0x1, 0xcb(%rbx)
jne 0x93f24
movq 0x5c0(%rbx), %rdi
movq (%rdi), %rax
movq %rsi, %r15
movq %r14, %rdx
callq *0x90(%rax)
movq %r15, %rsi
movl (%r14), %ebp
movl 0xb0(%rbx), %r15d
movl 0xb4(%rbx), %r12d
movl 0x4(%r14), %r13d
movb 0xcb(%rbx), %al
movb %al, 0x7(%rsp)
movb $0x0, 0xcb(%rbx)
movq %rbx, %rdi
movq %r14, %rdx
callq 0x58250
cmpl %ebp, %r15d
jne 0x93f5f
cmpl %r13d, %r12d
je 0x93f67
movq %rbx, %rdi
callq 0x56fc0
movb 0x7(%rsp), %al
movb %al, 0xcb(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::SetIcon(smooth::GUI::Bitmap const&)
S::Int S::GUI::Window::SetIcon(const Bitmap &nIcon)
{
	Bitmap	 newIcon = nIcon;

#ifdef __WIN32__
	if (newIcon == NIL) newIcon = ImageLoader::Load(String("Icon:").Append(String::FromInt(IDI_ICON)));
#endif

	if (newIcon != NIL)
	{
		icon = newIcon;

		backend->SetIcon(icon);
	}

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %r14
movq %r14, %rdi
callq 0x58350
movq %r14, %rdi
xorl %esi, %esi
callq 0x574f0
testb %al, %al
je 0x94334
leaq 0x5d0(%rbx), %r14
movq %rsp, %rsi
movq %r14, %rdi
callq 0x59570
movq 0x5c0(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x40(%rax)
movq %rsp, %rdi
callq 0x5a4c8
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5a4c8
movq %rbx, %rdi
callq 0x58260
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::SetText(smooth::String const&)
S::Int S::GUI::Window::SetText(const String &nTitle)
{
	text = nTitle;

	if (created && !destroyed)
	{
		Process(SM_WINDOWTITLECHANGED, 0, 0);

		backend->SetTitle(text);
	}

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xf0(%rdi), %rbx
movq %rbx, %rdi
callq 0x56630
cmpb $0x1, 0x5ca(%r14)
jne 0x943bb
cmpb $0x0, 0x5cb(%r14)
jne 0x943bb
movq (%r14), %rax
movq %r14, %rdi
movl $0x780a, %esi           # imm = 0x780A
xorl %edx, %edx
xorl %ecx, %ecx
callq *0x80(%rax)
movq 0x5c0(%r14), %rdi
movq (%rdi), %rax
movq %rbx, %rsi
callq *0x38(%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::SetStatusText(smooth::String const&)
S::Int S::GUI::Window::SetStatusText(const String &nStatus)
{
	for (Int i = 0; i < GetNOfObjects(); i++)
	{
		Widget *widget = GetNthObject(i);

		if (widget == NIL) continue;

		if (widget->GetObjectType() == Statusbar::classID)
		{
			widget->SetText(nStatus);

			return Success();
		}
	}

	return Error();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0xcd0b2(%rip), %rax     # 0x161490
xorl %r15d, %r15d
pushq $-0x1
popq %rbp
movswl (%rax), %r12d
cmpl 0x40(%r14), %r15d
jge 0x94428
movq %r14, %rdi
movl %r15d, %esi
callq 0x58c90
testq %rax, %rax
je 0x94411
movq %rax, %r13
leaq 0x20(%rax), %rdi
movl %r12d, %esi
callq 0x58720
testb %al, %al
jne 0x94416
incl %r15d
jmp 0x943e8
movq (%r13), %rax
movq %r13, %rdi
movq %rbx, %rsi
callq *0xa0(%rax)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::GetStatusText() const
const S::String &S::GUI::Window::GetStatusText() const
{
	for (Int i = 0; i < GetNOfObjects(); i++)
	{
		Widget *widget = GetNthObject(i);

		if (widget == NIL) continue;

		if (widget->GetObjectType() == Statusbar::classID) return widget->GetText();
	}

	return defaultStatus;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0xcd044(%rip), %rax     # 0x161490
xorl %ebp, %ebp
movswl (%rax), %r14d
movl 0x40(%rbx), %r12d
cmpl %r12d, %ebp
jge 0x9448d
movq %rbx, %rdi
movl %ebp, %esi
callq 0x58c90
testq %rax, %rax
je 0x9447d
movq %rax, %r15
leaq 0x20(%rax), %rdi
movl %r14d, %esi
callq 0x58720
testb %al, %al
jne 0x94481
incl %ebp
jmp 0x94452
movq (%r15), %rax
movq %r15, %rdi
callq *0xa8(%rax)
addq $0x600, %rbx            # imm = 0x600
cmpl %r12d, %ebp
cmovlq %rax, %rbx
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::RestoreDefaultStatusText()
S::Int S::GUI::Window::RestoreDefaultStatusText()
{
	for (Int i = 0; i < GetNOfObjects(); i++)
	{
		Widget *widget = GetNthObject(i);

		if (widget == NIL) continue;

		if (widget->GetObjectType() == Statusbar::classID)
		{
			widget->SetText(defaultStatus);

			break;
		}
	}

	return Success();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xccfbb(%rip), %rax     # 0x161490
xorl %ebp, %ebp
movswl (%rax), %r14d
cmpl 0x40(%rbx), %ebp
jge 0x9451c
movq %rbx, %rdi
movl %ebp, %esi
callq 0x58c90
testq %rax, %rax
je 0x94502
movq %rax, %r15
leaq 0x20(%rax), %rdi
movl %r14d, %esi
callq 0x58720
testb %al, %al
jne 0x94506
incl %ebp
jmp 0x944db
addq $0x600, %rbx            # imm = 0x600
movq (%r15), %rax
movq %r15, %rdi
movq %rbx, %rsi
callq *0xa0(%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::SetRightToLeft(bool)
S::Int S::GUI::Window::SetRightToLeft(Bool nRightToLeft)
{
	Surface	*surface = GetDrawSurface();

	surface->SetRightToLeft(nRightToLeft);

	layoutDirection = (nRightToLeft ? LD_RIGHTTOLEFT : LD_LEFTTORIGHT);

	return Success();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, %rdi
movl %ebx, %esi
callq 0x59770
incl %ebx
movl %ebx, 0x618(%r14)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::Show()
S::Int S::GUI::Window::Show()
{
	order = Object::RequestObjectHandle();

	if (!created) Create();

	backend->SetMetrics(GetPosition(), GetSize());

	onChangePosition.Emit(GetPosition());
	onChangeSize.Emit(GetSize());

	if (maximized && !visibilitySet)
	{
		backend->Hide();

		maximized = False;
		Maximize();
	}

	if (minimized && !visibilitySet)
	{
		backend->Hide();

		minimized = False;
		Minimize();
	}

	visible	      = True;
	visibilitySet = True;

	backend->Show();

	onShow.Emit();

	return Success();
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x56c60
movl %eax, 0x5b8(%rbx)
cmpb $0x0, 0x5ca(%rbx)
jne 0x945bc
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x168(%rax)
movq 0x5c0(%rbx), %rdi
leaq 0xa8(%rbx), %r14
leaq 0xb0(%rbx), %r15
movq (%rdi), %rax
movq %r14, %rsi
movq %r15, %rdx
callq *0x90(%rax)
leaq 0x278(%rbx), %rdi
movq %r14, %rsi
callq 0x70356
leaq 0x298(%rbx), %rdi
movq %r15, %rsi
callq 0x705b8
cmpb $0x1, 0x5c8(%rbx)
jne 0x9462f
cmpb $0x0, 0x5cc(%rbx)
jne 0x9462f
movq 0x5c0(%rbx), %rdi
movq (%rdi), %rax
callq *0x80(%rax)
movb $0x0, 0x5c8(%rbx)
movq %rbx, %rdi
callq 0x56130
cmpb $0x1, 0x5c9(%rbx)
jne 0x94660
cmpb $0x0, 0x5cc(%rbx)
jne 0x94660
movq 0x5c0(%rbx), %rdi
movq (%rdi), %rax
callq *0x80(%rax)
movb $0x0, 0x5c9(%rbx)
movq %rbx, %rdi
callq 0x598c0
movb $0x1, %al
movb %al, 0xcb(%rbx)
movb %al, 0x5cc(%rbx)
movq 0x5c0(%rbx), %rdi
movq (%rdi), %rax
callq *0x78(%rax)
addq $0x1f8, %rbx            # imm = 0x1F8
movq %rbx, %rdi
callq 0x70196
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::Maximize()
S::Int S::GUI::Window::Maximize()
{
	if (maximized) return Success();

	if (!created)
	{
		maximized = True;

		return Success();
	}

	backend->Maximize();

	return Success();
}

// Assembly:
cmpb $0x0, 0x5c8(%rdi)
jne 0x946c2
cmpb $0x0, 0x5ca(%rdi)
je 0x946bb
pushq %rax
movq 0x5c0(%rdi), %rdi
movq (%rdi), %rax
callq *0xa0(%rax)
addq $0x8, %rsp
jmp 0x946c2
movb $0x1, 0x5c8(%rdi)
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::Minimize()
S::Int S::GUI::Window::Minimize()
{
	if (minimized) return Success();

	if (!created)
	{
		minimized = True;

		return Success();
	}

	backend->Minimize();

	return Success();
}

// Assembly:
cmpb $0x0, 0x5c9(%rdi)
jne 0x946f6
cmpb $0x0, 0x5ca(%rdi)
je 0x946ef
pushq %rax
movq 0x5c0(%rdi), %rdi
movq (%rdi), %rax
callq *0x98(%rax)
addq $0x8, %rsp
jmp 0x946f6
movb $0x1, 0x5c9(%rdi)
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::Hide()
S::Int S::GUI::Window::Hide()
{
	if (!visible) return Success();

	if (created) backend->Hide();

	visible	      = False;
	visibilitySet = True;

	onHide.Emit();

	return Success();
}

// Assembly:
cmpb $0x1, 0xcb(%rdi)
jne 0x9473e
pushq %rbx
movq %rdi, %rbx
cmpb $0x1, 0x5ca(%rdi)
jne 0x94720
movq 0x5c0(%rbx), %rdi
movq (%rdi), %rax
callq *0x80(%rax)
movb $0x0, 0xcb(%rbx)
movb $0x1, 0x5cc(%rbx)
addq $0x218, %rbx            # imm = 0x218
movq %rbx, %rdi
callq 0x70196
popq %rbx
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/window/window.cpp
// Function: smooth::GUI::Window::Restore()
S::Int S::GUI::Window::Restore()
{
	if (!maximized && !minimized) return Success();

	if (!created)
	{
		maximized = False;
		minimized = False;

		return Success();
	}

	backend->Restore();

	return Success();
}

// Assembly:
cmpb $0x0, 0x5c8(%rdi)
jne 0x94754
cmpb $0x1, 0x5c9(%rdi)
jne 0x9477c
cmpb $0x0, 0x5ca(%rdi)
je 0x94774
pushq %rax
movq 0x5c0(%rdi), %rdi
movq (%rdi), %rax
callq *0xa8(%rax)
addq $0x8, %rsp
jmp 0x9477c
andw $0x0, 0x5c8(%rdi)
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x88(%rax)
testb %al, %al
je 0x94939
xorl %ebp, %ebp
cmpb $0x0, 0x5ca(%rbx)
jne 0x9493b
orb $0x40, 0x31(%rbx)
movq 0xccf6e(%rip), %rax     # 0x161848
movswl (%rax), %r14d
cmpl 0x40(%rbx), %ebp
jge 0x9490f
movq %rbx, %rdi
movl %ebp, %esi
callq 0x58c90
leaq 0x20(%rax), %rdi
movl %r14d, %esi
callq 0x58720
incl %ebp
testb %al, %al
je 0x948de
movl $0x4000, %r8d           # imm = 0x4000
xorl 0x30(%rbx), %r8d
movl %r8d, 0x30(%rbx)
jmp 0x94913
movl 0x30(%rbx), %r8d
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 0x94942
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
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 0x59770
movb $0x0, 0xcb(%rbx)
movb $0x1, %bpl
jmp 0x9493b
nop
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
callq *0x88(%rax)
testb %al, %al
je 0x949d0
cmpb $0x0, 0x5ca(%rbx)
jne 0x9499f
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x168(%rax)
cmpb $0x0, 0xcb(%rbx)
jne 0x949b1
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x58(%rax)
movq %rsp, %r14
movq %r14, %rdi
callq 0x58450
movb 0x5cb(%rbx), %al
cmpb $0x1, %al
je 0x949d5
movq %r14, %rdi
callq 0x57a00
jmp 0x949bc
pushq $-0x1
popq %rax
jmp 0x949f1
pushq $0xa
popq %rbp
cmpl $0x0, 0x1c(%rbx)
jle 0x949e7
movl %ebp, %edi
callq 0x58b10
jmp 0x949d8
movq %rsp, %rdi
callq 0x56830
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x949fc
movq %rax, %rbx
movq %rsp, %rdi
callq 0x56830
movq %rbx, %rdi
callq 0x58260
nop
// File: /workspace/github_c_makefile_star2_O2/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 0x58b40
leaq 0x20(%rbx), %rdi
movq 0xcd29e(%rip), %rax     # 0x161cd8
movswl (%rax), %esi
callq 0x5a150
testb %al, %al
je 0x94a50
movq 0xccbf3(%rip), %rax     # 0x161640
incw (%rax)
movb $0x1, 0x5ca(%rbx)
movq %rbx, %rdi
callq 0x56fc0
addq $0x628, %rbx            # imm = 0x628
movq %rbx, %rdi
popq %rbx
jmp 0x70196
nop
// File: /workspace/github_c_makefile_star2_O2/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 0xcd24b(%rip), %rax     # 0x161cd8
movswl (%rax), %esi
callq 0x5a150
testb %al, %al
je 0x94aa3
movq 0xccba0(%rip), %rax     # 0x161640
decw (%rax)
addq $0x1c, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x56d60
// File: /workspace/github_c_makefile_star2_O2/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 0x56610
movq (%rax), %r14
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x160(%rax)
testb %al, %al
je 0x9553f
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x50(%rax)
movl %r14d, %ecx
notl %ecx
addl 0xa8(%rbx), %ecx
addl %eax, %ecx
jmp 0x9554a
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_O2/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 0x56740
testq %rax, %rax
je 0x955b8
movq %rbx, %rdi
callq 0x57cc0
movq %rax, %rcx
xorl %eax, %eax
cmpl %ecx, (%r14)
jg 0x955ba
cmpl %ecx, 0x8(%r14)
jle 0x955ba
shrq $0x20, %rcx
cmpl %ecx, 0x4(%r14)
jg 0x955ba
cmpl %ecx, 0xc(%r14)
jle 0x955ba
callq 0x58730
cmpq %rbx, %rax
sete %al
jmp 0x955ba
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $-0x1
popq %rbp
testq %rsi, %rsi
je 0x95857
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x128(%rax)
cmpl $0x14, %eax
je 0x95822
movq (%r14), %rax
movq %r14, %rdi
callq *0x128(%rax)
cmpl $0x24, %eax
je 0x95822
movq (%r14), %rax
movq %r14, %rdi
callq *0x128(%rax)
cmpl $0x18, %eax
je 0x95822
movq (%r14), %rax
movq %r14, %rdi
callq *0x128(%rax)
cmpl $0x28, %eax
jne 0x9585e
movq 0x620(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x38(%rax)
testl %eax, %eax
jne 0x95857
movq %rbx, %rdi
callq 0x59090
testb %al, %al
je 0x95846
xorl %ebp, %ebp
jmp 0x95857
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 0x57fa0
testl %eax, %eax
jne 0x95857
movq (%r14), %rax
movq %r14, %rdi
callq *0x128(%rax)
cmpl $0x80, %eax
je 0x95836
movq %rbx, %rdi
callq 0x56fc0
jmp 0x95836
// File: /workspace/github_c_makefile_star2_O2/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
testq %rdi, %rdi
je 0x958cb
movq %rdi, %rbx
movq 0xcbe10(%rip), %r14     # 0x1616b0
xorl %ebp, %ebp
cmpl 0x8(%r14), %ebp
jge 0x958cb
movq %r14, %rdi
movl %ebp, %esi
callq 0x5c1b6
movq (%rax), %r15
movq 0x5c0(%r15), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
incl %ebp
cmpq %rbx, %rax
jne 0x958a2
jmp 0x958ce
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x95af4
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0xc845f(%rip), %rdi     # 0x15df08
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 0x95ae9
decl %ebp
movq 0x10(%rbx), %rdi
movl %ebp, %esi
callq 0x5c1b6
movq (%rax), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x20(%rax)
testb %al, %al
je 0x95abe
movq %rbx, %rdi
movl %ebp, %esi
callq 0x95c30
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $-0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x95f64
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %r15
testq %r15, %r15
jne 0x95f3a
pushq $0x58
popq %rdi
callq 0x56700
movq %rax, %r15
movq %rax, %rdi
callq 0x5c808
movq %r15, 0x10(%r14)
movq %r15, %rdi
callq 0x583a0
movq 0x10(%r14), %r15
pushq $0x10
popq %rdi
callq 0x56700
leaq 0xc806f(%rip), %rcx     # 0x15dfb8
movq %rcx, (%rax)
movq %rbx, 0x8(%rax)
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq %r15, %rdi
callq 0x5c03a
xorl %eax, %eax
jmp 0x95f67
pushq $-0x1
popq %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
pushq $0x58
popq %rsi
movq %r15, %rdi
callq 0x564c0
movq %rbx, %rdi
callq 0x58260
nop
// File: /workspace/github_c_makefile_star2_O2/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 0xc7df5(%rip), %rax     # 0x15e0b8
movq %rax, (%rdi)
xorps %xmm0, %xmm0
andq $0x0, 0x48(%rdi)
movups %xmm0, 0x38(%rdi)
andq $0x0, 0x28(%rdi)
movups %xmm0, 0x18(%rdi)
leaq 0xc7abe(%rip), %rax     # 0x15dda0
movq %rax, 0x30(%rdi)
movups %xmm0, 0x60(%rdi)
andq $0x0, 0x70(%rdi)
leaq 0xc7b1a(%rip), %rax     # 0x15de10
movq %rax, 0x58(%rdi)
andq $0x0, 0x88(%rdi)
leaq 0x30(%rdi), %rbx
leaq 0x58(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0xc1452(%rip), %rax     # 0x157768
movq %rax, 0x80(%rdi)
movups %xmm0, 0x90(%rdi)
andq $0x0, 0xa8(%rdi)
leaq 0x80(%rdi), %r15
leaq 0xa0(%rdi), %r12
movq %rax, 0xa0(%rdi)
movups %xmm0, 0xb0(%rdi)
andq $0x0, 0xc8(%rdi)
movq %rax, 0xc0(%rdi)
movups %xmm0, 0xd0(%rdi)
andq $0x0, 0xe8(%rdi)
leaq 0xc0(%rdi), %r13
leaq 0xe0(%rdi), %rbp
movq %rax, 0xe0(%rdi)
movups %xmm0, 0xf0(%rdi)
andq $0x0, 0x108(%rdi)
movq %rax, 0x100(%rdi)
movups %xmm0, 0x110(%rdi)
andw $0x0, 0x8(%rdi)
leaq 0x100(%rdi), %r14
andq $0x0, 0x10(%rdi)
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x95a00
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0x700e0
movq %rbp, %rdi
callq 0x700e0
movq %r13, %rdi
callq 0x700e0
movq %r12, %rdi
callq 0x700e0
movq %r15, %rdi
callq 0x700e0
movq 0x10(%rsp), %rdi
callq 0x95a40
movq %rbx, %rdi
callq 0x95a5a
movq 0x8(%rsp), %rdi
callq 0x58260
// File: /workspace/github_c_makefile_star2_O2/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 0x96954
movq %rdx, %r15
movq %rsi, %r14
leaq 0x508df(%rip), %rsi     # 0xe71fd
movq %rsp, %r12
movq %r12, %rdi
callq 0x58c40
movq %r15, %rdi
movq %r12, %rsi
callq 0x57950
movq %rax, %r15
movq %rsp, %rdi
callq 0x5a588
testq %r15, %r15
je 0x96954
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x56860
jmp 0x96966
movq 0xcad6d(%rip), %rax     # 0x1616c8
addq $0x10, %rax
movq %rax, (%rbx)
orl $-0x1, 0x8(%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5a588
movq %rbx, %rdi
callq 0x58260
// File: /workspace/github_c_makefile_star2_O2/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 0x96d4c
movq %r14, %rsi
callq 0x573d0
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
callq 0x57d40
testb %al, %al
je 0x96d4c
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
addq $0x40, %rbx
movq %r14, %rdi
callq 0x56680
movq %rbx, %rdi
movl %eax, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x972a8
nop
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x20(%rdi), %r14
movq %r14, %rdi
callq 0x56630
andq $0x0, 0x38(%rbx)
movq %r14, %rdi
xorl %esi, %esi
callq 0x57d40
movb $0x1, %bpl
testb %al, %al
je 0x96ea1
leaq 0x4c327(%rip), %rsi     # 0xe30cd
leaq 0x18(%rsp), %r15
movq %r15, %rdi
callq 0x58c40
movq %r14, %rdi
movq %r15, %rsi
callq 0x58830
movl %eax, %ebp
leaq 0x18(%rsp), %rdi
callq 0x5a588
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x58280
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
callq 0x5a180
testl %ebp, %ebp
js 0x96e38
movq %rsp, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x59e40
leaq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x56630
movq %rsp, %rdi
callq 0x5a588
movq %r14, %rdi
callq 0x58370
subl %ebp, %eax
addl $-0x2, %eax
movq %rsp, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x59220
leaq 0x30(%rsp), %rdi
movq %rsp, %rsi
callq 0x56630
movq %rsp, %rdi
callq 0x5a588
leaq 0x98(%rbx), %r14
xorl %r15d, %r15d
leaq 0x18(%rsp), %r12
leal -0x1(%r15), %eax
movl 0xa0(%rbx), %ecx
decl %ecx
cmpl %ecx, %eax
setl %bpl
jge 0x96e8d
movq %r14, %rdi
movl %r15d, %esi
callq 0x6180a
movq (%rax), %r13
leaq 0x8(%r13), %rdi
movq %r12, %rsi
callq 0x56960
incl %r15d
testb %al, %al
je 0x96e47
leaq 0x30(%rsp), %rsi
movq %r13, %rdi
callq 0x57230
movq %r13, 0x38(%rbx)
leaq 0x30(%rsp), %rdi
callq 0x5a588
leaq 0x18(%rsp), %rdi
callq 0x5a588
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x96ed0
jmp 0x96eb6
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5a588
jmp 0x96ed3
jmp 0x96ed0
jmp 0x96ec7
movq %rax, %rbx
jmp 0x96edd
jmp 0x96ed0
jmp 0x96ed0
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x5a588
leaq 0x18(%rsp), %rdi
callq 0x5a588
movq %rbx, %rdi
callq 0x58260
nop
// File: /workspace/github_c_makefile_star2_O2/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 0xca6e8(%rip), %rax     # 0x1619f8
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x8(%rdi), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5a180
leaq 0x20(%r15), %r14
movq %r14, %rdi
callq 0x992a0
movq %rsp, %rdi
movq %r12, %rsi
callq 0x59320
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x56630
movq %rsp, %rdi
callq 0x5a588
andq $0x0, 0x78(%r15)
movq %r15, %rdi
callq 0x56540
leaq 0x4ff0f(%rip), %rsi     # 0xe7272
movq %rsp, %rdi
callq 0x58c40
movq (%r15), %rax
movq %rsp, %rsi
movq %r15, %rdi
callq *0x10(%rax)
movq %rsp, %rdi
callq 0x5a588
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x97391
jmp 0x9739e
jmp 0x9739e
movq %rax, %r15
movq %rsp, %rdi
callq 0x5a588
jmp 0x973a1
movq %rax, %r15
movq %r14, %rdi
callq 0x5c22c
movq %rbx, %rdi
callq 0x5a588
movq %r15, %rdi
callq 0x58260
movq %rax, %r15
jmp 0x973a9