// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_color_pick
NK_API nk_bool
nk_color_pick(struct nk_context * ctx, struct nk_colorf *color,
    enum nk_color_format fmt)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_style *config;
    const struct nk_input *in;

    enum nk_widget_layout_states state;
    struct nk_rect bounds;

    NK_ASSERT(ctx);
    NK_ASSERT(color);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout || !color)
        return 0;

    win = ctx->current;
    config = &ctx->style;
    layout = win->layout;
    state = nk_widget(&bounds, ctx);
    if (!state) return 0;
    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    return nk_do_color_picker(&ctx->last_widget_state, &win->buffer, color, fmt, bounds,
                nk_vec2(0,0), in, config->font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movl %edx, %r13d
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
jne 0x4bcf3
movq 0x39322(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1e034(%rip), %rsi     # 0x69d0c
leaq 0x1e04b(%rip), %rdx     # 0x69d2a
movl $0x71a6, %ecx           # imm = 0x71A6
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
testq %r14, %r14
jne 0x4bd24
movq 0x392f1(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1e003(%rip), %rsi     # 0x69d0c
leaq 0x1e01a(%rip), %rdx     # 0x69d2a
movl $0x71a7, %ecx           # imm = 0x71A7
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x4780(%r15), %rbx
testq %rbx, %rbx
jne 0x4bd63
movq 0x392b9(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1dfcb(%rip), %rsi     # 0x69d0c
leaq 0x1dfe2(%rip), %rdx     # 0x69d2a
movl $0x71a8, %ecx           # imm = 0x71A8
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x4780(%r15), %rbx
cmpq $0x0, 0xa8(%rbx)
jne 0x4bdac
movq 0x3927c(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1df8e(%rip), %rsi     # 0x69d0c
leaq 0x1dfa5(%rip), %rdx     # 0x69d2a
xorl %r12d, %r12d
movl $0x71a9, %ecx           # imm = 0x71A9
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x4780(%r15), %rbx
testq %rbx, %rbx
je 0x4c4dd
xorl %r12d, %r12d
testq %r14, %r14
je 0x4c4dd
movq 0xa8(%rbx), %rbp
testq %rbp, %rbp
je 0x4c4dd
leaq 0xd0(%rsp), %rdi
movq %r15, %rsi
callq 0x12990
movl %eax, %r12d
testl %eax, %eax
je 0x4c4dd
movl %r13d, 0x60(%rsp)
xorl %r13d, %r13d
cmpl $0x1, %r12d
jne 0x4bdf9
testb $0x10, 0x5(%rbp)
cmoveq %r15, %r13
movq 0x168(%r15), %rax
testq %rax, %rax
je 0x4bf38
addq $0x2598, %r15           # imm = 0x2598
movsd 0xd0(%rsp), %xmm0
movsd 0xd8(%rsp), %xmm3
movaps %xmm3, %xmm1
shufps $0x55, %xmm3, %xmm1     # xmm1 = xmm1[1,1],xmm3[1,1]
movaps %xmm1, 0x10(%rsp)
movss 0x8(%rax), %xmm2
xorps %xmm4, %xmm4
addps %xmm0, %xmm4
movaps %xmm2, %xmm0
addss %xmm2, %xmm0
xorps %xmm1, %xmm1
addss %xmm1, %xmm0
movaps %xmm3, %xmm1
subss %xmm0, %xmm1
movaps %xmm3, %xmm5
subss %xmm0, %xmm5
movaps %xmm5, 0xa0(%rsp)
movaps %xmm3, 0x40(%rsp)
movaps %xmm3, %xmm0
movaps %xmm2, 0x90(%rsp)
movss %xmm2, %xmm0            # xmm0 = xmm2[0],xmm0[1,2,3]
movaps %xmm0, 0x70(%rsp)
movaps %xmm4, (%rsp)
movaps %xmm4, %xmm0
addss %xmm1, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm4, %xmm0
movaps %xmm1, 0xc0(%rsp)
addss %xmm1, %xmm0
movaps %xmm0, 0x50(%rsp)
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
leaq 0x20(%rsp), %rdi
callq 0x13f40
pushq $0x1
popq %rbp
movq %r15, %rdi
movaps (%rsp), %xmm0
movaps 0xa0(%rsp), %xmm1
movq %r13, %rsi
movl %ebp, %edx
callq 0x4c99d
movaps (%rsp), %xmm2
testl %eax, %eax
je 0x4bf6c
movaps 0x40(%rsp), %xmm1
movaps 0xc0(%rsp), %xmm0
movss %xmm0, %xmm1            # xmm1 = xmm0[0],xmm1[1,2,3]
addps 0x1a891(%rip), %xmm1    # 0x66780
movsd 0x144(%r13), %xmm0
subps %xmm2, %xmm0
divps %xmm1, %xmm0
movaps %xmm0, %xmm1
shufps $0x11, %xmm0, %xmm1     # xmm1 = xmm1[1,0],xmm0[1,0]
movaps 0x1a8e4(%rip), %xmm2    # 0x667f0
cmpltps %xmm1, %xmm2
movmskps %xmm2, %eax
movss 0x1a919(%rip), %xmm1    # 0x66834
movaps %xmm1, %xmm3
testb $0x1, %al
jne 0x4bf25
xorps %xmm3, %xmm3
movaps %xmm1, %xmm2
testb $0x4, %al
jne 0x4bf2f
movaps %xmm3, %xmm2
testb $0x1, %al
jne 0x4bf70
movaps %xmm2, %xmm3
jmp 0x4bf77
movq 0x390b1(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1ddc3(%rip), %rsi     # 0x69d0c
leaq 0x1ddda(%rip), %rdx     # 0x69d2a
xorl %r12d, %r12d
movl $0x717c, %ecx           # imm = 0x717C
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
jmp 0x4c4dd
xorl %ebp, %ebp
jmp 0x4bfa6
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
testb $0x4, %al
jne 0x4bf7e
movaps %xmm3, %xmm2
movaps %xmm1, %xmm3
testb $0xa, %al
jne 0x4bf88
xorps %xmm3, %xmm3
testb $0x2, %al
jne 0x4bf8f
movaps %xmm3, %xmm0
testb $0x8, %al
jne 0x4bf96
movaps %xmm0, %xmm3
movss %xmm3, 0x24(%rsp)
subss %xmm2, %xmm1
movss %xmm1, 0x28(%rsp)
movaps 0x90(%rsp), %xmm0
addss 0x30(%rsp), %xmm0
movaps %xmm0, 0x80(%rsp)
pushq $0x1
popq %r12
movq %r15, %rdi
movaps 0x50(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movq %r13, %rsi
movl %r12d, %edx
callq 0x4c99d
movaps (%rsp), %xmm5
movaps %xmm5, %xmm6
shufps $0x55, %xmm5, %xmm6     # xmm6 = xmm6[1,1],xmm5[1,1]
testl %eax, %eax
je 0x4c049
movss 0x148(%r13), %xmm0
subss %xmm6, %xmm0
movss 0x1a848(%rip), %xmm1    # 0x66844
addss 0x10(%rsp), %xmm1
divss %xmm1, %xmm0
xorps %xmm3, %xmm3
ucomiss %xmm3, %xmm0
movss 0x1a820(%rip), %xmm2    # 0x66834
movaps %xmm2, %xmm1
cmpltss %xmm0, %xmm1
cmpltss %xmm0, %xmm3
andps %xmm2, %xmm3
movaps %xmm1, %xmm4
andnps %xmm3, %xmm4
andps %xmm2, %xmm1
orps %xmm4, %xmm1
movaps %xmm0, %xmm3
ja 0x4c038
movaps %xmm1, %xmm3
ucomiss %xmm2, %xmm0
ja 0x4c040
movaps %xmm3, %xmm1
movss %xmm1, 0x20(%rsp)
movl %r12d, %ebp
movaps %xmm6, 0x50(%rsp)
movaps %xmm5, %xmm1
movaps 0x80(%rsp), %xmm0
movss %xmm0, %xmm1            # xmm1 = xmm0[0],xmm1[1,2,3]
movaps %xmm1, 0xb0(%rsp)
movl %ebp, %r12d
cmpl $0x1, 0x60(%rsp)
jne 0x4c102
pushq $0x1
popq %rdx
movq %r15, %rdi
movaps 0xb0(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movq %r13, %rsi
callq 0x4c99d
movaps (%rsp), %xmm5
movl %ebp, %r12d
testl %eax, %eax
je 0x4c102
movss 0x148(%r13), %xmm0
subss 0x50(%rsp), %xmm0
movss 0x1a794(%rip), %xmm1    # 0x66844
addss 0x10(%rsp), %xmm1
divss %xmm1, %xmm0
xorps %xmm3, %xmm3
ucomiss %xmm3, %xmm0
movss 0x1a76c(%rip), %xmm1    # 0x66834
movaps %xmm1, %xmm2
cmpltss %xmm0, %xmm2
cmpltss %xmm0, %xmm3
andps %xmm1, %xmm3
movaps %xmm2, %xmm4
andnps %xmm3, %xmm4
andps %xmm1, %xmm2
orps %xmm4, %xmm2
movaps %xmm0, %xmm3
ja 0x4c0ec
movaps %xmm2, %xmm3
ucomiss %xmm1, %xmm0
ja 0x4c0f4
movaps %xmm3, %xmm2
subss %xmm2, %xmm1
movss %xmm1, 0x2c(%rsp)
pushq $0x1
popq %r12
movl %ebp, %eax
movl (%r15), %ebp
andl $0x2, %ebp
orl $0x4, %ebp
movl %ebp, (%r15)
testl %eax, %eax
je 0x4c133
pushq $0x22
popq %rbp
leaq 0x20(%rsp), %rdi
callq 0x142a0
movaps (%rsp), %xmm5
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, (%r14)
movl $0x22, (%r15)
testl %r12d, %r12d
je 0x4c14e
movss 0x2c(%rsp), %xmm0
movss %xmm0, 0xc(%r14)
movl $0x22, (%r15)
pushq $0x22
popq %rbp
movq %r13, %rdi
movaps %xmm5, %xmm0
movaps 0x40(%rsp), %xmm1
callq 0x143d0
testl %eax, %eax
je 0x4c16e
movl $0x12, (%r15)
pushq $0x12
popq %rbp
jmp 0x4c174
testb $0x10, %bpl
je 0x4c189
movq %r13, %rdi
movaps (%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
callq 0x13d20
testl %eax, %eax
je 0x4c1a8
movq %r13, %rdi
movaps (%rsp), %xmm0
movaps 0x40(%rsp), %xmm1
callq 0x13d20
testl %eax, %eax
movl 0x60(%rsp), %r13d
je 0x4c1b3
orl $0x40, %ebp
jmp 0x4c1b0
orl $0x8, %ebp
movl 0x60(%rsp), %r13d
movl %ebp, (%r15)
addq $0x68, %rbx
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
leaq 0x20(%rsp), %rdi
movaps %xmm1, 0xe0(%rsp)
callq 0x13f40
movaps 0x10(%rsp), %xmm1
movaps %xmm1, %xmm0
divss 0x1a668(%rip), %xmm0    # 0x6684c
movss 0x1a644(%rip), %xmm2    # 0x66830
movss %xmm0, 0x40(%rsp)
addss %xmm0, %xmm2
movaps 0x90(%rsp), %xmm0
movlhps %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
shufps $0xe2, %xmm0, %xmm2     # xmm2 = xmm2[2,0],xmm0[2,3]
movaps %xmm2, 0x60(%rsp)
xorl %eax, %eax
leaq 0x1dadd(%rip), %r14     # 0x69cf0
cmpq $0x6, %rax
movaps 0x50(%rsp), %xmm5
je 0x4c269
cvtsi2ss %eax, %xmm0
mulss 0x40(%rsp), %xmm0
addss %xmm5, %xmm0
addss 0x1a5fc(%rip), %xmm0    # 0x66830
leaq 0x1(%rax), %r15
movl (%r14,%rax,4), %edx
movl 0x4(%r14,%rax,4), %ecx
movaps 0x30(%rsp), %xmm1
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
shufps $0xe2, %xmm1, %xmm0     # xmm0 = xmm0[2,0],xmm1[2,3]
movq %rbx, %rdi
movaps 0x60(%rsp), %xmm1
movl %edx, %esi
movl %ecx, %r8d
callq 0x13850
movaps 0x10(%rsp), %xmm1
movq %r15, %rax
jmp 0x4c213
movss 0x20(%rsp), %xmm0
movss %xmm0, 0x40(%rsp)
mulss %xmm1, %xmm0
addss %xmm5, %xmm0
addss 0x1a5ab(%rip), %xmm0    # 0x66830
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm1
movaps 0x30(%rsp), %xmm0
addss 0x1a5ab(%rip), %xmm0    # 0x66844
movss 0x1a5f7(%rip), %xmm2    # 0x66898
addss 0x80(%rsp), %xmm2
movss 0x1a582(%rip), %xmm4    # 0x66834
pushq $-0x1
popq %rsi
movq %rbx, %rdi
movaps %xmm1, %xmm3
callq 0x12930
cmpl $0x1, %r13d
jne 0x4c378
movaps 0xe0(%rsp), %xmm1
shufps $0x55, %xmm1, %xmm1     # xmm1 = xmm1[1,1,1,1]
movss 0x1a556(%rip), %xmm2    # 0x66834
movaps %xmm2, %xmm0
minss %xmm1, %xmm0
xorps %xmm1, %xmm1
maxss %xmm1, %xmm0
movaps %xmm2, %xmm1
subss %xmm0, %xmm1
mulss 0x10(%rsp), %xmm1
addss 0x50(%rsp), %xmm1
addss 0x1a529(%rip), %xmm1    # 0x66830
cvttps2dq %xmm1, %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
pushq $-0x1
popq %rbp
movq %rbx, %rdi
movaps 0xb0(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movl %ebp, %esi
movl %ebp, %edx
movl $0xff000000, %ecx       # imm = 0xFF000000
movl $0xff000000, %r8d       # imm = 0xFF000000
callq 0x13850
movaps 0x90(%rsp), %xmm2
movaps 0x80(%rsp), %xmm0
addss %xmm0, %xmm2
addss 0x1a4ee(%rip), %xmm0    # 0x66844
addss 0x1a53a(%rip), %xmm2    # 0x66898
movq %rbx, %rdi
movaps 0x30(%rsp), %xmm1
movaps %xmm1, %xmm3
movss 0x1a4c3(%rip), %xmm4    # 0x66834
movl %ebp, %esi
callq 0x12930
movss 0x40(%rsp), %xmm0
movss 0x1a4ae(%rip), %xmm1    # 0x66834
movaps %xmm1, %xmm2
callq 0x12540
pushq $-0x1
popq %rbp
movq %rbx, %rdi
movaps (%rsp), %xmm0
movaps 0xa0(%rsp), %xmm1
movl %ebp, %esi
movl %eax, %edx
movl %eax, %ecx
movl %ebp, %r8d
callq 0x13850
movq %rbx, %rdi
movaps (%rsp), %xmm0
movaps 0xa0(%rsp), %xmm1
xorl %esi, %esi
xorl %edx, %edx
movl $0xff000000, %ecx       # imm = 0xFF000000
movl $0xff000000, %r8d       # imm = 0xFF000000
callq 0x13850
movaps 0xc0(%rsp), %xmm0
mulss 0x24(%rsp), %xmm0
addss (%rsp), %xmm0
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm2
movaps %xmm2, 0x30(%rsp)
movss 0x1a43c(%rip), %xmm4    # 0x66834
movaps %xmm4, %xmm0
subss 0x28(%rsp), %xmm0
mulss 0x10(%rsp), %xmm0
addss 0x50(%rsp), %xmm0
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm1
movaps %xmm1, 0x10(%rsp)
movaps %xmm2, %xmm0
addss 0x1a4ac(%rip), %xmm0    # 0x668d0
addss 0x1a468(%rip), %xmm2    # 0x66894
movq %rbx, %rdi
movaps %xmm1, %xmm3
movl %ebp, %esi
callq 0x12930
movaps 0x30(%rsp), %xmm2
movaps %xmm2, %xmm0
addss 0x1a48b(%rip), %xmm0    # 0x668d4
movss 0x1a3e3(%rip), %xmm4    # 0x66834
addss %xmm4, %xmm0
addss 0x1a417(%rip), %xmm2    # 0x66874
movq %rbx, %rdi
movaps 0x10(%rsp), %xmm1
movaps %xmm1, %xmm3
movl %ebp, %esi
callq 0x12930
movss 0x1a45d(%rip), %xmm1    # 0x668d4
movaps 0x10(%rsp), %xmm0
addss %xmm0, %xmm1
movss 0x1a3ac(%rip), %xmm4    # 0x66834
addss %xmm4, %xmm1
movss 0x1a3e0(%rip), %xmm3    # 0x66874
addss %xmm0, %xmm3
movq %rbx, %rdi
movaps 0x30(%rsp), %xmm0
movaps %xmm0, %xmm2
movl %ebp, %esi
callq 0x12930
movaps 0x10(%rsp), %xmm3
movss 0x1a419(%rip), %xmm1    # 0x668d0
addss %xmm3, %xmm1
addss 0x1a3d1(%rip), %xmm3    # 0x66894
movq %rbx, %rdi
movaps 0x30(%rsp), %xmm0
movaps %xmm0, %xmm2
movss 0x1a35e(%rip), %xmm4    # 0x66834
movl %ebp, %esi
callq 0x12930
movl %r12d, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq