LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_layout_widget_bounds
NK_API struct nk_rect
nk_layout_widget_bounds(struct nk_context *ctx)
{
    struct nk_rect ret;
    struct nk_window *win;
    struct nk_panel *layout;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    win = ctx->current;
    layout = win->layout;

    ret.x = layout->at_x;
    ret.y = layout->at_y;
    ret.w = layout->bounds.w - NK_MAX(layout->at_x - layout->bounds.x,0);
    ret.h = layout->row.height;
    return ret;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4256d
movq 0x45aa8(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f83a(%rip), %rsi     # 0x71d8c
leaq 0x2f851(%rip), %rdx     # 0x71daa
movl $0x56a2, %ecx           # imm = 0x56A2
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x425a3
movq 0x45a72(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f804(%rip), %rsi     # 0x71d8c
leaq 0x2f81b(%rip), %rdx     # 0x71daa
movl $0x56a3, %ecx           # imm = 0x56A3
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x425e0
movq 0x45a35(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f7c7(%rip), %rsi     # 0x71d8c
leaq 0x2f7de(%rip), %rdx     # 0x71daa
movl $0x56a4, %ecx           # imm = 0x56A4
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rax
movsd 0x28(%rax), %xmm0
movss 0x10(%rax), %xmm1
movss 0x8(%rax), %xmm2
movaps %xmm0, %xmm3
subss %xmm2, %xmm3
xorps %xmm2, %xmm2
maxss %xmm3, %xmm2
subss %xmm2, %xmm1
movss 0x78(%rax), %xmm2
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_layout_space_to_screen
NK_API struct nk_vec2
nk_layout_space_to_screen(struct nk_context *ctx, struct nk_vec2 ret)
{
    struct nk_window *win;
    struct nk_panel *layout;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    win = ctx->current;
    layout = win->layout;

    ret.x += layout->at_x - (float)*layout->offset_x;
    ret.y += layout->at_y - (float)*layout->offset_y;
    return ret;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movaps %xmm0, (%rsp)
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4265e
movq 0x459b7(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f749(%rip), %rsi     # 0x71d8c
leaq 0x2f760(%rip), %rdx     # 0x71daa
movl $0x56b4, %ecx           # imm = 0x56B4
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x42694
movq 0x45981(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f713(%rip), %rsi     # 0x71d8c
leaq 0x2f72a(%rip), %rdx     # 0x71daa
movl $0x56b5, %ecx           # imm = 0x56B5
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x426d1
movq 0x45944(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f6d6(%rip), %rsi     # 0x71d8c
leaq 0x2f6ed(%rip), %rdx     # 0x71daa
movl $0x56b6, %ecx           # imm = 0x56B6
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rax
movq 0x18(%rax), %rcx
movq 0x20(%rax), %rdx
movss (%rdx), %xmm0
movss (%rcx), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movapd 0x2c135(%rip), %xmm0    # 0x6e830
orpd %xmm0, %xmm1
subpd %xmm0, %xmm1
cvtpd2ps %xmm1, %xmm1
movsd 0x28(%rax), %xmm0
subps %xmm1, %xmm0
addps (%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_layout_space_to_local
NK_API struct nk_vec2
nk_layout_space_to_local(struct nk_context *ctx, struct nk_vec2 ret)
{
    struct nk_window *win;
    struct nk_panel *layout;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    win = ctx->current;
    layout = win->layout;

    ret.x += -layout->at_x + (float)*layout->offset_x;
    ret.y += -layout->at_y + (float)*layout->offset_y;
    return ret;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movaps %xmm0, (%rsp)
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4275a
movq 0x458bb(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f64d(%rip), %rsi     # 0x71d8c
leaq 0x2f664(%rip), %rdx     # 0x71daa
movl $0x56c4, %ecx           # imm = 0x56C4
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x42790
movq 0x45885(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f617(%rip), %rsi     # 0x71d8c
leaq 0x2f62e(%rip), %rdx     # 0x71daa
movl $0x56c5, %ecx           # imm = 0x56C5
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x427cd
movq 0x45848(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f5da(%rip), %rsi     # 0x71d8c
leaq 0x2f5f1(%rip), %rdx     # 0x71daa
movl $0x56c6, %ecx           # imm = 0x56C6
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rax
movq 0x18(%rax), %rcx
movq 0x20(%rax), %rdx
movss (%rdx), %xmm0
movss (%rcx), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movapd 0x2c039(%rip), %xmm0    # 0x6e830
orpd %xmm0, %xmm1
subpd %xmm0, %xmm1
cvtpd2ps %xmm1, %xmm0
movsd 0x28(%rax), %xmm1
subps %xmm1, %xmm0
addps (%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_layout_space_rect_to_screen
NK_API struct nk_rect
nk_layout_space_rect_to_screen(struct nk_context *ctx, struct nk_rect ret)
{
    struct nk_window *win;
    struct nk_panel *layout;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    win = ctx->current;
    layout = win->layout;

    ret.x += layout->at_x - (float)*layout->offset_x;
    ret.y += layout->at_y - (float)*layout->offset_y;
    return ret;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4285b
movq 0x457ba(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f54c(%rip), %rsi     # 0x71d8c
leaq 0x2f563(%rip), %rdx     # 0x71daa
movl $0x56d4, %ecx           # imm = 0x56D4
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x42891
movq 0x45784(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f516(%rip), %rsi     # 0x71d8c
leaq 0x2f52d(%rip), %rdx     # 0x71daa
movl $0x56d5, %ecx           # imm = 0x56D5
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x428ce
movq 0x45747(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f4d9(%rip), %rsi     # 0x71d8c
leaq 0x2f4f0(%rip), %rdx     # 0x71daa
movl $0x56d6, %ecx           # imm = 0x56D6
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rax
movq 0x18(%rax), %rcx
movq 0x20(%rax), %rdx
movsd 0x28(%rax), %xmm0
movss (%rdx), %xmm1
movss (%rcx), %xmm2
unpcklpd %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
movapd 0x2bf33(%rip), %xmm1    # 0x6e830
orpd %xmm1, %xmm2
subpd %xmm1, %xmm2
cvtpd2ps %xmm2, %xmm1
subps %xmm1, %xmm0
addps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_layout_space_rect_to_local
NK_API struct nk_rect
nk_layout_space_rect_to_local(struct nk_context *ctx, struct nk_rect ret)
{
    struct nk_window *win;
    struct nk_panel *layout;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    win = ctx->current;
    layout = win->layout;

    ret.x += -layout->at_x + (float)*layout->offset_x;
    ret.y += -layout->at_y + (float)*layout->offset_y;
    return ret;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x42961
movq 0x456b4(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f446(%rip), %rsi     # 0x71d8c
leaq 0x2f45d(%rip), %rdx     # 0x71daa
movl $0x56e4, %ecx           # imm = 0x56E4
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x42997
movq 0x4567e(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f410(%rip), %rsi     # 0x71d8c
leaq 0x2f427(%rip), %rdx     # 0x71daa
movl $0x56e5, %ecx           # imm = 0x56E5
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x429d4
movq 0x45641(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2f3d3(%rip), %rsi     # 0x71d8c
leaq 0x2f3ea(%rip), %rdx     # 0x71daa
movl $0x56e6, %ecx           # imm = 0x56E6
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rax
movq 0x18(%rax), %rcx
movq 0x20(%rax), %rdx
movsd 0x28(%rax), %xmm1
movss (%rdx), %xmm0
movss (%rcx), %xmm2
unpcklpd %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
movapd 0x2be2d(%rip), %xmm0    # 0x6e830
orpd %xmm0, %xmm2
subpd %xmm0, %xmm2
cvtpd2ps %xmm2, %xmm0
subps %xmm1, %xmm0
addps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_panel_alloc_space
NK_LIB void
nk_panel_alloc_space(struct nk_rect *bounds, const struct nk_context *ctx)
{
    struct nk_window *win;
    struct nk_panel *layout;

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

    /* check if the end of the row has been hit and begin new row if so */
    win = ctx->current;
    layout = win->layout;
    if (layout->row.index >= layout->row.columns)
        nk_panel_alloc_row(ctx, win);

    /* calculate widget position and size */
    nk_layout_widget_space(bounds, ctx, win, nk_true);
    layout->row.index++;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
testq %rsi, %rsi
jne 0x42a79
movq 0x4559c(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2f32e(%rip), %rsi     # 0x71d8c
leaq 0x2f345(%rip), %rdx     # 0x71daa
movl $0x5783, %ecx           # imm = 0x5783
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x42aaf
movq 0x45566(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2f2f8(%rip), %rsi     # 0x71d8c
leaq 0x2f30f(%rip), %rdx     # 0x71daa
movl $0x5784, %ecx           # imm = 0x5784
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x42aec
movq 0x45529(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2f2bb(%rip), %rsi     # 0x71d8c
leaq 0x2f2d2(%rip), %rdx     # 0x71daa
movl $0x5785, %ecx           # imm = 0x5785
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x42b40
movq 0x4780(%rbx), %rsi
testq %rsi, %rsi
je 0x42b40
movq 0xa8(%rsi), %r15
testq %r15, %r15
je 0x42b40
movl 0x80(%r15), %edx
cmpl %edx, 0x74(%r15)
jl 0x42b2c
movss 0x78(%r15), %xmm0
subss 0x24b8(%rbx), %xmm0
movq %rbx, %rdi
callq 0x412be
movq %r14, %rdi
movq %rbx, %rsi
movl $0x1, %edx
callq 0x583b9
incl 0x74(%r15)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_tree_state_pop
NK_API void
nk_tree_state_pop(struct nk_context *ctx)
{
    struct nk_window *win = 0;
    struct nk_panel *layout = 0;

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

    win = ctx->current;
    layout = win->layout;
    layout->at_x -= ctx->style.tab.indent + (float)*layout->offset_x;
    layout->bounds.w += ctx->style.tab.indent + ctx->style.window.padding.x;
    NK_ASSERT(layout->row.tree_depth);
    layout->row.tree_depth--;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x43119
movq 0x44efc(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2ec8e(%rip), %rsi     # 0x71d8c
leaq 0x2eca5(%rip), %rdx     # 0x71daa
movl $0x585a, %ecx           # imm = 0x585A
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x4314f
movq 0x44ec6(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2ec58(%rip), %rsi     # 0x71d8c
leaq 0x2ec6f(%rip), %rdx     # 0x71daa
movl $0x585b, %ecx           # imm = 0x585B
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x4318c
movq 0x44e89(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2ec1b(%rip), %rsi     # 0x71d8c
leaq 0x2ec32(%rip), %rdx     # 0x71daa
movl $0x585c, %ecx           # imm = 0x585C
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x43229
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x43229
movq 0xa8(%rax), %r14
testq %r14, %r14
je 0x43229
movss 0x1ff8(%rbx), %xmm0
movq 0x18(%r14), %rax
movl (%rax), %eax
cvtsi2ss %rax, %xmm1
addss %xmm0, %xmm1
movss 0x28(%r14), %xmm2
subss %xmm1, %xmm2
movss %xmm2, 0x28(%r14)
addss 0x24cc(%rbx), %xmm0
addss 0x10(%r14), %xmm0
movss %xmm0, 0x10(%r14)
cmpl $0x0, 0xb0(%r14)
jne 0x43222
movq 0x44df3(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2eb85(%rip), %rsi     # 0x71d8c
leaq 0x2eb9c(%rip), %rdx     # 0x71daa
movl $0x5864, %ecx           # imm = 0x5864
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
decl 0xb0(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_tree_base
NK_INTERN int
nk_tree_base(struct nk_context *ctx, enum nk_tree_type type,
    struct nk_image *img, const char *title, enum nk_collapse_states initial_state,
    const char *hash, int len, int line)
{
    struct nk_window *win = ctx->current;
    int title_len = 0;
    nk_hash tree_hash = 0;
    nk_uint *state = 0;

    /* retrieve tree state from internal widget state tables */
    if (!hash) {
        title_len = (int)nk_strlen(title);
        tree_hash = nk_murmur_hash(title, (int)title_len, (nk_hash)line);
    } else tree_hash = nk_murmur_hash(hash, len, (nk_hash)line);
    state = nk_find_value(win, tree_hash);
    if (!state) {
        state = nk_add_value(ctx, win, tree_hash, 0);
        *state = initial_state;
    }
    return nk_tree_state_base(ctx, type, img, title, (enum nk_collapse_states*)state);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, 0x4(%rsp)
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
movl 0x48(%rsp), %r12d
movq 0x4780(%rdi), %r13
testq %r9, %r9
je 0x43288
movl 0x40(%rsp), %esi
movq %r9, %rdi
jmp 0x43295
movq %rbx, %rdi
callq 0x12f10
movq %rbx, %rdi
movl %eax, %esi
movl %r12d, %edx
callq 0x12560
movq 0x1b8(%r13), %rcx
testq %rcx, %rcx
je 0x43306
movl 0x4(%rcx), %esi
testq %rsi, %rsi
setne %dl
je 0x432f9
cmpl %eax, 0x8(%rcx)
jne 0x432bf
movb $0x1, %dl
xorl %edi, %edi
jmp 0x432dd
leaq -0x1(%rsi), %r9
xorl %edx, %edx
cmpq %rdx, %r9
je 0x432f0
leaq 0x1(%rdx), %rdi
cmpl %eax, 0xc(%rcx,%rdx,4)
movq %rdi, %rdx
jne 0x432c5
cmpq %rsi, %rdi
setb %dl
movl (%r13), %esi
movl %esi, (%rcx)
leaq (%rcx,%rdi,4), %r8
addq $0xf8, %r8
jmp 0x43300
incq %rdx
cmpq %rsi, %rdx
setb %dl
movq 0x1e8(%rcx), %rcx
testb %dl, %dl
je 0x432a4
jmp 0x43309
xorl %r8d, %r8d
testq %r8, %r8
jne 0x43325
movq %r15, %rdi
movq %r13, %rsi
movl %eax, %edx
callq 0x441e0
movq %rax, %r8
movl 0x4(%rsp), %eax
movl %eax, (%r8)
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x42b50
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_add_value
NK_LIB nk_uint*
nk_add_value(struct nk_context *ctx, struct nk_window *win,
            nk_hash name, nk_uint value)
{
    NK_ASSERT(ctx);
    NK_ASSERT(win);
    if (!win || !ctx) return 0;
    if (!win->tables || win->tables->size >= NK_VALUE_PAGE_CAPACITY) {
        struct nk_table *tbl = nk_create_table(ctx);
        NK_ASSERT(tbl);
        if (!tbl) return 0;
        nk_push_table(win, tbl);
    }
    win->tables->seq = win->seq;
    win->tables->keys[win->tables->size] = name;
    win->tables->values[win->tables->size] = value;
    return &win->tables->values[win->tables->size++];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
jne 0x44226
movq 0x43df1(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2db82(%rip), %rsi     # 0x71d8c
leaq 0x2db99(%rip), %rdx     # 0x71daa
movl $0x4c6a, %ecx           # imm = 0x4C6A
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r14, %r14
jne 0x44259
movq 0x43dbe(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2db4f(%rip), %rsi     # 0x71d8c
leaq 0x2db66(%rip), %rdx     # 0x71daa
movl $0x4c6b, %ecx           # imm = 0x4C6B
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r14, %r14
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne 0x443bf
movq 0x1b8(%r14), %rax
testq %rax, %rax
je 0x44283
cmpl $0x3c, 0x4(%rax)
jb 0x44393
movq %r15, %rdi
callq 0x576fb
testq %rax, %rax
je 0x442c0
movq %rax, %r15
movq %rax, %r12
andq $0x3, %r12
je 0x442c5
movl $0x4, %ebp
subq %r12, %rbp
movq %r15, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x12b50
orq $0x204, %r12            # imm = 0x204
movq %r15, %r13
addq %rbp, %r13
jmp 0x442ce
xorl %r15d, %r15d
jmp 0x442f7
movl $0x208, %r12d           # imm = 0x208
movq %r15, %r13
movl %r12d, %ebp
andl $-0x4, %ebp
movq %r13, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x12b50
andq $0x3, %r12
je 0x442f7
addq %rbp, %r13
movq %r13, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x12b50
testq %r15, %r15
je 0x44339
movq 0x1b8(%r14), %rax
testq %rax, %rax
je 0x44369
movq %r15, 0x1f0(%rax)
movq %rax, 0x1e8(%r15)
movq $0x0, 0x1f0(%r15)
movl $0x0, 0x4(%r15)
movq %r15, 0x1b8(%r14)
incl 0x1c0(%r14)
jmp 0x4438e
movq 0x43cb0(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2da41(%rip), %rsi     # 0x71d8c
leaq 0x2da58(%rip), %rdx     # 0x71daa
movl $0x4c6f, %ecx           # imm = 0x4C6F
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
jmp 0x4438e
movq %r15, 0x1b8(%r14)
movl $0x0, 0x4(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x1e8(%r15)
movl $0x1, 0x1c0(%r14)
testq %r15, %r15
je 0x443bf
movl (%r14), %eax
movq 0x1b8(%r14), %rcx
movl %eax, (%rcx)
movl 0x4(%rcx), %edx
leaq (%rcx,%rdx,4), %rax
addq $0xf8, %rax
movl %ebx, -0xf0(%rax)
movl $0x0, (%rax)
incl %edx
movl %edx, 0x4(%rcx)
jmp 0x443c1
xorl %eax, %eax
addq $0x8, %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_list_view_end
NK_API void
nk_list_view_end(struct nk_list_view *view)
{
    struct nk_context *ctx;
    struct nk_window *win;
    struct nk_panel *layout;

    NK_ASSERT(view);
    NK_ASSERT(view->ctx);
    NK_ASSERT(view->scroll_pointer);
    if (!view || !view->ctx) return;

    ctx = view->ctx;
    win = ctx->current;
    layout = win->layout;
    layout->at_y = layout->bounds.y + (float)view->total_height;
    *view->scroll_pointer = *view->scroll_pointer + view->scroll_value;
    nk_group_end(view->ctx);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x44d54
movq 0x432c1(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2d053(%rip), %rsi     # 0x71d8c
leaq 0x2d06a(%rip), %rdx     # 0x71daa
movl $0x5a4b, %ecx           # imm = 0x5A4B
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x10(%rbx)
jne 0x44d87
movq 0x4328e(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2d020(%rip), %rsi     # 0x71d8c
leaq 0x2d037(%rip), %rdx     # 0x71daa
movl $0x5a4c, %ecx           # imm = 0x5A4C
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x18(%rbx)
jne 0x44dba
movq 0x4325b(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cfed(%rip), %rsi     # 0x71d8c
leaq 0x2d004(%rip), %rdx     # 0x71daa
movl $0x5a4d, %ecx           # imm = 0x5A4D
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x44dfa
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x44dfa
cvtsi2ssl 0xc(%rbx), %xmm0
movq 0x4780(%rdi), %rax
movq 0xa8(%rax), %rax
addss 0xc(%rax), %xmm0
movss %xmm0, 0x2c(%rax)
movq 0x18(%rbx), %rax
movl 0x20(%rbx), %ecx
addl %ecx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x12160
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_widget_bounds
NK_API struct nk_rect
nk_widget_bounds(struct nk_context *ctx)
{
    struct nk_rect bounds;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current)
        return nk_rect(0,0,0,0);
    nk_layout_peek(&bounds, ctx);
    return bounds;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x44e3d
movq 0x431d8(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cf6a(%rip), %rsi     # 0x71d8c
leaq 0x2cf81(%rip), %rdx     # 0x71daa
movl $0x5a65, %ecx           # imm = 0x5A65
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x44e73
movq 0x431a2(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cf34(%rip), %rsi     # 0x71d8c
leaq 0x2cf4b(%rip), %rdx     # 0x71daa
movl $0x5a66, %ecx           # imm = 0x5A66
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x44ea5
cmpq $0x0, 0x4780(%rbx)
xorps %xmm1, %xmm1
je 0x44ea8
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44eb0
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
jmp 0x44ea8
xorps %xmm1, %xmm1
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_layout_peek
NK_LIB void
nk_layout_peek(struct nk_rect *bounds, struct nk_context *ctx)
{
    float y;
    int index;
    struct nk_window *win;
    struct nk_panel *layout;

    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    NK_ASSERT(ctx->current->layout);
    if (!ctx || !ctx->current || !ctx->current->layout) {
        *bounds = nk_rect(0,0,0,0);
        return;
    }

    win = ctx->current;
    layout = win->layout;
    y = layout->at_y;
    index = layout->row.index;
    if (layout->row.index >= layout->row.columns) {
        layout->at_y += layout->row.height;
        layout->row.index = 0;
    }
    nk_layout_widget_space(bounds, ctx, win, nk_false);
    if (!layout->row.index) {
        bounds->x -= layout->row.item_offset;
    }
    layout->at_y = y;
    layout->row.index = index;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x4780(%rsi)
jne 0x44ef3
movq 0x43122(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2ceb4(%rip), %rsi     # 0x71d8c
leaq 0x2cecb(%rip), %rdx     # 0x71daa
movl $0x579c, %ecx           # imm = 0x579C
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x44f30
movq 0x430e5(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2ce77(%rip), %rsi     # 0x71d8c
leaq 0x2ce8e(%rip), %rdx     # 0x71daa
movl $0x579d, %ecx           # imm = 0x579D
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x44fb0
movq 0xa8(%rax), %r15
testq %r15, %r15
je 0x44fb0
movss 0x2c(%r15), %xmm1
movl 0x74(%r15), %ebp
cmpl 0x80(%r15), %ebp
jl 0x44f73
movss 0x78(%r15), %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x2c(%r15)
movl $0x0, 0x74(%r15)
movss %xmm1, 0x4(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x583b9
cmpl $0x0, 0x74(%r15)
jne 0x44f9e
movss (%rbx), %xmm0
subss 0x98(%r15), %xmm0
movss %xmm0, (%rbx)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x2c(%r15)
movl %ebp, 0x74(%r15)
jmp 0x44fb6
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
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_widget_position
NK_API struct nk_vec2
nk_widget_position(struct nk_context *ctx)
{
    struct nk_rect bounds;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current)
        return nk_vec2(0,0);

    nk_layout_peek(&bounds, ctx);
    return nk_vec2(bounds.x, bounds.y);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x44ffc
movq 0x43019(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cdab(%rip), %rsi     # 0x71d8c
leaq 0x2cdc2(%rip), %rdx     # 0x71daa
movl $0x5a70, %ecx           # imm = 0x5A70
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x45032
movq 0x42fe3(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cd75(%rip), %rsi     # 0x71d8c
leaq 0x2cd8c(%rip), %rdx     # 0x71daa
movl $0x5a71, %ecx           # imm = 0x5A71
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x45059
cmpq $0x0, 0x4780(%rbx)
je 0x45059
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44eb0
movsd (%r14), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_widget_size
NK_API struct nk_vec2
nk_widget_size(struct nk_context *ctx)
{
    struct nk_rect bounds;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current)
        return nk_vec2(0,0);

    nk_layout_peek(&bounds, ctx);
    return nk_vec2(bounds.w, bounds.h);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4509c
movq 0x42f79(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cd0b(%rip), %rsi     # 0x71d8c
leaq 0x2cd22(%rip), %rdx     # 0x71daa
movl $0x5a7c, %ecx           # imm = 0x5A7C
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x450d2
movq 0x42f43(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2ccd5(%rip), %rsi     # 0x71d8c
leaq 0x2ccec(%rip), %rdx     # 0x71daa
movl $0x5a7d, %ecx           # imm = 0x5A7D
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x450fa
cmpq $0x0, 0x4780(%rbx)
je 0x450fa
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44eb0
movsd 0x8(%r14), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_widget_width
NK_API float
nk_widget_width(struct nk_context *ctx)
{
    struct nk_rect bounds;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current)
        return 0;

    nk_layout_peek(&bounds, ctx);
    return bounds.w;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4513d
movq 0x42ed8(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cc6a(%rip), %rsi     # 0x71d8c
leaq 0x2cc81(%rip), %rdx     # 0x71daa
movl $0x5a88, %ecx           # imm = 0x5A88
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x45173
movq 0x42ea2(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cc34(%rip), %rsi     # 0x71d8c
leaq 0x2cc4b(%rip), %rdx     # 0x71daa
movl $0x5a89, %ecx           # imm = 0x5A89
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x4519b
cmpq $0x0, 0x4780(%rbx)
je 0x4519b
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44eb0
movss 0x8(%r14), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_widget_height
NK_API float
nk_widget_height(struct nk_context *ctx)
{
    struct nk_rect bounds;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current)
        return 0;

    nk_layout_peek(&bounds, ctx);
    return bounds.h;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x451de
movq 0x42e37(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cbc9(%rip), %rsi     # 0x71d8c
leaq 0x2cbe0(%rip), %rdx     # 0x71daa
movl $0x5a94, %ecx           # imm = 0x5A94
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x45214
movq 0x42e01(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cb93(%rip), %rsi     # 0x71d8c
leaq 0x2cbaa(%rip), %rdx     # 0x71daa
movl $0x5a95, %ecx           # imm = 0x5A95
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
xorps %xmm0, %xmm0
testq %rbx, %rbx
je 0x4523c
cmpq $0x0, 0x4780(%rbx)
je 0x4523c
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44eb0
movss 0xc(%r14), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_widget_is_hovered
NK_API nk_bool
nk_widget_is_hovered(struct nk_context *ctx)
{
    struct nk_rect c, v;
    struct nk_rect bounds;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current || ctx->active != ctx->current)
        return 0;

    c = ctx->current->layout->clip;
    c.x = (float)((int)c.x);
    c.y = (float)((int)c.y);
    c.w = (float)((int)c.w);
    c.h = (float)((int)c.h);

    nk_layout_peek(&bounds, ctx);
    nk_unify(&v, &c, bounds.x, bounds.y, bounds.x + bounds.w, bounds.y + bounds.h);
    if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds.x, bounds.y, bounds.w, bounds.h))
        return 0;
    return nk_input_is_mouse_hovering_rect(&ctx->input, bounds);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x45280
movq 0x42d95(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2cb27(%rip), %rsi     # 0x71d8c
leaq 0x2cb3e(%rip), %rdx     # 0x71daa
movl $0x5aa1, %ecx           # imm = 0x5AA1
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x452b6
movq 0x42d5f(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2caf1(%rip), %rsi     # 0x71d8c
leaq 0x2cb08(%rip), %rdx     # 0x71daa
movl $0x5aa2, %ecx           # imm = 0x5AA2
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x45334
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x45334
cmpq %rax, 0x4778(%rbx)
jne 0x45334
movq 0xa8(%rax), %rax
movsd 0x44(%rax), %xmm0
movsd 0x4c(%rax), %xmm1
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
cvttps2dq %xmm1, %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x44eb0
movaps (%r14), %xmm0
movaps 0x10(%rsp), %xmm2
movaps %xmm2, %xmm1
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movaps 0x20(%rsp), %xmm3
movhps 0x8(%r14), %xmm3        # xmm3 = xmm3[0,1],mem[0,1]
addps %xmm1, %xmm3
movlhps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0]
cmpltps %xmm3, %xmm0
movmskps %xmm0, %eax
cmpl $0xf, %eax
je 0x4533f
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movsd (%rsp), %xmm0
movss 0x144(%rbx), %xmm2
ucomiss %xmm0, %xmm2
jb 0x45334
movsd 0x8(%rsp), %xmm1
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x45334
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x148(%rbx), %xmm2
ucomiss %xmm3, %xmm2
jb 0x45334
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
xorl %ebp, %ebp
ucomiss %xmm2, %xmm0
seta %bpl
jmp 0x45334
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_widget_is_mouse_clicked
NK_API nk_bool
nk_widget_is_mouse_clicked(struct nk_context *ctx, enum nk_buttons btn)
{
    struct nk_rect c, v;
    struct nk_rect bounds;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current || ctx->active != ctx->current)
        return 0;

    c = ctx->current->layout->clip;
    c.x = (float)((int)c.x);
    c.y = (float)((int)c.y);
    c.w = (float)((int)c.w);
    c.h = (float)((int)c.h);

    nk_layout_peek(&bounds, ctx);
    nk_unify(&v, &c, bounds.x, bounds.y, bounds.x + bounds.w, bounds.y + bounds.h);
    if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds.x, bounds.y, bounds.w, bounds.h))
        return 0;
    return nk_input_mouse_clicked(&ctx->input, btn, bounds);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movl %esi, %ebx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x453c9
movq 0x42c4c(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2c9de(%rip), %rsi     # 0x71d8c
leaq 0x2c9f5(%rip), %rdx     # 0x71daa
movl $0x5ab7, %ecx           # imm = 0x5AB7
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x453ff
movq 0x42c16(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2c9a8(%rip), %rsi     # 0x71d8c
leaq 0x2c9bf(%rip), %rdx     # 0x71daa
movl $0x5ab8, %ecx           # imm = 0x5AB8
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
xorl %ebp, %ebp
testq %r14, %r14
je 0x4549c
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x4549c
cmpq %rax, 0x4778(%r14)
jne 0x4549c
movq 0xa8(%rax), %rax
movsd 0x44(%rax), %xmm0
movsd 0x4c(%rax), %xmm1
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
cvttps2dq %xmm1, %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x44eb0
movaps (%r15), %xmm0
movaps 0x10(%rsp), %xmm2
movaps %xmm2, %xmm1
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movaps 0x20(%rsp), %xmm3
movhps 0x8(%r15), %xmm3        # xmm3 = xmm3[0,1],mem[0,1]
addps %xmm1, %xmm3
movlhps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0]
cmpltps %xmm3, %xmm0
movmskps %xmm0, %eax
cmpl $0xf, %eax
jne 0x4549c
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
movl %ebx, %esi
callq 0x12380
movl %eax, %ebp
movl %ebp, %eax
addq $0x38, %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_widget_has_mouse_click_down
NK_API nk_bool
nk_widget_has_mouse_click_down(struct nk_context *ctx, enum nk_buttons btn, nk_bool down)
{
    struct nk_rect c, v;
    struct nk_rect bounds;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current || ctx->active != ctx->current)
        return 0;

    c = ctx->current->layout->clip;
    c.x = (float)((int)c.x);
    c.y = (float)((int)c.y);
    c.w = (float)((int)c.w);
    c.h = (float)((int)c.h);

    nk_layout_peek(&bounds, ctx);
    nk_unify(&v, &c, bounds.x, bounds.y, bounds.x + bounds.w, bounds.y + bounds.h);
    if (!NK_INTERSECT(c.x, c.y, c.w, c.h, bounds.x, bounds.y, bounds.w, bounds.h))
        return 0;
    return nk_input_has_mouse_click_down_in_rect(&ctx->input, btn, bounds, down);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movl %edx, %ebx
movl %esi, %r15d
movq %rdi, %r14
testq %rdi, %rdi
jne 0x454f0
movq 0x42b27(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2c8b8(%rip), %rsi     # 0x71d8c
leaq 0x2c8cf(%rip), %rdx     # 0x71daa
movl $0x5acd, %ecx           # imm = 0x5ACD
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x45528
movq 0x42aef(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2c880(%rip), %rsi     # 0x71d8c
leaq 0x2c897(%rip), %rdx     # 0x71daa
movl $0x5ace, %ecx           # imm = 0x5ACE
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
xorl %ebp, %ebp
testq %r14, %r14
je 0x455a8
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x455a8
cmpq %rax, 0x4778(%r14)
jne 0x455a8
movq 0xa8(%rax), %rax
movsd 0x44(%rax), %xmm0
movsd 0x4c(%rax), %xmm1
cvttps2dq %xmm0, %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
cvttps2dq %xmm1, %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x44eb0
movaps (%r12), %xmm0
movaps 0x10(%rsp), %xmm2
movaps %xmm2, %xmm1
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movaps 0x20(%rsp), %xmm3
movhps 0x8(%r12), %xmm3        # xmm3 = xmm3[0,1],mem[0,1]
addps %xmm1, %xmm3
movlhps %xmm2, %xmm0            # xmm0 = xmm0[0],xmm2[0]
cmpltps %xmm3, %xmm0
movmskps %xmm0, %eax
cmpl $0xf, %eax
je 0x455b7
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movsd (%rsp), %xmm0
movl %r15d, %eax
shlq $0x4, %rax
movss 0x10c(%r14,%rax), %xmm2
ucomiss %xmm0, %xmm2
jb 0x455a8
movsd 0x8(%rsp), %xmm1
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x455a8
leaq (%r14,%rax), %rcx
addq $0x10c, %rcx            # imm = 0x10C
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x4(%rcx), %xmm2
ucomiss %xmm3, %xmm2
jb 0x455a8
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
ucomiss %xmm2, %xmm0
jbe 0x455a8
addq $0x104, %r14            # imm = 0x104
xorl %ebp, %ebp
cmpl %ebx, (%r14,%rax)
sete %bpl
jmp 0x455a8
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_spacing
NK_API void
nk_spacing(struct nk_context *ctx, int cols)
{
    struct nk_window *win;
    struct nk_panel *layout;
    struct nk_rect none;
    int i, index, rows;

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

    /* spacing over row boundaries */
    win = ctx->current;
    layout = win->layout;
    index = (layout->row.index + cols) % layout->row.columns;
    rows = (layout->row.index + cols) / layout->row.columns;
    if (rows) {
        for (i = 0; i < rows; ++i)
            nk_panel_alloc_row(ctx, win);
        cols = index;
    }
    /* non table layout need to allocate space */
    if (layout->row.type != NK_LAYOUT_DYNAMIC_FIXED &&
        layout->row.type != NK_LAYOUT_STATIC_FIXED) {
        for (i = 0; i < cols; ++i)
            nk_panel_alloc_space(&none, ctx);
    } layout->row.index = index;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebp
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x45663
movq 0x429b2(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2c744(%rip), %rsi     # 0x71d8c
leaq 0x2c75b(%rip), %rdx     # 0x71daa
movl $0x5b29, %ecx           # imm = 0x5B29
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x45699
movq 0x4297c(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2c70e(%rip), %rsi     # 0x71d8c
leaq 0x2c725(%rip), %rdx     # 0x71daa
movl $0x5b2a, %ecx           # imm = 0x5B2A
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x456d6
movq 0x4293f(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2c6d1(%rip), %rsi     # 0x71d8c
leaq 0x2c6e8(%rip), %rdx     # 0x71daa
movl $0x5b2b, %ecx           # imm = 0x5B2B
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x45767
movq 0x4780(%rbx), %r15
testq %r15, %r15
je 0x45767
movq 0xa8(%r15), %r13
testq %r13, %r13
je 0x45767
movl 0x74(%r13), %eax
addl %ebp, %eax
cltd
idivl 0x80(%r13)
movl %edx, %r14d
testl %eax, %eax
je 0x45741
movl %r14d, %ebp
jle 0x45741
movl %eax, %r12d
movq 0xa8(%r15), %rax
movss 0x78(%rax), %xmm0
subss 0x24b8(%rbx), %xmm0
movl 0x80(%rax), %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x412be
decl %r12d
jne 0x45714
movl %r14d, %ebp
testl $0xfffffffb, 0x70(%r13) # imm = 0xFFFFFFFB
je 0x45763
testl %ebp, %ebp
jle 0x45763
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x42a3d
decl %ebp
jne 0x45754
movl %r14d, 0x74(%r13)
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_text_colored
NK_API void
nk_text_colored(struct nk_context *ctx, const char *str, int len,
    nk_flags alignment, struct nk_color color)
{
    struct nk_window *win;
    const struct nk_style *style;

    struct nk_vec2 item_padding;
    struct nk_rect bounds;
    struct nk_text text;

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

    win = ctx->current;
    style = &ctx->style;
    nk_panel_alloc_space(&bounds, ctx);
    item_padding = style->text.padding;

    text.padding.x = item_padding.x;
    text.padding.y = item_padding.y;
    text.background = style->window.background;
    text.text = nk_rgb_factor(color, style->text.color_factor);
    nk_widget_text(&win->buffer, bounds, str, len, &text, alignment, style->font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, 0x4(%rsp)
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r12
movq %rdi, %r15
testq %rdi, %rdi
jne 0x45c6a
movq 0x423ab(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2c13d(%rip), %rsi     # 0x71d8c
leaq 0x2c154(%rip), %rdx     # 0x71daa
movl $0x5c26, %ecx           # imm = 0x5C26
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r15)
jne 0x45ca0
movq 0x42375(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2c107(%rip), %rsi     # 0x71d8c
leaq 0x2c11e(%rip), %rdx     # 0x71daa
movl $0x5c27, %ecx           # imm = 0x5C27
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r15), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x45cdd
movq 0x42338(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2c0ca(%rip), %rsi     # 0x71d8c
leaq 0x2c0e1(%rip), %rdx     # 0x71daa
movl $0x5c28, %ecx           # imm = 0x5C28
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r15, %r15
je 0x45d6a
movq 0x4780(%r15), %r13
testq %r13, %r13
je 0x45d6a
cmpq $0x0, 0xa8(%r13)
je 0x45d6a
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x42a3d
movsd 0x1c0(%r15), %xmm0
movl %ebp, (%rsp)
leaq 0x8(%rsp), %rbp
movsd %xmm0, (%rbp)
movl 0x2448(%r15), %eax
movl %eax, 0x8(%rbp)
movss 0x1c8(%r15), %xmm0
movl 0x4(%rsp), %edi
callq 0x13e60
movl %eax, 0xc(%rbp)
addq $0x68, %r13
movq 0x168(%r15), %r9
movsd (%rbx), %xmm0
movsd 0x8(%rbx), %xmm1
movq %r13, %rdi
movq %r12, %rsi
movl %r14d, %edx
movq %rbp, %rcx
movl (%rsp), %r8d
callq 0x45d79
addq $0x28, %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_subimage_ptr
NK_API struct nk_image
nk_subimage_ptr(void *ptr, nk_ushort w, nk_ushort h, struct nk_rect r)
{
    struct nk_image s;
    nk_zero(&s, sizeof(s));
    s.handle.ptr = ptr;
    s.w = w; s.h = h;
    s.region[0] = (nk_ushort)r.x;
    s.region[1] = (nk_ushort)r.y;
    s.region[2] = (nk_ushort)r.w;
    s.region[3] = (nk_ushort)r.h;
    return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movl $0x18, %esi
callq 0x25316
movq %r14, (%r15)
movw %bp, 0x8(%r15)
movw %bx, 0xa(%r15)
movaps (%rsp), %xmm0
unpcklpd 0x10(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
cvttps2dq %xmm0, %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
pshufhw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,1,2,3,4,6,6,7]
pshufd $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3]
movq %xmm0, 0xc(%r15)
movq %r15, %rax
addq $0x28, %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_image_handle
NK_API struct nk_image
nk_image_handle(nk_handle handle)
{
    struct nk_image s;
    nk_zero(&s, sizeof(s));
    s.handle = handle;
    s.w = 0; s.h = 0;
    s.region[0] = 0;
    s.region[1] = 0;
    s.region[2] = 0;
    s.region[3] = 0;
    return s;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x18, %esi
callq 0x25316
movq %rbx, (%r14)
movq $0x0, 0x8(%r14)
movl $0x0, 0x10(%r14)
movq %r14, %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_image_ptr
NK_API struct nk_image
nk_image_ptr(void *ptr)
{
    struct nk_image s;
    nk_zero(&s, sizeof(s));
    NK_ASSERT(ptr);
    s.handle.ptr = ptr;
    s.w = 0; s.h = 0;
    s.region[0] = 0;
    s.region[1] = 0;
    s.region[2] = 0;
    s.region[3] = 0;
    return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x18, %esi
callq 0x25316
testq %r14, %r14
jne 0x46ac0
movq 0x41555(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2b2e7(%rip), %rsi     # 0x71d8c
leaq 0x2b2fe(%rip), %rdx     # 0x71daa
movl $0x5d34, %ecx           # imm = 0x5D34
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq %r14, (%rbx)
movq $0x0, 0x8(%rbx)
movl $0x0, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_image_id
NK_API struct nk_image
nk_image_id(int id)
{
    struct nk_image s;
    nk_zero(&s, sizeof(s));
    s.handle.id = id;
    s.w = 0; s.h = 0;
    s.region[0] = 0;
    s.region[1] = 0;
    s.region[2] = 0;
    s.region[3] = 0;
    return s;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl $0x18, %esi
callq 0x25316
movl %ebx, (%r14)
movq $0x0, 0x8(%r14)
movl $0x0, 0x10(%r14)
movq %r14, %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_image
NK_API void
nk_image(struct nk_context *ctx, struct nk_image img)
{
    struct nk_window *win;
    struct nk_rect bounds;

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

    win = ctx->current;
    if (!nk_widget(&bounds, ctx)) return;
    nk_draw_image(&win->buffer, bounds, &img, nk_white);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x46b47
movq 0x414ce(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2b260(%rip), %rsi     # 0x71d8c
leaq 0x2b277(%rip), %rdx     # 0x71daa
movl $0x5d56, %ecx           # imm = 0x5D56
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x46b7d
movq 0x41498(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2b22a(%rip), %rsi     # 0x71d8c
leaq 0x2b241(%rip), %rdx     # 0x71daa
movl $0x5d57, %ecx           # imm = 0x5D57
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x46bba
movq 0x4145b(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2b1ed(%rip), %rsi     # 0x71d8c
leaq 0x2b204(%rip), %rdx     # 0x71daa
movl $0x5d58, %ecx           # imm = 0x5D58
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x46c08
movq 0x4780(%rbx), %r14
testq %r14, %r14
je 0x46c08
cmpq $0x0, 0xa8(%r14)
je 0x46c08
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x128e0
testl %eax, %eax
je 0x46c08
leaq 0x30(%rsp), %rsi
addq $0x68, %r14
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movq %r14, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x134d0
addq $0x18, %rsp
popq %rbx
popq %r14
retq