// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/gui/widgets/basic/scrollbar.cpp
// Function: smooth::GUI::Scrollbar::UpdateHotspotPositions()
S::Void S::GUI::Scrollbar::UpdateHotspotPositions()
{
	Bool	 smallHotspots	= (subtype == OR_HORZ && (GetWidth() <= 55)) || (subtype == OR_VERT && (GetHeight() <= 55));
	Int	 hotspotSize	= (smallHotspots ? 10 : (subtype == OR_HORZ ? GetHeight() : GetWidth())) - 4;

	arrow1Hotspot->SetMetrics(Point(2 + (subtype == OR_HORZ ? GetWidth() - (hotspotSize + 4) : 0), 2 + (subtype == OR_VERT ? GetHeight() - (hotspotSize + 4) : 0)), subtype == OR_HORZ ? Size(hotspotSize, GetHeight() - 4) : Size(GetWidth() - 4, hotspotSize));
	arrow2Hotspot->SetMetrics(Point(2, 2), subtype == OR_HORZ ? Size(hotspotSize, GetHeight() - 4) : Size(GetWidth() - 4, hotspotSize));

	clickHotspot->SetMetrics(subtype == OR_HORZ ? Point(hotspotSize + 4, 0) : Point(0, hotspotSize + 4), GetSize() - (subtype == OR_HORZ ? Size(2 * (hotspotSize + 4), 0) : Size(0, 2 * (hotspotSize + 4))));
	dragHotspot->SetMetrics(subtype == OR_HORZ ? Point(hotspotSize + 4 + (Int) (((Float) GetWidth() - 3 * (hotspotSize + 4)) / ((Float) (endValue - startValue)) * ((Float) (*variable - startValue))), 0) : Point(0, hotspotSize + 4 + (Int) (((Float) GetHeight() - 3 * (hotspotSize + 4)) / ((Float) (endValue - startValue)) * ((Float) (*variable - startValue)))), subtype == OR_HORZ ? Size(hotspotSize + 4, GetHeight()) : Size(GetWidth(), hotspotSize + 4));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movswl 0x1a0(%rax), %eax
cmpl $0x1, %eax
jne 0x9fe28
movq -0x60(%rbp), %rdi
callq 0x5a210
movl %eax, %ecx
movb $0x1, %al
cmpl $0x37, %ecx
movb %al, -0x61(%rbp)
jle 0x9fe55
movq -0x60(%rbp), %rax
movswl 0x1a0(%rax), %ecx
xorl %eax, %eax
cmpl $0x2, %ecx
movb %al, -0x62(%rbp)
jne 0x9fe4f
movq -0x60(%rbp), %rdi
callq 0x5b860
cmpl $0x37, %eax
setle %al
movb %al, -0x62(%rbp)
movb -0x62(%rbp), %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
andb $0x1, %al
movb %al, -0x9(%rbp)
testb $0x1, -0x9(%rbp)
je 0x9fe6d
movl $0xa, %eax
movl %eax, -0x68(%rbp)
jmp 0x9fe9d
movq -0x60(%rbp), %rax
movswl 0x1a0(%rax), %eax
cmpl $0x1, %eax
jne 0x9fe8b
movq -0x60(%rbp), %rdi
callq 0x5b860
movl %eax, -0x6c(%rbp)
jmp 0x9fe97
movq -0x60(%rbp), %rdi
callq 0x5a210
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0x68(%rbp)
movq -0x60(%rbp), %rax
movl -0x68(%rbp), %ecx
subl $0x4, %ecx
movl %ecx, -0x10(%rbp)
movq 0x5e8(%rax), %rcx
movq %rcx, -0x78(%rbp)
movswl 0x1a0(%rax), %eax
cmpl $0x1, %eax
jne 0x9fed7
movq -0x60(%rbp), %rdi
callq 0x5a210
movl -0x10(%rbp), %ecx
addl $0x4, %ecx
subl %ecx, %eax
movl %eax, -0x7c(%rbp)
jmp 0x9fede
xorl %eax, %eax
movl %eax, -0x7c(%rbp)
jmp 0x9fede
movq -0x60(%rbp), %rax
movl -0x7c(%rbp), %ecx
addl $0x2, %ecx
movl %ecx, -0x80(%rbp)
movswl 0x1a0(%rax), %eax
cmpl $0x2, %eax
jne 0x9ff10
movq -0x60(%rbp), %rdi
callq 0x5b860
movl -0x10(%rbp), %ecx
addl $0x4, %ecx
subl %ecx, %eax
movl %eax, -0x84(%rbp)
jmp 0x9ff1a
xorl %eax, %eax
movl %eax, -0x84(%rbp)
jmp 0x9ff1a
movl -0x80(%rbp), %esi
movl -0x84(%rbp), %edx
addl $0x2, %edx
leaq -0x18(%rbp), %rdi
callq 0x5c2c0
movq -0x60(%rbp), %rax
movswl 0x1a0(%rax), %eax
cmpl $0x1, %eax
jne 0x9ff67
movq -0x60(%rbp), %rdi
movl -0x10(%rbp), %eax
movl %eax, -0x88(%rbp)
callq 0x5b860
movl -0x88(%rbp), %esi
movl %eax, %edx
subl $0x4, %edx
leaq -0x20(%rbp), %rdi
callq 0x59260
jmp 0x9ff81
movq -0x60(%rbp), %rdi
callq 0x5a210
movl %eax, %esi
subl $0x4, %esi
movl -0x10(%rbp), %edx
leaq -0x20(%rbp), %rdi
callq 0x59260
movq -0x78(%rbp), %rdi
movq (%rdi), %rax
leaq -0x18(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq *0x150(%rax)
movq -0x60(%rbp), %rax
movq 0x5f0(%rax), %rax
movq %rax, -0x90(%rbp)
leaq -0x28(%rbp), %rdi
movl $0x2, %edx
movl %edx, %esi
callq 0x5c2c0
movq -0x60(%rbp), %rax
movswl 0x1a0(%rax), %eax
cmpl $0x1, %eax
jne 0x9fff0
movq -0x60(%rbp), %rdi
movl -0x10(%rbp), %eax
movl %eax, -0x94(%rbp)
callq 0x5b860
movl -0x94(%rbp), %esi
movl %eax, %edx
subl $0x4, %edx
leaq -0x30(%rbp), %rdi
callq 0x59260
jmp 0xa000a
movq -0x60(%rbp), %rdi
callq 0x5a210
movl %eax, %esi
subl $0x4, %esi
movl -0x10(%rbp), %edx
leaq -0x30(%rbp), %rdi
callq 0x59260
movq -0x90(%rbp), %rdi
movq (%rdi), %rax
leaq -0x28(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq *0x150(%rax)
movq -0x60(%rbp), %rax
movq 0x658(%rax), %rcx
movq %rcx, -0xa0(%rbp)
movswl 0x1a0(%rax), %eax
cmpl $0x1, %eax
jne 0xa0053
movl -0x10(%rbp), %esi
addl $0x4, %esi
leaq -0x38(%rbp), %rdi
xorl %edx, %edx
callq 0x5c2c0
jmp 0xa0064
movl -0x10(%rbp), %edx
addl $0x4, %edx
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x5c2c0
movq -0x60(%rbp), %rdi
callq 0x5bf70
movq %rax, %rcx
movq -0x60(%rbp), %rax
movq %rcx, -0xa8(%rbp)
movswl 0x1a0(%rax), %eax
cmpl $0x1, %eax
jne 0xa009c
movl -0x10(%rbp), %esi
addl $0x4, %esi
shll %esi
leaq -0x48(%rbp), %rdi
xorl %edx, %edx
callq 0x59260
jmp 0xa00af
movl -0x10(%rbp), %edx
addl $0x4, %edx
shll %edx
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
callq 0x59260
movq -0xa8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x5db90
movq -0xa0(%rbp), %rdi
movq %rax, -0x40(%rbp)
movq (%rdi), %rax
leaq -0x38(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq *0x150(%rax)
movq -0x60(%rbp), %rax
movq 0x660(%rax), %rcx
movq %rcx, -0xb0(%rbp)
movswl 0x1a0(%rax), %eax
cmpl $0x1, %eax
jne 0xa016b
movq -0x60(%rbp), %rdi
movl -0x10(%rbp), %eax
addl $0x4, %eax
movl %eax, -0xb4(%rbp)
callq 0x5a210
movq -0x60(%rbp), %rcx
movl -0xb4(%rbp), %esi
cvtsi2sd %eax, %xmm0
movl -0x10(%rbp), %eax
addl $0x4, %eax
imull $0x3, %eax, %eax
cvtsi2sd %eax, %xmm1
subsd %xmm1, %xmm0
movl 0x5dc(%rcx), %eax
subl 0x5d8(%rcx), %eax
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
movq 0x5d0(%rcx), %rax
movl (%rax), %eax
subl 0x5d8(%rcx), %eax
cvtsi2sd %eax, %xmm1
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
addl %eax, %esi
leaq -0x50(%rbp), %rdi
xorl %edx, %edx
callq 0x5c2c0
jmp 0xa01db
movq -0x60(%rbp), %rdi
movl -0x10(%rbp), %eax
addl $0x4, %eax
movl %eax, -0xb8(%rbp)
callq 0x5b860
movq -0x60(%rbp), %rcx
movl -0xb8(%rbp), %edx
cvtsi2sd %eax, %xmm0
movl -0x10(%rbp), %eax
addl $0x4, %eax
imull $0x3, %eax, %eax
cvtsi2sd %eax, %xmm1
subsd %xmm1, %xmm0
movl 0x5dc(%rcx), %eax
subl 0x5d8(%rcx), %eax
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
movq 0x5d0(%rcx), %rax
movl (%rax), %eax
subl 0x5d8(%rcx), %eax
cvtsi2sd %eax, %xmm1
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
addl %eax, %edx
leaq -0x50(%rbp), %rdi
xorl %esi, %esi
callq 0x5c2c0
movq -0x60(%rbp), %rax
movswl 0x1a0(%rax), %eax
cmpl $0x1, %eax
jne 0xa0213
movq -0x60(%rbp), %rdi
movl -0x10(%rbp), %eax
addl $0x4, %eax
movl %eax, -0xbc(%rbp)
callq 0x5b860
movl -0xbc(%rbp), %esi
movl %eax, %edx
leaq -0x58(%rbp), %rdi
callq 0x59260
jmp 0xa022d
movq -0x60(%rbp), %rdi
callq 0x5a210
movl %eax, %esi
movl -0x10(%rbp), %edx
addl $0x4, %edx
leaq -0x58(%rbp), %rdi
callq 0x59260
movq -0xb0(%rbp), %rdi
movq (%rdi), %rax
leaq -0x50(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq *0x150(%rax)
addq $0xc0, %rsp
popq %rbp
retq
nop