// File: /workspace/github_c_makefile_star2_O0/arkanis[P]process-map/./deps/raygui.h
// Function: GuiSliderPro
float GuiSliderPro(Rectangle bounds, const char *textLeft, const char *textRight, float value, float minValue, float maxValue, int sliderWidth)
{
    GuiControlState state = guiState;

    int sliderValue = (int)(((value - minValue)/(maxValue - minValue))*(bounds.width - 2*GuiGetStyle(SLIDER, BORDER_WIDTH)));

    Rectangle slider = { bounds.x, bounds.y + GuiGetStyle(SLIDER, BORDER_WIDTH) + GuiGetStyle(SLIDER, SLIDER_PADDING),
                         0, bounds.height - 2*GuiGetStyle(SLIDER, BORDER_WIDTH) - 2*GuiGetStyle(SLIDER, SLIDER_PADDING) };

    if (sliderWidth > 0)        // Slider
    {
        slider.x += (sliderValue - sliderWidth/2);
        slider.width = (float)sliderWidth;
    }
    else if (sliderWidth == 0)  // SliderBar
    {
        slider.x += GuiGetStyle(SLIDER, BORDER_WIDTH);
        slider.width = (float)sliderValue;
    }

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

        if (CheckCollisionPointRec(mousePoint, bounds))
        {
            if (IsMouseButtonDown(MOUSE_LEFT_BUTTON))
            {
                state = GUI_STATE_PRESSED;

                // Get equivalent value and slider position from mousePoint.x
                value = ((maxValue - minValue)*(mousePoint.x - (float)(bounds.x + sliderWidth/2)))/(float)(bounds.width - sliderWidth) + minValue;

                if (sliderWidth > 0) slider.x = mousePoint.x - slider.width/2;  // Slider
                else if (sliderWidth == 0) slider.width = (float)sliderValue;          // SliderBar
            }
            else state = GUI_STATE_FOCUSED;
        }

        if (value > maxValue) value = maxValue;
        else if (value < minValue) value = minValue;
    }

    // Bar limits check
    if (sliderWidth > 0)        // Slider
    {
        if (slider.x <= (bounds.x + GuiGetStyle(SLIDER, BORDER_WIDTH))) slider.x = bounds.x + GuiGetStyle(SLIDER, BORDER_WIDTH);
        else if ((slider.x + slider.width) >= (bounds.x + bounds.width)) slider.x = bounds.x + bounds.width - slider.width - GuiGetStyle(SLIDER, BORDER_WIDTH);
    }
    else if (sliderWidth == 0)  // SliderBar
    {
        if (slider.width > bounds.width) slider.width = bounds.width - 2*GuiGetStyle(SLIDER, BORDER_WIDTH);
    }
    //--------------------------------------------------------------------

    // Draw control
    //--------------------------------------------------------------------
    GuiDrawRectangle(bounds, GuiGetStyle(SLIDER, BORDER_WIDTH), Fade(GetColor(GuiGetStyle(SLIDER, BORDER + (state*3))), guiAlpha), Fade(GetColor(GuiGetStyle(SLIDER, (state != GUI_STATE_DISABLED)?  BASE_COLOR_NORMAL : BASE_COLOR_DISABLED)), guiAlpha));

    // Draw slider internal bar (depends on state)
    if ((state == GUI_STATE_NORMAL) || (state == GUI_STATE_PRESSED)) GuiDrawRectangle(slider, 0, BLANK, Fade(GetColor(GuiGetStyle(SLIDER, BASE_COLOR_PRESSED)), guiAlpha));
    else if (state == GUI_STATE_FOCUSED) GuiDrawRectangle(slider, 0, BLANK, Fade(GetColor(GuiGetStyle(SLIDER, TEXT_COLOR_FOCUSED)), guiAlpha));

    // Draw left/right text if provided
    if (textLeft != NULL)
    {
        Rectangle textBounds = { 0 };
        textBounds.width = (float)GetTextWidth(textLeft);  // TODO: Consider text icon
        textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
        textBounds.x = bounds.x - textBounds.width - GuiGetStyle(SLIDER, TEXT_PADDING);
        textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2;

        GuiDrawText(textLeft, textBounds, GUI_TEXT_ALIGN_RIGHT, Fade(GetColor(GuiGetStyle(SLIDER, TEXT + (state*3))), guiAlpha));
    }

    if (textRight != NULL)
    {
        Rectangle textBounds = { 0 };
        textBounds.width = (float)GetTextWidth(textRight);  // TODO: Consider text icon
        textBounds.height = (float)GuiGetStyle(DEFAULT, TEXT_SIZE);
        textBounds.x = bounds.x + bounds.width + GuiGetStyle(SLIDER, TEXT_PADDING);
        textBounds.y = bounds.y + bounds.height/2 - GuiGetStyle(DEFAULT, TEXT_SIZE)/2;

        GuiDrawText(textRight, textBounds, GUI_TEXT_ALIGN_LEFT, Fade(GetColor(GuiGetStyle(SLIDER, TEXT + (state*3))), guiAlpha));
    }
    //--------------------------------------------------------------------

    return value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movlpd %xmm0, -0x10(%rbp)
