// File: /workspace/github_c_makefile_star2_O0/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 %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xc0(%rbp)
leaq -0x28(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x59230
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
movq -0xb8(%rbp), %rcx
movq -0xb0(%rbp), %rdi
callq 0x5a640
movq -0xb0(%rbp), %rdi
movq 0x16f5c5(%rip), %rax    # 0x208700
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x5c0, %rdi            # imm = 0x5C0
movq %rdi, -0xa8(%rbp)
xorl %esi, %esi
callq 0x5da90
jmp 0x99159
movq -0xb0(%rbp), %rdi
addq $0x5d8, %rdi            # imm = 0x5D8
movq %rdi, -0xd0(%rbp)
xorl %esi, %esi
callq 0x5d4a0
jmp 0x99177
movq -0xb0(%rbp), %rdi
movq 0x16f4ab(%rip), %rax    # 0x208630
movswl (%rax), %esi
addq $0x20, %rdi
callq 0x5a2e0
jmp 0x99193
movq -0xb0(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq $0x5c0, %rdi            # imm = 0x5C0
callq 0x59760
jmp 0x991ac
movq -0xb0(%rbp), %rdi
addq $0x140, %rdi            # imm = 0x140
movq 0x16f4cf(%rip), %rsi    # 0x208690
callq 0x5d110
jmp 0x991c8
movq -0xb0(%rbp), %rdi
callq 0x59de0
jmp 0x991d6
movq -0xb0(%rbp), %rdi
addq $0x188, %rdi            # imm = 0x188
movsd 0xee2d4(%rip), %xmm0    # 0x1874c0
callq 0x5a7b0
movq %rax, -0xd8(%rbp)
jmp 0x991fa
movq -0xd8(%rbp), %rax
movq %rax, -0x4c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x59230
jmp 0x99210
xorl %eax, %eax
movl %eax, %esi
leaq -0x58(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0x5b7d0
jmp 0x99223
leaq -0x58(%rbp), %rdi
callq 0x5d470
movw %ax, -0xda(%rbp)
jmp 0x99235
movw -0xda(%rbp), %ax
cwtl
cvtsi2sd %eax, %xmm0
leaq -0x4c(%rbp), %rdi
callq 0x5c6b0
movq %rax, -0xe8(%rbp)
jmp 0x99253
movq -0xe8(%rbp), %rax
movq %rax, -0x44(%rbp)
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x59260
jmp 0x99270
leaq -0x44(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x590b0
movq %rax, -0xf0(%rbp)
jmp 0x99286
movq -0xb0(%rbp), %rdi
movq -0xf0(%rbp), %rax
movq %rax, -0x3c(%rbp)
leaq -0x3c(%rbp), %rsi
callq 0x5de18
jmp 0x992a3
leaq -0x58(%rbp), %rdi
callq 0x5c380
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x59820
movq %rax, -0xf8(%rbp)
jmp 0x992bf
leaq -0x70(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x5c2c0
jmp 0x992ce
movq -0xb0(%rbp), %rdi
callq 0x5bf70
movq %rax, -0x100(%rbp)
jmp 0x992e3
movq -0x100(%rbp), %rdx
movq -0xf8(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x59c30
jmp 0x992fc
movq -0xb0(%rbp), %rcx
movq -0xf8(%rbp), %rax
movq %rax, 0x5e0(%rcx)
movq 0x5e0(%rcx), %rdi
addq $0x2b8, %rdi            # imm = 0x2B8
movq 0x16f12a(%rip), %rax    # 0x208450
movq %rax, -0x80(%rbp)
movq $0x0, -0x78(%rbp)
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
callq 0x99e80
jmp 0x99341
movq -0xb0(%rbp), %rcx
movq 0x5e0(%rcx), %rdi
addq $0x2d8, %rdi            # imm = 0x2D8
movq 0x16fa0b(%rip), %rax    # 0x208d68
movq %rax, -0x90(%rbp)
movq $0x0, -0x88(%rbp)
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
callq 0x99e80
jmp 0x99384
movq -0xb0(%rbp), %rcx
movq 0x5e0(%rcx), %rdi
addq $0x338, %rdi            # imm = 0x338
movq 0x16f610(%rip), %rax    # 0x2089b0
movq %rax, -0xa0(%rbp)
movq $0x0, -0x98(%rbp)
movq -0xa0(%rbp), %rsi
movq -0x98(%rbp), %rdx
callq 0x99fc0
jmp 0x993c7
movq -0xb0(%rbp), %rdi
movq 0x5e0(%rdi), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0x993e0
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x9945f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x99453
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x99447
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x5c380
jmp 0x99447
movq -0xf8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
movl $0x5b8, %esi            # imm = 0x5B8
callq 0x595b0
movq -0xd0(%rbp), %rdi
callq 0x5de40
movq -0xa8(%rbp), %rdi
callq 0x5df00
movq -0xb0(%rbp), %rdi
callq 0x5a160
movq -0x30(%rbp), %rdi
callq 0x5b6b0
nopw %cs:(%rax,%rax)