// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_do_color_picker
NK_LIB nk_bool
nk_do_color_picker(nk_flags *state,
    struct nk_command_buffer *out, struct nk_colorf *col,
    enum nk_color_format fmt, struct nk_rect bounds,
    struct nk_vec2 padding, const struct nk_input *in,
    const struct nk_user_font *font)
{
    int ret = 0;
    struct nk_rect matrix;
    struct nk_rect hue_bar;
    struct nk_rect alpha_bar;
    float bar_w;

    NK_ASSERT(out);
    NK_ASSERT(col);
    NK_ASSERT(state);
    NK_ASSERT(font);
    if (!out || !col || !state || !font)
        return ret;

    bar_w = font->height;
    bounds.x += padding.x;
    bounds.y += padding.x;
    bounds.w -= 2 * padding.x;
    bounds.h -= 2 * padding.y;

    matrix.x = bounds.x;
    matrix.y = bounds.y;
    matrix.h = bounds.h;
    matrix.w = bounds.w - (3 * padding.x + 2 * bar_w);

    hue_bar.w = bar_w;
    hue_bar.y = bounds.y;
    hue_bar.h = matrix.h;
    hue_bar.x = matrix.x + matrix.w + padding.x;

    alpha_bar.x = hue_bar.x + hue_bar.w + padding.x;
    alpha_bar.y = bounds.y;
    alpha_bar.w = bar_w;
    alpha_bar.h = matrix.h;

    ret = nk_color_picker_behavior(state, &bounds, &matrix, &hue_bar,
        (fmt == NK_RGBA) ? &alpha_bar:0, col, in);
    nk_draw_color_picker(out, &matrix, &hue_bar, (fmt == NK_RGBA) ? &alpha_bar:0, *col);
    return ret;
}

// Assembly:
subq $0xb8, %rsp
movlpd %xmm0, 0xa4(%rsp)
movlpd %xmm1, 0xac(%rsp)
movlpd %xmm2, 0x9c(%rsp)
movq %rdi, 0x90(%rsp)
movq %rsi, 0x88(%rsp)
movq %rdx, 0x80(%rsp)
movl %ecx, 0x7c(%rsp)
movq %r8, 0x70(%rsp)
movq %r9, 0x68(%rsp)
movl $0x0, 0x64(%rsp)
cmpq $0x0, 0x88(%rsp)
jne 0x7735e
movq 0x4dcbe(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x3a064(%rip), %rsi     # 0xb13a0
leaq 0x3a07b(%rip), %rdx     # 0xb13be
movl $0x7179, %ecx           # imm = 0x7179
movb $0x0, %al
callq 0x13ec0
movq 0x4dc9a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x77360
jmp 0x77362
cmpq $0x0, 0x80(%rsp)
jne 0x773a0
movq 0x4dc7c(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x3a022(%rip), %rsi     # 0xb13a0
leaq 0x3a039(%rip), %rdx     # 0xb13be
movl $0x717a, %ecx           # imm = 0x717A
movb $0x0, %al
callq 0x13ec0
movq 0x4dc58(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x773a2
jmp 0x773a4
cmpq $0x0, 0x90(%rsp)
jne 0x773e2
movq 0x4dc3a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x39fe0(%rip), %rsi     # 0xb13a0
leaq 0x39ff7(%rip), %rdx     # 0xb13be
movl $0x717b, %ecx           # imm = 0x717B
movb $0x0, %al
callq 0x13ec0
movq 0x4dc16(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x773e4
jmp 0x773e6
cmpq $0x0, 0x68(%rsp)
jne 0x77421
movq 0x4dbfb(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x39fa1(%rip), %rsi     # 0xb13a0
leaq 0x39fb8(%rip), %rdx     # 0xb13be
movl $0x717c, %ecx           # imm = 0x717C
movb $0x0, %al
callq 0x13ec0
movq 0x4dbd7(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x77423
cmpq $0x0, 0x88(%rsp)
je 0x7744c
cmpq $0x0, 0x80(%rsp)
je 0x7744c
cmpq $0x0, 0x90(%rsp)
je 0x7744c
cmpq $0x0, 0x68(%rsp)
jne 0x7745c
movl 0x64(%rsp), %eax
movl %eax, 0xb4(%rsp)
jmp 0x77690
movq 0x68(%rsp), %rax
movss 0x8(%rax), %xmm0
movss %xmm0, 0x30(%rsp)
movss 0x9c(%rsp), %xmm0
addss 0xa4(%rsp), %xmm0
movss %xmm0, 0xa4(%rsp)
movss 0x9c(%rsp), %xmm0
addss 0xa8(%rsp), %xmm0
movss %xmm0, 0xa8(%rsp)
movss 0x9c(%rsp), %xmm1
movss 0xac(%rsp), %xmm0
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0xac(%rsp)
movss 0xa0(%rsp), %xmm1
movss 0xb0(%rsp), %xmm0
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0xb0(%rsp)
movss 0xa4(%rsp), %xmm0
movss %xmm0, 0x54(%rsp)
movss 0xa8(%rsp), %xmm0
movss %xmm0, 0x58(%rsp)
movss 0xb0(%rsp), %xmm0
movss %xmm0, 0x60(%rsp)
movss 0xac(%rsp), %xmm0
movss 0x9c(%rsp), %xmm1
movss 0x35fb5(%rip), %xmm2    # 0xad4e4
mulss 0x30(%rsp), %xmm2
movss 0x35fe7(%rip), %xmm3    # 0xad524
mulss %xmm3, %xmm1
addss %xmm2, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x5c(%rsp)
movss 0x30(%rsp), %xmm0
movss %xmm0, 0x4c(%rsp)
movss 0xa8(%rsp), %xmm0
movss %xmm0, 0x48(%rsp)
movss 0x60(%rsp), %xmm0
movss %xmm0, 0x50(%rsp)
movss 0x54(%rsp), %xmm0
addss 0x5c(%rsp), %xmm0
addss 0x9c(%rsp), %xmm0
movss %xmm0, 0x44(%rsp)
movss 0x44(%rsp), %xmm0
addss 0x4c(%rsp), %xmm0
addss 0x9c(%rsp), %xmm0
movss %xmm0, 0x34(%rsp)
movss 0xa8(%rsp), %xmm0
movss %xmm0, 0x38(%rsp)
movss 0x30(%rsp), %xmm0
movss %xmm0, 0x3c(%rsp)
movss 0x60(%rsp), %xmm0
movss %xmm0, 0x40(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpl $0x1, 0x7c(%rsp)
jne 0x775f3
leaq 0x34(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x775fc
xorl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x775fc
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %r8
movq 0x80(%rsp), %r9
movq 0x70(%rsp), %rax
leaq 0xa4(%rsp), %rsi
leaq 0x54(%rsp), %rdx
leaq 0x44(%rsp), %rcx
movq %rax, (%rsp)
callq 0x90d10
movl %eax, 0x64(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x18(%rsp)
cmpl $0x1, 0x7c(%rsp)
jne 0x77652
leaq 0x34(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x7765b
xorl %eax, %eax
movq %rax, 0x10(%rsp)
jmp 0x7765b
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rcx
movq 0x80(%rsp), %rax
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
leaq 0x54(%rsp), %rsi
leaq 0x44(%rsp), %rdx
callq 0x91610
movl 0x64(%rsp), %eax
movl %eax, 0xb4(%rsp)
movl 0xb4(%rsp), %eax
addq $0xb8, %rsp
retq
nop