// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_combo_begin_symbol_text
NK_API nk_bool
nk_combo_begin_symbol_text(struct nk_context *ctx, const char *selected, int len,
    enum nk_symbol_type symbol, struct nk_vec2 size)
{
    struct nk_window *win;
    struct nk_style *style;
    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;
    struct nk_color symbol_color;
    struct nk_text text;

    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) return 0;

    in = (win->layout->flags & NK_WINDOW_ROM || s == NK_WIDGET_DISABLED || 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;
        symbol_color = style->combo.symbol_active;
        text.text = style->combo.label_active;
    } else if (ctx->last_widget_state & NK_WIDGET_STATE_HOVER) {
        background = &style->combo.hover;
        symbol_color = style->combo.symbol_hover;
        text.text = style->combo.label_hover;
    } else {
        background = &style->combo.normal;
        symbol_color = style->combo.symbol_normal;
        text.text = style->combo.label_normal;
    }

    text.text = nk_rgb_factor(text.text, style->combo.color_factor);
    symbol_color = nk_rgb_factor(symbol_color, style->combo.color_factor);

    switch(background->type) {
        case NK_STYLE_ITEM_IMAGE:
            text.background = nk_rgba(0, 0, 0, 0);
            nk_draw_image(&win->buffer, header, &background->data.image, nk_rgb_factor(nk_white, style->combo.color_factor));
            break;
        case NK_STYLE_ITEM_NINE_SLICE:
            text.background = nk_rgba(0, 0, 0, 0);
            nk_draw_nine_slice(&win->buffer, header, &background->data.slice, nk_rgb_factor(nk_white, style->combo.color_factor));
            break;
        case NK_STYLE_ITEM_COLOR:
            text.background = background->data.color;
            nk_fill_rect(&win->buffer, header, style->combo.rounding, nk_rgb_factor(background->data.color, style->combo.color_factor));
            nk_stroke_rect(&win->buffer, header, style->combo.rounding, style->combo.border, nk_rgb_factor(style->combo.border_color, style->combo.color_factor));
            break;
    }
    {
        struct nk_rect content;
        struct nk_rect button;
        struct nk_rect label;
        struct nk_rect image;

        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;
        nk_draw_button_symbol(&win->buffer, &button, &content, ctx->last_widget_state,
            &ctx->style.combo.button, sym, style->font);

        /* draw symbol */
        image.x = header.x + style->combo.content_padding.x;
        image.y = header.y + style->combo.content_padding.y;
        image.h = header.h - 2 * style->combo.content_padding.y;
        image.w = image.h;
        nk_draw_symbol(&win->buffer, symbol, image, text.background, symbol_color,
            1.0f, style->font);

        /* draw label */
        text.padding = nk_vec2(0,0);
        label.x = image.x + image.w + style->combo.spacing.x + style->combo.content_padding.x;
        label.y = header.y + style->combo.content_padding.y;
        label.w = (button.x - style->combo.content_padding.x) - label.x;
        label.h = header.h - 2 * style->combo.content_padding.y;
        nk_widget_text(&win->buffer, label, selected, len, &text, NK_TEXT_LEFT, style->font);
    }
    return nk_combo_begin(ctx, win, size, is_clicked, header);
}

