// File: /workspace/github_c_makefile_star2_O1/arkanis[P]process-map/./deps/raygui.h
// Function: GuiColorBarHue
float GuiColorBarHue(Rectangle bounds, float hue)
{
    GuiControlState state = guiState;
    Rectangle selector = { (float)bounds.x - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (float)bounds.y + hue/360.0f*bounds.height - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (float)bounds.width + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)*2, (float)GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_HEIGHT) };

    // 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.y = mousePoint.y - selector.height/2;

                hue = (mousePoint.y - bounds.y)*360/bounds.height;
                if (hue <= 0.0f) hue = 0.0f;
                if (hue >= 359.0f) hue = 359.0f;

            }
            else state = GUI_STATE_FOCUSED;

            /*if (IsKeyDown(KEY_UP))
            {
                hue -= 2.0f;
                if (hue <= 0.0f) hue = 0.0f;
            }
            else if (IsKeyDown(KEY_DOWN))
            {
                hue += 2.0f;
                if (hue >= 360.0f) hue = 360.0f;
            }*/
        }
    }
    //--------------------------------------------------------------------

    // Draw control
    //--------------------------------------------------------------------
    if (state != GUI_STATE_DISABLED)
    {
        // Draw hue bar:color bars
        DrawRectangleGradientV((int)bounds.x + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.y + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.width - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (int)bounds.height/6, Fade(RAYGUI_CLITERAL(Color){ 255,0,0,255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 255,255,0,255 }, guiAlpha));
        DrawRectangleGradientV((int)bounds.x + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.y + (int)bounds.height/6 + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.width - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (int)bounds.height/6, Fade(RAYGUI_CLITERAL(Color){ 255,255,0,255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 0,255,0,255 }, guiAlpha));
        DrawRectangleGradientV((int)bounds.x + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.y + 2*((int)bounds.height/6) + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.width - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (int)bounds.height/6, Fade(RAYGUI_CLITERAL(Color){ 0,255,0,255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 0,255,255,255 }, guiAlpha));
        DrawRectangleGradientV((int)bounds.x + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.y + 3*((int)bounds.height/6) + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.width - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (int)bounds.height/6, Fade(RAYGUI_CLITERAL(Color){ 0,255,255,255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 0,0,255,255 }, guiAlpha));
        DrawRectangleGradientV((int)bounds.x + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.y + 4*((int)bounds.height/6) + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.width - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (int)bounds.height/6, Fade(RAYGUI_CLITERAL(Color){ 0,0,255,255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 255,0,255,255 }, guiAlpha));
        DrawRectangleGradientV((int)bounds.x + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.y + 5*((int)bounds.height/6) + GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW)/2, (int)bounds.width - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), (int)bounds.height/6 - GuiGetStyle(COLORPICKER, HUEBAR_SELECTOR_OVERFLOW), Fade(RAYGUI_CLITERAL(Color){ 255,0,255,255 }, guiAlpha), Fade(RAYGUI_CLITERAL(Color){ 255,0,0,255 }, guiAlpha));
    }
    else DrawRectangleGradientV((int)bounds.x, (int)bounds.y, (int)bounds.width, (int)bounds.height, Fade(Fade(GetColor(GuiGetStyle(COLORPICKER, BASE_COLOR_DISABLED)), 0.1f), guiAlpha), Fade(GetColor(GuiGetStyle(COLORPICKER, BORDER_COLOR_DISABLED)), guiAlpha));

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

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

    return hue;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movaps %xmm2, 0x60(%rsp)
