// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_menu_begin_image_text
NK_API nk_bool
nk_menu_begin_image_text(struct nk_context *ctx, const char *title, int len,
    nk_flags align, struct nk_image img, struct nk_vec2 size)
{
    struct nk_window *win;
    struct nk_rect header;
    const struct nk_input *in;
    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_text_image(&ctx->last_widget_state, &win->buffer,
        header, img, title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button,
        ctx->style.font, in))
        is_clicked = nk_true;
    return nk_menu_begin(ctx, win, title, is_clicked, header, size);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
leaq 0xb0(%rsp), %rax
movq %rax, 0x40(%rsp)
movlpd %xmm0, 0x8c(%rsp)
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movl %edx, 0x74(%rsp)
movl %ecx, 0x70(%rsp)
movl $0x0, 0x4c(%rsp)
cmpq $0x0, 0x80(%rsp)
jne 0x5ebbb
movq 0x66461(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x52807(%rip), %rsi     # 0xb13a0
leaq 0x5281e(%rip), %rdx     # 0xb13be
movl $0x5457, %ecx           # imm = 0x5457
movb $0x0, %al
callq 0x13ec0
movq 0x6643d(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5ebbd
jmp 0x5ebbf
movq 0x80(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x5ec04
movq 0x66418(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x527be(%rip), %rsi     # 0xb13a0
leaq 0x527d5(%rip), %rdx     # 0xb13be
movl $0x5458, %ecx           # imm = 0x5458
movb $0x0, %al
callq 0x13ec0
movq 0x663f4(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5ec06
jmp 0x5ec08
movq 0x80(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5ec54
movq 0x663c8(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5276e(%rip), %rsi     # 0xb13a0
leaq 0x52785(%rip), %rdx     # 0xb13be
movl $0x5459, %ecx           # imm = 0x5459
movb $0x0, %al
callq 0x13ec0
movq 0x663a4(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5ec56
cmpq $0x0, 0x80(%rsp)
je 0x5ec8c
movq 0x80(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x5ec8c
movq 0x80(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5ec9c
movl $0x0, 0x94(%rsp)
jmp 0x5eddd
movq 0x80(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x80(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x139c0
movl %eax, 0x48(%rsp)
cmpl $0x0, 0x48(%rsp)
jne 0x5ecdd
movl $0x0, 0x94(%rsp)
jmp 0x5eddd
cmpl $0x2, 0x48(%rsp)
je 0x5ed04
cmpl $0x3, 0x48(%rsp)
je 0x5ed04
movq 0x68(%rsp), %rax
movq 0xa8(%rax), %rax
movl 0x4(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x5ed0d
xorl %eax, %eax
movq %rax, 0x38(%rsp)
jmp 0x5ed1a
movq 0x80(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rbx
movq 0x38(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x80(%rsp), %rax
movq %rax, %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x68(%rsp), %rsi
addq $0x68, %rsi
movq 0x78(%rsp), %rdx
movl 0x74(%rsp), %ecx
movl 0x70(%rsp), %r8d
movq %rax, %r9
addq $0x380, %r9             # imm = 0x380
movq 0x168(%rax), %r10
movq 0x50(%rsp), %r11
movsd 0x58(%rsp), %xmm0
movsd 0x60(%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 0x5eda6
movl $0x1, 0x4c(%rsp)
movq 0x80(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x78(%rsp), %rdx
movl 0x4c(%rsp), %ecx
movsd 0x58(%rsp), %xmm0
movsd 0x60(%rsp), %xmm1
movsd 0x8c(%rsp), %xmm2
callq 0x5df20
movl %eax, 0x94(%rsp)
movl 0x94(%rsp), %eax
addq $0x98, %rsp
popq %rbx
popq %r14
retq
nop