// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/gui/widgets/basic/button.cpp
// Function: smooth::GUI::Button::Button(smooth::GUI::Bitmap const&, smooth::GUI::Point const&, smooth::GUI::Size const&)
S::GUI::Button::Button(const Bitmap &iBitmap, const Point &iPos, const Size &iSize) : Widget(iPos, iSize)
{
	type = classID;

	SetBitmap(iBitmap);

	if (GetWidth()	== 0) SetWidth(80);
	if (GetHeight() == 0) SetHeight(22);

	hotspot	= new HotspotSimpleButton(flags & BF_NOFRAME ? Point() : Point(4, 4), GetSize() - (flags & BF_NOFRAME ? Size() : Size(8, 8)));
	hotspot->onLeftButtonClick.Connect(&onAction);

	Add(hotspot);

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x68(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5c220
movq -0x68(%rbp), %rdi
movq 0x177305(%rip), %rax    # 0x2087d0
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x5b8, %rdi            # imm = 0x5B8
movq %rdi, -0x60(%rbp)
xorl %esi, %esi
callq 0x5d4a0
jmp 0x914e6
movq -0x68(%rbp), %rdi
movq 0x17791f(%rip), %rax    # 0x208e10
movswl (%rax), %esi
addq $0x20, %rdi
callq 0x5a2e0
jmp 0x914ff
movq -0x68(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x5da20
jmp 0x9150e
movq -0x68(%rbp), %rdi
callq 0x5a210
movl %eax, -0x6c(%rbp)
jmp 0x9151c
movl -0x6c(%rbp), %eax
cmpl $0x0, %eax
jne 0x91558
movq -0x68(%rbp), %rdi
movl $0x50, %esi
callq 0x5db30
jmp 0x91534
jmp 0x91558
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x916d0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x916c7
movq -0x68(%rbp), %rdi
callq 0x5b860
movl %eax, -0x70(%rbp)
jmp 0x91566
movl -0x70(%rbp), %eax
cmpl $0x0, %eax
jne 0x91580
movq -0x68(%rbp), %rdi
movl $0x16, %esi
callq 0x5bed0
jmp 0x9157e
jmp 0x91580
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x59820
movq %rax, -0x78(%rbp)
jmp 0x91590
movq -0x68(%rbp), %rax
movl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x915ac
leaq -0x34(%rbp), %rdi
callq 0x5b530
jmp 0x915aa
jmp 0x915c0
leaq -0x34(%rbp), %rdi
movl $0x4, %edx
movl %edx, %esi
callq 0x5c2c0
jmp 0x915be
jmp 0x915c0
movq -0x68(%rbp), %rdi
callq 0x5bf70
movq %rax, -0x80(%rbp)
jmp 0x915cf
movq -0x68(%rbp), %rax
movl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x915eb
leaq -0x44(%rbp), %rdi
callq 0x59230
jmp 0x915e9
jmp 0x915ff
leaq -0x44(%rbp), %rdi
movl $0x8, %edx
movl %edx, %esi
callq 0x59260
jmp 0x915fd
jmp 0x915ff
movq -0x80(%rbp), %rdi
leaq -0x44(%rbp), %rsi
callq 0x5db90
movq %rax, -0x88(%rbp)
jmp 0x91615
movq -0x78(%rbp), %rdi
movq -0x88(%rbp), %rax
movq %rax, -0x3c(%rbp)
leaq -0x34(%rbp), %rsi
leaq -0x3c(%rbp), %rdx
callq 0x59c60
jmp 0x91633
movq -0x68(%rbp), %rsi
movq -0x78(%rbp), %rax
movq %rax, 0x5c0(%rsi)
movq 0x5c0(%rsi), %rdi
addq $0x338, %rdi            # imm = 0x338
addq $0x478, %rsi            # imm = 0x478
callq 0x8e210
jmp 0x9165e
movq -0x68(%rbp), %rdi
movq 0x5c0(%rdi), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0x91674
movq -0x68(%rbp), %rcx
movq %rcx, %rdi
addq $0x298, %rdi            # imm = 0x298
movq 0x176e3f(%rip), %rax    # 0x2084c8
movq %rax, -0x58(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x92400
jmp 0x916a4
addq $0x90, %rsp
popq %rbp
retq
movq -0x78(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x5b8, %esi            # imm = 0x5B8
callq 0x595b0
movq -0x60(%rbp), %rdi
callq 0x5de40
movq -0x68(%rbp), %rdi
callq 0x5bd90
movq -0x28(%rbp), %rdi
callq 0x5b6b0
nopw %cs:(%rax,%rax)