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

	SetSize(iSize);
	SetBitmap(iBitmap);

	if (GetSize() == Size(0, 0)) SetSize(linkBitmap.GetSize());

	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 $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
callq 0x5da90
movq -0x20(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x59230
jmp 0x996eb
movq -0xa0(%rbp), %rdx
movq -0xa8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
leaq -0x48(%rbp), %rcx
callq 0x5a640
jmp 0x99708
leaq -0x40(%rbp), %rdi
callq 0x5df00
movq -0xa8(%rbp), %rdi
movq 0x16efe1(%rip), %rax    # 0x208700
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x5c0, %rdi            # imm = 0x5C0
movq %rdi, -0xb0(%rbp)
xorl %esi, %esi
callq 0x5da90
jmp 0x9973d
movq -0xa8(%rbp), %rdi
addq $0x5d8, %rdi            # imm = 0x5D8
movq %rdi, -0xb8(%rbp)
xorl %esi, %esi
callq 0x5d4a0
jmp 0x9975b
movq -0xa8(%rbp), %rdi
movq 0x16eec7(%rip), %rax    # 0x208630
movswl (%rax), %esi
addq $0x20, %rdi
callq 0x5a2e0
jmp 0x99777
movq -0xa8(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq $0x5c0, %rdi            # imm = 0x5C0
callq 0x59760
jmp 0x99790
movq -0xa8(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x5de18
jmp 0x997a2
movq -0xa8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x5aac0
jmp 0x997b4
movq -0xa8(%rbp), %rdi
callq 0x5bf70
movq %rax, -0xc0(%rbp)
jmp 0x997c9
leaq -0x5c(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x59260
jmp 0x997d8
movq -0xc0(%rbp), %rdi
leaq -0x5c(%rbp), %rsi
callq 0x59830
movb %al, -0xc1(%rbp)
jmp 0x997f0
movb -0xc1(%rbp), %al
testb $0x1, %al
jne 0x997ff
jmp 0x9987f
movq -0xa8(%rbp), %rdi
addq $0x5d8, %rdi            # imm = 0x5D8
callq 0x5ce60
movq %rax, -0xd0(%rbp)
jmp 0x9981b
movq -0xd0(%rbp), %rsi
movq -0xa8(%rbp), %rdi
callq 0x5de18
jmp 0x99830
jmp 0x9987f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x5df00
jmp 0x999f7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x999eb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x999df
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x999d3
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x59820
movq %rax, -0xd8(%rbp)
jmp 0x99892
leaq -0x64(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x5c2c0
jmp 0x998a1
movq -0xa8(%rbp), %rdi
callq 0x5bf70
movq %rax, -0xe0(%rbp)
jmp 0x998b6
movq -0xe0(%rbp), %rdx
movq -0xd8(%rbp), %rdi
leaq -0x64(%rbp), %rsi
callq 0x59c30
jmp 0x998cf
movq -0xa8(%rbp), %rcx
movq -0xd8(%rbp), %rax
movq %rax, 0x5e0(%rcx)
movq 0x5e0(%rcx), %rdi
addq $0x2b8, %rdi            # imm = 0x2B8
movq 0x16eb57(%rip), %rax    # 0x208450
movq %rax, -0x78(%rbp)
movq $0x0, -0x70(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq 0x99e80
jmp 0x99914
movq -0xa8(%rbp), %rcx
movq 0x5e0(%rcx), %rdi
addq $0x2d8, %rdi            # imm = 0x2D8
movq 0x16f438(%rip), %rax    # 0x208d68
movq %rax, -0x88(%rbp)
movq $0x0, -0x80(%rbp)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
callq 0x99e80
jmp 0x99951
movq -0xa8(%rbp), %rcx
movq 0x5e0(%rcx), %rdi
addq $0x338, %rdi            # imm = 0x338
movq 0x16f043(%rip), %rax    # 0x2089b0
movq %rax, -0x98(%rbp)
movq $0x0, -0x90(%rbp)
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rdx
callq 0x99fc0
jmp 0x99994
movq -0xa8(%rbp), %rdi
movq 0x5e0(%rdi), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0x999ad
addq $0xe0, %rsp
popq %rbp
retq
movq -0xd8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
movl $0x5b8, %esi            # imm = 0x5B8
callq 0x595b0
movq -0xb8(%rbp), %rdi
callq 0x5de40
movq -0xb0(%rbp), %rdi
callq 0x5df00
movq -0xa8(%rbp), %rdi
callq 0x5a160
movq -0x50(%rbp), %rdi
callq 0x5b6b0