// File: /workspace/github_c_makefile_star2_O3/arkanis[P]process-map/./deps/raygui.h
// Function: GuiSpinner
bool GuiSpinner(Rectangle bounds, const char *text, int *value, int minValue, int maxValue, bool editMode)
{
    GuiControlState state = guiState;

    bool pressed = false;
    int tempValue = *value;

    Rectangle spinner = { bounds.x + GuiGetStyle(SPINNER, SPIN_BUTTON_WIDTH) + GuiGetStyle(SPINNER, SPIN_BUTTON_PADDING), bounds.y,
                          bounds.width - 2*(GuiGetStyle(SPINNER, SPIN_BUTTON_WIDTH) + GuiGetStyle(SPINNER, SPIN_BUTTON_PADDING)), bounds.height };
    Rectangle leftButtonBound = { (float)bounds.x, (float)bounds.y, (float)GuiGetStyle(SPINNER, SPIN_BUTTON_WIDTH), (float)bounds.height };
    Rectangle rightButtonBound = { (float)bounds.x + bounds.width - GuiGetStyle(SPINNER, SPIN_BUTTON_WIDTH), (float)bounds.y, (float)GuiGetStyle(SPINNER, SPIN_BUTTON_WIDTH), (float)bounds.height };

    Rectangle textBounds = { 0 };
    if (text != NULL)
    {
        textBounds.width = (float)GetTextWidth(text);
        textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
        textBounds.x = bounds.x + bounds.width + GuiGetStyle(SPINNER, TEXT_PADDING);
        textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2;
        if (GuiGetStyle(SPINNER, TEXT_ALIGNMENT) == GUI_TEXT_ALIGN_LEFT) textBounds.x = bounds.x - textBounds.width - GuiGetStyle(SPINNER, TEXT_PADDING);
    }

    // Update control
    //--------------------------------------------------------------------
    if ((state != GUI_STATE_DISABLED) && !guiLocked)
    {
        Vector2 mousePoint = GetMousePosition();

        // Check spinner state
        if (CheckCollisionPointRec(mousePoint, bounds))
        {
            if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) state = GUI_STATE_PRESSED;
            else state = GUI_STATE_FOCUSED;
        }
    }

    if (!editMode)
    {
        if (tempValue < minValue) tempValue = minValue;
        if (tempValue > maxValue) tempValue = maxValue;
    }
    //--------------------------------------------------------------------

    // Draw control
    //--------------------------------------------------------------------
    // TODO: Set Spinner properties for ValueBox
    pressed = GuiValueBox(spinner, NULL, &tempValue, minValue, maxValue, editMode);

    // Draw value selector custom buttons
    // NOTE: BORDER_WIDTH and TEXT_ALIGNMENT forced values
    int tempBorderWidth = GuiGetStyle(BUTTON, BORDER_WIDTH);
    int tempTextAlign = GuiGetStyle(BUTTON, TEXT_ALIGNMENT);
    GuiSetStyle(BUTTON, BORDER_WIDTH, GuiGetStyle(SPINNER, BORDER_WIDTH));
    GuiSetStyle(BUTTON, TEXT_ALIGNMENT, GUI_TEXT_ALIGN_CENTER);

#if defined(RAYGUI_SUPPORT_ICONS)
    if (GuiButton(leftButtonBound, GuiIconText(RICON_ARROW_LEFT_FILL, NULL))) tempValue--;
    if (GuiButton(rightButtonBound, GuiIconText(RICON_ARROW_RIGHT_FILL, NULL))) tempValue++;
#else
    if (GuiButton(leftButtonBound, "<")) tempValue--;
    if (GuiButton(rightButtonBound, ">")) tempValue++;
#endif

    GuiSetStyle(BUTTON, TEXT_ALIGNMENT, tempTextAlign);
    GuiSetStyle(BUTTON, BORDER_WIDTH, tempBorderWidth);

    // Draw text label if provided
    if (text != NULL) GuiDrawText(text, textBounds, (GuiGetStyle(SPINNER, TEXT_ALIGNMENT) == GUI_TEXT_ALIGN_RIGHT)? GUI_TEXT_ALIGN_LEFT : GUI_TEXT_ALIGN_RIGHT, Fade(GetColor(GuiGetStyle(LABEL, TEXT + (state*3))), guiAlpha));
    //--------------------------------------------------------------------

    *value = tempValue;
    return pressed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %r8d, %r12d
