// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_color
NK_API nk_bool
nk_button_color(struct nk_context *ctx, struct nk_color color)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;
    struct nk_style_button button;

    int ret = 0;
    struct nk_rect bounds;
    struct nk_rect content;
    enum nk_widget_layout_states state;

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

    win = ctx->current;
    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;

    button = ctx->style.button;
    button.normal = nk_style_item_color(color);
    button.hover = nk_style_item_color(color);
    button.active = nk_style_item_color(color);
    ret = nk_do_button(&ctx->last_widget_state, &win->buffer, bounds,
                &button, in, ctx->button_behavior, &content);
    nk_draw_button(&win->buffer, &bounds, ctx->last_widget_state, &button);
    return ret;
}

// Assembly:
subq $0x1b8, %rsp            # imm = 0x1B8
movl %esi, 0x1b0(%rsp)
movq %rdi, 0x1a8(%rsp)
movl $0x0, 0xac(%rsp)
cmpq $0x0, 0x1a8(%rsp)
jne 0x6945f
movq 0x5bbbd(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x47f63(%rip), %rsi     # 0xb13a0
leaq 0x47f7a(%rip), %rdx     # 0xb13be
movl $0x5fce, %ecx           # imm = 0x5FCE
movb $0x0, %al
callq 0x13ec0
movq 0x5bb99(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x69461
jmp 0x69463
movq 0x1a8(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x694a8
movq 0x5bb74(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x47f1a(%rip), %rsi     # 0xb13a0
leaq 0x47f31(%rip), %rdx     # 0xb13be
movl $0x5fcf, %ecx           # imm = 0x5FCF
movb $0x0, %al
callq 0x13ec0
movq 0x5bb50(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x694aa
jmp 0x694ac
movq 0x1a8(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x694f8
movq 0x5bb24(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x47eca(%rip), %rsi     # 0xb13a0
leaq 0x47ee1(%rip), %rdx     # 0xb13be
movl $0x5fd0, %ecx           # imm = 0x5FD0
movb $0x0, %al
callq 0x13ec0
movq 0x5bb00(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x694fa
cmpq $0x0, 0x1a8(%rsp)
je 0x69530
movq 0x1a8(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x69530
movq 0x1a8(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x69540
movl $0x0, 0x1b4(%rsp)
jmp 0x69754
movq 0x1a8(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x1a0(%rsp)
movq 0x1a0(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x198(%rsp)
movq 0x1a8(%rsp), %rsi
leaq 0x9c(%rsp), %rdi
callq 0x139c0
movl %eax, 0x88(%rsp)
cmpl $0x0, 0x88(%rsp)
jne 0x695a4
movl $0x0, 0x1b4(%rsp)
jmp 0x69754
cmpl $0x2, 0x88(%rsp)
je 0x695cd
cmpl $0x3, 0x88(%rsp)
je 0x695cd
movq 0x198(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x695d6
xorl %eax, %eax
movq %rax, 0x8(%rsp)
jmp 0x695e3
movq 0x1a8(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x190(%rsp)
movq 0x1a8(%rsp), %rsi
addq $0x1d0, %rsi            # imm = 0x1D0
leaq 0xb0(%rsp), %rdi
movl $0xd8, %edx
callq 0x14160
movl 0x1b0(%rsp), %esi
leaq 0x60(%rsp), %rdi
callq 0x139f0
movq 0x80(%rsp), %rax
movq %rax, 0xd0(%rsp)
movups 0x60(%rsp), %xmm0
movups 0x70(%rsp), %xmm1
movaps %xmm1, 0xc0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movl 0x1b0(%rsp), %esi
leaq 0x38(%rsp), %rdi
callq 0x139f0
movq 0x58(%rsp), %rax
movq %rax, 0xf8(%rsp)
movups 0x38(%rsp), %xmm0
movups 0x48(%rsp), %xmm1
movups %xmm1, 0xe8(%rsp)
movups %xmm0, 0xd8(%rsp)
movl 0x1b0(%rsp), %esi
leaq 0x10(%rsp), %rdi
callq 0x139f0
movq 0x30(%rsp), %rax
movq %rax, 0x120(%rsp)
movups 0x10(%rsp), %xmm0
movups 0x20(%rsp), %xmm1
movups %xmm1, 0x110(%rsp)
movups %xmm0, 0x100(%rsp)
movq 0x1a8(%rsp), %rax
movq %rax, %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x1a0(%rsp), %rsi
addq $0x68, %rsi
movq 0x190(%rsp), %rcx
movl 0x259c(%rax), %r8d
movsd 0x9c(%rsp), %xmm0
movsd 0xa4(%rsp), %xmm1
leaq 0xb0(%rsp), %rdx
leaq 0x8c(%rsp), %r9
callq 0x69770
movl %eax, 0xac(%rsp)
movq 0x1a0(%rsp), %rdi
addq $0x68, %rdi
movq 0x1a8(%rsp), %rax
movl 0x2598(%rax), %edx
leaq 0x9c(%rsp), %rsi
leaq 0xb0(%rsp), %rcx
callq 0x69a10
movl 0xac(%rsp), %eax
movl %eax, 0x1b4(%rsp)
movl 0x1b4(%rsp), %eax
addq $0x1b8, %rsp            # imm = 0x1B8
retq
nopw %cs:(%rax,%rax)