movlpd %xmm1, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movss %xmm2, -0x24(%rbp)
movss %xmm3, -0x28(%rbp)
movss %xmm4, -0x2c(%rbp)
movl %edx, -0x30(%rbp)
movl 0xbc56b(%rip), %eax     # 0xca0e0
movl %eax, -0x34(%rbp)
movss -0x24(%rbp), %xmm0
subss -0x28(%rbp), %xmm0
movss -0x2c(%rbp), %xmm1
subss -0x28(%rbp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, -0xcc(%rbp)
movss -0x8(%rbp), %xmm0
movss %xmm0, -0xd0(%rbp)
movl $0x4, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xd0(%rbp), %xmm1
movss -0xcc(%rbp), %xmm0
shll %eax
cvtsi2ss %eax, %xmm2
subss %xmm2, %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0x38(%rbp)
movss -0x10(%rbp), %xmm0
movss %xmm0, -0x48(%rbp)
movss -0xc(%rbp), %xmm0
movss %xmm0, -0xc8(%rbp)
movl $0x4, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xc8(%rbp), %xmm0
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0xc4(%rbp)
movl $0x4, %edi
movl $0x11, %esi
callq 0x6f90
movss -0xc4(%rbp), %xmm0
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x44(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x40(%rbp)
movss -0x4(%rbp), %xmm0
movss %xmm0, -0xc0(%rbp)
movl $0x4, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xc0(%rbp), %xmm0
shll %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0xbc(%rbp)
movl $0x4, %edi
movl $0x11, %esi
callq 0x6f90
movss -0xbc(%rbp), %xmm0
shll %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x3c(%rbp)
cmpl $0x0, -0x30(%rbp)
jle 0xdcdd
movl -0x38(%rbp), %eax
movl %eax, -0xd4(%rbp)
movl -0x30(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0xd4(%rbp), %eax
subl %ecx, %eax
cvtsi2ss %eax, %xmm0
addss -0x48(%rbp), %xmm0
movss %xmm0, -0x48(%rbp)
cvtsi2ssl -0x30(%rbp), %xmm0
movss %xmm0, -0x40(%rbp)
jmp 0xdd0c
cmpl $0x0, -0x30(%rbp)
jne 0xdd0a
movl $0x4, %edi
movl $0xc, %esi
callq 0x6f90
cvtsi2ss %eax, %xmm0
addss -0x48(%rbp), %xmm0
movss %xmm0, -0x48(%rbp)
cvtsi2ssl -0x38(%rbp), %xmm0
movss %xmm0, -0x40(%rbp)
jmp 0xdd0c
cmpl $0x3, -0x34(%rbp)
je 0xde24
testb $0x1, 0xbc3c7(%rip)     # 0xca0e4
jne 0xde24
callq 0x2dd60
movlpd %xmm0, -0x50(%rbp)
movsd -0x50(%rbp), %xmm0
movsd -0x10(%rbp), %xmm1
movsd -0x8(%rbp), %xmm2
callq 0x3e640
testb $0x1, %al
jne 0xdd4a
jmp 0xddf0
xorl %edi, %edi
callq 0x2ddd0
testb $0x1, %al
jne 0xdd5a
jmp 0xdde7
movl $0x2, -0x34(%rbp)
movss -0x2c(%rbp), %xmm0
subss -0x28(%rbp), %xmm0
movss -0x50(%rbp), %xmm1
movss -0x10(%rbp), %xmm2
movl -0x30(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cvtsi2ss %eax, %xmm3
addss %xmm3, %xmm2
subss %xmm2, %xmm1
mulss %xmm1, %xmm0
movss -0x8(%rbp), %xmm1
cvtsi2ssl -0x30(%rbp), %xmm2
subss %xmm2, %xmm1
divss %xmm1, %xmm0
addss -0x28(%rbp), %xmm0
movss %xmm0, -0x24(%rbp)
cmpl $0x0, -0x30(%rbp)
jle 0xddd3
movss -0x50(%rbp), %xmm0
movss -0x40(%rbp), %xmm1
movss 0x7e244(%rip), %xmm2    # 0x8c008
divss %xmm2, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x48(%rbp)
jmp 0xdde5
cmpl $0x0, -0x30(%rbp)
jne 0xdde3
cvtsi2ssl -0x38(%rbp), %xmm0
movss %xmm0, -0x40(%rbp)
jmp 0xdde5
jmp 0xddee
movl $0x1, -0x34(%rbp)
jmp 0xddf0
movss -0x24(%rbp), %xmm0
ucomiss -0x2c(%rbp), %xmm0
jbe 0xde07
movss -0x2c(%rbp), %xmm0
movss %xmm0, -0x24(%rbp)
jmp 0xde22
movss -0x24(%rbp), %xmm1
movss -0x28(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0xde20
movss -0x28(%rbp), %xmm0
movss %xmm0, -0x24(%rbp)
jmp 0xde22
jmp 0xde24
cmpl $0x0, -0x30(%rbp)
jle 0xdeff
movss -0x48(%rbp), %xmm0
movss %xmm0, -0xd8(%rbp)
movss -0x10(%rbp), %xmm0
movss %xmm0, -0xdc(%rbp)
movl $0x4, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xdc(%rbp), %xmm0
movss -0xd8(%rbp), %xmm1
cvtsi2ss %eax, %xmm2
addss %xmm2, %xmm0
ucomiss %xmm1, %xmm0
jb 0xdea7
movss -0x10(%rbp), %xmm0
movss %xmm0, -0xe0(%rbp)
movl $0x4, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xe0(%rbp), %xmm0
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x48(%rbp)
jmp 0xdefd
movss -0x48(%rbp), %xmm0
addss -0x40(%rbp), %xmm0
movss -0x10(%rbp), %xmm1
addss -0x8(%rbp), %xmm1
ucomiss %xmm1, %xmm0
jb 0xdefb
movss -0x10(%rbp), %xmm0
addss -0x8(%rbp), %xmm0
subss -0x40(%rbp), %xmm0
movss %xmm0, -0xe4(%rbp)
movl $0x4, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xe4(%rbp), %xmm0
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x48(%rbp)
jmp 0xdefd
jmp 0xdf47
cmpl $0x0, -0x30(%rbp)
jne 0xdf45
movss -0x40(%rbp), %xmm0
ucomiss -0x8(%rbp), %xmm0
jbe 0xdf43
movss -0x8(%rbp), %xmm0
movss %xmm0, -0xe8(%rbp)
movl $0x4, %edi
movl $0xc, %esi
callq 0x6f90
movss -0xe8(%rbp), %xmm0
shll %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x40(%rbp)
jmp 0xdf45
jmp 0xdf47
movl $0x4, %edi
movl %edi, -0xf0(%rbp)
movl $0xc, %esi
callq 0x6f90
movl -0xf0(%rbp), %edi
movl %eax, -0xec(%rbp)
movl -0x34(%rbp), %ecx
movl %ecx, %eax
leal (%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x58(%rbp)
movss 0xba489(%rip), %xmm0    # 0xc8410
movl -0x58(%rbp), %edi
callq 0x51fa0
movl -0xf0(%rbp), %edi
movl %eax, -0x54(%rbp)
movl -0x34(%rbp), %eax
subl $0x3, %eax
sete %al
movzbl %al, %ecx
movl %ecx, %eax
leal 0x1(%rax,%rax,8), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x60(%rbp)
movss 0xba44f(%rip), %xmm0    # 0xc8410
movl -0x60(%rbp), %edi
callq 0x51fa0
movl -0xec(%rbp), %edi
movl %eax, -0x5c(%rbp)
movsd -0x10(%rbp), %xmm0
movsd -0x8(%rbp), %xmm1
movl -0x54(%rbp), %esi
movl -0x5c(%rbp), %edx
callq 0x77c0
cmpl $0x0, -0x34(%rbp)
je 0xdff3
cmpl $0x2, -0x34(%rbp)
jne 0xe048
movb $0x0, -0x64(%rbp)
movb $0x0, -0x63(%rbp)
movb $0x0, -0x62(%rbp)
movb $0x0, -0x61(%rbp)
movl $0x4, %edi
movl $0x7, %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x6c(%rbp)
movss 0xba3ec(%rip), %xmm0    # 0xc8410
movl -0x6c(%rbp), %edi
callq 0x51fa0
movl %eax, -0x68(%rbp)
movsd -0x48(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
movl -0x64(%rbp), %esi
movl -0x68(%rbp), %edx
xorl %edi, %edi
callq 0x77c0
jmp 0xe0a3
cmpl $0x1, -0x34(%rbp)
jne 0xe0a1
movb $0x0, -0x70(%rbp)
movb $0x0, -0x6f(%rbp)
movb $0x0, -0x6e(%rbp)
movb $0x0, -0x6d(%rbp)
movl $0x4, %edi
movl $0x5, %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x78(%rbp)
movss 0xba391(%rip), %xmm0    # 0xc8410
movl -0x78(%rbp), %edi
callq 0x51fa0
movl %eax, -0x74(%rbp)
movsd -0x48(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
movl -0x70(%rbp), %esi
movl -0x74(%rbp), %edx
xorl %edi, %edi
callq 0x77c0
jmp 0xe0a3
cmpq $0x0, -0x18(%rbp)
je 0xe1f7
xorps %xmm0, %xmm0
movaps %xmm0, -0x90(%rbp)
movq -0x18(%rbp), %rdi
callq 0x7af0
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x88(%rbp)
xorl %edi, %edi
movl %edi, -0x108(%rbp)
movl $0x10, %esi
movl %esi, -0x104(%rbp)
callq 0x6f90
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x84(%rbp)
movss -0x10(%rbp), %xmm0
movss -0x88(%rbp), %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x10c(%rbp)
movl $0x4, %edi
movl %edi, -0xfc(%rbp)
movl $0xd, %esi
callq 0x6f90
movss -0x10c(%rbp), %xmm0
movl -0x108(%rbp), %edi
movl -0x104(%rbp), %esi
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x90(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x4(%rbp), %xmm1
movss 0x7debf(%rip), %xmm2    # 0x8c014
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x100(%rbp)
callq 0x6f90
movss -0x100(%rbp), %xmm0
movl -0xfc(%rbp), %edi
movl %eax, %ecx
shrl $0x1f, %ecx
addl %ecx, %eax
sarl %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0x8c(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xf8(%rbp)
movl -0x34(%rbp), %ecx
movl %ecx, %eax
leal 0x2(%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0x98(%rbp)
movss 0xba251(%rip), %xmm0    # 0xc8410
movl -0x98(%rbp), %edi
callq 0x51fa0
movq -0xf8(%rbp), %rdi
movl %eax, -0x94(%rbp)
movsd -0x90(%rbp), %xmm0
movsd -0x88(%rbp), %xmm1
movl -0x94(%rbp), %edx
movl $0x2, %esi
callq 0x9cf0
cmpq $0x0, -0x20(%rbp)
je 0xe345
xorps %xmm0, %xmm0
movaps %xmm0, -0xb0(%rbp)
movq -0x20(%rbp), %rdi
callq 0x7af0
cvtsi2ss %eax, %xmm0
movss %xmm0, -0xa8(%rbp)
xorl %edi, %edi
movl %edi, -0x128(%rbp)
movl $0x10, %esi
movl %esi, -0x124(%rbp)
callq 0x6f90
cvtsi2ss %eax, %xmm0
movss %xmm0, -0xa4(%rbp)
movss -0x10(%rbp), %xmm0
movss -0x8(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x12c(%rbp)
movl $0x4, %edi
movl %edi, -0x11c(%rbp)
movl $0xd, %esi
callq 0x6f90
movss -0x12c(%rbp), %xmm0
movl -0x128(%rbp), %edi
movl -0x124(%rbp), %esi
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0xb0(%rbp)
movss -0xc(%rbp), %xmm0
movss -0x4(%rbp), %xmm1
movss 0x7dd6e(%rip), %xmm2    # 0x8c014
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x120(%rbp)
callq 0x6f90
movss -0x120(%rbp), %xmm0
movl -0x11c(%rbp), %edi
movl %eax, %ecx
shrl $0x1f, %ecx
addl %ecx, %eax
sarl %eax
cvtsi2ss %eax, %xmm1
subss %xmm1, %xmm0
movss %xmm0, -0xac(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x118(%rbp)
movl -0x34(%rbp), %ecx
movl %ecx, %eax
leal 0x2(%rax,%rax,2), %esi
callq 0x6f90
movl %eax, %edi
callq 0x526e0
movl %eax, -0xb8(%rbp)
movss 0xba100(%rip), %xmm0    # 0xc8410
movl -0xb8(%rbp), %edi
callq 0x51fa0
movq -0x118(%rbp), %rdi
movl %eax, -0xb4(%rbp)
movsd -0xb0(%rbp), %xmm0
movsd -0xa8(%rbp), %xmm1
movl -0xb4(%rbp), %edx
xorl %esi, %esi
callq 0x9cf0
movss -0x24(%rbp), %xmm0
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopw %cs:(%rax,%rax)