// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_contextual_item_image_text
NK_API nk_bool
nk_contextual_item_image_text(struct nk_context *ctx, struct nk_image img,
    const char *text, int len, nk_flags align)
{
    struct nk_window *win;
    const struct nk_input *in;
    const struct nk_style *style;

    struct nk_rect bounds;
    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;
    style = &ctx->style;
    state = nk_widget_fitting(&bounds, ctx, style->contextual_button.padding);
    if (!state) return nk_false;

    in = (state == NK_WIDGET_ROM || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    if (nk_do_button_text_image(&ctx->last_widget_state, &win->buffer, bounds,
        img, text, len, align, NK_BUTTON_DEFAULT, &style->contextual_button, style->font, in)){
        nk_contextual_close(ctx);
        return nk_true;
    }
    return nk_false;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
leaq 0xb0(%rsp), %rax
movq %rax, 0x40(%rsp)
movq %rdi, 0x88(%rsp)
movq %rsi, 0x80(%rsp)
movl %edx, 0x7c(%rsp)
movl %ecx, 0x78(%rsp)
cmpq $0x0, 0x88(%rsp)
jne 0x5c7cd
movq 0x6884f(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x54bf5(%rip), %rsi     # 0xb13a0
leaq 0x54c0c(%rip), %rdx     # 0xb13be
movl $0x5321, %ecx           # imm = 0x5321
movb $0x0, %al
callq 0x13ec0
movq 0x6882b(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5c7cf
jmp 0x5c7d1
movq 0x88(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x5c816
movq 0x68806(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x54bac(%rip), %rsi     # 0xb13a0
leaq 0x54bc3(%rip), %rdx     # 0xb13be
movl $0x5322, %ecx           # imm = 0x5322
movb $0x0, %al
callq 0x13ec0
movq 0x687e2(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5c818
jmp 0x5c81a
movq 0x88(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5c866
movq 0x687b6(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x54b5c(%rip), %rsi     # 0xb13a0
leaq 0x54b73(%rip), %rdx     # 0xb13be
movl $0x5323, %ecx           # imm = 0x5323
movb $0x0, %al
callq 0x13ec0
movq 0x68792(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5c868
cmpq $0x0, 0x88(%rsp)
je 0x5c89e
movq 0x88(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x5c89e
movq 0x88(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5c8ae
movl $0x0, 0x94(%rsp)
jmp 0x5c9ef
movq 0x88(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x88(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x60(%rsp)
movq 0x88(%rsp), %rsi
movq 0x60(%rsp), %rax
movsd 0x1e0(%rax), %xmm0
leaq 0x50(%rsp), %rdi
callq 0x132b0
movl %eax, 0x4c(%rsp)
cmpl $0x0, 0x4c(%rsp)
jne 0x5c90f
movl $0x0, 0x94(%rsp)
jmp 0x5c9ef
cmpl $0x2, 0x4c(%rsp)
je 0x5c92f
movq 0x70(%rsp), %rax
movq 0xa8(%rax), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x5c938
xorl %eax, %eax
movq %rax, 0x38(%rsp)
jmp 0x5c945
movq 0x88(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rbx
movq 0x38(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x88(%rsp), %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x70(%rsp), %rsi
addq $0x68, %rsi
movq 0x80(%rsp), %rdx
movl 0x7c(%rsp), %ecx
movl 0x78(%rsp), %r8d
movq 0x60(%rsp), %rax
movq %rax, %r9
addq $0x140, %r9             # imm = 0x140
movq (%rax), %r10
movq 0x68(%rsp), %r11
movsd 0x50(%rsp), %xmm0
movsd 0x58(%rsp), %xmm1
movq 0x10(%rbx), %r14
movq %rsp, %rax
movq %r14, 0x10(%rax)
movups (%rbx), %xmm2
movups %xmm2, (%rax)
movq %r11, 0x28(%rax)
movq %r10, 0x20(%rax)
movq %r9, 0x18(%rax)
xorl %r9d, %r9d
callq 0x5ca10
cmpl $0x0, %eax
je 0x5c9e4
movq 0x88(%rsp), %rdi
callq 0x146a0
movl $0x1, 0x94(%rsp)
jmp 0x5c9ef
movl $0x0, 0x94(%rsp)
movl 0x94(%rsp), %eax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
nopw %cs:(%rax,%rax)