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

// Assembly:
pushq %rbx
subq $0x80, %rsp
movq %rdi, 0x70(%rsp)
movl %esi, 0x6c(%rsp)
movq %rdx, 0x60(%rsp)
movl %ecx, 0x5c(%rsp)
movl %r8d, 0x58(%rsp)
cmpq $0x0, 0x70(%rsp)
jne 0x5cefa
movq 0x68122(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x544c8(%rip), %rsi     # 0xb13a0
leaq 0x544df(%rip), %rdx     # 0xb13be
movl $0x5345, %ecx           # imm = 0x5345
movb $0x0, %al
callq 0x13ec0
movq 0x680fe(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5cefc
jmp 0x5cefe
movq 0x70(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x5cf40
movq 0x680dc(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x54482(%rip), %rsi     # 0xb13a0
leaq 0x54499(%rip), %rdx     # 0xb13be
movl $0x5346, %ecx           # imm = 0x5346
movb $0x0, %al
callq 0x13ec0
movq 0x680b8(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5cf42
jmp 0x5cf44
movq 0x70(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5cf8d
movq 0x6808f(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x54435(%rip), %rsi     # 0xb13a0
leaq 0x5444c(%rip), %rdx     # 0xb13be
movl $0x5347, %ecx           # imm = 0x5347
movb $0x0, %al
callq 0x13ec0
movq 0x6806b(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5cf8f
cmpq $0x0, 0x70(%rsp)
je 0x5cfbc
movq 0x70(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x5cfbc
movq 0x70(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5cfc9
movl $0x0, 0x7c(%rsp)
jmp 0x5d0e1
movq 0x70(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x70(%rsp), %rax
addq $0x168, %rax            # imm = 0x168
movq %rax, 0x40(%rsp)
movq 0x70(%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 0x5d01e
movl $0x0, 0x7c(%rsp)
jmp 0x5d0e1
cmpl $0x2, 0x2c(%rsp)
je 0x5d03e
movq 0x50(%rsp), %rax
movq 0xa8(%rax), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x5d047
xorl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x5d051
movq 0x70(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x70(%rsp), %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x50(%rsp), %rsi
addq $0x68, %rsi
movl 0x6c(%rsp), %edx
movq 0x60(%rsp), %rcx
movl 0x5c(%rsp), %r8d
movl 0x58(%rsp), %r9d
movq 0x40(%rsp), %rax
movq %rax, %r10
addq $0x140, %r10            # imm = 0x140
movq (%rax), %r11
movq 0x48(%rsp), %rbx
movsd 0x30(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
movq %rsp, %rax
movq %rbx, 0x18(%rax)
movq %r11, 0x10(%rax)
movq %r10, 0x8(%rax)
movl $0x0, (%rax)
callq 0x5d0f0
cmpl $0x0, %eax
je 0x5d0d9
movq 0x70(%rsp), %rdi
callq 0x146a0
movl $0x1, 0x7c(%rsp)
jmp 0x5d0e1
movl $0x0, 0x7c(%rsp)
movl 0x7c(%rsp), %eax
addq $0x80, %rsp
popq %rbx
retq
nop