// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_combo
NK_API int
nk_combo(struct nk_context *ctx, const char **items, int count,
    int selected, int item_height, struct nk_vec2 size)
{
    int i = 0;
    int max_height;
    struct nk_vec2 item_spacing;
    struct nk_vec2 window_padding;

    NK_ASSERT(ctx);
    NK_ASSERT(items);
    NK_ASSERT(ctx->current);
    if (!ctx || !items ||!count)
        return selected;

    item_spacing = ctx->style.window.spacing;
    window_padding = nk_panel_get_padding(&ctx->style, ctx->current->layout->type);
    max_height = count * item_height + count * (int)item_spacing.y;
    max_height += (int)item_spacing.y * 2 + (int)window_padding.y * 2;
    size.y = NK_MIN(size.y, (float)max_height);
    if (nk_combo_begin_label(ctx, items[selected], size)) {
        nk_layout_row_dynamic(ctx, (float)item_height, 1);
        for (i = 0; i < count; ++i) {
            if (nk_combo_item_label(ctx, items[i], NK_TEXT_LEFT))
                selected = i;
        }
        nk_combo_end(ctx);
    }
    return selected;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movaps %xmm0, (%rsp)
movl %r8d, %r13d
movl %ecx, %ebx
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r14
testq %rdi, %rdi
jne 0x4e56f
movq 0x36aa8(%rip), %rbp     # 0x84ff0
movq (%rbp), %rdi
leaq 0x1b7b9(%rip), %rsi     # 0x69d0c
leaq 0x1b7d0(%rip), %rdx     # 0x69d2a
movl $0x7487, %ecx           # imm = 0x7487
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
testq %r12, %r12
jne 0x4e5a2
movq 0x36a75(%rip), %rbp     # 0x84ff0
movq (%rbp), %rdi
leaq 0x1b786(%rip), %rsi     # 0x69d0c
leaq 0x1b79d(%rip), %rdx     # 0x69d2a
movl $0x7488, %ecx           # imm = 0x7488
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%r14)
jne 0x4e5da
movq 0x36a3d(%rip), %rbp     # 0x84ff0
movq (%rbp), %rdi
leaq 0x1b74e(%rip), %rsi     # 0x69d0c
leaq 0x1b765(%rip), %rdx     # 0x69d2a
movl $0x7489, %ecx           # imm = 0x7489
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
testq %r14, %r14
je 0x4e6a0
testq %r12, %r12
je 0x4e6a0
testl %r15d, %r15d
je 0x4e6a0
leaq 0x168(%r14), %rdi
movq 0x4780(%r14), %rax
movq 0xa8(%rax), %rax
movl (%rax), %esi
cvttss2si 0x24b8(%r14), %ebp
callq 0x3be3f
leal (%rbp,%r13), %eax
imull %r15d, %eax
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
cvttss2si %xmm0, %ecx
addl %ebp, %ecx
leal (%rax,%rcx,2), %eax
movaps (%rsp), %xmm2
movaps %xmm2, %xmm0
shufps $0x55, %xmm2, %xmm0     # xmm0 = xmm0[1,1],xmm2[1,1]
cvtsi2ss %eax, %xmm1
minss %xmm1, %xmm0
movslq %ebx, %rax
movq (%r12,%rax,8), %rsi
movlhps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0]
shufps $0xe2, %xmm2, %xmm0     # xmm0 = xmm0[2,0],xmm2[2,3]
movq %r14, %rdi
callq 0x12250
testl %eax, %eax
je 0x4e6a0
cvtsi2ss %r13d, %xmm0
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x12f50
xorl %r13d, %r13d
testl %r15d, %r15d
cmovlel %r13d, %r15d
pushq $0x11
popq %rbp
cmpq %r13, %r15
je 0x4e698
movq (%r12,%r13,8), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x12c40
testl %eax, %eax
cmovnel %r13d, %ebx
incq %r13
jmp 0x4e67a
movq %r14, %rdi
callq 0x12910
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq