// File: /workspace/github_c_makefile_star2_O3/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 0x8(%rsp), %rax
movq $0x0, (%rax)
movq %rcx, %rdx
movq %rax, %rcx
callq 0x56240
movq 0xf430b(%rip), %rax     # 0x16b728
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 0xf420b(%rip), %rax     # 0x16b658
movzwl (%rax), %eax
movw %ax, 0x20(%rbx)
movq %r14, %rdi
movq %r12, %rsi
callq 0x555f0
leaq 0x140(%rbx), %rdi
movq 0xf424b(%rip), %rsi     # 0x16b6b8
callq 0x58650
movq %rbx, %rdi
callq 0x55bb0
cvtdq2pd 0x188(%rbx), %xmm0
movapd %xmm0, 0x10(%rsp)
leaq 0x28(%rsp), %rdx
movq $0x0, (%rdx)
movq %rsp, %rdi
xorl %esi, %esi
callq 0x57150
movq %rsp, %rdi
callq 0x58930
movapd 0x10(%rsp), %xmm2
mulpd 0x7c06c(%rip), %xmm2    # 0xf3520
xorpd %xmm0, %xmm0
movapd %xmm2, %xmm1
cmpltpd %xmm0, %xmm1
movapd %xmm1, %xmm0
andnpd 0x7c063(%rip), %xmm0    # 0xf3530
andpd 0x7c06b(%rip), %xmm1    # 0xf3540
orpd %xmm0, %xmm1
addpd %xmm2, %xmm1
cvttsd2si %xmm1, %rcx
movq %rcx, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
cvttsd2si %xmm1, %rcx
movq %rcx, %xmm1
punpcklqdq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0]
pshufd $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3]
cwtl
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
cvtdq2pd %xmm0, %xmm0
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
divpd %xmm1, %xmm0
xorpd %xmm1, %xmm1
movapd %xmm0, %xmm2
cmpltpd %xmm1, %xmm2
movapd %xmm2, %xmm1
andnpd 0x7c005(%rip), %xmm1    # 0xf3530
andpd 0x7c00d(%rip), %xmm2    # 0xf3540
orpd %xmm1, %xmm2
addpd %xmm0, %xmm2
cvttsd2si %xmm2, %rax
unpckhpd %xmm2, %xmm2            # xmm2 = xmm2[1,1]
cvttsd2si %xmm2, %rcx
shlq $0x20, %rcx
movl %eax, %eax
orq %rcx, %rax
movabsq $0x200000000, %rcx      # imm = 0x200000000
addq %rax, %rcx
leaq 0x8(%rsp), %rdx
movq %rcx, (%rdx)
leaq 0xa8(%rbx), %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x150(%rax)
movq %rsp, %rdi
callq 0x57b20
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x556b0
movq %rax, %r13
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
leaq 0xb0(%rbx), %rdx
movq %rax, %rdi
callq 0x55a30
movq %r13, 0x5e0(%rbx)
addq $0x2b8, %r13            # imm = 0x2B8
movq 0xf3eb9(%rip), %rsi     # 0x16b478
movq %r13, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x77b7a
movl $0x2d8, %edi            # imm = 0x2D8
addq 0x5e0(%rbx), %rdi
movq 0xf4799(%rip), %rsi     # 0x16bd78
xorl %edx, %edx
movq %rbx, %rcx
callq 0x77b7a
movl $0x338, %edi            # imm = 0x338
addq 0x5e0(%rbx), %rdi
movq 0xf43d4(%rip), %rsi     # 0x16b9d0
xorl %edx, %edx
movq %rbx, %rcx
callq 0x77c3a
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 0x77654
jmp 0x77638
movq %rax, %r12
movq %rsp, %rdi
callq 0x57b20
jmp 0x77654
jmp 0x77651
movq %rax, %r12
jmp 0x7765c
movq %rax, %r12
jmp 0x77664
movq %rax, %r12
movq %r15, %rdi
callq 0x59148
movq %r14, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x55e80
movq %r12, %rdi
callq 0x57090