// File: /workspace/github_c_makefile_star2_O0/arkanis[P]process-map/./deps/raygui.h
// Function: GuiColorPicker
Color GuiColorPicker(Rectangle bounds, Color color)
{
    color = GuiColorPanel(bounds, color);

    Rectangle boundsHue = { (float)bounds.x + bounds.width + GuiGetStyle(COLORPICKER, HUEBAR_PADDING), (float)bounds.y, (float)GuiGetStyle(COLORPICKER, HUEBAR_WIDTH), (float)bounds.height };
    //Rectangle boundsAlpha = { bounds.x, bounds.y + bounds.height + GuiGetStyle(COLORPICKER, BARS_PADDING), bounds.width, GuiGetStyle(COLORPICKER, BARS_THICK) };

    Vector3 hsv = ConvertRGBtoHSV(RAYGUI_CLITERAL(Vector3){ color.r/255.0f, color.g/255.0f, color.b/255.0f });
    hsv.x = GuiColorBarHue(boundsHue, hsv.x);
    //color.a = (unsigned char)(GuiColorBarAlpha(boundsAlpha, (float)color.a/255.0f)*255.0f);
    Vector3 rgb = ConvertHSVtoRGB(hsv);
    color = RAYGUI_CLITERAL(Color){ (unsigned char)roundf(rgb.x*255.0f), (unsigned char)roundf(rgb.y*255.0f), (unsigned char)roundf(rgb.z*255.0f), color.a };

    return color;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movlpd %xmm0, -0x14(%rbp)
movlpd %xmm1, -0xc(%rbp)
movl %edi, -0x18(%rbp)
movsd -0x14(%rbp), %xmm0
movsd -0xc(%rbp), %xmm1
movl -0x18(%rbp), %edi
callq 0x103e0
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x18(%rbp)
movss -0x14(%rbp), %xmm0
movss -0xc(%rbp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0xa8(%rbp)
movl $0xd, %edi
movl %edi, -0xa4(%rbp)
movl $0x12, %esi
callq 0x6f90
movss -0xa8(%rbp), %xmm0
movl -0xa4(%rbp), %edi
cvtsi2ss %eax, %xmm1
addss %xmm1, %xmm0
movss %xmm0, -0x2c(%rbp)
movss -0x10(%rbp), %xmm0
movss %xmm0, -0x28(%rbp)
movl $0x11, %esi
callq 0x6f90
cvtsi2ss %eax, %xmm0
movss %xmm0, -0x24(%rbp)
movss -0x8(%rbp), %xmm0
movss %xmm0, -0x20(%rbp)
movzbl -0x18(%rbp), %eax
cvtsi2ss %eax, %xmm0
movss 0x7aaa0(%rip), %xmm1    # 0x8c030
movss %xmm1, -0xa0(%rbp)
divss %xmm1, %xmm0
movss %xmm0, -0x44(%rbp)
movzbl -0x17(%rbp), %eax
cvtsi2ss %eax, %xmm0
divss %xmm1, %xmm0
movss %xmm0, -0x40(%rbp)
movzbl -0x16(%rbp), %eax
cvtsi2ss %eax, %xmm0
divss %xmm1, %xmm0
movss %xmm0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x50(%rbp)
movq -0x44(%rbp), %rax
movq %rax, -0x58(%rbp)
movsd -0x58(%rbp), %xmm0
movss -0x50(%rbp), %xmm1
callq 0xff50
movss %xmm1, -0x60(%rbp)
movlpd %xmm0, -0x68(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x30(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x38(%rbp)
movss -0x38(%rbp), %xmm2
movsd -0x2c(%rbp), %xmm0
movsd -0x24(%rbp), %xmm1
callq 0x109f0
movss %xmm0, -0x38(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x80(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x88(%rbp)
movsd -0x88(%rbp), %xmm0
movss -0x80(%rbp), %xmm1
callq 0x10180
movaps %xmm1, %xmm2
movss -0xa0(%rbp), %xmm1
movss %xmm2, -0x90(%rbp)
movlpd %xmm0, -0x98(%rbp)
movl -0x90(%rbp), %eax
movl %eax, -0x70(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x78(%rbp)
movss -0x78(%rbp), %xmm0
mulss %xmm1, %xmm0
callq 0x60b0
movss -0xa0(%rbp), %xmm1
cvttss2si %xmm0, %eax
movb %al, -0x9c(%rbp)
movss -0x74(%rbp), %xmm0
mulss %xmm1, %xmm0
callq 0x60b0
movss -0xa0(%rbp), %xmm1
cvttss2si %xmm0, %eax
movb %al, -0x9b(%rbp)
movss -0x70(%rbp), %xmm0
mulss %xmm1, %xmm0
callq 0x60b0
cvttss2si %xmm0, %eax
movb %al, -0x9a(%rbp)
movb -0x15(%rbp), %al
movb %al, -0x99(%rbp)
movl -0x9c(%rbp), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
nop