// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_menu_begin_text
NK_API nk_bool
nk_menu_begin_text(struct nk_context *ctx, const char *title, int len,
    nk_flags align, 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->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    if (nk_do_button_text(&ctx->last_widget_state, &win->buffer, header,
        title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in, ctx->style.font))
        is_clicked = nk_true;
    return nk_menu_begin(ctx, win, title, is_clicked, header, size);
}

// Assembly:
subq $0x78, %rsp
movlpd %xmm0, 0x6c(%rsp)
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movl %ecx, 0x50(%rsp)
movl $0x0, 0x2c(%rsp)
cmpq $0x0, 0x60(%rsp)
jne 0x5dd2f
movq 0x672ed(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x53693(%rip), %rsi     # 0xb13a0
leaq 0x536aa(%rip), %rdx     # 0xb13be
movl $0x5407, %ecx           # imm = 0x5407
movb $0x0, %al
callq 0x13ec0
movq 0x672c9(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5dd31
jmp 0x5dd33
movq 0x60(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x5dd75
movq 0x672a7(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5364d(%rip), %rsi     # 0xb13a0
leaq 0x53664(%rip), %rdx     # 0xb13be
movl $0x5408, %ecx           # imm = 0x5408
movb $0x0, %al
callq 0x13ec0
movq 0x67283(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5dd77
jmp 0x5dd79
movq 0x60(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5ddc2
movq 0x6725a(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x53600(%rip), %rsi     # 0xb13a0
leaq 0x53617(%rip), %rdx     # 0xb13be
movl $0x5409, %ecx           # imm = 0x5409
movb $0x0, %al
callq 0x13ec0
movq 0x67236(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5ddc4
cmpq $0x0, 0x60(%rsp)
je 0x5ddf1
movq 0x60(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x5ddf1
movq 0x60(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5ddfe
movl $0x0, 0x74(%rsp)
jmp 0x5df0c
movq 0x60(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x60(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x139c0
movl %eax, 0x28(%rsp)
cmpl $0x0, 0x28(%rsp)
jne 0x5de36
movl $0x0, 0x74(%rsp)
jmp 0x5df0c
cmpl $0x2, 0x28(%rsp)
je 0x5de56
cmpl $0x3, 0x28(%rsp)
je 0x5de56
movq 0x48(%rsp), %rax
movl 0x48(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x5de5f
xorl %eax, %eax
movq %rax, 0x20(%rsp)
jmp 0x5de69
movq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x60(%rsp), %rax
movq %rax, %rdi
addq $0x2598, %rdi           # imm = 0x2598
movq 0x48(%rsp), %rsi
addq $0x68, %rsi
movq 0x58(%rsp), %rdx
movl 0x54(%rsp), %ecx
movl 0x50(%rsp), %r8d
movq %rax, %r9
addq $0x380, %r9             # imm = 0x380
movq 0x40(%rsp), %r10
movq 0x168(%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 0x5dede
movl $0x1, 0x2c(%rsp)
movq 0x60(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x58(%rsp), %rdx
movl 0x2c(%rsp), %ecx
movsd 0x30(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
movsd 0x6c(%rsp), %xmm2
callq 0x5df20
movl %eax, 0x74(%rsp)
movl 0x74(%rsp), %eax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)