movl %ecx, %ebp
movl %edx, %r15d
movq %rdi, %r14
movaps %xmm0, 0x90(%rsp)
movl 0x9779f(%rip), %eax     # 0xa4250
movl %eax, 0x2c(%rsp)
movq %rsi, 0xa8(%rsp)
movl (%rsi), %r13d
movl %r13d, 0xc(%rsp)
cmpb $0x1, 0x97789(%rip)     # 0xa4255
movaps %xmm0, 0x30(%rsp)
jne 0xcae4
movaps %xmm0, %xmm3
cvtsi2ssl 0x97c12(%rip), %xmm2 # 0xa46f0
addss %xmm0, %xmm2
jmp 0xcb11
movaps %xmm1, 0x10(%rsp)
callq 0x6a3c
movaps 0x30(%rsp), %xmm3
cvtsi2ssl 0x97bf5(%rip), %xmm2 # 0xa46f0
addss %xmm3, %xmm2
cmpb $0x1, 0x9774f(%rip)     # 0xa4255
jne 0xccf4
movaps 0x10(%rsp), %xmm1
xorps %xmm0, %xmm0
cvtsi2ssl 0x97bd8(%rip), %xmm0 # 0xa46f4
addss %xmm2, %xmm0
movaps %xmm3, %xmm2
movss %xmm0, %xmm2            # xmm2 = xmm0[0],xmm2[1,2,3]
movaps %xmm2, 0xe0(%rsp)
movl 0x97bbb(%rip), %ebx     # 0xa46f0
addl 0x97bb9(%rip), %ebx     # 0xa46f4
addl %ebx, %ebx
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
movaps %xmm1, %xmm2
subss %xmm0, %xmm2
movaps %xmm1, %xmm0
movss %xmm2, %xmm0            # xmm0 = xmm2[0],xmm0[1,2,3]
movaps %xmm0, 0xc0(%rsp)
movl 0x97b90(%rip), %eax     # 0xa46f0
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
movaps %xmm1, %xmm0
cvtsi2ss %eax, %xmm0
movaps %xmm0, 0xf0(%rsp)
movaps %xmm1, %xmm4
addss %xmm3, %xmm4
movaps %xmm4, %xmm0
movaps %xmm2, 0x60(%rsp)
subss %xmm2, %xmm0
movaps %xmm3, %xmm2
movss %xmm0, %xmm2            # xmm2 = xmm0[0],xmm2[1,2,3]
movaps %xmm2, 0xd0(%rsp)
testq %r14, %r14
movaps %xmm1, 0x10(%rsp)
je 0xcbf0
movaps %xmm4, 0x50(%rsp)
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
movaps %xmm1, 0xb0(%rsp)
shufps $0x55, %xmm3, %xmm3     # xmm3 = xmm3[1,1,1,1]
movaps %xmm3, 0x40(%rsp)
movq %r14, %rdi
callq 0x81f3
xorps %xmm4, %xmm4
cvtsi2ss %eax, %xmm4
cmpb $0x1, 0x97683(%rip)     # 0xa4255
jne 0xcc03
xorps %xmm0, %xmm0
cvtsi2ssl 0x976f1(%rip), %xmm0 # 0xa42d0
movlhps %xmm4, %xmm0            # xmm0 = xmm0[0],xmm4[0]
shufps $0xe2, %xmm4, %xmm0     # xmm0 = xmm0[2,0],xmm4[2,3]
movaps %xmm0, 0x80(%rsp)
jmp 0xcc39
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
xorps %xmm1, %xmm1
jmp 0xccce
movaps %xmm4, 0x70(%rsp)
callq 0x6a3c
movaps 0x70(%rsp), %xmm4
xorps %xmm0, %xmm0
cvtsi2ssl 0x976b3(%rip), %xmm0 # 0xa42d0
movlhps %xmm4, %xmm0            # xmm0 = xmm0[0],xmm4[0]
shufps $0xe2, %xmm4, %xmm0     # xmm0 = xmm0[2,0],xmm4[2,3]
movaps %xmm0, 0x80(%rsp)
cmpb $0x1, 0x97622(%rip)     # 0xa4255
jne 0xcf84
movaps 0x40(%rsp), %xmm1
movaps 0x30(%rsp), %xmm2
xorps %xmm0, %xmm0
cvtsi2ssl 0x97a96(%rip), %xmm0 # 0xa46e4
movaps 0x50(%rsp), %xmm3
addss %xmm0, %xmm3
movaps 0xb0(%rsp), %xmm0
mulss 0x583a5(%rip), %xmm0    # 0x6500c
addss %xmm0, %xmm1
movl 0x9765f(%rip), %eax     # 0xa42d0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
subss %xmm0, %xmm1
movlhps %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0]
shufps $0xe2, %xmm3, %xmm1     # xmm1 = xmm1[2,0],xmm3[2,3]
cmpl $0x0, 0x97a55(%rip)     # 0xa46e8
jne 0xccce
subss %xmm4, %xmm2
cmpb $0x0, 0x975b5(%rip)     # 0xa4255
jne 0xccbb
movaps %xmm1, 0x40(%rsp)
movaps %xmm2, 0x30(%rsp)
callq 0x6a3c
movaps 0x30(%rsp), %xmm2
movaps 0x40(%rsp), %xmm1
xorps %xmm0, %xmm0
cvtsi2ssl 0x97a1e(%rip), %xmm0 # 0xa46e4
subss %xmm0, %xmm2
movss %xmm2, %xmm1            # xmm1 = xmm2[0],xmm1[1,2,3]
movaps %xmm1, 0x40(%rsp)
movl $0x3, %ebx
cmpl $0x3, 0x2c(%rsp)
je 0xcd6a
cmpb $0x0, 0x9756a(%rip)     # 0xa4254
je 0xcd3d
movl 0x2c(%rsp), %eax
movl %eax, %ebx
jmp 0xcd6a
movaps %xmm2, 0x40(%rsp)
callq 0x6a3c
movaps 0x30(%rsp), %xmm3
xorps %xmm0, %xmm0
cvtsi2ssl 0x979e6(%rip), %xmm0 # 0xa46f4
movaps 0x40(%rsp), %xmm1
addss %xmm0, %xmm1
movaps %xmm3, %xmm0
movss %xmm1, %xmm0            # xmm0 = xmm1[0],xmm0[1,2,3]
movaps %xmm0, 0xe0(%rsp)
cmpb $0x1, 0x97528(%rip)     # 0xa4255
jne 0xcfce
movaps 0x10(%rsp), %xmm1
jmp 0xcb2f
callq 0x26136
movaps 0x90(%rsp), %xmm1
movaps 0x10(%rsp), %xmm2
callq 0x320c1
movl 0x2c(%rsp), %ecx
movl %ecx, %ebx
testb %al, %al
je 0xcd6a
xorl %edi, %edi
callq 0x2615e
movzbl %al, %ebx
incl %ebx
testb %r12b, %r12b
jne 0xcd82
cmpl %r15d, %r13d
cmovlel %r15d, %r13d
cmpl %ebp, %r13d
cmovgel %ebp, %r13d
movl %r13d, 0xc(%rsp)
movzbl %r12b, %r8d
leaq 0xc(%rsp), %rsi
movaps 0xe0(%rsp), %xmm0
movaps 0xc0(%rsp), %xmm1
xorl %edi, %edi
movl %r15d, %edx
movl %ebp, %ecx
callq 0xd147
movl %eax, %ebp
cmpb $0x1, 0x974a5(%rip)     # 0xa4255
jne 0xcdbb
movl 0x975c7(%rip), %r15d    # 0xa4380
jmp 0xcdd4
callq 0x6a3c
movl 0x975b9(%rip), %r15d    # 0xa4380
cmpb $0x1, 0x97487(%rip)     # 0xa4255
jne 0xcf29
movl 0x975ad(%rip), %r12d    # 0xa4388
movl 0x978fe(%rip), %r13d    # 0xa46e0
movaps 0x10(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movl %r13d, 0x9758d(%rip)    # 0xa4380
movss %xmm1, %xmm0            # xmm0 = xmm1[0],xmm0[1,2,3]
movaps %xmm0, 0x10(%rsp)
movl $0x1, 0x97582(%rip)     # 0xa4388
leaq 0x585a1(%rip), %rdi     # 0x653ae
movaps 0x90(%rsp), %xmm0
movaps 0xf0(%rsp), %xmm1
callq 0x7be9
testb %al, %al
je 0xce2a
decl 0xc(%rsp)
leaq 0x5857f(%rip), %rdi     # 0x653b0
movaps 0xd0(%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0x7be9
testb %al, %al
je 0xce4b
incl 0xc(%rsp)
cmpb $0x1, 0x97403(%rip)     # 0xa4255
jne 0xce5d
movl %r12d, 0x9752d(%rip)    # 0xa4388
jmp 0xce77
callq 0x6a3c
movl %r12d, 0x9751f(%rip)    # 0xa4388
cmpb $0x0, 0x973e5(%rip)     # 0xa4255
jne 0xce77
callq 0x6a3c
movl %r15d, 0x97502(%rip)    # 0xa4380
testq %r14, %r14
je 0xcf07
cmpb $0x1, 0x973c7(%rip)     # 0xa4255
jne 0xcea3
xorl %r15d, %r15d
cmpl $0x2, 0x9784e(%rip)     # 0xa46e8
setne %r15b
addl %r15d, %r15d
jmp 0xcec7
callq 0x6a3c
xorl %r15d, %r15d
cmpl $0x2, 0x97836(%rip)     # 0xa46e8
setne %r15b
addl %r15d, %r15d
cmpb $0x0, 0x97395(%rip)     # 0xa4255
jne 0xcec7
callq 0x6a3c
leal (%rbx,%rbx,2), %eax
addl $0x1a, %eax
cltq
leaq 0x973ba(%rip), %rcx     # 0xa4290
movl (%rcx,%rax,4), %edi
callq 0x4144d
movss 0x9654a(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movq %r14, %rdi
movaps 0x40(%rsp), %xmm0
movaps 0x80(%rsp), %xmm1
movl %r15d, %esi
movl %eax, %edx
callq 0xa506
movl 0xc(%rsp), %eax
movq 0xa8(%rsp), %rcx
movl %eax, (%rcx)
movl %ebp, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6a3c
movl 0x97453(%rip), %r12d    # 0xa4388
cmpb $0x1, 0x97319(%rip)     # 0xa4255
je 0xcddb
callq 0x6a3c
movl 0x97792(%rip), %r13d    # 0xa46e0
cmpb $0x1, 0x97300(%rip)     # 0xa4255
je 0xcde2
callq 0x6a3c
movl %r13d, 0x97419(%rip)    # 0xa4380
cmpb $0x0, 0x972e7(%rip)     # 0xa4255
jne 0xcf75
callq 0x6a3c
movaps 0x10(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
jmp 0xcdf3
callq 0x6a3c
xorps %xmm0, %xmm0
cvtsi2ssl 0x97750(%rip), %xmm0 # 0xa46e4
movaps 0xb0(%rsp), %xmm2
mulss 0x58068(%rip), %xmm2    # 0x6500c
movaps 0x50(%rsp), %xmm3
addss %xmm0, %xmm3
movaps 0x40(%rsp), %xmm1
addss %xmm2, %xmm1
cmpb $0x1, 0x97298(%rip)     # 0xa4255
jne 0xcff1
movaps 0x30(%rsp), %xmm2
movaps 0x70(%rsp), %xmm4
jmp 0xcc6b
callq 0x6a3c
movl 0x97717(%rip), %ebx     # 0xa46f0
cmpb $0x1, 0x97275(%rip)     # 0xa4255
jne 0xd052
movaps 0x10(%rsp), %xmm1
movaps 0x30(%rsp), %xmm3
jmp 0xcb35
movaps %xmm1, 0x40(%rsp)
movaps %xmm3, 0x50(%rsp)
callq 0x6a3c
movaps 0x40(%rsp), %xmm1
movl 0x972c5(%rip), %eax     # 0xa42d0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
subss %xmm0, %xmm1
movaps 0x50(%rsp), %xmm0
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
cmpb $0x0, 0x97223(%rip)     # 0xa4255
jne 0xd043
movaps %xmm1, 0x40(%rsp)
callq 0x6a3c
movaps 0x40(%rsp), %xmm1
movaps 0x30(%rsp), %xmm2
movaps 0x70(%rsp), %xmm4
jmp 0xcc8c
callq 0x6a3c
addl 0x97697(%rip), %ebx     # 0xa46f4
addl %ebx, %ebx
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
movaps 0x10(%rsp), %xmm1
movaps %xmm1, %xmm2
subss %xmm0, %xmm2
movaps %xmm1, %xmm0
movss %xmm2, %xmm0            # xmm0 = xmm2[0],xmm0[1,2,3]
movaps %xmm0, 0xc0(%rsp)
cmpb $0x1, 0x971cd(%rip)     # 0xa4255
jne 0xd094
movaps 0x30(%rsp), %xmm3
jmp 0xcb5a
callq 0x6a3c
movaps 0x10(%rsp), %xmm1
movl 0x9764c(%rip), %eax     # 0xa46f0
movaps %xmm1, %xmm0
cvtsi2ss %eax, %xmm0
movaps %xmm0, 0xf0(%rsp)
movaps 0x90(%rsp), %xmm4
addss %xmm1, %xmm4
cmpb $0x1, 0x9718f(%rip)     # 0xa4255
jne 0xd0d9
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
movaps 0x30(%rsp), %xmm3
jmp 0xcb7d
movaps %xmm4, 0x50(%rsp)
callq 0x6a3c
movaps 0x50(%rsp), %xmm4
xorps %xmm1, %xmm1
cvtsi2ssl 0x975fd(%rip), %xmm1 # 0xa46f0
movaps %xmm4, %xmm0
subss %xmm1, %xmm0
movaps 0x30(%rsp), %xmm3
movaps %xmm3, %xmm2
movss %xmm0, %xmm2            # xmm2 = xmm0[0],xmm2[1,2,3]
movaps %xmm2, 0xd0(%rsp)
cmpb $0x0, 0x97140(%rip)     # 0xa4255
je 0xd11e
movaps %xmm1, 0x60(%rsp)
jmp 0xd13d
callq 0x6a3c
movaps 0x50(%rsp), %xmm4
movaps 0x30(%rsp), %xmm3
xorps %xmm0, %xmm0
cvtsi2ssl 0x975b8(%rip), %xmm0 # 0xa46f0
movaps %xmm0, 0x60(%rsp)
movaps 0x10(%rsp), %xmm1
jmp 0xcb98