// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/gui/widgets/multi/menu/popupmenuentry.cpp
// Function: smooth::GUI::PopupMenuEntry::PopupMenuEntry(smooth::String const&, smooth::GUI::Bitmap const&, smooth::GUI::PopupMenu*)
S::GUI::PopupMenuEntry::PopupMenuEntry(const String &iText, const Bitmap &iBitmap, PopupMenu *iPopup) : MenuEntry(iText, iBitmap, iPopup)
{
	type		= classID;
	orientation	= OR_UPPERLEFT;
	hotspot		= NIL;
	owner		= NIL;
	timer		= NIL;

	popupMenuClosed = 0;

	shortcutOffset	= 0;

	SetSize(GetMinimumSize());

	if (text != NIL)
	{
		hotspot	= new Hotspot(Point(), GetSize());

		hotspot->onMouseOver.Connect(&PopupMenuEntry::OnMouseOver, this);
		hotspot->onMouseOut.Connect(&PopupMenuEntry::OnMouseOut, this);
		hotspot->onLeftButtonDown.Connect(&PopupMenuEntry::OpenPopupMenu, this);
		hotspot->onLeftButtonUp.Connect(&PopupMenuEntry::OnClickEntry, this);

		Add(hotspot);

		onChangeSize.Connect(&PopupMenuEntry::OnChangeSize, this);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x98(%rbp)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq %rsp, %rax
movl $0x0, (%rax)
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
callq 0x5add0
movq -0x98(%rbp), %rdi
movq 0x146cca(%rip), %rax    # 0x208ae0
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x14683c(%rip), %rax    # 0x208660
movswl (%rax), %esi
addq $0x20, %rdi
callq 0x5a2e0
jmp 0xc1e32
movq -0x98(%rbp), %rdi
movw $0x14, 0xd0(%rdi)
movq $0x0, 0x5f8(%rdi)
movq $0x0, 0x600(%rdi)
movq $0x0, 0x608(%rdi)
movq $0x0, 0x5f0(%rdi)
movl $0x0, 0x610(%rdi)
callq 0x5b010
movq %rax, -0xa0(%rbp)
jmp 0xc1e86
movq -0x98(%rbp), %rdi
movq -0xa0(%rbp), %rax
movq %rax, -0x34(%rbp)
leaq -0x34(%rbp), %rsi
callq 0x5de18
jmp 0xc1ea3
movq -0x98(%rbp), %rdi
addq $0xf0, %rdi
xorl %esi, %esi
callq 0x5b110
movb %al, -0xa1(%rbp)
jmp 0xc1ec0
movb -0xa1(%rbp), %al
testb $0x1, %al
jne 0xc1ecf
jmp 0xc2080
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x59820
movq %rax, -0xb0(%rbp)
jmp 0xc1ee2
leaq -0x3c(%rbp), %rdi
callq 0x5b530
jmp 0xc1eed
movq -0x98(%rbp), %rdi
callq 0x5bf70
movq %rax, -0xb8(%rbp)
jmp 0xc1f02
movq -0xb8(%rbp), %rdx
movq -0xb0(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
callq 0x59c30
jmp 0xc1f1b
movq -0x98(%rbp), %rcx
movq -0xb0(%rbp), %rax
movq %rax, 0x5f8(%rcx)
movq 0x5f8(%rcx), %rdi
addq $0x2b8, %rdi            # imm = 0x2B8
movq $0x0, -0x48(%rbp)
movq $0x169, -0x50(%rbp)     # imm = 0x169
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0xc3dc0
jmp 0xc1f5d
movq -0x98(%rbp), %rcx
movq 0x5f8(%rcx), %rdi
addq $0x2d8, %rdi            # imm = 0x2D8
movq $0x0, -0x58(%rbp)
movq $0x171, -0x60(%rbp)     # imm = 0x171
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0xc3dc0
jmp 0xc1f91
movq -0x98(%rbp), %rcx
movq 0x5f8(%rcx), %rdi
addq $0x2f8, %rdi            # imm = 0x2F8
movq 0x146973(%rip), %rax    # 0x208920
movq %rax, -0x70(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0xc3f00
jmp 0xc1fc8
movq -0x98(%rbp), %rcx
movq 0x5f8(%rcx), %rdi
addq $0x318, %rdi            # imm = 0x318
movq $0x0, -0x78(%rbp)
movq $0x179, -0x80(%rbp)     # imm = 0x179
movq -0x80(%rbp), %rsi
movq -0x78(%rbp), %rdx
callq 0xc3f00
jmp 0xc1ffc
movq -0x98(%rbp), %rdi
movq 0x5f8(%rdi), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0xc2015
movq -0x98(%rbp), %rcx
movq %rcx, %rdi
addq $0x298, %rdi            # imm = 0x298
movq $0x0, -0x88(%rbp)
movq $0x181, -0x90(%rbp) # imm = 0x181
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
callq 0xc4040
jmp 0xc2051
jmp 0xc2080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0xc2089
movq -0xb0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x5b8, %esi            # imm = 0x5B8
callq 0x595b0
jmp 0xc2089
addq $0xc0, %rsp
popq %rbp
retq
movq -0x98(%rbp), %rdi
callq 0x5a3f0
movq -0x28(%rbp), %rdi
callq 0x5b6b0
nop