// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movl %edx, 0x6c(%rsp)
cmpq $0x0, 0x78(%rsp)
jne 0x77090
movq 0x4df8c(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x3a332(%rip), %rsi     # 0xb13a0
leaq 0x3a349(%rip), %rdx     # 0xb13be
movl $0x71a6, %ecx           # imm = 0x71A6
movb $0x0, %al
callq 0x13ec0
movq 0x4df68(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x77092
jmp 0x77094
cmpq $0x0, 0x70(%rsp)
jne 0x770cf
movq 0x4df4d(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x3a2f3(%rip), %rsi     # 0xb13a0
leaq 0x3a30a(%rip), %rdx     # 0xb13be
movl $0x71a7, %ecx           # imm = 0x71A7
movb $0x0, %al
callq 0x13ec0
movq 0x4df29(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x770d1
jmp 0x770d3
movq 0x78(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x77115
movq 0x4df07(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x3a2ad(%rip), %rsi     # 0xb13a0
leaq 0x3a2c4(%rip), %rdx     # 0xb13be
movl $0x71a8, %ecx           # imm = 0x71A8
movb $0x0, %al
callq 0x13ec0
movq 0x4dee3(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x77117
jmp 0x77119
movq 0x78(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x77162
movq 0x4deba(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x3a260(%rip), %rsi     # 0xb13a0
leaq 0x3a277(%rip), %rdx     # 0xb13be
movl $0x71a9, %ecx           # imm = 0x71A9
movb $0x0, %al
callq 0x13ec0
movq 0x4de96(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x77164
cmpq $0x0, 0x78(%rsp)
je 0x77199
movq 0x78(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x77199
movq 0x78(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
je 0x77199
cmpq $0x0, 0x70(%rsp)
jne 0x771a9
movl $0x0, 0x84(%rsp)
jmp 0x772bf
movq 0x78(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x60(%rsp)
movq 0x78(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x50(%rsp)
movq 0x60(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x58(%rsp)
movq 0x78(%rsp), %rsi
leaq 0x34(%rsp), %rdi
callq 0x139c0
movl %eax, 0x44(%rsp)
cmpl $0x0, 0x44(%rsp)
jne 0x77205
movl $0x0, 0x84(%rsp)
jmp 0x772bf
cmpl $0x2, 0x44(%rsp)
je 0x77225
cmpl $0x3, 0x44(%rsp)
je 0x77225
movq 0x58(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x7722e
xorl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x77238
movq 0x78(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x78(%rsp), %rax
addq $0x2598, %rax           # imm = 0x2598
movq %rax, (%rsp)
movq 0x60(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0x6c(%rsp), %eax
movl %eax, 0x1c(%rsp)
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x13460
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movl 0x1c(%rsp), %ecx
movlpd %xmm0, 0x2c(%rsp)
movq 0x48(%rsp), %r8
movq 0x50(%rsp), %rax
movq (%rax), %r9
movsd 0x34(%rsp), %xmm0
movsd 0x3c(%rsp), %xmm1
movsd 0x2c(%rsp), %xmm2
callq 0x772d0
movl %eax, 0x84(%rsp)
movl 0x84(%rsp), %eax
addq $0x88, %rsp
retq
nop