movaps %xmm1, 0x30(%rsp)
movaps %xmm0, 0x70(%rsp)
movl 0x97feb(%rip), %ebx     # 0xa7250
cmpb $0x0, 0x97fe9(%rip)     # 0xa7255
jne 0xf273
callq 0x6a18
xorps %xmm0, %xmm0
cvtsi2ssl 0x98542(%rip), %xmm0 # 0xa77c0
movaps 0x70(%rsp), %xmm1
movaps %xmm1, %xmm2
subss %xmm0, %xmm2
movaps %xmm2, 0x10(%rsp)
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
movaps 0x60(%rsp), %xmm2
divss 0x58db0(%rip), %xmm2    # 0x68050
movaps 0x30(%rsp), %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movaps %xmm0, 0x90(%rsp)
mulss %xmm0, %xmm2
movaps %xmm1, 0x40(%rsp)
addss %xmm1, %xmm2
cmpb $0x0, 0x97f90(%rip)     # 0xa7255
jne 0xf2d4
movaps %xmm2, (%rsp)
callq 0x6a18
movaps (%rsp), %xmm2
xorps %xmm0, %xmm0
cvtsi2ssl 0x984e1(%rip), %xmm0 # 0xa77c0
subss %xmm0, %xmm2
cmpb $0x0, 0x97f6b(%rip)     # 0xa7255
jne 0xf2f9
movaps %xmm2, (%rsp)
callq 0x6a18
movaps (%rsp), %xmm2
movl 0x984c1(%rip), %eax     # 0xa77c0
addl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
unpcklpd 0x10(%rsp), %xmm2       # xmm2 = xmm2[0],mem[0]
cmpb $0x0, 0x97f40(%rip)     # 0xa7255
jne 0xf32e
movaps %xmm0, 0x50(%rsp)
movaps %xmm2, (%rsp)
callq 0x6a18
movaps (%rsp), %xmm2
movaps 0x50(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsi2ssl 0x98483(%rip), %xmm1 # 0xa77bc
movaps %xmm1, 0x80(%rsp)
addss 0x30(%rsp), %xmm0
movaps %xmm0, 0x50(%rsp)
shufps $0xe2, 0x10(%rsp), %xmm2 # xmm2 = xmm2[2,0],mem[2,3]
movl $0x3, %r14d
cmpl $0x3, %ebx
jne 0xf367
movaps %xmm2, 0x20(%rsp)
jmp 0xf458
cmpb $0x0, 0x97ee6(%rip)     # 0xa7254
je 0xf37d
movaps %xmm2, 0x20(%rsp)
movl %ebx, %r14d
jmp 0xf458
movaps %xmm2, (%rsp)
callq 0x2867d
movaps %xmm0, 0x10(%rsp)
movaps 0x70(%rsp), %xmm1
movaps 0x30(%rsp), %xmm2
callq 0x34d6b
testb %al, %al
jne 0xf3c8
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 0x10(%rsp), %xmm0
movaps (%rsp), %xmm1
callq 0x34d6b
testb %al, %al
je 0xf9b3
xorl %edi, %edi
callq 0x286ba
movl $0x1, %r14d
testb %al, %al
je 0xf44f
movaps 0x10(%rsp), %xmm2
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
movss 0x58c32(%rip), %xmm0    # 0x6801c
mulss 0x80(%rsp), %xmm0
addss %xmm2, %xmm0
movaps (%rsp), %xmm1
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm0     # xmm0 = xmm0[2,0],xmm1[2,3]
movaps %xmm0, 0x20(%rsp)
subss 0x40(%rsp), %xmm2
mulss 0x58c3b(%rip), %xmm2    # 0x68050
divss 0x90(%rsp), %xmm2
xorps %xmm0, %xmm0
movaps %xmm2, %xmm1
cmpless %xmm0, %xmm1
andnps %xmm2, %xmm1
movl $0x2, %r14d
movaps %xmm1, 0x60(%rsp)
ucomiss 0x58c1a(%rip), %xmm1    # 0x68058
jb 0xf458
movss 0x58c10(%rip), %xmm0    # 0x68058
movaps %xmm0, 0x60(%rsp)
jmp 0xf458
movaps (%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
cvttss2si 0x70(%rsp), %eax
movl %eax, (%rsp)
cvttss2si 0x40(%rsp), %eax
movq %rax, 0x10(%rsp)
cvttss2si 0x30(%rsp), %ebp
cvttss2si 0x90(%rsp), %r15d
cmpl $0x3, %r14d
jne 0xf4f9
cmpb $0x0, 0x97dcc(%rip)     # 0xa7255
jne 0xf490
callq 0x6a18
movl 0x98302(%rip), %edi     # 0xa7798
callq 0x44152
movss 0x58b9d(%rip), %xmm0    # 0x68040
movl %eax, %edi
callq 0x43e1c
movss 0x96f7e(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movl %eax, %r12d
cmpb $0x0, 0x97d92(%rip)     # 0xa7255
jne 0xf4ca
callq 0x6a18
movl 0x982c4(%rip), %edi     # 0xa7794
callq 0x44152
movss 0x96f53(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movl (%rsp), %edi
movq 0x10(%rsp), %rsi
movl %ebp, %edx
movl %r15d, %ecx
movl %r12d, %r8d
jmp 0xf8e8
cmpb $0x0, 0x97d55(%rip)     # 0xa7255
jne 0xf507
callq 0x6a18
movl 0x982b3(%rip), %eax     # 0xa77c0
movl %eax, %r12d
shrl $0x1f, %r12d
addl %eax, %r12d
sarl %r12d
cmpb $0x0, 0x97d34(%rip)     # 0xa7255
jne 0xf528
callq 0x6a18
movq %r14, 0x40(%rsp)
addl (%rsp), %r12d
movl 0x98289(%rip), %eax     # 0xa77c0
movl %eax, %r13d
shrl $0x1f, %r13d
addl %eax, %r13d
sarl %r13d
addl 0x10(%rsp), %r13d
cmpb $0x0, 0x97d05(%rip)     # 0xa7255
jne 0xf557
callq 0x6a18
movl %ebp, %ebx
subl 0x98261(%rip), %ebx     # 0xa77c0
movslq %r15d, %rax
imulq $0x2aaaaaab, %rax, %r15 # imm = 0x2AAAAAAB
movq %r15, %rax
shrq $0x3f, %rax
shrq $0x20, %r15
addl %eax, %r15d
movss 0x96eb1(%rip), %xmm0    # 0xa6430
movl $0xff0000ff, %edi       # imm = 0xFF0000FF
callq 0x43e1c
movl %eax, %r14d
movss 0x96e9c(%rip), %xmm0    # 0xa6430
movl $0xff00ffff, %edi       # imm = 0xFF00FFFF
callq 0x43e1c
movl %r12d, %edi
movl %r13d, %esi
movl %ebx, %edx
movl %r15d, %ecx
movl %r14d, %r8d
movl %eax, %r9d
callq 0x31465
cmpb $0x0, 0x97c9a(%rip)     # 0xa7255
jne 0xf5c2
callq 0x6a18
movl 0x981f8(%rip), %eax     # 0xa77c0
movl %eax, %r12d
shrl $0x1f, %r12d
addl %eax, %r12d
sarl %r12d
movq 0x10(%rsp), %rax
leal (%r15,%rax), %r13d
cmpb $0x0, 0x97c70(%rip)     # 0xa7255
jne 0xf5ec
callq 0x6a18
addl (%rsp), %r12d
movl 0x981ca(%rip), %eax     # 0xa77c0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %ecx, %r13d
cmpb $0x0, 0x97c4c(%rip)     # 0xa7255
jne 0xf610
callq 0x6a18
movl %ebp, %ebx
subl 0x981a8(%rip), %ebx     # 0xa77c0
movss 0x96e10(%rip), %xmm0    # 0xa6430
movl $0xff00ffff, %edi       # imm = 0xFF00FFFF
callq 0x43e1c
movl %eax, %r14d
movss 0x96dfb(%rip), %xmm0    # 0xa6430
movl $0xff00ff00, %edi       # imm = 0xFF00FF00
callq 0x43e1c
movl %r12d, %edi
movl %r13d, %esi
movl %ebx, %edx
movl %r15d, %ecx
movl %r14d, %r8d
movl %eax, %r9d
callq 0x31465
cmpb $0x0, 0x97bf9(%rip)     # 0xa7255
jne 0xf663
callq 0x6a18
movl 0x98157(%rip), %eax     # 0xa77c0
movl %eax, %r12d
shrl $0x1f, %r12d
addl %eax, %r12d
sarl %r12d
movq 0x10(%rsp), %rax
leal (%rax,%r15,2), %r13d
cmpb $0x0, 0x97bcf(%rip)     # 0xa7255
jne 0xf68d
callq 0x6a18
addl (%rsp), %r12d
movl 0x98129(%rip), %eax     # 0xa77c0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %ecx, %r13d
cmpb $0x0, 0x97bab(%rip)     # 0xa7255
jne 0xf6b1
callq 0x6a18
movl %ebp, %ebx
subl 0x98107(%rip), %ebx     # 0xa77c0
movss 0x96d6f(%rip), %xmm0    # 0xa6430
movl $0xff00ff00, %edi       # imm = 0xFF00FF00
callq 0x43e1c
movl %eax, %r14d
movss 0x96d5a(%rip), %xmm0    # 0xa6430
movl $0xffffff00, %edi       # imm = 0xFFFFFF00
callq 0x43e1c
movl %r12d, %edi
movl %r13d, %esi
movl %ebx, %edx
movl %r15d, %ecx
movl %r14d, %r8d
movl %eax, %r9d
callq 0x31465
cmpb $0x0, 0x97b58(%rip)     # 0xa7255
jne 0xf704
callq 0x6a18
movl 0x980b6(%rip), %eax     # 0xa77c0
movl %eax, %r12d
shrl $0x1f, %r12d
addl %eax, %r12d
sarl %r12d
leal (%r15,%r15,2), %r13d
addl 0x10(%rsp), %r13d
cmpb $0x0, 0x97b2e(%rip)     # 0xa7255
jne 0xf72e
callq 0x6a18
addl (%rsp), %r12d
movl 0x98088(%rip), %eax     # 0xa77c0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %ecx, %r13d
cmpb $0x0, 0x97b0a(%rip)     # 0xa7255
jne 0xf752
callq 0x6a18
movl %ebp, %ebx
subl 0x98066(%rip), %ebx     # 0xa77c0
movss 0x96cce(%rip), %xmm0    # 0xa6430
movl $0xffffff00, %edi       # imm = 0xFFFFFF00
callq 0x43e1c
movl %eax, %r14d
movss 0x96cb9(%rip), %xmm0    # 0xa6430
movl $0xffff0000, %edi       # imm = 0xFFFF0000
callq 0x43e1c
movl %r12d, %edi
movl %r13d, %esi
movl %ebx, %edx
movl %r15d, %ecx
movl %r14d, %r8d
movl %eax, %r9d
callq 0x31465
cmpb $0x0, 0x97ab7(%rip)     # 0xa7255
jne 0xf7a5
callq 0x6a18
movl 0x98015(%rip), %eax     # 0xa77c0
movl %eax, %r12d
shrl $0x1f, %r12d
addl %eax, %r12d
sarl %r12d
movq 0x10(%rsp), %rax
leal (%rax,%r15,4), %r13d
cmpb $0x0, 0x97a8d(%rip)     # 0xa7255
jne 0xf7cf
callq 0x6a18
addl (%rsp), %r12d
movl 0x97fe7(%rip), %eax     # 0xa77c0
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %ecx, %r13d
cmpb $0x0, 0x97a69(%rip)     # 0xa7255
jne 0xf7f3
callq 0x6a18
movl %ebp, %ebx
subl 0x97fc5(%rip), %ebx     # 0xa77c0
movss 0x96c2d(%rip), %xmm0    # 0xa6430
movl $0xffff0000, %edi       # imm = 0xFFFF0000
callq 0x43e1c
movl %eax, %r14d
movss 0x96c18(%rip), %xmm0    # 0xa6430
movl $0xffff00ff, %edi       # imm = 0xFFFF00FF
callq 0x43e1c
movl %r12d, %edi
movl %r13d, %esi
movl %ebx, %edx
movl %r15d, %ecx
movl %r14d, %r8d
movl %eax, %r9d
callq 0x31465
cmpb $0x0, 0x97a16(%rip)     # 0xa7255
jne 0xf846
callq 0x6a18
movl 0x97f74(%rip), %eax     # 0xa77c0
movl %eax, %r12d
shrl $0x1f, %r12d
addl %eax, %r12d
leal (%r15,%r15,4), %r13d
cmpb $0x0, 0x979f4(%rip)     # 0xa7255
movq 0x40(%rsp), %r14
jne 0xf86d
callq 0x6a18
sarl %r12d
addl 0x10(%rsp), %r13d
movl 0x97f45(%rip), %eax     # 0xa77c0
movl %eax, %ebx
shrl $0x1f, %ebx
addl %eax, %ebx
sarl %ebx
cmpb $0x0, 0x979ca(%rip)     # 0xa7255
jne 0xf892
callq 0x6a18
addl (%rsp), %r12d
addl %ebx, %r13d
subl 0x97f21(%rip), %ebp     # 0xa77c0
cmpb $0x0, 0x979af(%rip)     # 0xa7255
jne 0xf8ad
callq 0x6a18
subl 0x97f0c(%rip), %r15d    # 0xa77c0
movss 0x96b74(%rip), %xmm0    # 0xa6430
movl $0xffff00ff, %edi       # imm = 0xFFFF00FF
callq 0x43e1c
movl %eax, %ebx
movss 0x96b60(%rip), %xmm0    # 0xa6430
movl $0xff0000ff, %edi       # imm = 0xFF0000FF
callq 0x43e1c
movl %r12d, %edi
movl %r13d, %esi
movl %ebp, %edx
movl %r15d, %ecx
movl %ebx, %r8d
movl %eax, %r9d
callq 0x31465
leal (%r14,%r14,2), %ebx
cmpb $0x0, 0x9795a(%rip)     # 0xa7255
jne 0xf902
callq 0x6a18
movslq %ebx, %rbx
leaq 0x97984(%rip), %r14     # 0xa7290
movl 0x4e0(%r14,%rbx,4), %edi
addq $0x138, %rbx            # imm = 0x138
callq 0x44152
movss 0x96b08(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
movaps 0x70(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movl $0x1, %edi
movl %eax, %esi
xorl %edx, %edx
callq 0x7546
cmpb $0x0, 0x97907(%rip)     # 0xa7255
jne 0xf955
callq 0x6a18
movl (%r14,%rbx,4), %edi
callq 0x44152
movss 0x96aca(%rip), %xmm0    # 0xa6430
movl %eax, %edi
callq 0x43e1c
cmpl $0x1000000, %eax        # imm = 0x1000000
jb 0xf99c
movaps 0x20(%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
movaps (%rsp), %xmm0
movaps %xmm0, 0x20(%rsp)
jmp 0xf375