// File: /workspace/github_c_makefile_star2_O1/arkanis[P]process-map/./deps/raygui.h
// Function: GuiColorBarAlpha
float GuiColorBarAlpha(Rectangle bounds, float alpha)
{
    #define COLORBARALPHA_CHECKED_SIZE   10

    GuiControlState state = guiState;
    Rectangle selector = { (float)bounds.x + alpha*bounds.width - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (float)bounds.y - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (float)GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT), (float)bounds.height + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)*2 };

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

        if (CheckCollisionPointRec(mousePoint, bounds) ||
            CheckCollisionPointRec(mousePoint, selector))
        {
            if (IsMouseButtonDown(MOUSE_LEFT_BUTTON))
            {
                state = GUI_STATE_PRESSED;
                selector.x = mousePoint.x - selector.width/2;

                alpha = (mousePoint.x - bounds.x)/bounds.width;
                if (alpha <= 0.0f) alpha = 0.0f;
                if (alpha >= 1.0f) alpha = 1.0f;
                //selector.x = bounds.x + (int)(((alpha - 0)/(100 - 0))*(bounds.width - 2*GuiGetStyle(SLIDER, BORDER_WIDTH))) - selector.width/2;
            }
            else state = GUI_STATE_FOCUSED;
        }
    }
    //--------------------------------------------------------------------

    // Draw control
    //--------------------------------------------------------------------

    // Draw alpha bar: checked background
    if (state != GUI_STATE_DISABLED)
    {
        int checksX = (int)bounds.width/COLORBARALPHA_CHECKED_SIZE;
        int checksY = (int)bounds.height/COLORBARALPHA_CHECKED_SIZE;

        for (int x = 0; x < checksX; x++)
        {
            for (int y = 0; y < checksY; y++)
            {
                Rectangle check = { bounds.x + x*COLORBARALPHA_CHECKED_SIZE, bounds.y + y*COLORBARALPHA_CHECKED_SIZE, COLORBARALPHA_CHECKED_SIZE, COLORBARALPHA_CHECKED_SIZE };
                GuiDrawRectangle(check, 0, BLANK, ((x + y)%2)? Fade(Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER_COLOR_DISABLED)), 0.4f), guiAlpha) : Fade(Fade(GetColor(GuiGetStyle(COLORPICKER, BASE_COLOR_DISABLED)), 0.4f), guiAlpha));
            }
        }

        DrawRectangleGradientEx(bounds, RAYGUI_CLITERAL(Color){ 255, 255, 255, 0 }, RAYGUI_CLITERAL(Color){ 255, 255, 255, 0 }, Fade(RAYGUI_CLITERAL(Color){ 0, 0, 0, 255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 0, 0, 0, 255 }, guiAlpha));
    }
    else DrawRectangleGradientEx(bounds, Fade(GetColor(GuiGetStyle(COLORPICKER, BASE_COLOR_DISABLED)), 0.1f), Fade(GetColor(GuiGetStyle(COLORPICKER, BASE_COLOR_DISABLED)), 0.1f), Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER_COLOR_DISABLED)), guiAlpha), Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER_COLOR_DISABLED)), guiAlpha));

    GuiDrawRectangle(bounds, 1, Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER + state*3)), guiAlpha), BLANK);

    // Draw alpha bar: selector
    GuiDrawRectangle(selector, 0, BLANK, Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER + state*3)), guiAlpha));
    //--------------------------------------------------------------------

    return alpha;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl 0x984fd(%rip), %ebx     # 0xa7250
