// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_contextual_item_text
NK_API nk_bool
nk_contextual_item_text(struct nk_context *ctx, const char *text, int len,
    nk_flags alignment)
{
    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(&ctx->last_widget_state, &win->buffer, bounds,
        text, len, alignment, NK_BUTTON_DEFAULT, &style->contextual_button, in, style->font)) {
        nk_contextual_close(ctx);
        return nk_true;
    }
    return nk_false;
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movl %edx, 0x5c(%rsp)
movl %ecx, 0x58(%rsp)
cmpq $0x0, 0x68(%rsp)
jne 0x5c031
movq 0x68feb(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x55391(%rip), %rsi     # 0xb13a0
leaq 0x553a8(%rip), %rdx     # 0xb13be
movl $0x52fe, %ecx           # imm = 0x52FE
movb $0x0, %al
callq 0x13ec0
movq 0x68fc7(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5c033
jmp 0x5c035
movq 0x68(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x5c077
movq 0x68fa5(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5534b(%rip), %rsi     # 0xb13a0
leaq 0x55362(%rip), %rdx     # 0xb13be
movl $0x52ff, %ecx           # imm = 0x52FF
movb $0x0, %al
callq 0x13ec0
movq 0x68f81(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5c079
jmp 0x5c07b
movq 0x68(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5c0c4
movq 0x68f58(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x552fe(%rip), %rsi     # 0xb13a0
leaq 0x55315(%rip), %rdx     # 0xb13be
movl $0x5300, %ecx           # imm = 0x5300
movb $0x0, %al
callq 0x13ec0
movq 0x68f34(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5c0c6
cmpq $0x0, 0x68(%rsp)
je 0x5c0f3
movq 0x68(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x5c0f3
movq 0x68(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5c100
movl $0x0, 0x74(%rsp)
jmp 0x5c20f
movq 0x68(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x68(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x40(%rsp)
movq 0x68(%rsp), %rsi
movq 0x40(%rsp), %rax
movsd 0x1e0(%rax), %xmm0
leaq 0x30(%rsp), %rdi
callq 0x132b0
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
jne 0x5c155
movl $0x0, 0x74(%rsp)
jmp 0x5c20f
cmpl $0x2, 0x2c(%rsp)
je 0x5c175
movq 0x50(%rsp), %rax
movq 0xa8(%rax), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x5c17e
xorl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x5c188
movq 0x68(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x68(%rsp), %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x50(%rsp), %rsi
addq $0x68, %rsi
movq 0x60(%rsp), %rdx
movl 0x5c(%rsp), %ecx
movl 0x58(%rsp), %r8d
movq 0x40(%rsp), %rax
movq %rax, %r9
addq $0x140, %r9             # imm = 0x140
movq 0x48(%rsp), %r10
movq (%rax), %r11
movsd 0x30(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
movq %rsp, %rax
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movq %r9, (%rax)
xorl %r9d, %r9d
callq 0x5c360
cmpl $0x0, %eax
je 0x5c207
movq 0x68(%rsp), %rdi
callq 0x146a0
movl $0x1, 0x74(%rsp)
jmp 0x5c20f
movl $0x0, 0x74(%rsp)
movl 0x74(%rsp), %eax
addq $0x78, %rsp
retq
nopl (%rax,%rax)