// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_menubar_end
NK_API void
nk_menubar_end(struct nk_context *ctx)
{
    struct nk_window *win;
    struct nk_panel *layout;
    struct nk_command_buffer *out;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout)
        return;

    win = ctx->current;
    out = &win->buffer;
    layout = win->layout;
    if (layout->flags & NK_WINDOW_HIDDEN || layout->flags & NK_WINDOW_MINIMIZED)
        return;

    layout->menu.h  = layout->at_y - layout->menu.y;
    layout->menu.h += layout->row.height + ctx->style.window.spacing.y;

    layout->bounds.y += layout->menu.h;
    layout->bounds.h -= layout->menu.h;

    *layout->offset_x = layout->menu.offset.x;
    *layout->offset_y = layout->menu.offset.y;
    layout->at_y      = layout->bounds.y - layout->row.height;

    layout->clip.y = layout->bounds.y;
    layout->clip.h = layout->bounds.h;
    nk_push_scissor(out, layout->clip);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x5dac4
movq 0x67558(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x538fe(%rip), %rsi     # 0xb13a0
leaq 0x53915(%rip), %rdx     # 0xb13be
movl $0x53c2, %ecx           # imm = 0x53C2
movb $0x0, %al
callq 0x13ec0
movq 0x67534(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5dac6
jmp 0x5dac8
movq 0x20(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
jne 0x5db0a
movq 0x67512(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x538b8(%rip), %rsi     # 0xb13a0
leaq 0x538cf(%rip), %rdx     # 0xb13be
movl $0x53c3, %ecx           # imm = 0x53C3
movb $0x0, %al
callq 0x13ec0
movq 0x674ee(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5db0c
jmp 0x5db0e
movq 0x20(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5db57
movq 0x674c5(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x5386b(%rip), %rsi     # 0xb13a0
leaq 0x53882(%rip), %rdx     # 0xb13be
movl $0x53c4, %ecx           # imm = 0x53C4
movb $0x0, %al
callq 0x13ec0
movq 0x674a1(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x5db59
cmpq $0x0, 0x20(%rsp)
je 0x5db86
movq 0x20(%rsp), %rax
cmpq $0x0, 0x4780(%rax)
je 0x5db86
movq 0x20(%rsp), %rax
movq 0x4780(%rax), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x5db8b
jmp 0x5dcc0
movq 0x20(%rsp), %rax
movq 0x4780(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
jne 0x5dbdf
movq 0x10(%rsp), %rax
movl 0x4(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
je 0x5dbe4
jmp 0x5dcc0
movq 0x10(%rsp), %rax
movss 0x2c(%rax), %xmm0
movss 0x58(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x60(%rax)
movq 0x10(%rsp), %rax
movss 0x60(%rax), %xmm0
movss 0x78(%rax), %xmm1
movq 0x20(%rsp), %rcx
movss 0x24b8(%rcx), %xmm2
addss %xmm2, %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x60(%rax)
movq 0x10(%rsp), %rax
movss 0xc(%rax), %xmm0
movss 0x60(%rax), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0xc(%rax)
movq 0x10(%rsp), %rax
movss 0x14(%rax), %xmm0
movss 0x60(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x14(%rax)
movq 0x10(%rsp), %rax
movl 0x64(%rax), %ecx
movq 0x18(%rax), %rax
movl %ecx, (%rax)
movq 0x10(%rsp), %rax
movl 0x68(%rax), %ecx
movq 0x20(%rax), %rax
movl %ecx, (%rax)
movq 0x10(%rsp), %rax
movss 0xc(%rax), %xmm0
movss 0x78(%rax), %xmm1
subss %xmm1, %xmm0
movss %xmm0, 0x2c(%rax)
movq 0x10(%rsp), %rax
movss 0xc(%rax), %xmm0
movss %xmm0, 0x48(%rax)
movq 0x10(%rsp), %rax
movss 0x14(%rax), %xmm0
movss %xmm0, 0x50(%rax)
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
movsd 0x44(%rax), %xmm0
movsd 0x4c(%rax), %xmm1
callq 0x14c90
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)