LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_window_set_bounds
NK_API void
nk_window_set_bounds(struct nk_context *ctx,
    const char *name, struct nk_rect bounds)
{
    struct nk_window *win;
    NK_ASSERT(ctx);
    if (!ctx) return;
    win = nk_window_find(ctx, name);
    if (!win) return;
    NK_ASSERT(ctx->current != win && "You cannot update a currently in procecss window");
    win->bounds = bounds;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x3998d
movq %rdi, %r14
movaps %xmm0, (%rsp)
movaps %xmm1, 0x10(%rsp)
callq 0x12ac0
testq %rax, %rax
je 0x39985
movq %rax, %rbx
cmpq %rax, 0x4780(%r14)
jne 0x39977
movq 0x4b69e(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x303b0(%rip), %rsi     # 0x69d0c
leaq 0x303c7(%rip), %rdx     # 0x69d2a
movl $0x5132, %ecx           # imm = 0x5132
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movaps (%rsp), %xmm0
unpcklpd 0x10(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
movups %xmm0, 0x4c(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq 0x4b65c(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3036e(%rip), %rsi     # 0x69d0c
leaq 0x30385(%rip), %rdx     # 0x69d2a
movl $0x512e, %ecx           # imm = 0x512E
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_window_set_scroll
NK_API void
nk_window_set_scroll(struct nk_context *ctx, nk_uint offset_x, nk_uint offset_y)
{
    struct nk_window *win;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current)
        return;
    win = ctx->current;
    win->scrollbar.x = offset_x;
    win->scrollbar.y = offset_y;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
testq %rdi, %rdi
jne 0x39a3d
movq 0x4b5d8(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x302ea(%rip), %rsi     # 0x69d0c
leaq 0x30301(%rip), %rdx     # 0x69d2a
movl $0x514b, %ecx           # imm = 0x514B
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x39a81
movq 0x4b5a0(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x302b2(%rip), %rsi     # 0x69d0c
leaq 0x302c9(%rip), %rdx     # 0x69d2a
movl $0x514c, %ecx           # imm = 0x514C
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x39a87
movl %ebp, 0x5c(%rax)
movl %ebx, 0x60(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_window_collapse
NK_API void
nk_window_collapse(struct nk_context *ctx, const char *name,
                    enum nk_collapse_states c)
{
    int title_len;
    nk_hash title_hash;
    struct nk_window *win;
    NK_ASSERT(ctx);
    if (!ctx) return;

    title_len = (int)nk_strlen(name);
    title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
    win = nk_find_window(ctx, title_hash, name);
    if (!win) return;
    if (c == NK_MINIMIZED)
        win->flags |= NK_WINDOW_MINIMIZED;
    else win->flags &= ~(nk_flags)NK_WINDOW_MINIMIZED;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x39ada
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x13040
pushq $0x40
popq %rdx
movq %r14, %rdi
movl %eax, %esi
callq 0x125c0
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x372d0
testq %rax, %rax
je 0x39b14
movl 0x48(%rax), %ecx
testl %ebx, %ebx
je 0x39b0b
andl $0xffff7fff, %ecx       # imm = 0xFFFF7FFF
jmp 0x39b11
movq 0x4b50f(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x30221(%rip), %rsi     # 0x69d0c
leaq 0x30238(%rip), %rdx     # 0x69d2a
movl $0x515a, %ecx           # imm = 0x515A
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x13960
orl $0x8000, %ecx           # imm = 0x8000
movl %ecx, 0x48(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_window_show
NK_API void
nk_window_show(struct nk_context *ctx, const char *name, enum nk_show_states s)
{
    int title_len;
    nk_hash title_hash;
    struct nk_window *win;
    NK_ASSERT(ctx);
    if (!ctx) return;

    title_len = (int)nk_strlen(name);
    title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
    win = nk_find_window(ctx, title_hash, name);
    if (!win) return;
    if (s == NK_HIDDEN) {
        win->flags |= NK_WINDOW_HIDDEN;
    } else win->flags &= ~(nk_flags)NK_WINDOW_HIDDEN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x39b9e
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x13040
pushq $0x40
popq %rdx
movq %r14, %rdi
movl %eax, %esi
callq 0x125c0
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x372d0
testq %rax, %rax
je 0x39bd8
movl 0x48(%rax), %ecx
testl %ebx, %ebx
je 0x39bcf
andl $0xffffdfff, %ecx       # imm = 0xFFFFDFFF
jmp 0x39bd5
movq 0x4b44b(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x3015d(%rip), %rsi     # 0x69d0c
leaq 0x30174(%rip), %rdx     # 0x69d2a
movl $0x5173, %ecx           # imm = 0x5173
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x13960
orl $0x2000, %ecx           # imm = 0x2000
movl %ecx, 0x48(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_window_set_focus
NK_API void
nk_window_set_focus(struct nk_context *ctx, const char *name)
{
    int title_len;
    nk_hash title_hash;
    struct nk_window *win;
    NK_ASSERT(ctx);
    if (!ctx) return;

    title_len = (int)nk_strlen(name);
    title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
    win = nk_find_window(ctx, title_hash, name);
    if (win && ctx->end != win) {
        nk_remove_window(ctx, win);
        nk_insert_window(ctx, win, NK_INSERT_BACK);
    }
    ctx->active = win;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x39c83
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x13040
pushq $0x40
popq %rdx
movq %r14, %rdi
movl %eax, %esi
callq 0x125c0
movq %rbx, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x372d0
movq %rax, %r14
testq %rax, %rax
je 0x39c74
cmpq %r14, 0x4770(%rbx)
je 0x39c74
movq %rbx, %rdi
movq %r14, %rsi
callq 0x36b0e
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x37380
movq %r14, 0x4778(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x4b366(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x30078(%rip), %rsi     # 0x69d0c
leaq 0x3008f(%rip), %rdx     # 0x69d2a
movl $0x518d, %ecx           # imm = 0x518D
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_rule_horizontal
NK_API void
nk_rule_horizontal(struct nk_context *ctx, struct nk_color color, nk_bool rounding)
{
    struct nk_rect space;
    enum nk_widget_layout_states state = nk_widget(&space, ctx);
    struct nk_command_buffer *canvas = nk_window_get_canvas(ctx);
    if (!state) return;
    nk_fill_rect(canvas, space, rounding && space.h > 1.5f ? space.h / 2.0f : 0, color);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r14
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x12990
movl %eax, %r15d
movq %r14, %rdi
callq 0x138f0
testl %r15d, %r15d
je 0x39d25
testl %ebp, %ebp
jne 0x39ced
xorps %xmm2, %xmm2
jmp 0x39d0f
movss 0x14(%rsp), %xmm0
movss 0x2cb35(%rip), %xmm1    # 0x66830
mulss %xmm0, %xmm1
movss 0x2cb5d(%rip), %xmm2    # 0x66864
cmpltss %xmm0, %xmm2
andps %xmm1, %xmm2
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movq %rax, %rdi
movl %ebx, %esi
callq 0x12f00
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_popup_close
NK_API void
nk_popup_close(struct nk_context *ctx)
{
    struct nk_window *popup;
    NK_ASSERT(ctx);
    if (!ctx || !ctx->current) return;

    popup = ctx->current;
    NK_ASSERT(popup->parent);
    NK_ASSERT((int)popup->layout->type & (int)NK_PANEL_SET_POPUP);
    popup->flags |= NK_WINDOW_HIDDEN;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3a3fb
movq 0x4780(%rdi), %rbx
testq %rbx, %rbx
je 0x3a3f3
cmpq $0x0, 0x1d8(%rbx)
jne 0x3a3b7
movq 0x4ac5e(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2f970(%rip), %rsi     # 0x69d0c
leaq 0x2f987(%rip), %rdx     # 0x69d2a
movl $0x5266, %ecx           # imm = 0x5266
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0xa8(%rbx), %rax
testb $-0xc, (%rax)
jne 0x3a3ef
movq 0x4ac26(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2f938(%rip), %rsi     # 0x69d0c
leaq 0x2f94f(%rip), %rdx     # 0x69d2a
movl $0x5267, %ecx           # imm = 0x5267
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
orb $0x20, 0x49(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x4abee(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x2f900(%rip), %rsi     # 0x69d0c
leaq 0x2f917(%rip), %rdx     # 0x69d2a
movl $0x5262, %ecx           # imm = 0x5262
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_popup_end
NK_API void
nk_popup_end(struct nk_context *ctx)
{
    struct nk_window *win;
    struct nk_window *popup;

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

    popup = ctx->current;
    if (!popup->parent) return;
    win = popup->parent;
    if (popup->flags & NK_WINDOW_HIDDEN) {
        struct nk_panel *root;
        root = win->layout;
        while (root) {
            root->flags |= NK_WINDOW_REMOVE_ROM;
            root = root->parent;
        }
        win->popup.active = 0;
    }
    nk_push_scissor(&popup->buffer, nk_null_rect);
    nk_end(ctx);

    win->buffer = popup->buffer;
    nk_finish_popup(ctx, win);
    ctx->current = win;
    nk_push_scissor(&win->buffer, win->layout->clip);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x3a467
movq 0x4abae(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2f8c0(%rip), %rsi     # 0x69d0c
leaq 0x2f8d7(%rip), %rdx     # 0x69d2a
movl $0x5270, %ecx           # imm = 0x5270
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
testq %r14, %r14
jne 0x3a4a6
movq 0x4ab76(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2f888(%rip), %rsi     # 0x69d0c
leaq 0x2f89f(%rip), %rdx     # 0x69d2a
movl $0x5271, %ecx           # imm = 0x5271
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
cmpq $0x0, 0xa8(%r14)
jne 0x3a4e8
movq 0x4ab39(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2f84b(%rip), %rsi     # 0x69d0c
leaq 0x2f862(%rip), %rdx     # 0x69d2a
movl $0x5272, %ecx           # imm = 0x5272
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
testq %r14, %r14
je 0x3a520
cmpq $0x0, 0xa8(%r14)
je 0x3a520
movq 0x1d8(%r14), %r15
testq %r15, %r15
je 0x3a520
testb $0x20, 0x49(%r14)
je 0x3a52e
leaq 0xa8(%r15), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x3a526
orb $0x1, 0x6(%rax)
addq $0x1c8, %rax            # imm = 0x1C8
jmp 0x3a50c
popq %rbx
popq %r14
popq %r15
retq
andl $0x0, 0x15c(%r15)
leaq 0x68(%r14), %rdi
movaps 0x2bfb7(%rip), %xmm0    # 0x664f0
movaps 0x2bfc0(%rip), %xmm1    # 0x66500
callq 0x13c50
movq %rbx, %rdi
callq 0x13110
leaq 0x68(%r15), %rdi
movups 0x68(%r14), %xmm0
movups 0x78(%r14), %xmm1
movups 0x88(%r14), %xmm2
movups 0x98(%r14), %xmm3
movups %xmm3, 0x98(%r15)
movups %xmm2, 0x88(%r15)
movups %xmm1, 0x78(%r15)
movups %xmm0, 0x68(%r15)
movdqu 0x98(%r15), %xmm0
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x140(%r15)
movq %r15, 0x4780(%rbx)
movq 0xa8(%r15), %rax
movsd 0x44(%rax), %xmm0
movsd 0x4c(%rax), %xmm1
popq %rbx
popq %r14
popq %r15
jmp 0x13c50
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_popup_get_scroll
NK_API void
nk_popup_get_scroll(struct nk_context *ctx, nk_uint *offset_x, nk_uint *offset_y)
{
    struct nk_window *popup;

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

    popup = ctx->current;
    if (offset_x)
      *offset_x = popup->scrollbar.x;
    if (offset_y)
      *offset_y = popup->scrollbar.y;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
jne 0x3a602
movq 0x4aa15(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2f726(%rip), %rsi     # 0x69d0c
leaq 0x2f73d(%rip), %rdx     # 0x69d2a
movl $0x528f, %ecx           # imm = 0x528F
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r15), %rax
testq %rax, %rax
jne 0x3a643
movq 0x4a9db(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2f6ec(%rip), %rsi     # 0x69d0c
leaq 0x2f703(%rip), %rdx     # 0x69d2a
movl $0x5290, %ecx           # imm = 0x5290
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r15), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3a687
movq 0x4a99c(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2f6ad(%rip), %rsi     # 0x69d0c
leaq 0x2f6c4(%rip), %rdx     # 0x69d2a
movl $0x5291, %ecx           # imm = 0x5291
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r15), %rax
testq %rax, %rax
je 0x3a6a6
cmpq $0x0, 0xa8(%rax)
je 0x3a6a6
testq %r14, %r14
je 0x3a69c
movl 0x5c(%rax), %ecx
movl %ecx, (%r14)
testq %rbx, %rbx
je 0x3a6a6
movl 0x60(%rax), %eax
movl %eax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_popup_set_scroll
NK_API void
nk_popup_set_scroll(struct nk_context *ctx, nk_uint offset_x, nk_uint offset_y)
{
    struct nk_window *popup;

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

    popup = ctx->current;
    popup->scrollbar.x = offset_x;
    popup->scrollbar.y = offset_y;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
testq %rdi, %rdi
jne 0x3a6f1
movq 0x4a924(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2f636(%rip), %rsi     # 0x69d0c
leaq 0x2f64d(%rip), %rdx     # 0x69d2a
movl $0x52a0, %ecx           # imm = 0x52A0
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x3a730
movq 0x4a8ec(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2f5fe(%rip), %rsi     # 0x69d0c
leaq 0x2f615(%rip), %rdx     # 0x69d2a
movl $0x52a1, %ecx           # imm = 0x52A1
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3a772
movq 0x4a8af(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2f5c1(%rip), %rsi     # 0x69d0c
leaq 0x2f5d8(%rip), %rdx     # 0x69d2a
movl $0x52a2, %ecx           # imm = 0x52A2
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x3a782
cmpq $0x0, 0xa8(%rax)
je 0x3a782
movl %ebp, 0x5c(%rax)
movl %ebx, 0x60(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_contextual_item_text
NK_API nk_bool
nk_contextual_item_text(struct nk_context *ctx, const char *text, int len,
    nk_flags alignment)
{
    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(&ctx->last_widget_state, &win->buffer, bounds,
        text, len, alignment, NK_BUTTON_DEFAULT, &style->contextual_button, in, style->font)) {
        nk_contextual_close(ctx);
        return nk_true;
    }
    return nk_false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x3ad6a
movq 0x4a2ad(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2efbe(%rip), %rsi     # 0x69d0c
leaq 0x2efd5(%rip), %rdx     # 0x69d2a
movl $0x52fe, %ecx           # imm = 0x52FE
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%rbx), %r12
testq %r12, %r12
jne 0x3adab
movq 0x4a273(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2ef84(%rip), %rsi     # 0x69d0c
leaq 0x2ef9b(%rip), %rdx     # 0x69d2a
movl $0x52ff, %ecx           # imm = 0x52FF
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%rbx), %r12
cmpq $0x0, 0xa8(%r12)
jne 0x3adf7
movq 0x4a233(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2ef44(%rip), %rsi     # 0x69d0c
leaq 0x2ef5b(%rip), %rdx     # 0x69d2a
xorl %r13d, %r13d
movl $0x5300, %ecx           # imm = 0x5300
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%rbx), %r12
testq %r12, %r12
je 0x3ae8f
cmpq $0x0, 0xa8(%r12)
je 0x3ae28
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x122b0
movl %eax, %r13d
testl %eax, %eax
je 0x3ae8f
leaq 0x2a8(%rbx), %rax
cmpl $0x2, %r13d
jne 0x3ae2d
xorl %r10d, %r10d
jmp 0x3ae40
xorl %r13d, %r13d
jmp 0x3ae8f
movq 0xa8(%r12), %rcx
xorl %r10d, %r10d
testb $0x10, 0x5(%rcx)
cmoveq %rbx, %r10
leaq 0x2598(%rbx), %rdi
addq $0x68, %r12
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
subq $0x8, %rsp
xorl %r13d, %r13d
movq %r12, %rsi
movq %r15, %rdx
movl %r14d, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
pushq 0x168(%rbx)
pushq %r10
pushq %rax
callq 0x3af80
addq $0x20, %rsp
testl %eax, %eax
je 0x3ae8f
movq %rbx, %rdi
callq 0x13670
pushq $0x1
popq %r13
movl %r13d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_widget_fitting
NK_API enum nk_widget_layout_states
nk_widget_fitting(struct nk_rect *bounds, struct nk_context *ctx,
    struct nk_vec2 item_padding)
{
    /* update the bounds to stand without padding  */
    enum nk_widget_layout_states state;
    NK_UNUSED(item_padding);

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

    state = nk_widget(bounds, ctx);
    return state;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
testq %rsi, %rsi
jne 0x3aedd
movq 0x4a138(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2ee4a(%rip), %rsi     # 0x69d0c
leaq 0x2ee61(%rip), %rdx     # 0x69d2a
movl $0x5b18, %ecx           # imm = 0x5B18
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x3af1c
movq 0x4a100(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2ee12(%rip), %rsi     # 0x69d0c
leaq 0x2ee29(%rip), %rdx     # 0x69d2a
movl $0x5b19, %ecx           # imm = 0x5B19
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3af5e
movq 0x4a0c3(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2edd5(%rip), %rsi     # 0x69d0c
leaq 0x2edec(%rip), %rdx     # 0x69d2a
movl $0x5b1a, %ecx           # imm = 0x5B1A
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x3af78
cmpq $0x0, 0xa8(%rax)
je 0x3af78
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x12990
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_contextual_close
NK_API void
nk_contextual_close(struct nk_context *ctx)
{
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout) return;
    nk_popup_close(ctx);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x3b228
movq 0x49ded(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2eaff(%rip), %rsi     # 0x69d0c
leaq 0x2eb16(%rip), %rdx     # 0x69d2a
movl $0x5361, %ecx           # imm = 0x5361
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x3b267
movq 0x49db5(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2eac7(%rip), %rsi     # 0x69d0c
leaq 0x2eade(%rip), %rdx     # 0x69d2a
movl $0x5362, %ecx           # imm = 0x5362
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3b2a9
movq 0x49d78(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2ea8a(%rip), %rsi     # 0x69d0c
leaq 0x2eaa1(%rip), %rdx     # 0x69d2a
movl $0x5363, %ecx           # imm = 0x5363
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x3b2c2
cmpq $0x0, 0xa8(%rax)
je 0x3b2c2
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x14350
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_contextual_item_image_text
NK_API nk_bool
nk_contextual_item_image_text(struct nk_context *ctx, struct nk_image img,
    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_image(&ctx->last_widget_state, &win->buffer, bounds,
        img, text, len, align, NK_BUTTON_DEFAULT, &style->contextual_button, style->font, in)){
        nk_contextual_close(ctx);
        return nk_true;
    }
    return nk_false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x3b33f
movq 0x49cd8(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2e9e9(%rip), %rsi     # 0x69d0c
leaq 0x2ea00(%rip), %rdx     # 0x69d2a
movl $0x5321, %ecx           # imm = 0x5321
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%rbx), %r12
testq %r12, %r12
jne 0x3b380
movq 0x49c9e(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2e9af(%rip), %rsi     # 0x69d0c
leaq 0x2e9c6(%rip), %rdx     # 0x69d2a
movl $0x5322, %ecx           # imm = 0x5322
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%rbx), %r12
cmpq $0x0, 0xa8(%r12)
jne 0x3b3cc
movq 0x49c5e(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2e96f(%rip), %rsi     # 0x69d0c
leaq 0x2e986(%rip), %rdx     # 0x69d2a
xorl %r13d, %r13d
movl $0x5323, %ecx           # imm = 0x5323
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%rbx), %r12
testq %r12, %r12
je 0x3b483
cmpq $0x0, 0xa8(%r12)
je 0x3b408
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x122b0
movl %eax, %r13d
testl %eax, %eax
je 0x3b483
leaq 0x80(%rsp), %rcx
leaq 0x2a8(%rbx), %rax
cmpl $0x2, %r13d
jne 0x3b40d
xorl %edx, %edx
jmp 0x3b41f
xorl %r13d, %r13d
jmp 0x3b483
movq 0xa8(%r12), %rsi
xorl %edx, %edx
testb $0x10, 0x5(%rsi)
cmoveq %rbx, %rdx
leaq 0x2598(%rbx), %rdi
addq $0x68, %r12
movq 0x168(%rbx), %rsi
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movq 0x10(%rcx), %r8
movq %r8, 0x10(%rsp)
movups (%rcx), %xmm2
movups %xmm2, (%rsp)
movq %rdx, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rax, 0x18(%rsp)
xorl %r13d, %r13d
movq %r12, %rsi
movq %r15, %rdx
movl %r14d, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
callq 0x3b495
testl %eax, %eax
je 0x3b483
movq %rbx, %rdi
callq 0x13670
pushq $0x1
popq %r13
movl %r13d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r14d
movl %ecx, 0x4(%rsp)
movq %rdx, %r12
movl %esi, %r15d
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x3b84f
movq 0x497c8(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x2e4d9(%rip), %rsi     # 0x69d0c
leaq 0x2e4f0(%rip), %rdx     # 0x69d2a
movl $0x5345, %ecx           # imm = 0x5345
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movq 0x4780(%rbx), %r13
testq %r13, %r13
jne 0x3b890
movq 0x4978e(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x2e49f(%rip), %rsi     # 0x69d0c
leaq 0x2e4b6(%rip), %rdx     # 0x69d2a
movl $0x5346, %ecx           # imm = 0x5346
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movq 0x4780(%rbx), %r13
cmpq $0x0, 0xa8(%r13)
jne 0x3b8da
movq 0x4974f(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x2e460(%rip), %rsi     # 0x69d0c
leaq 0x2e477(%rip), %rdx     # 0x69d2a
xorl %ebp, %ebp
movl $0x5347, %ecx           # imm = 0x5347
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movq 0x4780(%rbx), %r13
testq %r13, %r13
je 0x3b96d
cmpq $0x0, 0xa8(%r13)
je 0x3b96b
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x122b0
movl %eax, %ebp
testl %eax, %eax
je 0x3b96d
leaq 0x2a8(%rbx), %rax
cmpl $0x2, %ebp
jne 0x3b90c
xorl %r10d, %r10d
jmp 0x3b91e
movq 0xa8(%r13), %rcx
xorl %r10d, %r10d
testb $0x10, 0x5(%rcx)
cmoveq %rbx, %r10
movl %r14d, %r9d
movl 0x4(%rsp), %r8d
movq %r12, %rcx
movl %r15d, %edx
leaq 0x2598(%rbx), %rdi
addq $0x68, %r13
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movq %r13, %rsi
pushq %r10
pushq 0x168(%rbx)
pushq %rax
pushq $0x0
callq 0x3b97e
addq $0x20, %rsp
testl %eax, %eax
je 0x3b96b
movq %rbx, %rdi
callq 0x13670
pushq $0x1
popq %rbp
jmp 0x3b96d
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_panel_get_padding
NK_LIB struct nk_vec2
nk_panel_get_padding(const struct nk_style *style, enum nk_panel_type type)
{
    switch (type) {
    default:
    case NK_PANEL_WINDOW: return style->window.padding;
    case NK_PANEL_GROUP: return style->window.group_padding;
    case NK_PANEL_POPUP: return style->window.popup_padding;
    case NK_PANEL_CONTEXTUAL: return style->window.contextual_padding;
    case NK_PANEL_COMBO: return style->window.combo_padding;
    case NK_PANEL_MENU: return style->window.menu_padding;
    case NK_PANEL_TOOLTIP: return style->window.menu_padding;}
}

// Assembly:
cmpl $0x80, %esi
je 0x3be6c
cmpl $0x4, %esi
je 0x3be81
cmpl $0x10, %esi
je 0x3be73
cmpl $0x20, %esi
je 0x3be7a
cmpl $0x40, %esi
je 0x3be6c
movl $0x2364, %eax           # imm = 0x2364
cmpl $0x2, %esi
jne 0x3be86
movl $0x236c, %eax           # imm = 0x236C
jmp 0x3be86
movl $0x238c, %eax           # imm = 0x238C
jmp 0x3be86
movl $0x2384, %eax           # imm = 0x2384
jmp 0x3be86
movl $0x237c, %eax           # imm = 0x237C
jmp 0x3be86
movl $0x2374, %eax           # imm = 0x2374
movsd (%rdi,%rax), %xmm0
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_menubar_begin
NK_API void
nk_menubar_begin(struct nk_context *ctx)
{
    struct nk_panel *layout;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout)
        return;

    layout = ctx->current->layout;
    NK_ASSERT(layout->at_y == layout->bounds.y);
    /* if this assert triggers you allocated space between nk_begin and nk_menubar_begin.
    If you want a menubar the first nuklear function after `nk_begin` has to be a
    `nk_menubar_begin` call. Inside the menubar you then have to allocate space for
    widgets (also supports multiple rows).
    Example:
        if (nk_begin(...)) {
            nk_menubar_begin(...);
                nk_layout_xxxx(...);
                nk_button(...);
                nk_layout_xxxx(...);
                nk_button(...);
            nk_menubar_end(...);
        }
        nk_end(...);
    */
    if (layout->flags & NK_WINDOW_HIDDEN || layout->flags & NK_WINDOW_MINIMIZED)
        return;

    layout->menu.x = layout->at_x;
    layout->menu.y = layout->at_y + layout->row.height;
    layout->menu.w = layout->bounds.w;
    layout->menu.offset.x = *layout->offset_x;
    layout->menu.offset.y = *layout->offset_y;
    *layout->offset_y = 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x3bec4
movq 0x49151(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2de63(%rip), %rsi     # 0x69d0c
leaq 0x2de7a(%rip), %rdx     # 0x69d2a
movl $0x539a, %ecx           # imm = 0x539A
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x3bf03
movq 0x49119(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2de2b(%rip), %rsi     # 0x69d0c
leaq 0x2de42(%rip), %rdx     # 0x69d2a
movl $0x539b, %ecx           # imm = 0x539B
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3bf49
movq 0x490dc(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2ddee(%rip), %rsi     # 0x69d0c
leaq 0x2de05(%rip), %rdx     # 0x69d2a
movl $0x539c, %ecx           # imm = 0x539C
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x3bfcc
movq 0xa8(%rax), %rbx
testq %rbx, %rbx
je 0x3bfcc
movss 0x2c(%rbx), %xmm0
ucomiss 0xc(%rbx), %xmm0
jne 0x3bf62
jnp 0x3bf8e
movq 0x49087(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2dd99(%rip), %rsi     # 0x69d0c
leaq 0x2ddb0(%rip), %rdx     # 0x69d2a
movl $0x53a1, %ecx           # imm = 0x53A1
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
testb $-0x60, 0x5(%rbx)
jne 0x3bfcc
movss 0x28(%rbx), %xmm0
movss %xmm0, 0x54(%rbx)
movss 0x2c(%rbx), %xmm0
addss 0x78(%rbx), %xmm0
movss %xmm0, 0x58(%rbx)
movss 0x10(%rbx), %xmm0
movss %xmm0, 0x5c(%rbx)
movq 0x18(%rbx), %rax
movl (%rax), %eax
movl %eax, 0x64(%rbx)
movq 0x20(%rbx), %rax
movl (%rax), %ecx
movl %ecx, 0x68(%rbx)
andl $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x3c00c
movq 0x49009(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2dd1b(%rip), %rsi     # 0x69d0c
leaq 0x2dd32(%rip), %rdx     # 0x69d2a
movl $0x53c2, %ecx           # imm = 0x53C2
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rdi
testq %rdi, %rdi
jne 0x3c04b
movq 0x48fd1(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2dce3(%rip), %rsi     # 0x69d0c
leaq 0x2dcfa(%rip), %rdx     # 0x69d2a
movl $0x53c3, %ecx           # imm = 0x53C3
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rdi
cmpq $0x0, 0xa8(%rdi)
jne 0x3c08d
movq 0x48f94(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2dca6(%rip), %rsi     # 0x69d0c
leaq 0x2dcbd(%rip), %rdx     # 0x69d2a
movl $0x53c4, %ecx           # imm = 0x53C4
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rdi
testq %rdi, %rdi
je 0x3c09f
movq 0xa8(%rdi), %rax
testq %rax, %rax
je 0x3c09f
testb $-0x60, 0x5(%rax)
je 0x3c0a7
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movss 0x2c(%rax), %xmm0
subss 0x58(%rax), %xmm0
addq $0x68, %rdi
movss 0x78(%rax), %xmm1
movss 0x24b8(%rbx), %xmm2
addss %xmm1, %xmm2
addss %xmm0, %xmm2
movss %xmm2, 0x60(%rax)
movss 0xc(%rax), %xmm0
addss %xmm2, %xmm0
movss %xmm0, 0xc(%rax)
movss 0x14(%rax), %xmm3
subss %xmm2, %xmm3
movss %xmm3, 0x14(%rax)
movl 0x64(%rax), %ecx
movq 0x18(%rax), %rdx
movl %ecx, (%rdx)
movl 0x68(%rax), %ecx
movq 0x20(%rax), %rdx
movl %ecx, (%rdx)
movaps %xmm0, %xmm2
subss %xmm1, %xmm2
movss %xmm2, 0x2c(%rax)
movss %xmm0, 0x48(%rax)
movss %xmm3, 0x50(%rax)
movsd 0x44(%rax), %xmm0
movsd 0x4c(%rax), %xmm1
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13c50
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movaps %xmm0, 0x10(%rsp)
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x3c17a
movq 0x48e9d(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2dbae(%rip), %rsi     # 0x69d0c
leaq 0x2dbc5(%rip), %rdx     # 0x69d2a
movl $0x5407, %ecx           # imm = 0x5407
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r14), %r12
testq %r12, %r12
jne 0x3c1bb
movq 0x48e63(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2db74(%rip), %rsi     # 0x69d0c
leaq 0x2db8b(%rip), %rdx     # 0x69d2a
movl $0x5408, %ecx           # imm = 0x5408
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r14), %r12
cmpq $0x0, 0xa8(%r12)
jne 0x3c207
movq 0x48e23(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2db34(%rip), %rsi     # 0x69d0c
leaq 0x2db4b(%rip), %rdx     # 0x69d2a
xorl %r13d, %r13d
movl $0x5409, %ecx           # imm = 0x5409
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r14), %r12
testq %r12, %r12
je 0x3c2ac
cmpq $0x0, 0xa8(%r12)
je 0x3c2a9
movq %rsp, %rdi
movq %r14, %rsi
callq 0x12990
movl %eax, %r13d
testl %eax, %eax
je 0x3c2ac
xorl %eax, %eax
cmpl $0x1, %r13d
jne 0x3c23e
testb $0x10, 0x49(%r12)
cmoveq %r14, %rax
leaq 0x2598(%r14), %rdi
leaq 0x68(%r12), %rsi
leaq 0x380(%r14), %r10
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
subq $0x8, %rsp
movq %rbx, %rdx
movl %r15d, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
pushq 0x168(%r14)
pushq %rax
pushq %r10
callq 0x3af80
addq $0x20, %rsp
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movaps 0x10(%rsp), %xmm2
callq 0x3c2be
movl %eax, %r13d
jmp 0x3c2ac
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_menu_begin
NK_INTERN int
nk_menu_begin(struct nk_context *ctx, struct nk_window *win,
    const char *id, int is_clicked, struct nk_rect header, struct nk_vec2 size)
{
    int is_open = 0;
    int is_active = 0;
    struct nk_rect body;
    struct nk_window *popup;
    nk_hash hash = nk_murmur_hash(id, (int)nk_strlen(id), NK_PANEL_MENU);

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

    body.x = header.x;
    body.w = size.x;
    body.y = header.y + header.h;
    body.h = size.y;

    popup = win->popup.win;
    is_open = popup ? nk_true : nk_false;
    is_active = (popup && (win->popup.name == hash) && win->popup.type == NK_PANEL_MENU);
    if ((is_clicked && is_open && !is_active) || (is_open && !is_active) ||
        (!is_open && !is_active && !is_clicked)) return 0;
    if (!nk_nonblock_begin(ctx, NK_WINDOW_NO_SCROLLBAR, body, header, NK_PANEL_MENU))
        return 0;

    win->popup.type = NK_PANEL_MENU;
    win->popup.name = hash;
    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movaps %xmm2, 0x10(%rsp)
movaps %xmm1, 0x20(%rsp)
movaps %xmm0, (%rsp)
movl %ecx, %r15d
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rdi
callq 0x13040
pushq $0x40
popq %rdx
movq %r12, %rdi
movl %eax, %esi
callq 0x125c0
movl %eax, %ebp
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x3c33e
movq 0x48ce0(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2d9f1(%rip), %rsi     # 0x69d0c
leaq 0x2da08(%rip), %rdx     # 0x69d2a
movl $0x53e7, %ecx           # imm = 0x53E7
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3c389
movq 0x48ca1(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x2d9b2(%rip), %rsi     # 0x69d0c
leaq 0x2d9c9(%rip), %rdx     # 0x69d2a
xorl %r12d, %r12d
movl $0x53e8, %ecx           # imm = 0x53E8
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x3c415
cmpq $0x0, 0xa8(%rax)
je 0x3c412
movq 0x120(%rbx), %rax
xorl %r12d, %r12d
testq %rax, %rax
je 0x3c3b6
cmpl %ebp, 0x158(%rbx)
jne 0x3c3b6
cmpl $0x40, 0x128(%rbx)
sete %cl
jmp 0x3c3b8
xorl %ecx, %ecx
testq %rax, %rax
sete %al
testl %r15d, %r15d
sete %dl
testb %al, %dl
jne 0x3c415
orb %cl, %al
testb $0x1, %al
je 0x3c415
movaps (%rsp), %xmm2
movaps %xmm2, %xmm0
movaps 0x20(%rsp), %xmm3
addps %xmm3, %xmm0
shufps $0x1, %xmm2, %xmm0      # xmm0 = xmm0[1,0],xmm2[0,0]
shufps $0xe2, %xmm2, %xmm0     # xmm0 = xmm0[2,0],xmm2[2,3]
pushq $0x20
popq %rsi
pushq $0x40
popq %rdx
movq %r14, %rdi
movaps 0x10(%rsp), %xmm1
callq 0x3a99d
testl %eax, %eax
je 0x3c415
movl $0x40, 0x128(%rbx)
movl %ebp, 0x158(%rbx)
pushq $0x1
popq %r12
jmp 0x3c415
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_menu_begin_image
NK_API nk_bool
nk_menu_begin_image(struct nk_context *ctx, const char *id, 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_image(&ctx->last_widget_state, &win->buffer, header,
        img, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in))
        is_clicked = nk_true;
    return nk_menu_begin(ctx, win, id, is_clicked, header, size);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movaps %xmm0, 0x30(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x3c4a6
movq 0x48b6f(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2d881(%rip), %rsi     # 0x69d0c
leaq 0x2d898(%rip), %rdx     # 0x69d2a
movl $0x5425, %ecx           # imm = 0x5425
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r15
testq %r15, %r15
jne 0x3c4e5
movq 0x48b37(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2d849(%rip), %rsi     # 0x69d0c
leaq 0x2d860(%rip), %rdx     # 0x69d2a
movl $0x5426, %ecx           # imm = 0x5426
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r15
cmpq $0x0, 0xa8(%r15)
jne 0x3c52d
movq 0x48afa(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2d80c(%rip), %rsi     # 0x69d0c
leaq 0x2d823(%rip), %rdx     # 0x69d2a
xorl %ebp, %ebp
movl $0x5427, %ecx           # imm = 0x5427
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r15
testq %r15, %r15
je 0x3c5d0
cmpq $0x0, 0xa8(%r15)
je 0x3c56c
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x12990
movl %eax, %ebp
testl %eax, %eax
je 0x3c5d0
leaq 0x70(%rsp), %rax
cmpl $0x1, %ebp
jne 0x3c570
movq 0xa8(%r15), %rcx
xorl %r8d, %r8d
testb $0x10, 0x5(%rcx)
cmoveq %r14, %r8
jmp 0x3c573
xorl %ebp, %ebp
jmp 0x3c5d0
xorl %r8d, %r8d
leaq 0x2598(%r14), %rdi
leaq 0x68(%r15), %rsi
leaq 0x380(%r14), %rcx
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movq 0x10(%rax), %rdx
movq %rdx, 0x10(%rsp)
movups (%rax), %xmm2
movups %xmm2, (%rsp)
xorl %edx, %edx
callq 0x3c5dd
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movaps 0x30(%rsp), %xmm2
callq 0x3c2be
movl %eax, %ebp
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_do_button_image
NK_LIB nk_bool
nk_do_button_image(nk_flags *state,
    struct nk_command_buffer *out, struct nk_rect bounds,
    struct nk_image img, enum nk_button_behavior b,
    const struct nk_style_button *style, const struct nk_input *in)
{
    int ret;
    struct nk_rect content;

    NK_ASSERT(state);
    NK_ASSERT(style);
    NK_ASSERT(out);
    if (!out || !style || !state)
        return nk_false;

    ret = nk_do_button(state, out, bounds, style, in, b, &content);
    content.x += style->image_padding.x;
    content.y += style->image_padding.y;
    content.w -= 2 * style->image_padding.x;
    content.h -= 2 * style->image_padding.y;

    if (style->draw_begin) style->draw_begin(out, style->userdata);
    nk_draw_button_image(out, &bounds, &content, *state, style, &img);
    if (style->draw_end) style->draw_end(out, style->userdata);
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %rbp
movq %rcx, %rbx
movl %edx, %r13d
movq %rsi, %r14
movq %rdi, %r15
movaps %xmm0, 0x10(%rsp)
movaps %xmm1, 0x20(%rsp)
movlhps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movups %xmm0, 0x38(%rsp)
testq %rdi, %rdi
jne 0x3c63f
movq 0x489d8(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2d6e9(%rip), %rsi     # 0x69d0c
leaq 0x2d700(%rip), %rdx     # 0x69d2a
movl $0x5ed7, %ecx           # imm = 0x5ED7
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %rbx, %rbx
jne 0x3c672
movq 0x489a5(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x2d6b6(%rip), %rsi     # 0x69d0c
leaq 0x2d6cd(%rip), %rdx     # 0x69d2a
movl $0x5ed8, %ecx           # imm = 0x5ED8
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %r14, %r14
je 0x3c74f
movq %rbp, %rcx
testq %rbx, %rbx
sete %al
testq %r15, %r15
sete %dl
xorl %ebp, %ebp
orb %al, %dl
jne 0x3c77d
movq %rsp, %r12
movq %r15, %rdi
movq %r14, %rsi
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movq %rbx, %rdx
movl %r13d, %r8d
movq %r12, %r9
callq 0x43006
movl %eax, %ebp
movsd 0xa8(%rbx), %xmm0
movsd (%r12), %xmm1
movsd 0x8(%r12), %xmm2
addps %xmm0, %xmm1
movlps %xmm1, (%r12)
addps %xmm0, %xmm0
subps %xmm0, %xmm2
movlps %xmm2, 0x8(%r12)
movq 0xc8(%rbx), %rax
testq %rax, %rax
je 0x3c6f8
movq 0xc0(%rbx), %rsi
movq %r14, %rdi
callq *%rax
movl (%r15), %edx
leaq 0x38(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rcx
callq 0x43162
movss 0x7c(%rbx), %xmm0
pushq $-0x1
popq %rdi
callq 0x140a0
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
leaq 0x80(%rsp), %rsi
movl %eax, %edx
callq 0x13660
movq 0xd0(%rbx), %rax
testq %rax, %rax
je 0x3c77d
movq 0xc0(%rbx), %rsi
movq %r14, %rdi
callq *%rax
jmp 0x3c77d
movq 0x4889a(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x2d5ac(%rip), %rsi     # 0x69d0c
leaq 0x2d5c3(%rip), %rdx     # 0x69d2a
xorl %ebp, %ebp
movl $0x5ed9, %ecx           # imm = 0x5ED9
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq