// File: /workspace/github_c_makefile_star2_O3/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 0x93a15(%rip), %ebx     # 0xa4250
movaps %xmm2, 0x60(%rsp)
movaps %xmm2, %xmm3
mulss %xmm1, %xmm3
addss %xmm0, %xmm3
cmpb $0x1, 0x93a03(%rip)     # 0xa4255
movaps %xmm1, 0x20(%rsp)
movaps %xmm1, %xmm2
shufps $0x55, %xmm1, %xmm2     # xmm2 = xmm2[1,1],xmm1[1,1]
movaps %xmm0, 0x30(%rsp)
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, 0x70(%rsp)
jne 0x1087f
xorps %xmm0, %xmm0
cvtsi2ssl 0x93f47(%rip), %xmm0 # 0xa47c0
subss %xmm0, %xmm3
jmp 0x108b2
movaps %xmm2, (%rsp)
movaps %xmm3, 0x10(%rsp)
callq 0x6a3c
movaps 0x10(%rsp), %xmm3
xorps %xmm0, %xmm0
cvtsi2ssl 0x93f23(%rip), %xmm0 # 0xa47c0
subss %xmm0, %xmm3
cmpb $0x1, 0x939ad(%rip)     # 0xa4255
jne 0x10a96
movaps (%rsp), %xmm2
movaps 0x70(%rsp), %xmm1
subss %xmm0, %xmm1
movlhps %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0]
shufps $0xe2, %xmm3, %xmm1     # xmm1 = xmm1[2,0],xmm3[2,3]
movaps %xmm1, 0x40(%rsp)
xorps %xmm0, %xmm0
cvtsi2ssl 0x93eea(%rip), %xmm0 # 0xa47bc
movaps %xmm0, 0x50(%rsp)
movl 0x93ee3(%rip), %eax     # 0xa47c0
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
addss %xmm2, %xmm0
movaps %xmm0, 0x90(%rsp)
cmpl $0x3, %ebx
jne 0x109c4
cmpb $0x0, 0x93953(%rip)     # 0xa4255
jne 0x10909
callq 0x6a3c
movl 0x93e89(%rip), %edi     # 0xa4798
callq 0x4144d
movss 0x54718(%rip), %xmm0    # 0x65034
movl %eax, %edi
callq 0x41122
movl %eax, %ebx
cmpb $0x0, 0x93929(%rip)     # 0xa4255
jne 0x10933
callq 0x6a3c
movl 0x93e5f(%rip), %edi     # 0xa4798
callq 0x4144d
movss 0x546ee(%rip), %xmm0    # 0x65034
movl %eax, %edi
callq 0x41122
movl %eax, %ebp
cmpb $0x0, 0x938ff(%rip)     # 0xa4255
jne 0x1095d
callq 0x6a3c
movl 0x93e31(%rip), %edi     # 0xa4794
callq 0x4144d
movss 0x92ac0(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movl %eax, %r14d
cmpb $0x0, 0x938d4(%rip)     # 0xa4255
jne 0x10988
callq 0x6a3c
movl 0x93e06(%rip), %edi     # 0xa4794
callq 0x4144d
movss 0x92a95(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movaps 0x30(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movl %ebx, %edi
movl %ebp, %esi
movl %r14d, %edx
movl %eax, %ecx
callq 0x2e863
movl $0x141, %ebx            # imm = 0x141
jmp 0x10c43
cmpb $0x0, 0x93889(%rip)     # 0xa4254
jne 0x10adf
movaps %xmm2, (%rsp)
callq 0x26136
movaps %xmm0, 0x10(%rsp)
movaps 0x30(%rsp), %xmm1
movaps 0x20(%rsp), %xmm2
callq 0x320c1
testb %al, %al
jne 0x10a1d
movaps 0x90(%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 0x10(%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
callq 0x320c1
testb %al, %al
je 0x10adb
xorl %edi, %edi
callq 0x2615e
movl $0x1, %ebx
testb %al, %al
je 0x10adb
movss 0x545db(%rip), %xmm0    # 0x65014
mulss 0x50(%rsp), %xmm0
movaps 0x10(%rsp), %xmm2
addss %xmm2, %xmm0
movaps 0x40(%rsp), %xmm1
movss %xmm0, %xmm1            # xmm1 = xmm0[0],xmm1[1,2,3]
movaps %xmm1, 0x40(%rsp)
subss 0x30(%rsp), %xmm2
divss 0x20(%rsp), %xmm2
xorps %xmm0, %xmm0
movaps %xmm2, %xmm1
cmpless %xmm0, %xmm1
andnps %xmm2, %xmm1
movl $0x2, %ebx
movaps %xmm1, 0x60(%rsp)
ucomiss 0x54583(%rip), %xmm1    # 0x65004
movaps (%rsp), %xmm2
jb 0x10adf
movss 0x54575(%rip), %xmm0    # 0x65004
movaps %xmm0, 0x60(%rsp)
jmp 0x10adf
movaps %xmm3, 0x10(%rsp)
callq 0x6a3c
xorps %xmm0, %xmm0
cvtsi2ssl 0x93d15(%rip), %xmm0 # 0xa47c0
movaps 0x70(%rsp), %xmm1
subss %xmm0, %xmm1
movaps 0x10(%rsp), %xmm0
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm1     # xmm1 = xmm1[2,0],xmm0[2,3]
movaps %xmm1, 0x40(%rsp)
cmpb $0x1, 0x93789(%rip)     # 0xa4255
jne 0x10cf4
movaps (%rsp), %xmm2
jmp 0x108c7
movaps (%rsp), %xmm2
movq %rbx, 0x88(%rsp)
cvttss2si 0x20(%rsp), %eax
cmpl $0xa, %eax
jl 0x10bed
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, 0x10(%rsp)
cltq
imulq $0x66666667, %rax, %r12 # imm = 0x66666667
movq %r12, %rax
shrq $0x3f, %rax
sarq $0x22, %r12
addl %eax, %r12d
xorl %r13d, %r13d
leaq 0x93757(%rip), %r14     # 0xa4290
cmpl $0xa, 0x10(%rsp)
jl 0x10be0
leal (,%r13,2), %eax
leal (%rax,%rax,4), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
addss 0x30(%rsp), %xmm0
cvttss2si %xmm0, %ebx
xorl %ebp, %ebp
xorl %r15d, %r15d
cmpb $0x0, 0x936e9(%rip)     # 0xa4255
jne 0x10b73
callq 0x6a3c
leal (%r15,%r13), %eax
xorl %ecx, %ecx
testb $0x1, %al
sete %cl
movl 0x504(%r14,%rcx,4), %edi
callq 0x4144d
movl %eax, %edi
movss 0x544b3(%rip), %xmm0    # 0x65048
callq 0x41122
movss 0x9288e(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0x10bd5
xorps %xmm0, %xmm0
cvtsi2ss %ebp, %xmm0
addss 0x70(%rsp), %xmm0
cvttss2si %xmm0, %esi
movl %ebx, %edi
movl $0xa, %edx
movl $0xa, %ecx
movl %eax, %r8d
callq 0x2e4dc
incl %r15d
addl $0xa, %ebp
cmpl %r15d, %r12d
jne 0x10b65
incl %r13d
cmpl (%rsp), %r13d
jne 0x10b39
movss 0x9283b(%rip), %xmm0    # 0xa3430
movl $0xff000000, %edi       # imm = 0xFF000000
callq 0x41122
movl %eax, %ebx
movss 0x92827(%rip), %xmm0    # 0xa3430
movl $0xff000000, %edi       # imm = 0xFF000000
callq 0x41122
movaps 0x30(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movl $0xffffff, %edi         # imm = 0xFFFFFF
movl $0xffffff, %esi         # imm = 0xFFFFFF
movl %ebx, %edx
movl %eax, %ecx
callq 0x2e863
movq 0x88(%rsp), %rax
leal (%rax,%rax,2), %eax
addl $0x138, %eax            # imm = 0x138
movslq %eax, %rbx
cmpb $0x0, 0x9360b(%rip)     # 0xa4255
jne 0x10c51
callq 0x6a3c
leaq 0x93638(%rip), %r14     # 0xa4290
movl (%r14,%rbx,4), %edi
callq 0x4144d
movss 0x927c7(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
movaps 0x30(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movl $0x1, %edi
movl %eax, %esi
xorl %edx, %edx
callq 0x7ee9
cmpb $0x0, 0x935c6(%rip)     # 0xa4255
jne 0x10c96
callq 0x6a3c
movl (%r14,%rbx,4), %edi
callq 0x4144d
movss 0x92789(%rip), %xmm0    # 0xa3430
movl %eax, %edi
callq 0x41122
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0x10cdd
movaps 0x40(%rsp), %xmm0
cvttss2si %xmm0, %edi
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
cvttss2si %xmm0, %esi
cvttss2si 0x50(%rsp), %edx
cvttss2si 0x90(%rsp), %ecx
movl %eax, %r8d
callq 0x2e4dc
movaps 0x60(%rsp), %xmm0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6a3c
xorps %xmm0, %xmm0
cvtsi2ssl 0x93ab8(%rip), %xmm0 # 0xa47bc
movaps %xmm0, 0x50(%rsp)
cmpb $0x0, 0x93545(%rip)     # 0xa4255
jne 0x10d17
callq 0x6a3c
movaps (%rsp), %xmm2
jmp 0x108d7