movaps %xmm2, 0x60(%rsp)
movaps %xmm2, %xmm3
movaps %xmm1, 0x20(%rsp)
mulss %xmm1, %xmm3
movaps %xmm0, 0x40(%rsp)
addss %xmm0, %xmm3
cmpb $0x0, 0x984e1(%rip)     # 0xa7255
jne 0xed83
movaps %xmm3, (%rsp)
callq 0x6a18
movaps (%rsp), %xmm3
xorps %xmm0, %xmm0
cvtsi2ssl 0x98a32(%rip), %xmm0 # 0xa77c0
subss %xmm0, %xmm3
movaps 0x40(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, 0x90(%rsp)
cmpb $0x0, 0x984ab(%rip)     # 0xa7255
movaps %xmm3, (%rsp)
jne 0xedb9
callq 0x6a18
movaps (%rsp), %xmm3
xorps %xmm0, %xmm0
cvtsi2ssl 0x989fc(%rip), %xmm0 # 0xa77c0
movaps 0x90(%rsp), %xmm1
subss %xmm0, %xmm1
movaps %xmm1, 0x10(%rsp)
cmpb $0x0, 0x98479(%rip)     # 0xa7255
jne 0xede7
callq 0x6a18
movaps (%rsp), %xmm3
movaps 0x10(%rsp), %xmm0
movlhps %xmm3, %xmm0            # xmm0 = xmm0[0],xmm3[0]
movaps %xmm0, 0x10(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssl 0x989bd(%rip), %xmm0 # 0xa77bc
movaps %xmm0, 0x50(%rsp)
movaps 0x20(%rsp), %xmm2
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
cmpb $0x0, 0x98441(%rip)     # 0xa7255
jne 0xee29
movaps %xmm2, 0x30(%rsp)
callq 0x6a18
movaps (%rsp), %xmm3
movaps 0x30(%rsp), %xmm2
movl 0x98991(%rip), %eax     # 0xa77c0
addl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
movaps 0x10(%rsp), %xmm0
shufps $0xe2, %xmm3, %xmm0     # xmm0 = xmm0[2,0],xmm3[2,3]
movaps %xmm0, 0x10(%rsp)
addss %xmm2, %xmm1
movaps %xmm1, 0x80(%rsp)
movl $0x3, %r15d
cmpl $0x3, %ebx
je 0xef38
cmpb $0x0, 0x983ec(%rip)     # 0xa7254
je 0xee72
movl %ebx, %r15d
jmp 0xef38
movaps %xmm2, 0x30(%rsp)
callq 0x2867d
movaps %xmm0, (%rsp)
movaps 0x40(%rsp), %xmm1
movaps 0x20(%rsp), %xmm2
callq 0x34d6b
testb %al, %al
jne 0xeeb9
movaps 0x80(%rsp), %xmm2
movaps 0x50(%rsp), %xmm0
movlhps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm2     # xmm2 = xmm2[2,0],xmm0[2,3]
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0x34d6b
testb %al, %al
je 0xef30
xorl %edi, %edi
callq 0x286ba
movl $0x1, %r15d
testb %al, %al
je 0xef33
movss 0x5914a(%rip), %xmm0    # 0x6801c
mulss 0x50(%rsp), %xmm0
movaps (%rsp), %xmm2
addss %xmm2, %xmm0
movaps 0x10(%rsp), %xmm1
movss %xmm0, %xmm1            # xmm1 = xmm0[0],xmm1[1,2,3]
movaps %xmm1, 0x10(%rsp)
subss 0x40(%rsp), %xmm2
divss 0x20(%rsp), %xmm2
xorps %xmm0, %xmm0
movaps %xmm2, %xmm1
cmpless %xmm0, %xmm1
andnps %xmm2, %xmm1
movl $0x2, %r15d
movaps %xmm1, 0x60(%rsp)
ucomiss 0x590ea(%rip), %xmm1    # 0x68004
movaps 0x30(%rsp), %xmm2
jb 0xef38
movss 0x590db(%rip), %xmm0    # 0x68004
movaps %xmm0, 0x60(%rsp)
jmp 0xef38
movl %ebx, %r15d
movaps 0x30(%rsp), %xmm2
cmpl $0x3, %r15d
jne 0xf006
cmpb $0x0, 0x9830c(%rip)     # 0xa7255
jne 0xef50
callq 0x6a18
movl 0x98842(%rip), %edi     # 0xa7798
callq 0x44152
movss 0x590dd(%rip), %xmm0    # 0x68040
movl %eax, %edi
callq 0x43e1c
movl %eax, %ebx
cmpb $0x0, 0x982e2(%rip)     # 0xa7255
jne 0xef7a
callq 0x6a18
movl 0x98818(%rip), %edi     # 0xa7798
callq 0x44152
movss 0x590b3(%rip), %xmm0    # 0x68040
movl %eax, %edi
callq 0x43e1c
movl %eax, %ebp
cmpb $0x0, 0x982b8(%rip)     # 0xa7255
jne 0xefa4
callq 0x6a18
movl 0x987ea(%rip), %edi     # 0xa7794
callq 0x44152
movss 0x97479(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movl %eax, %r14d
cmpb $0x0, 0x9828d(%rip)     # 0xa7255
jne 0xefcf
callq 0x6a18
movl 0x987bf(%rip), %edi     # 0xa7794
callq 0x44152
movss 0x9744e(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movaps 0x40(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movl %ebx, %edi
movl %ebp, %esi
movl %r14d, %edx
movl %eax, %ecx
callq 0x3148c
jmp 0xf17c
movq %r15, 0x78(%rsp)
cvttss2si 0x20(%rsp), %eax
cmpl $0xa, %eax
jl 0xf134
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rax
shrq $0x3f, %rax
sarq $0x22, %rcx
addl %eax, %ecx
movq %rcx, (%rsp)
cvttss2si %xmm2, %eax
movl %eax, 0x30(%rsp)
cltq
imulq $0x66666667, %rax, %r12 # imm = 0x66666667
movq %r12, %rax
shrq $0x3f, %rax
sarq $0x22, %r12
addl %eax, %r12d
xorl %r13d, %r13d
leaq 0x98737(%rip), %rbp     # 0xa7794
cmpl $0xa, 0x30(%rsp)
jl 0xf127
leal (,%r13,2), %eax
leal (%rax,%rax,4), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
addss 0x40(%rsp), %xmm0
cvttss2si %xmm0, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
leal (%r15,%r13), %eax
movb 0x981c1(%rip), %cl      # 0xa7255
testb $0x1, %al
jne 0xf0b2
leaq 0x986f9(%rip), %rax     # 0xa7798
testb $0x1, %cl
jne 0xf0c2
callq 0x6a18
leaq 0x986e8(%rip), %rax     # 0xa7798
jmp 0xf0c2
movq %rbp, %rax
testb $0x1, %cl
jne 0xf0c2
callq 0x6a18
movq %rbp, %rax
movl (%rax), %edi
callq 0x44152
movl %eax, %edi
movss 0x58f81(%rip), %xmm0    # 0x68054
callq 0x43e1c
movss 0x97350(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0xf117
xorps %xmm0, %xmm0
cvtsi2ss %r14d, %xmm0
addss 0x90(%rsp), %xmm0
cvttss2si %xmm0, %esi
movl %ebx, %edi
movl $0xa, %edx
movl $0xa, %ecx
movl %eax, %r8d
callq 0x31115
incl %r15d
addl $0xa, %r14d
cmpl %r15d, %r12d
jne 0xf08a
incl %r13d
cmpl (%rsp), %r13d
jne 0xf05d
movss 0x972f4(%rip), %xmm0    # 0xa6430
movl $0xff000000, %edi       # imm = 0xFF000000
callq 0x43e1c
movl %eax, %ebx
movss 0x972e0(%rip), %xmm0    # 0xa6430
movl $0xff000000, %edi       # imm = 0xFF000000
callq 0x43e1c
movaps 0x40(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movl $0xffffff, %edi         # imm = 0xFFFFFF
movl $0xffffff, %esi         # imm = 0xFFFFFF
movl %ebx, %edx
movl %eax, %ecx
callq 0x3148c
movq 0x78(%rsp), %r15
leal (%r15,%r15,2), %ebx
cmpb $0x0, 0x980ce(%rip)     # 0xa7255
jne 0xf18e
callq 0x6a18
movslq %ebx, %rbx
leaq 0x980f8(%rip), %r14     # 0xa7290
movl 0x4e0(%r14,%rbx,4), %edi
addq $0x138, %rbx            # imm = 0x138
callq 0x44152
movss 0x9727c(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movaps 0x40(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movl $0x1, %edi
movl %eax, %esi
xorl %edx, %edx
callq 0x7546
cmpb $0x0, 0x9807b(%rip)     # 0xa7255
jne 0xf1e1
callq 0x6a18
movl (%r14,%rbx,4), %edi
callq 0x44152
movss 0x9723e(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0xf228
movaps 0x10(%rsp), %xmm0
cvttss2si %xmm0, %edi
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
cvttss2si %xmm0, %esi
cvttss2si 0x50(%rsp), %edx
cvttss2si 0x80(%rsp), %ecx
movl %eax, %r8d
callq 0x31115
movaps 0x60(%rsp), %xmm0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq