// File: /workspace/github_c_makefile_star2_O0/space222[P]silo/./nuklear.h
// Function: nk_combo_begin_color
NK_API int
nk_combo_begin_color(struct nk_context *ctx, struct nk_color color, struct nk_vec2 size)
{
    struct nk_window *win;
    struct nk_style *style;
    const struct nk_input *in;

    struct nk_rect header;
    int is_clicked = nk_false;
    enum nk_widget_layout_states s;
    const struct nk_style_item *background;

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

    win = ctx->current;
    style = &ctx->style;
    s = nk_widget(&header, ctx);
    if (s == NK_WIDGET_INVALID)
        return 0;

    in = (win->layout->flags & NK_WINDOW_ROM || s == NK_WIDGET_ROM)? 0: &ctx->input;
    if (nk_button_behavior(&ctx->last_widget_state, header, in, NK_BUTTON_DEFAULT))
        is_clicked = nk_true;

    /* draw combo box header background and border */
    if (ctx->last_widget_state & NK_WIDGET_STATE_ACTIVED)
        background = &style->combo.active;
    else if (ctx->last_widget_state & NK_WIDGET_STATE_HOVER)
        background = &style->combo.hover;
    else background = &style->combo.normal;

    if (background->type == NK_STYLE_ITEM_IMAGE) {
        nk_draw_image(&win->buffer, header, &background->data.image,nk_white);
    } else {
        nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
        nk_stroke_rect(&win->buffer, header, style->combo.rounding, style->combo.border, style->combo.border_color);
    }
    {
        struct nk_rect content;
        struct nk_rect button;
        struct nk_rect bounds;

        enum nk_symbol_type sym;
        if (ctx->last_widget_state & NK_WIDGET_STATE_HOVER)
            sym = style->combo.sym_hover;
        else if (is_clicked)
            sym = style->combo.sym_active;
        else sym = style->combo.sym_normal;

        /* calculate button */
        button.w = header.h - 2 * style->combo.button_padding.y;
        button.x = (header.x + header.w - header.h) - style->combo.button_padding.x;
        button.y = header.y + style->combo.button_padding.y;
        button.h = button.w;

        content.x = button.x + style->combo.button.padding.x;
        content.y = button.y + style->combo.button.padding.y;
        content.w = button.w - 2 * style->combo.button.padding.x;
        content.h = button.h - 2 * style->combo.button.padding.y;

        /* draw color */
        bounds.h = header.h - 4 * style->combo.content_padding.y;
        bounds.y = header.y + 2 * style->combo.content_padding.y;
        bounds.x = header.x + 2 * style->combo.content_padding.x;
        bounds.w = (button.x - (style->combo.content_padding.x + style->combo.spacing.x)) - bounds.x;
        nk_fill_rect(&win->buffer, bounds, 0, color);

        /* draw open/close button */
        nk_draw_button_symbol(&win->buffer, &button, &content, ctx->last_widget_state,
            &ctx->style.combo.button, sym, style->font);
    }
    return nk_combo_begin(ctx, win, size, is_clicked, header);
}

