LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_window_is_any_hovered
NK_API nk_bool
nk_window_is_any_hovered(struct nk_context *ctx)
{
    struct nk_window *iter;
    NK_ASSERT(ctx);
    if (!ctx) return 0;
    iter = ctx->begin;
    while (iter) {
        /* check if window is being hovered */
        if(!(iter->flags & NK_WINDOW_HIDDEN)) {
            /* check if window popup is being hovered */
            if (iter->popup.active && iter->popup.win && nk_input_is_mouse_hovering_rect(&ctx->input, iter->popup.win->bounds))
                return 1;

            if (iter->flags & NK_WINDOW_MINIMIZED) {
                struct nk_rect header = iter->bounds;
                header.h = ctx->style.font->height + 2 * ctx->style.window.header.padding.y;
                if (nk_input_is_mouse_hovering_rect(&ctx->input, header))
                    return 1;
            } else if (nk_input_is_mouse_hovering_rect(&ctx->input, iter->bounds)) {
                return 1;
            }
        }
        iter = iter->next;
    }
    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3d2f3
movq 0x4768(%rdi), %rax
xorl %ebx, %ebx
testq %rax, %rax
je 0x3d328
movl 0x48(%rax), %ecx
btl $0xd, %ecx
jb 0x3d2e7
cmpl $0x0, 0x15c(%rax)
je 0x3d256
movq 0x120(%rax), %rdx
testq %rdx, %rdx
je 0x3d256
movsd 0x4c(%rdx), %xmm0
movss 0x144(%rdi), %xmm2
ucomiss %xmm0, %xmm2
jb 0x3d256
movsd 0x54(%rdx), %xmm1
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x3d256
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x148(%rdi), %xmm2
ucomiss %xmm3, %xmm2
jb 0x3d256
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
ucomiss %xmm2, %xmm0
ja 0x3d323
movsd 0x4c(%rax), %xmm0
movsd 0x54(%rax), %xmm1
movaps %xmm0, %xmm2
addss %xmm1, %xmm2
testw %cx, %cx
js 0x3d2a3
movss 0x144(%rdi), %xmm3
ucomiss %xmm0, %xmm3
jb 0x3d2e7
ucomiss %xmm3, %xmm2
jbe 0x3d2e7
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x148(%rdi), %xmm2
ucomiss %xmm3, %xmm2
jb 0x3d2e7
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
ucomiss %xmm2, %xmm0
jbe 0x3d2e7
jmp 0x3d323
movss 0x144(%rdi), %xmm1
ucomiss %xmm0, %xmm1
jb 0x3d2e7
ucomiss %xmm1, %xmm2
jbe 0x3d2e7
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movss 0x148(%rdi), %xmm1
ucomiss %xmm0, %xmm1
jb 0x3d2e7
movss 0x2408(%rdi), %xmm2
movq 0x168(%rdi), %rcx
addss %xmm2, %xmm2
addss 0x8(%rcx), %xmm2
addss %xmm2, %xmm0
ucomiss %xmm1, %xmm0
ja 0x3d323
movq 0x1c8(%rax), %rax
jmp 0x3d1e4
movq 0x4acf6(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x34a88(%rip), %rsi     # 0x71d8c
leaq 0x34a9f(%rip), %rdx     # 0x71daa
xorl %ebx, %ebx
movl $0x50b9, %ecx           # imm = 0x50B9
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
jmp 0x3d328
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_window_is_collapsed
NK_API nk_bool
nk_window_is_collapsed(struct nk_context *ctx, const char *name)
{
    int title_len;
    nk_hash title_hash;
    struct nk_window *win;
    NK_ASSERT(ctx);
    if (!ctx) return 0;

    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 0;
    return win->flags & NK_WINDOW_MINIMIZED;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3d391
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x12f10
movq %rbx, %rdi
movl %eax, %esi
movl $0x40, %edx
callq 0x12560
movq %r14, %rdi
movl %eax, %esi
movq %rbx, %rdx
callq 0x3ac95
testq %rax, %rax
je 0x3d3c1
movl $0x8000, %ebx           # imm = 0x8000
andl 0x48(%rax), %ebx
jmp 0x3d3c3
movq 0x4ac58(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x349ea(%rip), %rsi     # 0x71d8c
leaq 0x34a01(%rip), %rdx     # 0x71daa
xorl %ebx, %ebx
movl $0x50dd, %ecx           # imm = 0x50DD
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
jmp 0x3d3c3
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_window_is_closed
NK_API nk_bool
nk_window_is_closed(struct nk_context *ctx, const char *name)
{
    int title_len;
    nk_hash title_hash;
    struct nk_window *win;
    NK_ASSERT(ctx);
    if (!ctx) return 1;

    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 1;
    return (win->flags & NK_WINDOW_CLOSED);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3d412
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x12f10
movq %rbx, %rdi
movl %eax, %esi
movl $0x40, %edx
callq 0x12560
movq %r14, %rdi
movl %eax, %esi
movq %rbx, %rdx
callq 0x3ac95
testq %rax, %rax
je 0x3d43e
movq %rax, %rcx
movl $0x4000, %eax           # imm = 0x4000
andl 0x48(%rcx), %eax
jmp 0x3d443
movq 0x4abd7(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x34969(%rip), %rsi     # 0x71d8c
leaq 0x34980(%rip), %rdx     # 0x71daa
movl $0x50ec, %ecx           # imm = 0x50EC
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_window_is_active
NK_API nk_bool
nk_window_is_active(struct nk_context *ctx, const char *name)
{
    int title_len;
    nk_hash title_hash;
    struct nk_window *win;
    NK_ASSERT(ctx);
    if (!ctx) return 0;

    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 0;
    return win == ctx->active;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x3d510
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x12f10
movq %r14, %rdi
movl %eax, %esi
movl $0x40, %edx
callq 0x12560
movq %rbx, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x3ac95
xorl %ebp, %ebp
testq %rax, %rax
je 0x3d53e
cmpq 0x4778(%rbx), %rax
sete %bpl
jmp 0x3d53e
movq 0x4aad9(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3486b(%rip), %rsi     # 0x71d8c
leaq 0x34882(%rip), %rdx     # 0x71daa
xorl %ebp, %ebp
movl $0x510a, %ecx           # imm = 0x510A
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_window_close
NK_API void
nk_window_close(struct nk_context *ctx, const char *name)
{
    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 close a currently active window");
    if (ctx->current == win) return;
    win->flags |= NK_WINDOW_HIDDEN;
    win->flags |= NK_WINDOW_CLOSED;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x3d5dd
movq %rdi, %rbx
callq 0x12a00
testq %rax, %rax
je 0x3d5d7
movq %rax, %r14
cmpq %rax, 0x4780(%rbx)
jne 0x3d5c9
movq 0x4aa4c(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x347de(%rip), %rsi     # 0x71d8c
leaq 0x347f5(%rip), %rdx     # 0x71daa
movl $0x5124, %ecx           # imm = 0x5124
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq %r14, 0x4780(%rbx)
je 0x3d5d7
orb $0x60, 0x49(%r14)
popq %rbx
popq %r14
popq %r15
retq
movq 0x4aa0c(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3479e(%rip), %rsi     # 0x71d8c
leaq 0x347b5(%rip), %rdx     # 0x71daa
movl $0x5120, %ecx           # imm = 0x5120
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x3d67e
movq %rdi, %r14
movaps %xmm0, (%rsp)
movaps %xmm1, 0x10(%rsp)
callq 0x12a00
testq %rax, %rax
je 0x3d676
movq %rax, %rbx
cmpq %rax, 0x4780(%r14)
jne 0x3d668
movq 0x4a9ad(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3473f(%rip), %rsi     # 0x71d8c
leaq 0x34756(%rip), %rdx     # 0x71daa
movl $0x5132, %ecx           # imm = 0x5132
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
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 0x4a96b(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x346fd(%rip), %rsi     # 0x71d8c
leaq 0x34714(%rip), %rdx     # 0x71daa
movl $0x512e, %ecx           # imm = 0x512E
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x3d72e
movq 0x4a8e7(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x34679(%rip), %rsi     # 0x71d8c
leaq 0x34690(%rip), %rdx     # 0x71daa
movl $0x514b, %ecx           # imm = 0x514B
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x3d764
movq 0x4a8b1(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x34643(%rip), %rsi     # 0x71d8c
leaq 0x3465a(%rip), %rdx     # 0x71daa
movl $0x514c, %ecx           # imm = 0x514C
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
je 0x3d77b
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x3d77b
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_O1/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 0x3d7d0
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x12f10
movq %r14, %rdi
movl %eax, %esi
movl $0x40, %edx
callq 0x12560
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x3ac95
testq %rax, %rax
je 0x3d80a
movl 0x48(%rax), %ecx
testl %ebx, %ebx
je 0x3d801
andl $0xffff7fff, %ecx       # imm = 0xFFFF7FFF
jmp 0x3d807
movq 0x4a819(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x345ab(%rip), %rsi     # 0x71d8c
leaq 0x345c2(%rip), %rdx     # 0x71daa
movl $0x515a, %ecx           # imm = 0x515A
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x13780
orl $0x8000, %ecx           # imm = 0x8000
movl %ecx, 0x48(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3d8cc
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x12f10
movq %r14, %rdi
movl %eax, %esi
movl $0x40, %edx
callq 0x12560
movq %r15, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x3ac95
testq %rax, %rax
je 0x3d906
movl 0x48(%rax), %ecx
testl %ebx, %ebx
je 0x3d8fd
andl $0xffffdfff, %ecx       # imm = 0xFFFFDFFF
jmp 0x3d903
movq 0x4a71d(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x344af(%rip), %rsi     # 0x71d8c
leaq 0x344c6(%rip), %rdx     # 0x71daa
movl $0x5173, %ecx           # imm = 0x5173
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x13780
orl $0x2000, %ecx           # imm = 0x2000
movl %ecx, 0x48(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3d9e9
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x12f10
movq %r14, %rdi
movl %eax, %esi
movl $0x40, %edx
callq 0x12560
movq %rbx, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x3ac95
movq %rax, %r14
testq %rax, %rax
je 0x3d9da
cmpq %r14, 0x4770(%rbx)
je 0x3d9da
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3a437
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3ad3d
movq %r14, 0x4778(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x4a600(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x34392(%rip), %rsi     # 0x71d8c
leaq 0x343a9(%rip), %rdx     # 0x71daa
movl $0x518d, %ecx           # imm = 0x518D
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x128e0
movl %eax, %r15d
movq %r14, %rdi
callq 0x13710
testl %r15d, %r15d
je 0x3da8b
testl %ebp, %ebp
jne 0x3da53
xorps %xmm2, %xmm2
jmp 0x3da75
movss 0x14(%rsp), %xmm0
movss 0x30e4f(%rip), %xmm1    # 0x6e8b0
mulss %xmm0, %xmm1
movss 0x30e77(%rip), %xmm2    # 0x6e8e4
cmpltss %xmm0, %xmm2
andps %xmm1, %xmm2
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movq %rax, %rdi
movl %ebx, %esi
callq 0x12de0
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3e1bc
movq 0x4780(%rdi), %rbx
testq %rbx, %rbx
je 0x3e1b4
cmpq $0x0, 0x1d8(%rbx)
jne 0x3e178
movq 0x49e9d(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x33c2f(%rip), %rsi     # 0x71d8c
leaq 0x33c46(%rip), %rdx     # 0x71daa
movl $0x5266, %ecx           # imm = 0x5266
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0xa8(%rbx), %rax
testb $-0xc, (%rax)
jne 0x3e1b0
movq 0x49e65(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x33bf7(%rip), %rsi     # 0x71d8c
leaq 0x33c0e(%rip), %rdx     # 0x71daa
movl $0x5267, %ecx           # imm = 0x5267
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
orb $0x20, 0x49(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x49e2d(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x33bbf(%rip), %rsi     # 0x71d8c
leaq 0x33bd6(%rip), %rdx     # 0x71daa
movl $0x5262, %ecx           # imm = 0x5262
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x3e228
movq 0x49ded(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x33b7f(%rip), %rsi     # 0x71d8c
leaq 0x33b96(%rip), %rdx     # 0x71daa
movl $0x5270, %ecx           # imm = 0x5270
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x3e25e
movq 0x49db7(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x33b49(%rip), %rsi     # 0x71d8c
leaq 0x33b60(%rip), %rdx     # 0x71daa
movl $0x5271, %ecx           # imm = 0x5271
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3e29b
movq 0x49d7a(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x33b0c(%rip), %rsi     # 0x71d8c
leaq 0x33b23(%rip), %rdx     # 0x71daa
movl $0x5272, %ecx           # imm = 0x5272
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x3e2e2
movq 0x4780(%rbx), %r14
testq %r14, %r14
je 0x3e2e2
cmpq $0x0, 0xa8(%r14)
je 0x3e2e2
movq 0x1d8(%r14), %r15
testq %r15, %r15
je 0x3e2e2
testb $0x20, 0x49(%r14)
je 0x3e2f3
movq 0xa8(%r15), %rax
testq %rax, %rax
je 0x3e2e8
orb $0x1, 0x6(%rax)
movq 0x1c8(%rax), %rax
jmp 0x3e2d0
popq %rbx
popq %r14
popq %r15
retq
movl $0x0, 0x15c(%r15)
leaq 0x68(%r14), %rdi
movaps 0x301f2(%rip), %xmm0    # 0x6e4f0
movaps 0x301fb(%rip), %xmm1    # 0x6e500
callq 0x13a50
movq %rbx, %rdi
callq 0x12fd0
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 0x13a50
// File: /workspace/github_c_makefile_star2_O1/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 0x3e3c7
movq 0x49c50(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x339e1(%rip), %rsi     # 0x71d8c
leaq 0x339f8(%rip), %rdx     # 0x71daa
movl $0x528f, %ecx           # imm = 0x528F
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r15)
jne 0x3e3ff
movq 0x49c18(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x339a9(%rip), %rsi     # 0x71d8c
leaq 0x339c0(%rip), %rdx     # 0x71daa
movl $0x5290, %ecx           # imm = 0x5290
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r15), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3e43e
movq 0x49bd9(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3396a(%rip), %rsi     # 0x71d8c
leaq 0x33981(%rip), %rdx     # 0x71daa
movl $0x5291, %ecx           # imm = 0x5291
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r15, %r15
je 0x3e46e
movq 0x4780(%r15), %rax
testq %rax, %rax
je 0x3e46e
cmpq $0x0, 0xa8(%rax)
je 0x3e46e
testq %r14, %r14
je 0x3e464
movl 0x5c(%rax), %ecx
movl %ecx, (%r14)
testq %rbx, %rbx
je 0x3e46e
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_O1/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 0x3e4b9
movq 0x49b5c(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x338ee(%rip), %rsi     # 0x71d8c
leaq 0x33905(%rip), %rdx     # 0x71daa
movl $0x52a0, %ecx           # imm = 0x52A0
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x3e4ef
movq 0x49b26(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x338b8(%rip), %rsi     # 0x71d8c
leaq 0x338cf(%rip), %rdx     # 0x71daa
movl $0x52a1, %ecx           # imm = 0x52A1
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3e52c
movq 0x49ae9(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3387b(%rip), %rsi     # 0x71d8c
leaq 0x33892(%rip), %rdx     # 0x71daa
movl $0x52a2, %ecx           # imm = 0x52A2
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
je 0x3e54d
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x3e54d
cmpq $0x0, 0xa8(%rax)
je 0x3e54d
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_O1/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 0x3ebf0
movq 0x49427(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x331b8(%rip), %rsi     # 0x71d8c
leaq 0x331cf(%rip), %rdx     # 0x71daa
movl $0x52fe, %ecx           # imm = 0x52FE
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x3ec28
movq 0x493ef(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x33180(%rip), %rsi     # 0x71d8c
leaq 0x33197(%rip), %rdx     # 0x71daa
movl $0x52ff, %ecx           # imm = 0x52FF
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3ec67
movq 0x493b0(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x33141(%rip), %rsi     # 0x71d8c
leaq 0x33158(%rip), %rdx     # 0x71daa
movl $0x5300, %ecx           # imm = 0x5300
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x3ed1a
movq 0x4780(%rbx), %r13
testq %r13, %r13
je 0x3ed1a
cmpq $0x0, 0xa8(%r13)
je 0x3ed1a
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x12270
movl %eax, %r12d
testl %eax, %eax
je 0x3ed1a
leaq 0x2a8(%rbx), %rax
cmpl $0x2, %r12d
jne 0x3ecb7
xorl %r10d, %r10d
jmp 0x3ecc9
movq 0xa8(%r13), %rcx
xorl %r10d, %r10d
testb $0x10, 0x5(%rcx)
cmoveq %rbx, %r10
leaq 0x2598(%rbx), %rdi
addq $0x68, %r13
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
subq $0x8, %rsp
xorl %r12d, %r12d
movq %r13, %rsi
movq %r15, %rdx
movl %r14d, %ecx
movl %ebp, %r8d
xorl %r9d, %r9d
pushq 0x168(%rbx)
pushq %r10
pushq %rax
callq 0x3ee0e
addq $0x20, %rsp
testl %eax, %eax
je 0x3ed1a
movq %rbx, %rdi
callq 0x134e0
movl $0x1, %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3ed68
movq 0x492ad(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3303f(%rip), %rsi     # 0x71d8c
leaq 0x33056(%rip), %rdx     # 0x71daa
movl $0x5b18, %ecx           # imm = 0x5B18
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x3ed9e
movq 0x49277(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x33009(%rip), %rsi     # 0x71d8c
leaq 0x33020(%rip), %rdx     # 0x71daa
movl $0x5b19, %ecx           # imm = 0x5B19
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3eddb
movq 0x4923a(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x32fcc(%rip), %rsi     # 0x71d8c
leaq 0x32fe3(%rip), %rdx     # 0x71daa
movl $0x5b1a, %ecx           # imm = 0x5B1A
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x3ee06
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x3ee06
cmpq $0x0, 0xa8(%rax)
je 0x3ee06
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x128e0
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3f0ba
movq 0x48f5b(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x32ced(%rip), %rsi     # 0x71d8c
leaq 0x32d04(%rip), %rdx     # 0x71daa
movl $0x5361, %ecx           # imm = 0x5361
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x3f0f0
movq 0x48f25(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x32cb7(%rip), %rsi     # 0x71d8c
leaq 0x32cce(%rip), %rdx     # 0x71daa
movl $0x5362, %ecx           # imm = 0x5362
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3f12d
movq 0x48ee8(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x32c7a(%rip), %rsi     # 0x71d8c
leaq 0x32c91(%rip), %rdx     # 0x71daa
movl $0x5363, %ecx           # imm = 0x5363
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x3f157
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x3f157
cmpq $0x0, 0xa8(%rax)
je 0x3f157
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x140d0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3f1d4
movq 0x48e43(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x32bd4(%rip), %rsi     # 0x71d8c
leaq 0x32beb(%rip), %rdx     # 0x71daa
movl $0x5321, %ecx           # imm = 0x5321
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x3f20c
movq 0x48e0b(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x32b9c(%rip), %rsi     # 0x71d8c
leaq 0x32bb3(%rip), %rdx     # 0x71daa
movl $0x5322, %ecx           # imm = 0x5322
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3f24b
movq 0x48dcc(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x32b5d(%rip), %rsi     # 0x71d8c
leaq 0x32b74(%rip), %rdx     # 0x71daa
movl $0x5323, %ecx           # imm = 0x5323
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
xorl %r13d, %r13d
testq %rbx, %rbx
je 0x3f31f
movq 0x4780(%rbx), %r12
testq %r12, %r12
je 0x3f31f
cmpq $0x0, 0xa8(%r12)
je 0x3f31f
leaq 0x38(%rsp), %rdi
movq %rbx, %rsi
callq 0x12270
movl %eax, %r13d
testl %eax, %eax
je 0x3f31f
leaq 0x80(%rsp), %rcx
leaq 0x2a8(%rbx), %rax
cmpl $0x2, %r13d
jne 0x3f2a7
xorl %edx, %edx
jmp 0x3f2b9
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 0x3f331
testl %eax, %eax
je 0x3f31f
movq %rbx, %rdi
callq 0x134e0
movl $0x1, %r13d
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_O1/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, %ebp
movl %ecx, %r14d
movq %rdx, %r15
movl %esi, %r12d
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x3f72e
movq 0x488e9(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x3267a(%rip), %rsi     # 0x71d8c
leaq 0x32691(%rip), %rdx     # 0x71daa
movl $0x5345, %ecx           # imm = 0x5345
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x3f766
movq 0x488b1(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x32642(%rip), %rsi     # 0x71d8c
leaq 0x32659(%rip), %rdx     # 0x71daa
movl $0x5346, %ecx           # imm = 0x5346
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3f7a5
movq 0x48872(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x32603(%rip), %rsi     # 0x71d8c
leaq 0x3261a(%rip), %rdx     # 0x71daa
movl $0x5347, %ecx           # imm = 0x5347
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
xorl %eax, %eax
testq %rbx, %rbx
je 0x3f84f
movq 0x4780(%rbx), %r13
testq %r13, %r13
je 0x3f84f
cmpq $0x0, 0xa8(%r13)
je 0x3f84f
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x12270
testl %eax, %eax
je 0x3f84f
leaq 0x2a8(%rbx), %r10
cmpl $0x2, %eax
jne 0x3f7ef
xorl %eax, %eax
jmp 0x3f800
movq 0xa8(%r13), %rcx
xorl %eax, %eax
testb $0x10, 0x5(%rcx)
cmoveq %rbx, %rax
leaq 0x2598(%rbx), %rdi
addq $0x68, %r13
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movq %r13, %rsi
movl %r12d, %edx
movq %r15, %rcx
movl %r14d, %r8d
movl %ebp, %r9d
pushq %rax
pushq 0x168(%rbx)
pushq %r10
pushq $0x0
callq 0x3f85e
addq $0x20, %rsp
testl %eax, %eax
je 0x3f84d
movq %rbx, %rdi
callq 0x134e0
movl $0x1, %eax
jmp 0x3f84f
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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:
movl $0x2364, %eax           # imm = 0x2364
cmpl $0x1f, %esi
jg 0x3fdb0
cmpl $0x2, %esi
je 0x3fdc9
cmpl $0x4, %esi
je 0x3fdd7
cmpl $0x10, %esi
jne 0x3fddc
movl $0x2384, %eax           # imm = 0x2384
jmp 0x3fddc
cmpl $0x20, %esi
je 0x3fdd0
cmpl $0x40, %esi
je 0x3fdc2
cmpl $0x80, %esi
jne 0x3fddc
movl $0x238c, %eax           # imm = 0x238C
jmp 0x3fddc
movl $0x236c, %eax           # imm = 0x236C
jmp 0x3fddc
movl $0x237c, %eax           # imm = 0x237C
jmp 0x3fddc
movl $0x2374, %eax           # imm = 0x2374
movsd (%rdi,%rax), %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3fe1a
movq 0x481fb(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x31f8d(%rip), %rsi     # 0x71d8c
leaq 0x31fa4(%rip), %rdx     # 0x71daa
movl $0x539a, %ecx           # imm = 0x539A
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x3fe50
movq 0x481c5(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x31f57(%rip), %rsi     # 0x71d8c
leaq 0x31f6e(%rip), %rdx     # 0x71daa
movl $0x539b, %ecx           # imm = 0x539B
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3fe8d
movq 0x48188(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x31f1a(%rip), %rsi     # 0x71d8c
leaq 0x31f31(%rip), %rdx     # 0x71daa
movl $0x539c, %ecx           # imm = 0x539C
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x3ff2c
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x3ff2c
movq 0xa8(%rax), %rbx
testq %rbx, %rbx
je 0x3ff2c
movss 0x2c(%rbx), %xmm0
ucomiss 0xc(%rbx), %xmm0
jne 0x3febf
jnp 0x3feeb
movq 0x4812a(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x31ebc(%rip), %rsi     # 0x71d8c
leaq 0x31ed3(%rip), %rdx     # 0x71daa
movl $0x53a1, %ecx           # imm = 0x53A1
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testb $-0x60, 0x5(%rbx)
jne 0x3ff2c
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)
movl $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3ff6c
movq 0x480a9(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x31e3b(%rip), %rsi     # 0x71d8c
leaq 0x31e52(%rip), %rdx     # 0x71daa
movl $0x53c2, %ecx           # imm = 0x53C2
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x3ffa2
movq 0x48073(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x31e05(%rip), %rsi     # 0x71d8c
leaq 0x31e1c(%rip), %rdx     # 0x71daa
movl $0x53c3, %ecx           # imm = 0x53C3
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3ffdf
movq 0x48036(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x31dc8(%rip), %rsi     # 0x71d8c
leaq 0x31ddf(%rip), %rdx     # 0x71daa
movl $0x53c4, %ecx           # imm = 0x53C4
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x40002
movq 0x4780(%rbx), %rdi
testq %rdi, %rdi
je 0x40002
movq 0xa8(%rdi), %rax
testq %rax, %rax
je 0x40002
testb $-0x60, 0x5(%rax)
je 0x4000a
addq $0x8, %rsp
popq %rbx
popq %r14
retq
addq $0x68, %rdi
movss 0x2c(%rax), %xmm0
subss 0x58(%rax), %xmm0
movss %xmm0, 0x60(%rax)
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 0x13a50
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
subq $0x20, %rsp
movaps %xmm0, 0x10(%rsp)
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x400e0
movq 0x47f37(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x31cc8(%rip), %rsi     # 0x71d8c
leaq 0x31cdf(%rip), %rdx     # 0x71daa
movl $0x5407, %ecx           # imm = 0x5407
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x40118
movq 0x47eff(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x31c90(%rip), %rsi     # 0x71d8c
leaq 0x31ca7(%rip), %rdx     # 0x71daa
movl $0x5408, %ecx           # imm = 0x5408
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x40157
movq 0x47ec0(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x31c51(%rip), %rsi     # 0x71d8c
leaq 0x31c68(%rip), %rdx     # 0x71daa
movl $0x5409, %ecx           # imm = 0x5409
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
xorl %eax, %eax
testq %r14, %r14
je 0x4020b
movq 0x4780(%r14), %r12
testq %r12, %r12
je 0x4020b
cmpq $0x0, 0xa8(%r12)
je 0x4020b
movq %rsp, %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x4020b
cmpl $0x1, %eax
jne 0x401a3
xorl %eax, %eax
testb $0x10, 0x49(%r12)
cmoveq %r14, %rax
jmp 0x401a5
xorl %eax, %eax
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 0x3ee0e
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 0x40218
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq