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

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

	ComputeTextSize();

	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 0x1775f5(%rip), %rax    # 0x2087d0
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x5b8, %rdi            # imm = 0x5B8
movq %rdi, -0x60(%rbp)
xorl %esi, %esi
callq 0x5d4a0
jmp 0x911f6
movq -0x68(%rbp), %rdi
movq 0x177c0f(%rip), %rax    # 0x208e10
movswl (%rax), %esi
addq $0x20, %rdi
callq 0x5a2e0
jmp 0x9120f
movq -0x68(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0xf0, %rdi
callq 0x59760
jmp 0x91225
movq -0x68(%rbp), %rdi
callq 0x5a210
movl %eax, -0x6c(%rbp)
jmp 0x91233
movl -0x6c(%rbp), %eax
cmpl $0x0, %eax
jne 0x9126f
movq -0x68(%rbp), %rdi
movl $0x50, %esi
callq 0x5db30
jmp 0x9124b
jmp 0x9126f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x913f2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x913e9
movq -0x68(%rbp), %rdi
callq 0x5b860
movl %eax, -0x70(%rbp)
jmp 0x9127d
movl -0x70(%rbp), %eax
cmpl $0x0, %eax
jne 0x91297
movq -0x68(%rbp), %rdi
movl $0x16, %esi
callq 0x5bed0
jmp 0x91295
jmp 0x91297
movq -0x68(%rbp), %rdi
callq 0x59de0
jmp 0x912a2
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x59820
movq %rax, -0x78(%rbp)
jmp 0x912b2
movq -0x68(%rbp), %rax
movl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x912ce
leaq -0x34(%rbp), %rdi
callq 0x5b530
jmp 0x912cc
jmp 0x912e2
leaq -0x34(%rbp), %rdi
movl $0x4, %edx
movl %edx, %esi
callq 0x5c2c0
jmp 0x912e0
jmp 0x912e2
movq -0x68(%rbp), %rdi
callq 0x5bf70
movq %rax, -0x80(%rbp)
jmp 0x912f1
movq -0x68(%rbp), %rax
movl 0x30(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x9130d
leaq -0x44(%rbp), %rdi
callq 0x59230
jmp 0x9130b
jmp 0x91321
leaq -0x44(%rbp), %rdi
movl $0x8, %edx
movl %edx, %esi
callq 0x59260
jmp 0x9131f
jmp 0x91321
movq -0x80(%rbp), %rdi
leaq -0x44(%rbp), %rsi
callq 0x5db90
movq %rax, -0x88(%rbp)
jmp 0x91337
movq -0x78(%rbp), %rdi
movq -0x88(%rbp), %rax
movq %rax, -0x3c(%rbp)
leaq -0x34(%rbp), %rsi
leaq -0x3c(%rbp), %rdx
callq 0x59c60
jmp 0x91355
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 0x91380
movq -0x68(%rbp), %rdi
movq 0x5c0(%rdi), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0x91396
movq -0x68(%rbp), %rcx
movq %rcx, %rdi
addq $0x298, %rdi            # imm = 0x298
movq 0x17711d(%rip), %rax    # 0x2084c8
movq %rax, -0x58(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x92400
jmp 0x913c6
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)