// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/gui/widgets/basic/hyperlink.cpp
// Function: smooth::GUI::Hyperlink::Hyperlink(smooth::String const&, smooth::String const&, smooth::GUI::Point const&)
S::GUI::Hyperlink::Hyperlink(const String &iText, const String &iLink, const Point &iPos) : Text(iText, iPos, Size())
{
	type	= classID;
	linkURL	= iLink;

	font.SetColor(Setup::LinkColor);

	ComputeTextSize();

	SetSize(scaledTextSize * 96.0 / Surface().GetSurfaceDPI() + Size(0, 2));

	hotspot	= new Hotspot(Point(0, 0), GetSize());

	hotspot->onMouseOver.Connect(&Hyperlink::OnMouseOver, this);
	hotspot->onMouseOut.Connect(&Hyperlink::OnMouseOut, this);
	hotspot->onLeftButtonClick.Connect(&Hyperlink::OnClickLink, this);

	Add(hotspot);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %r12
movq %rdi, %rbx
leaq 0x10(%rsp), %rax
movq $0x0, (%rax)
movq %rcx, %rdx
movq %rax, %rcx
callq 0x56240
movq 0xf5013(%rip), %rax     # 0x16c728
addq $0x10, %rax
movq %rax, (%rbx)
leaq 0x5c0(%rbx), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x5d8(%rbx), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x58950
movq 0xf4f13(%rip), %rax     # 0x16c658
movzwl (%rax), %eax
movw %ax, 0x20(%rbx)
movq %r14, %rdi
movq %r12, %rsi
callq 0x555f0
leaq 0x140(%rbx), %rdi
movq 0xf4f53(%rip), %rsi     # 0x16c6b8
callq 0x58650
movq %rbx, %rdi
callq 0x55bb0
cvtsi2sdl 0x188(%rbx), %xmm0
movsd %xmm0, 0x18(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdl 0x18c(%rbx), %xmm0
movsd %xmm0, 0x20(%rsp)
leaq 0x28(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x57150
leaq 0x8(%rsp), %rdi
callq 0x58930
movsd 0x7cd35(%rip), %xmm2    # 0xf44f0
movsd 0x18(%rsp), %xmm6
mulsd %xmm2, %xmm6
xorpd %xmm3, %xmm3
movapd %xmm6, %xmm4
cmpltsd %xmm3, %xmm4
movsd 0x7cbb6(%rip), %xmm0    # 0xf4390
movapd %xmm4, %xmm5
andpd %xmm0, %xmm5
movsd 0x7cbae(%rip), %xmm1    # 0xf4398
andnpd %xmm1, %xmm4
orpd %xmm5, %xmm4
addsd %xmm6, %xmm4
cvttsd2si %xmm4, %rcx
movsd 0x20(%rsp), %xmm4
mulsd %xmm2, %xmm4
movapd %xmm4, %xmm2
cmpltsd %xmm3, %xmm2
movapd %xmm2, %xmm3
andpd %xmm0, %xmm3
andnpd %xmm1, %xmm2
orpd %xmm3, %xmm2
addsd %xmm4, %xmm2
cvttsd2si %xmm2, %rdx
cwtl
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
xorps %xmm3, %xmm3
cvtsi2sd %ecx, %xmm3
divsd %xmm2, %xmm3
xorpd %xmm4, %xmm4
movapd %xmm3, %xmm5
cmpltsd %xmm4, %xmm5
movapd %xmm5, %xmm6
andpd %xmm0, %xmm6
andnpd %xmm1, %xmm5
orpd %xmm6, %xmm5
addsd %xmm3, %xmm5
cvttsd2si %xmm5, %rax
xorps %xmm3, %xmm3
cvtsi2sd %edx, %xmm3
divsd %xmm2, %xmm3
movapd %xmm3, %xmm2
cmpltsd %xmm4, %xmm2
andpd %xmm2, %xmm0
andnpd %xmm1, %xmm2
orpd %xmm0, %xmm2
addsd %xmm3, %xmm2
cvttsd2si %xmm2, %rcx
shlq $0x20, %rcx
movl %eax, %eax
orq %rcx, %rax
movabsq $0x200000000, %rcx      # imm = 0x200000000
addq %rax, %rcx
leaq 0x10(%rsp), %rdx
movq %rcx, (%rdx)
leaq 0xa8(%rbx), %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x150(%rax)
leaq 0x8(%rsp), %rdi
callq 0x57b20
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x556b0
movq %rax, %r13
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
leaq 0xb0(%rbx), %rdx
movq %rax, %rdi
callq 0x55a30
movq %r13, 0x5e0(%rbx)
addq $0x2b8, %r13            # imm = 0x2B8
movq 0xf4b77(%rip), %rsi     # 0x16c478
movq %r13, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x77ec2
movl $0x2d8, %edi            # imm = 0x2D8
addq 0x5e0(%rbx), %rdi
movq 0xf5457(%rip), %rsi     # 0x16cd78
xorl %edx, %edx
movq %rbx, %rcx
callq 0x77ec2
movl $0x338, %edi            # imm = 0x338
addq 0x5e0(%rbx), %rdi
movq 0xf5092(%rip), %rsi     # 0x16c9d0
xorl %edx, %edx
movq %rbx, %rcx
callq 0x77f80
movq 0x5e0(%rbx), %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x30(%rax)
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r12
movl $0x5b8, %esi            # imm = 0x5B8
movq %r13, %rdi
callq 0x55480
jmp 0x77998
jmp 0x7797a
movq %rax, %r12
leaq 0x8(%rsp), %rdi
callq 0x57b20
jmp 0x77998
jmp 0x77995
movq %rax, %r12
jmp 0x779a0
movq %rax, %r12
jmp 0x779a8
movq %rax, %r12
movq %r15, %rdi
callq 0x59148
movq %r14, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x55e80
movq %r12, %rdi
callq 0x57090