// Assembly:
subq $0x148, %rsp            # imm = 0x148
movlpd %xmm0, 0x13c(%rsp)
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
movl %edx, 0x124(%rsp)
movl %ecx, 0x120(%rsp)
movl $0x0, 0xf4(%rsp)
cmpq $0x0, 0x130(%rsp)
jne 0x79ad7
movq 0x4b545(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x378eb(%rip), %rsi     # 0xb13a0
leaq 0x37902(%rip), %rdx     # 0xb13be
movl $0x7324, %ecx           # imm = 0x7324
movb $0x0, %al
callq 0x13ec0
movq 0x4b521(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x79ad9
jmp 0x79adb
movq 0x130(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x79b20
movq 0x4b4fc(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x378a2(%rip), %rsi     # 0xb13a0
leaq 0x378b9(%rip), %rdx     # 0xb13be
movl $0x7325, %ecx           # imm = 0x7325
movb $0x0, %al
callq 0x13ec0
movq 0x4b4d8(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x79b22
jmp 0x79b24
movq 0x130(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x79b70
movq 0x4b4ac(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x37852(%rip), %rsi     # 0xb13a0
leaq 0x37869(%rip), %rdx     # 0xb13be
movl $0x7326, %ecx           # imm = 0x7326
movb $0x0, %al
callq 0x13ec0
movq 0x4b488(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x79b72
cmpq $0x0, 0x130(%rsp)
je 0x79ba8
movq 0x130(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x79ba8
movq 0x130(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x79bb8
movl $0x0, 0x144(%rsp)
jmp 0x7a473
movq 0x130(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x118(%rsp)
movq 0x130(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x110(%rsp)
movq 0x130(%rsp), %rsi
leaq 0xf8(%rsp), %rdi
callq 0x139c0
movl %eax, 0xf0(%rsp)
cmpl $0x0, 0xf0(%rsp)
jne 0x79c1b
movl $0x0, 0x144(%rsp)
jmp 0x7a473
movq 0x118(%rsp), %rax
movq 0xa8(%rax), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
jne 0x79c4b
cmpl $0x3, 0xf0(%rsp)
je 0x79c4b
cmpl $0x2, 0xf0(%rsp)
jne 0x79c54
xorl %eax, %eax
movq %rax, 0x58(%rsp)
jmp 0x79c61
movq 0x130(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x130(%rsp), %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x108(%rsp), %rsi
movsd 0xf8(%rsp), %xmm0
movsd 0x100(%rsp), %xmm1
xorl %edx, %edx
callq 0x78060
cmpl $0x0, %eax
je 0x79cae
movl $0x1, 0xf4(%rsp)
movq 0x130(%rsp), %rax
movl 0x2598(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x79d0d
movq 0x110(%rsp), %rax
addq $0x1eb0, %rax           # imm = 0x1EB0
addq $0x50, %rax
movq %rax, 0xe8(%rsp)
movq 0x110(%rsp), %rax
movl 0x1f40(%rax), %eax
movl %eax, 0xe4(%rsp)
movq 0x110(%rsp), %rax
movl 0x1f34(%rax), %eax
movl %eax, 0xdc(%rsp)
jmp 0x79dab
movq 0x130(%rsp), %rax
movl 0x2598(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x79d69
movq 0x110(%rsp), %rax
addq $0x1eb0, %rax           # imm = 0x1EB0
addq $0x28, %rax
movq %rax, 0xe8(%rsp)
movq 0x110(%rsp), %rax
movl 0x1f3c(%rax), %eax
movl %eax, 0xe4(%rsp)
movq 0x110(%rsp), %rax
movl 0x1f30(%rax), %eax
movl %eax, 0xdc(%rsp)
jmp 0x79da9
movq 0x110(%rsp), %rax
addq $0x1eb0, %rax           # imm = 0x1EB0
movq %rax, 0xe8(%rsp)
movq 0x110(%rsp), %rax
movl 0x1f38(%rax), %eax
movl %eax, 0xe4(%rsp)
movq 0x110(%rsp), %rax
movl 0x1f2c(%rax), %eax
movl %eax, 0xdc(%rsp)
jmp 0x79dab
movq 0x110(%rsp), %rax
movss 0x204c(%rax), %xmm0
movl 0xdc(%rsp), %edi
callq 0x15100
movl %eax, 0xcc(%rsp)
movl 0xcc(%rsp), %eax
movl %eax, 0xdc(%rsp)
movq 0x110(%rsp), %rax
movss 0x204c(%rax), %xmm0
movl 0xe4(%rsp), %edi
callq 0x15100
movl %eax, 0xc8(%rsp)
movl 0xc8(%rsp), %eax
movl %eax, 0xe4(%rsp)
movq 0xe8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0x54(%rsp)
testl %eax, %eax
je 0x79f68
jmp 0x79e25
movl 0x54(%rsp), %eax
subl $0x1, %eax
je 0x79e42
jmp 0x79e30
movl 0x54(%rsp), %eax
subl $0x2, %eax
je 0x79ed5
jmp 0x7a067
xorl %ecx, %ecx
movl %ecx, %edi
movl %ecx, %esi
movl %ecx, %edx
callq 0x14680
movl %eax, 0xc4(%rsp)
movl 0xc4(%rsp), %eax
movl %eax, 0xd8(%rsp)
movq 0x118(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x40(%rsp)
movq 0xe8(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x48(%rsp)
movq 0x110(%rsp), %rax
movss 0x204c(%rax), %xmm0
movl 0x37414(%rip), %edi     # 0xb12b0
callq 0x15100
movq 0x40(%rsp), %rdi
movq 0x48(%rsp), %rsi
movl %eax, 0xc0(%rsp)
movsd 0xf8(%rsp), %xmm0
movsd 0x100(%rsp), %xmm1
movl 0xc0(%rsp), %edx
callq 0x14690
jmp 0x7a067
xorl %ecx, %ecx
movl %ecx, %edi
movl %ecx, %esi
movl %ecx, %edx
callq 0x14680
movl %eax, 0xbc(%rsp)
movl 0xbc(%rsp), %eax
movl %eax, 0xd8(%rsp)
movq 0x118(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x30(%rsp)
movq 0xe8(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x38(%rsp)
movq 0x110(%rsp), %rax
movss 0x204c(%rax), %xmm0
movl 0x37381(%rip), %edi     # 0xb12b0
callq 0x15100
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
movl %eax, 0xb8(%rsp)
movsd 0xf8(%rsp), %xmm0
movsd 0x100(%rsp), %xmm1
movl 0xb8(%rsp), %edx
callq 0x152a0
jmp 0x7a067
movq 0xe8(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0xd8(%rsp)
movq 0x118(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x10(%rsp)
movq 0x110(%rsp), %rcx
movq 0xe8(%rsp), %rax
movss 0x2030(%rcx), %xmm0
movss %xmm0, 0x1c(%rsp)
movss 0x204c(%rcx), %xmm0
movl 0x8(%rax), %edi
callq 0x15100
movq 0x10(%rsp), %rdi
movss 0x1c(%rsp), %xmm2
movl %eax, 0xb4(%rsp)
movsd 0xf8(%rsp), %xmm0
movsd 0x100(%rsp), %xmm1
movl 0xb4(%rsp), %esi
callq 0x13f10
movq 0x118(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x20(%rsp)
movq 0x110(%rsp), %rax
movss 0x2030(%rax), %xmm0
movss %xmm0, 0x28(%rsp)
movss 0x202c(%rax), %xmm0
movss %xmm0, 0x2c(%rsp)
movss 0x204c(%rax), %xmm0
movl 0x1f28(%rax), %edi
callq 0x15100
movq 0x20(%rsp), %rdi
movss 0x28(%rsp), %xmm2
movss 0x2c(%rsp), %xmm3
movl %eax, 0xb0(%rsp)
movsd 0xf8(%rsp), %xmm0
movsd 0x100(%rsp), %xmm1
movl 0xb0(%rsp), %esi
callq 0x13070
movq 0x130(%rsp), %rax
movl 0x2598(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x7a091
movq 0x110(%rsp), %rax
movl 0x2024(%rax), %eax
movl %eax, 0x6c(%rsp)
jmp 0x7a0c3
cmpl $0x0, 0xf4(%rsp)
je 0x7a0af
movq 0x110(%rsp), %rax
movl 0x2028(%rax), %eax
movl %eax, 0x6c(%rsp)
jmp 0x7a0c1
movq 0x110(%rsp), %rax
movl 0x2020(%rax), %eax
movl %eax, 0x6c(%rsp)
jmp 0x7a0c3
movss 0x104(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x2040(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x98(%rsp)
movss 0xf8(%rsp), %xmm0
movss 0x100(%rsp), %xmm1
addss %xmm1, %xmm0
movss 0x104(%rsp), %xmm1
subss %xmm1, %xmm0
movq 0x110(%rsp), %rax
movss 0x203c(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x90(%rsp)
movss 0xfc(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x2040(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x94(%rsp)
movss 0x98(%rsp), %xmm0
movss %xmm0, 0x9c(%rsp)
movss 0x90(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1fe8(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0xa0(%rsp)
movss 0x94(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1fec(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0xa4(%rsp)
movss 0x98(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1fe8(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0xa8(%rsp)
movss 0x9c(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x1fec(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0xac(%rsp)
movq 0x118(%rsp), %rdi
addq $0x68, %rdi
movq 0x130(%rsp), %r8
movl 0x2598(%r8), %ecx
addq $0x20b0, %r8            # imm = 0x20B0
movl 0x6c(%rsp), %r9d
movq 0x110(%rsp), %rax
movq (%rax), %rdx
movq %rsp, %rax
movq %rdx, (%rax)
leaq 0x90(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
callq 0x781d0
movss 0xf8(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x2034(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x70(%rsp)
movss 0xfc(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x2038(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x74(%rsp)
movss 0x104(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x2038(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x7c(%rsp)
movss 0x7c(%rsp), %xmm0
movss %xmm0, 0x78(%rsp)
movq 0x118(%rsp), %rdi
addq $0x68, %rdi
movl 0x120(%rsp), %esi
movq 0x110(%rsp), %rax
movq (%rax), %r8
movsd 0x70(%rsp), %xmm0
movsd 0x78(%rsp), %xmm1
movl 0xd8(%rsp), %edx
movl 0xe4(%rsp), %ecx
movss 0x331dd(%rip), %xmm2    # 0xad4e8
callq 0x79710
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x13460
movlpd %xmm0, 0x64(%rsp)
movq 0x64(%rsp), %rax
movq %rax, 0xd0(%rsp)
movss 0x70(%rsp), %xmm0
movss 0x78(%rsp), %xmm1
addss %xmm1, %xmm0
movq 0x110(%rsp), %rax
movss 0x2034(%rax), %xmm1
movss 0x2044(%rax), %xmm2
addss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x80(%rsp)
movss 0xfc(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x2038(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x84(%rsp)
movss 0x90(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x2034(%rax), %xmm1
subss %xmm1, %xmm0
movss 0x80(%rsp), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x88(%rsp)
movss 0x104(%rsp), %xmm0
movq 0x110(%rsp), %rax
movss 0x2038(%rax), %xmm1
addss %xmm1, %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x8c(%rsp)
movq 0x118(%rsp), %rdi
addq $0x68, %rdi
movq 0x128(%rsp), %rsi
movl 0x124(%rsp), %edx
movq 0x110(%rsp), %rax
movq (%rax), %r9
movsd 0x80(%rsp), %xmm0
movsd 0x88(%rsp), %xmm1
leaq 0xd0(%rsp), %rcx
movl $0x11, %r8d
callq 0x66ac0
movq 0x130(%rsp), %rdi
movq 0x118(%rsp), %rsi
movl 0xf4(%rsp), %edx
movsd 0x13c(%rsp), %xmm0
movsd 0xf8(%rsp), %xmm1
movsd 0x100(%rsp), %xmm2
callq 0x782e0
movl %eax, 0x144(%rsp)
movl 0x144(%rsp), %eax
addq $0x148, %rsp            # imm = 0x148
retq
nopw %cs:(%rax,%rax)