// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_menu_begin_symbol
NK_API nk_bool
nk_menu_begin_symbol(struct nk_context *ctx, const char *id,
    enum nk_symbol_type sym, struct nk_vec2 size)
{
    struct nk_window *win;
    const struct nk_input *in;
    struct nk_rect header;
    int is_clicked = nk_false;
    nk_flags 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;
    state = nk_widget(&header, ctx);
    if (!state) return 0;
    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || win->layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    if (nk_do_button_symbol(&ctx->last_widget_state,  &win->buffer, header,
        sym, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in, ctx->style.font))
        is_clicked = nk_true;
    return nk_menu_begin(ctx, win, id, is_clicked, header, size);
}

// Assembly:
subq $0x68, %rsp
movlpd %xmm0, 0x5c(%rsp)
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movl %edx, 0x44(%rsp)
movl $0x0, 0x1c(%rsp)
cmpq $0x0, 0x50(%rsp)
jne 0x5e72b
movq 0x668f1(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x52c97(%rip), %rsi     # 0xb13a0
leaq 0x52cae(%rip), %rdx     # 0xb13be
movl $0x543e, %ecx           # imm = 0x543E
movb $0x0, %al
callq 0x13ec0
movq 0x668cd(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5e72d
jmp 0x5e72f
movq 0x50(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x5e771
movq 0x668ab(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x52c51(%rip), %rsi     # 0xb13a0
leaq 0x52c68(%rip), %rdx     # 0xb13be
movl $0x543f, %ecx           # imm = 0x543F
movb $0x0, %al
callq 0x13ec0
movq 0x66887(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5e773
jmp 0x5e775
movq 0x50(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5e7be
movq 0x6685e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x52c04(%rip), %rsi     # 0xb13a0
leaq 0x52c1b(%rip), %rdx     # 0xb13be
movl $0x5440, %ecx           # imm = 0x5440
movb $0x0, %al
callq 0x13ec0
movq 0x6683a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5e7c0
cmpq $0x0, 0x50(%rsp)
je 0x5e7ed
movq 0x50(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x5e7ed
movq 0x50(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5e7fa
movl $0x0, 0x64(%rsp)
jmp 0x5e8fc
movq 0x50(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x50(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x139c0
movl %eax, 0x18(%rsp)
cmpl $0x0, 0x18(%rsp)
jne 0x5e832
movl $0x0, 0x64(%rsp)
jmp 0x5e8fc
cmpl $0x2, 0x18(%rsp)
je 0x5e859
cmpl $0x3, 0x18(%rsp)
je 0x5e859
movq 0x38(%rsp), %rax
movq 0xa8(%rax), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x5e862
xorl %eax, %eax
movq %rax, 0x10(%rsp)
jmp 0x5e86c
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x50(%rsp), %rax
movq %rax, %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x38(%rsp), %rsi
addq $0x68, %rsi
movl 0x44(%rsp), %edx
movq %rax, %r8
addq $0x380, %r8             # imm = 0x380
movq 0x30(%rsp), %r9
movq 0x168(%rax), %rcx
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movq %rsp, %rax
movq %rcx, (%rax)
xorl %ecx, %ecx
callq 0x5e910
cmpl $0x0, %eax
je 0x5e8ce
movl $0x1, 0x1c(%rsp)
movq 0x50(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x48(%rsp), %rdx
movl 0x1c(%rsp), %ecx
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movsd 0x5c(%rsp), %xmm2
callq 0x5df20
movl %eax, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)