// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/gui/widgets/basic/optionbox.cpp
// Function: smooth::GUI::OptionBox::OptionBox(smooth::String const&, smooth::GUI::Point const&, smooth::GUI::Size const&, int*, int)
S::GUI::OptionBox::OptionBox(const String &iText, const Point &iPos, const Size &iSize, Int *var, Int iCode) : Widget(iPos, iSize)
{
	type		= classID;
	text		= iText;
	variable	= var;
	code		= iCode;

	if (*variable == code)	state = True;
	else			state = False;

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

	ComputeTextSize();

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

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

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

	Add(hotspot);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x80(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5c220
movq -0x80(%rbp), %rdi
movq 0x16c915(%rip), %rax    # 0x208f48
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x16c12f(%rip), %rax    # 0x208770
movswl (%rax), %esi
addq $0x20, %rdi
callq 0x5a2e0
jmp 0x9c64f
movq -0x80(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0xf0, %rdi
callq 0x59760
jmp 0x9c665
movq -0x80(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rax, 0x5b8(%rcx)
movl -0x2c(%rbp), %eax
movl %eax, 0x5c0(%rcx)
movq 0x5b8(%rcx), %rax
movl (%rax), %eax
cmpl 0x5c0(%rcx), %eax
jne 0x9c6ac
movq -0x80(%rbp), %rax
movb $0x1, 0x5c4(%rax)
jmp 0x9c6b7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x9c86d
movq -0x80(%rbp), %rax
movb $0x0, 0x5c4(%rax)
movq -0x80(%rbp), %rdi
callq 0x5a210
movl %eax, -0x84(%rbp)
jmp 0x9c6c8
movl -0x84(%rbp), %eax
cmpl $0x0, %eax
jne 0x9c6e5
movq -0x80(%rbp), %rdi
movl $0x50, %esi
callq 0x5db30
jmp 0x9c6e3
jmp 0x9c6e5
movq -0x80(%rbp), %rdi
callq 0x5b860
movl %eax, -0x88(%rbp)
jmp 0x9c6f6
movl -0x88(%rbp), %eax
cmpl $0x0, %eax
jne 0x9c713
movq -0x80(%rbp), %rdi
movl $0x11, %esi
callq 0x5bed0
jmp 0x9c711
jmp 0x9c713
movq -0x80(%rbp), %rdi
callq 0x59de0
jmp 0x9c71e
movq -0x80(%rbp), %rcx
movq 0x16bc0f(%rip), %rax    # 0x208338
movq %rax, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq 0x16c30c(%rip), %rdi    # 0x208a50
callq 0x9d790
jmp 0x9c74b
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x59820
movq %rax, -0x90(%rbp)
jmp 0x9c75e
leaq -0x58(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x5c2c0
jmp 0x9c76d
movq -0x80(%rbp), %rdi
callq 0x5bf70
movq %rax, -0x98(%rbp)
jmp 0x9c77f
movq -0x98(%rbp), %rdx
movq -0x90(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x59c60
jmp 0x9c798
movq -0x80(%rbp), %rcx
movq -0x90(%rbp), %rax
movq %rax, 0x5c8(%rcx)
movq 0x5c8(%rcx), %rdi
addq $0x338, %rdi            # imm = 0x338
movq 0x16c089(%rip), %rax    # 0x208848
movq %rax, -0x68(%rbp)
movq $0x0, -0x60(%rbp)
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
callq 0x9d8d0
jmp 0x9c7da
movq -0x80(%rbp), %rsi
movq 0x5c8(%rsi), %rdi
addq $0x338, %rdi            # imm = 0x338
addq $0x478, %rsi            # imm = 0x478
callq 0x8e210
jmp 0x9c7fa
movq -0x80(%rbp), %rax
movq %rax, %rdi
addq $0x298, %rdi            # imm = 0x298
movq 0x5c8(%rax), %rcx
movq 0x16bcda(%rip), %rax    # 0x2084f0
movq %rax, -0x78(%rbp)
movq $0x0, -0x70(%rbp)
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdx
callq 0x93a80
jmp 0x9c831
movq -0x80(%rbp), %rdi
movq 0x5c8(%rdi), %rsi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
jmp 0x9c847
addq $0xa0, %rsp
popq %rbp
retq
movq -0x90(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
movl $0x5b8, %esi            # imm = 0x5B8
callq 0x595b0
movq -0x80(%rbp), %rdi
callq 0x5bd90
movq -0x38(%rbp), %rdi
callq 0x5b6b0
nop