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

	dummyVariable	= False;

	if (iVariable == NIL)	variable = &dummyVariable;
	else			variable = iVariable;

	state		= *variable;

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

	ComputeTextSize();

	internalCheckValues.Connect(&CheckBox::InternalCheckValues, this);

	hotspot	= new HotspotSimpleButton(Point(0, 0), GetSize());
	hotspot->onLeftButtonClick.Connect(&CheckBox::OnLeftButtonClick, this);
	hotspot->onLeftButtonClick.Connect(&onAction);

	onChangeSize.Connect(&HotspotSimpleButton::SetSize, hotspot);

	Add(hotspot);
}

// 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 %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x78(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5c220
movq -0x78(%rbp), %rdi
movq 0x175db1(%rip), %rax    # 0x208530
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x175ec3(%rip), %rax    # 0x208650
movswl (%rax), %esi
addq $0x20, %rdi
callq 0x5a2e0
jmp 0x9279b
movq -0x78(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0xf0, %rdi
callq 0x59760
jmp 0x927b1
movq -0x78(%rbp), %rax
movb $0x0, 0x5b8(%rax)
cmpq $0x0, -0x28(%rbp)
jne 0x927eb
movq -0x78(%rbp), %rax
movq %rax, %rcx
addq $0x5b8, %rcx            # imm = 0x5B8
movq %rcx, 0x5c0(%rax)
jmp 0x927fa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x929b5
movq -0x78(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, 0x5c0(%rax)
movq -0x78(%rbp), %rdi
movq 0x5c0(%rdi), %rax
movb (%rax), %al
andb $0x1, %al
movb %al, 0x5c8(%rdi)
callq 0x5a210
movl %eax, -0x7c(%rbp)
jmp 0x92819
movl -0x7c(%rbp), %eax
cmpl $0x0, %eax
jne 0x92833
movq -0x78(%rbp), %rdi
movl $0x50, %esi
callq 0x5db30
jmp 0x92831
jmp 0x92833
movq -0x78(%rbp), %rdi
callq 0x5b860
movl %eax, -0x80(%rbp)
jmp 0x92841
movl -0x80(%rbp), %eax
cmpl $0x0, %eax
jne 0x9285b
movq -0x78(%rbp), %rdi
movl $0x11, %esi
callq 0x5bed0
jmp 0x92859
jmp 0x9285b
movq -0x78(%rbp), %rdi
callq 0x59de0
jmp 0x92866
movq -0x78(%rbp), %rcx
movq 0x175b67(%rip), %rax    # 0x2083d8
movq %rax, -0x48(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x175f04(%rip), %rdi    # 0x208790
callq 0x93800
jmp 0x92893
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x59820
movq %rax, -0x88(%rbp)
jmp 0x928a6
leaq -0x50(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x5c2c0
jmp 0x928b5
movq -0x78(%rbp), %rdi
callq 0x5bf70
movq %rax, -0x90(%rbp)
jmp 0x928c7
movq -0x90(%rbp), %rdx
movq -0x88(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x59c60
jmp 0x928e0
movq -0x78(%rbp), %rcx
movq -0x88(%rbp), %rax
movq %rax, 0x5d0(%rcx)
movq 0x5d0(%rcx), %rdi
addq $0x338, %rdi            # imm = 0x338
movq 0x1763b9(%rip), %rax    # 0x208cc0
movq %rax, -0x60(%rbp)
movq $0x0, -0x58(%rbp)
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
callq 0x93940
jmp 0x92922
movq -0x78(%rbp), %rsi
movq 0x5d0(%rsi), %rdi
addq $0x338, %rdi            # imm = 0x338
addq $0x478, %rsi            # imm = 0x478
callq 0x8e210
jmp 0x92942
movq -0x78(%rbp), %rax
movq %rax, %rdi
addq $0x298, %rdi            # imm = 0x298
movq 0x5d0(%rax), %rcx
movq 0x175b92(%rip), %rax    # 0x2084f0
movq %rax, -0x70(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x93a80
jmp 0x92979
movq -0x78(%rbp), %rdi
movq 0x5d0(%rdi), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0x9298f
addq $0x90, %rsp
popq %rbp
retq
movq -0x88(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
movl $0x5b8, %esi            # imm = 0x5B8
callq 0x595b0
movq -0x78(%rbp), %rdi
callq 0x5bd90
movq -0x30(%rbp), %rdi
callq 0x5b6b0
nopw (%rax,%rax)