// Assembly:
subq $0x138, %rsp            # imm = 0x138
movl %esi, 0x130(%rsp)
movlpd %xmm0, 0x128(%rsp)
movq %rdi, 0x120(%rsp)
movl $0x0, 0xf4(%rsp)
cmpq $0x0, 0x120(%rsp)
je 0x33ef7
jmp 0x33f16
leaq 0x14621(%rip), %rdi     # 0x4851f
leaq 0x114ae(%rip), %rsi     # 0x453b3
movl $0x606c, %edx           # imm = 0x606C
leaq 0x15b64(%rip), %rcx     # 0x49a75
callq 0x20a0
movq 0x120(%rsp), %rax
cmpq $0x0, 0x3fe8(%rax)
je 0x33f2a
jmp 0x33f49
leaq 0x12fc8(%rip), %rdi     # 0x46ef9
leaq 0x1147b(%rip), %rsi     # 0x453b3
movl $0x606d, %edx           # imm = 0x606D
leaq 0x15b31(%rip), %rcx     # 0x49a75
callq 0x20a0
movq 0x120(%rsp), %rax
movq 0x3fe8(%rax), %rax
cmpq $0x0, 0xa8(%rax)
je 0x33f64
jmp 0x33f83
leaq 0x1310a(%rip), %rdi     # 0x47075
leaq 0x11441(%rip), %rsi     # 0x453b3
movl $0x606e, %edx           # imm = 0x606E
leaq 0x15af7(%rip), %rcx     # 0x49a75
callq 0x20a0
cmpq $0x0, 0x120(%rsp)
je 0x33fb9
movq 0x120(%rsp), %rax
cmpq $0x0, 0x3fe8(%rax)
je 0x33fb9
movq 0x120(%rsp), %rax
movq 0x3fe8(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x33fc9
movl $0x0, 0x134(%rsp)
jmp 0x34552
movq 0x120(%rsp), %rax
movq 0x3fe8(%rax), %rax
movq %rax, 0x118(%rsp)
movq 0x120(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x110(%rsp)
movq 0x120(%rsp), %rsi
leaq 0xf8(%rsp), %rdi
callq 0x1cd90
movl %eax, 0xf0(%rsp)
cmpl $0x0, 0xf0(%rsp)
jne 0x3402c
movl $0x0, 0x134(%rsp)
jmp 0x34552
movq 0x118(%rsp), %rax
movq 0xa8(%rax), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
jne 0x34052
cmpl $0x2, 0xf0(%rsp)
jne 0x3405b
xorl %eax, %eax
movq %rax, 0x8(%rsp)
jmp 0x34068
movq 0x120(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x120(%rsp), %rdi
addq $0x1f70, %rdi           # imm = 0x1F70
movups 0xf8(%rsp), %xmm0
movaps %xmm0, 0xd0(%rsp)
movq 0x108(%rsp), %rsi
movsd 0xd0(%rsp), %xmm0
movsd 0xd8(%rsp), %xmm1
xorl %edx, %edx
callq 0x338c0
cmpl $0x0, %eax
je 0x340c5
movl $0x1, 0xf4(%rsp)
movq 0x120(%rsp), %rax
movl 0x1f70(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x340f7
movq 0x110(%rsp), %rax
addq $0x1948, %rax           # imm = 0x1948
addq $0x40, %rax
movq %rax, 0xe8(%rsp)
jmp 0x34141
movq 0x120(%rsp), %rax
movl 0x1f70(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x34129
movq 0x110(%rsp), %rax
addq $0x1948, %rax           # imm = 0x1948
addq $0x20, %rax
movq %rax, 0xe8(%rsp)
jmp 0x3413f
movq 0x110(%rsp), %rax
addq $0x1948, %rax           # imm = 0x1948
movq %rax, 0xe8(%rsp)
jmp 0x34141
movq 0xe8(%rsp), %rax
cmpl $0x1, (%rax)
jne 0x341a4
movq 0x118(%rsp), %rdi
addq $0x68, %rdi
movups 0xf8(%rsp), %xmm0
movaps %xmm0, 0xc0(%rsp)
movq 0xe8(%rsp), %rsi
addq $0x8, %rsi
movl $0xffffffff, 0xbc(%rsp) # imm = 0xFFFFFFFF
movsd 0xc0(%rsp), %xmm0
movsd 0xc8(%rsp), %xmm1
movl 0xbc(%rsp), %edx
callq 0xc3c0
jmp 0x34259
movq 0x118(%rsp), %rdi
addq $0x68, %rdi
movups 0xf8(%rsp), %xmm0
movaps %xmm0, 0xa0(%rsp)
movq 0x110(%rsp), %rax
movss 0x1a88(%rax), %xmm2
movq 0xe8(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x9c(%rsp)
movsd 0xa0(%rsp), %xmm0
movsd 0xa8(%rsp), %xmm1
movl 0x9c(%rsp), %esi
callq 0xb130
movq 0x118(%rsp), %rdi
addq $0x68, %rdi
movups 0xf8(%rsp), %xmm0
movaps %xmm0, 0x80(%rsp)
movq 0x110(%rsp), %rax
movss 0x1a84(%rax), %xmm3
movss 0x1a88(%rax), %xmm2
movl 0x19a8(%rax), %eax
movl %eax, 0x7c(%rsp)
movsd 0x80(%rsp), %xmm0
movsd 0x88(%rsp), %xmm1
movl 0x7c(%rsp), %esi
callq 0xaf00
movq 0x120(%rsp), %rax
movl 0x1f70(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x34283
movq 0x110(%rsp), %rax
movl 0x1a7c(%rax), %eax
movl %eax, 0x48(%rsp)
jmp 0x342b5
cmpl $0x0, 0xf4(%rsp)
je 0x342a1
movq 0x110(%rsp), %rax
movl 0x1a80(%rax), %eax
movl %eax, 0x48(%rsp)
jmp 0x342b3
movq 0x110(%rsp), %rax
movl 0x1a78(%rax), %eax
movl %eax, 0x48(%rsp)
jmp 0x342b5
movss 0x104(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1a98(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x64(%rsp)
movss 0xf8(%rsp), %xmm0
movss 0x100(%rsp), %xmm1
addss %xmm1, %xmm0
movss 0x104(%rsp), %xmm1
subss %xmm1, %xmm0
movq 0x110(%rsp), %rax
movss 0x1a94(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x5c(%rsp)
movss 0xfc(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1a98(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x60(%rsp)
movss 0x64(%rsp), %xmm0
movss %xmm0, 0x68(%rsp)
movss 0x5c(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1a48(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x6c(%rsp)
movss 0x60(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1a4c(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x70(%rsp)
movss 0x64(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1a48(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x74(%rsp)
movss 0x68(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1a4c(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x78(%rsp)
movss 0x104(%rsp), %xmm1
movq 0x110(%rsp), %rax
movss 0x1a90(%rax), %xmm0
movss 0x10d5f(%rip), %xmm2    # 0x45150
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x58(%rsp)
movss 0xfc(%rsp), %xmm1
movq 0x110(%rsp), %rax
movss 0x1a90(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x50(%rsp)
movss 0xf8(%rsp), %xmm1
movq 0x110(%rsp), %rax
movss 0x1a8c(%rax), %xmm0
addss %xmm0, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x4c(%rsp)
movss 0x5c(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1a8c(%rax), %xmm1
movss 0x1a9c(%rax), %xmm2
addss %xmm2, %xmm1
subss %xmm1, %xmm0
movss 0x4c(%rsp), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x54(%rsp)
movq 0x118(%rsp), %rdi
addq $0x68, %rdi
movups 0x4c(%rsp), %xmm0
movaps %xmm0, 0x30(%rsp)
movl 0x130(%rsp), %eax
movl %eax, 0x2c(%rsp)
movsd 0x30(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
movl 0x2c(%rsp), %esi
xorps %xmm2, %xmm2
callq 0xb130
movq 0x118(%rsp), %rdi
addq $0x68, %rdi
movq 0x120(%rsp), %r8
movl 0x1f70(%r8), %ecx
addq $0x1b30, %r8            # imm = 0x1B30
movl 0x48(%rsp), %r9d
movq 0x110(%rsp), %rax
movq (%rax), %rdx
movq %rsp, %rax
movq %rdx, (%rax)
leaq 0x5c(%rsp), %rsi
leaq 0x6c(%rsp), %rdx
callq 0x33a70
movq 0x120(%rsp), %rdi
movq 0x118(%rsp), %rsi
movq 0x128(%rsp), %rax
movq %rax, 0x20(%rsp)
movl 0xf4(%rsp), %edx
movups 0xf8(%rsp), %xmm0
movaps %xmm0, 0x10(%rsp)
movsd 0x20(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movsd 0x18(%rsp), %xmm2
callq 0x33b70
movl %eax, 0x134(%rsp)
movl 0x134(%rsp), %eax
addq $0x138, %rsp            # imm = 0x138
retq
nopw %cs:(%rax,%rax)