LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 0x3e7b0
movq 0x46865(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2b577(%rip), %rsi     # 0x69d0c
leaq 0x2b58e(%rip), %rdx     # 0x69d2a
movl $0x56d4, %ecx           # imm = 0x56D4
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x3e7ef
movq 0x4682d(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2b53f(%rip), %rsi     # 0x69d0c
leaq 0x2b556(%rip), %rdx     # 0x69d2a
movl $0x56d5, %ecx           # imm = 0x56D5
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rax
testq %rax, %rax
jne 0x3e835
movq 0x467ee(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2b500(%rip), %rsi     # 0x69d0c
leaq 0x2b517(%rip), %rdx     # 0x69d2a
movl $0x56d6, %ecx           # imm = 0x56D6
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
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 0x27f3a(%rip), %xmm1    # 0x66790
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_O2/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 0x3e8ba
movq 0x4675b(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2b46d(%rip), %rsi     # 0x69d0c
leaq 0x2b484(%rip), %rdx     # 0x69d2a
movl $0x56e4, %ecx           # imm = 0x56E4
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x3e8f9
movq 0x46723(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2b435(%rip), %rsi     # 0x69d0c
leaq 0x2b44c(%rip), %rdx     # 0x69d2a
movl $0x56e5, %ecx           # imm = 0x56E5
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
movq 0xa8(%rax), %rax
testq %rax, %rax
jne 0x3e93f
movq 0x466e4(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2b3f6(%rip), %rsi     # 0x69d0c
leaq 0x2b40d(%rip), %rdx     # 0x69d2a
movl $0x56e6, %ecx           # imm = 0x56E6
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
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 0x27e30(%rip), %xmm0    # 0x66790
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_O2/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 0x3e9d6
movq 0x4663f(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2b351(%rip), %rsi     # 0x69d0c
leaq 0x2b368(%rip), %rdx     # 0x69d2a
movl $0x5783, %ecx           # imm = 0x5783
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbx), %rsi
testq %rsi, %rsi
jne 0x3ea15
movq 0x46607(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2b319(%rip), %rsi     # 0x69d0c
leaq 0x2b330(%rip), %rdx     # 0x69d2a
movl $0x5784, %ecx           # imm = 0x5784
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbx), %rsi
cmpq $0x0, 0xa8(%rsi)
jne 0x3ea57
movq 0x465ca(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2b2dc(%rip), %rsi     # 0x69d0c
leaq 0x2b2f3(%rip), %rdx     # 0x69d2a
movl $0x5785, %ecx           # imm = 0x5785
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%rbx), %rsi
testq %rsi, %rsi
je 0x3ea8a
movq 0xa8(%rsi), %r15
testq %r15, %r15
je 0x3ea8a
movl 0x74(%r15), %eax
cmpl 0x80(%r15), %eax
jl 0x3ea78
movq %rbx, %rdi
callq 0x41248
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5246a
incl 0x74(%r15)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3efdd
movq 0x46038(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2ad4a(%rip), %rsi     # 0x69d0c
leaq 0x2ad61(%rip), %rdx     # 0x69d2a
movl $0x585a, %ecx           # imm = 0x585A
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x3f01c
movq 0x46000(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2ad12(%rip), %rsi     # 0x69d0c
leaq 0x2ad29(%rip), %rdx     # 0x69d2a
movl $0x585b, %ecx           # imm = 0x585B
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x3f062
movq 0x45fc3(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2acd5(%rip), %rsi     # 0x69d0c
leaq 0x2acec(%rip), %rdx     # 0x69d2a
movl $0x585c, %ecx           # imm = 0x585C
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x3f0f4
movq 0xa8(%rax), %r14
testq %r14, %r14
je 0x3f0f4
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)
movl 0xb0(%r14), %eax
testl %eax, %eax
jne 0x3f0eb
movq 0x45f31(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x2ac43(%rip), %rsi     # 0x69d0c
leaq 0x2ac5a(%rip), %rdx     # 0x69d2a
movl $0x5864, %ecx           # imm = 0x5864
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movl 0xb0(%r14), %eax
decl %eax
movl %eax, 0xb0(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x3f151
movl 0x40(%rsp), %esi
movq %r9, %rdi
jmp 0x3f15e
movq %rbx, %rdi
callq 0x13040
movq %rbx, %rdi
movl %eax, %esi
movl %r12d, %edx
callq 0x125c0
movl %eax, %r12d
movq %r13, %rdi
movl %eax, %esi
callq 0x3ff1b
testq %rax, %rax
jne 0x3f18c
movq %r15, %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0x3ff5d
movl 0x4(%rsp), %ecx
movl %ecx, (%rax)
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
movq %rax, %r8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3ea9a
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_unify
NK_LIB void
nk_unify(struct nk_rect *clip, const struct nk_rect *a, float x0, float y0,
    float x1, float y1)
{
    NK_ASSERT(a);
    NK_ASSERT(clip);
    clip->x = NK_MAX(a->x, x0);
    clip->y = NK_MAX(a->y, y0);
    clip->w = NK_MIN(a->x + a->w, x1) - clip->x;
    clip->h = NK_MIN(a->y + a->h, y1) - clip->y;
    clip->w = NK_MAX(0, clip->w);
    clip->h = NK_MAX(0, clip->h);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
jne 0x3fc60
movq 0x453db(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2a0ed(%rip), %rsi     # 0x69d0c
leaq 0x2a104(%rip), %rdx     # 0x69d2a
movl $0x193d, %ecx           # imm = 0x193D
xorl %eax, %eax
movaps %xmm0, 0x30(%rsp)
movaps %xmm2, 0x20(%rsp)
movaps %xmm3, 0x10(%rsp)
movaps %xmm1, (%rsp)
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movaps (%rsp), %xmm1
movaps 0x10(%rsp), %xmm3
movaps 0x20(%rsp), %xmm2
movaps 0x30(%rsp), %xmm0
testq %rbx, %rbx
jne 0x3fcb7
movq 0x45384(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2a096(%rip), %rsi     # 0x69d0c
leaq 0x2a0ad(%rip), %rdx     # 0x69d2a
movl $0x193e, %ecx           # imm = 0x193E
xorl %eax, %eax
movaps %xmm0, 0x30(%rsp)
movaps %xmm2, 0x20(%rsp)
movaps %xmm3, 0x10(%rsp)
movaps %xmm1, (%rsp)
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movaps (%rsp), %xmm1
movaps 0x10(%rsp), %xmm3
movaps 0x20(%rsp), %xmm2
movaps 0x30(%rsp), %xmm0
movsd (%r14), %xmm4
unpcklps %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
maxps %xmm4, %xmm0
movlps %xmm0, (%rbx)
movsd (%r14), %xmm4
movsd 0x8(%r14), %xmm1
addps %xmm4, %xmm1
unpcklps %xmm3, %xmm2            # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
minps %xmm2, %xmm1
subps %xmm0, %xmm1
xorps %xmm0, %xmm0
maxps %xmm0, %xmm1
movlps %xmm1, 0x8(%rbx)
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_find_value
NK_LIB nk_uint*
nk_find_value(struct nk_window *win, nk_hash name)
{
    struct nk_table *iter = win->tables;
    while (iter) {
        unsigned int i = 0;
        unsigned int size = iter->size;
        for (i = 0; i < size; ++i) {
            if (iter->keys[i] == name) {
                iter->seq = win->seq;
                return &iter->values[i];
            }
        } size = NK_VALUE_PAGE_CAPACITY;
        iter = iter->next;
    }
    return 0;
}

// Assembly:
leaq 0x1b8(%rdi), %rcx
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x3ff5a
movl 0x4(%rcx), %edx
leaq 0xf4(%rcx), %r8
subq $0x1, %rdx
jb 0x3ff4c
leaq 0x4(%r8), %rax
cmpl %esi, -0xec(%r8)
movq %rax, %r8
jne 0x3ff34
jmp 0x3ff55
addq $0x1e8, %rcx            # imm = 0x1E8
jmp 0x3ff22
movl (%rdi), %edx
movl %edx, (%rcx)
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
pushq %rax
movq %rsi, %rbx
testq %rdi, %rdi
je 0x3fff1
testq %rbx, %rbx
je 0x40029
movl %edx, %ebp
movq 0x1b8(%rbx), %r15
testq %r15, %r15
je 0x3ff94
movl 0x4(%r15), %eax
cmpl $0x3c, %eax
jb 0x400a8
callq 0x517e4
testq %rax, %rax
je 0x4004b
movq %rax, %r15
movl $0x208, %esi            # imm = 0x208
movq %rax, %rdi
callq 0x23ed0
movq 0x1b8(%rbx), %rax
testq %rax, %rax
je 0x4007c
movq %r15, 0x1f0(%rax)
movq %rax, 0x1e8(%r15)
andq $0x0, 0x1f0(%r15)
andl $0x0, 0x4(%r15)
movq %r15, 0x1b8(%rbx)
incl 0x1c0(%rbx)
xorl %eax, %eax
jmp 0x400a8
movq 0x44ff8(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x29d0a(%rip), %rsi     # 0x69d0c
leaq 0x29d21(%rip), %rdx     # 0x69d2a
xorl %r14d, %r14d
movl $0x4c6a, %ecx           # imm = 0x4C6A
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %rbx, %rbx
jne 0x400cb
movq 0x44fc0(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x29cd2(%rip), %rsi     # 0x69d0c
leaq 0x29ce9(%rip), %rdx     # 0x69d2a
xorl %r14d, %r14d
movl $0x4c6b, %ecx           # imm = 0x4C6B
jmp 0x4006b
movq 0x44f9e(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x29cb0(%rip), %rsi     # 0x69d0c
leaq 0x29cc7(%rip), %rdx     # 0x69d2a
xorl %r14d, %r14d
movl $0x4c6f, %ecx           # imm = 0x4C6F
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
jmp 0x400cb
movq %r15, 0x1b8(%rbx)
andl $0x0, 0x4(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x1e8(%r15)
movl $0x1, 0x1c0(%rbx)
movq 0x1b8(%rbx), %r15
movl 0x4(%r15), %eax
movl (%rbx), %ecx
movl %ecx, (%r15)
movl %eax, %ecx
leaq (%r15,%rcx,4), %r14
addq $0xf8, %r14
movl %ebp, -0xf0(%r14)
andl $0x0, (%r14)
incl %eax
movl %eax, 0x4(%r15)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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 0x407bd
movq 0x44858(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2956a(%rip), %rsi     # 0x69d0c
leaq 0x29581(%rip), %rdx     # 0x69d2a
movl $0x5a4b, %ecx           # imm = 0x5A4B
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x10(%rbx)
jne 0x407f0
movq 0x44825(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x29537(%rip), %rsi     # 0x69d0c
leaq 0x2954e(%rip), %rdx     # 0x69d2a
movl $0x5a4c, %ecx           # imm = 0x5A4C
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x18(%rbx)
jne 0x40823
movq 0x447f2(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x29504(%rip), %rsi     # 0x69d0c
leaq 0x2951b(%rip), %rdx     # 0x69d2a
movl $0x5a4d, %ecx           # imm = 0x5A4D
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x4085e
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 0x12170
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x408a1
movq 0x44774(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x29486(%rip), %rsi     # 0x69d0c
leaq 0x2949d(%rip), %rdx     # 0x69d2a
movl $0x5a65, %ecx           # imm = 0x5A65
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%rbx)
jne 0x408e1
movq 0x4473e(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x29450(%rip), %rsi     # 0x69d0c
leaq 0x29467(%rip), %rdx     # 0x69d2a
movl $0x5a66, %ecx           # imm = 0x5A66
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%rbx)
je 0x40904
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4090c
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
addq $0x18, %rsp
popq %rbx
popq %r14
retq
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
jmp 0x408fc
// File: /workspace/github_c_makefile_star2_O2/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
movq 0x4780(%rsi), %rax
testq %rax, %rax
jne 0x40958
movq 0x446c4(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x293d6(%rip), %rsi     # 0x69d0c
leaq 0x293ed(%rip), %rdx     # 0x69d2a
movl $0x579c, %ecx           # imm = 0x579C
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x4099a
movq 0x44687(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x29399(%rip), %rsi     # 0x69d0c
leaq 0x293b0(%rip), %rdx     # 0x69d2a
movl $0x579d, %ecx           # imm = 0x579D
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x40a0b
movq 0xa8(%rax), %r15
testq %r15, %r15
je 0x40a0b
movss 0x2c(%r15), %xmm1
movl 0x74(%r15), %ebp
cmpl 0x80(%r15), %ebp
jl 0x409ce
movss 0x78(%r15), %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x2c(%r15)
andl $0x0, 0x74(%r15)
movss %xmm1, 0x4(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x5246a
cmpl $0x0, 0x74(%r15)
jne 0x409f9
movss (%rbx), %xmm0
subss 0x98(%r15), %xmm0
movss %xmm0, (%rbx)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x2c(%r15)
movl %ebp, 0x74(%r15)
jmp 0x40a11
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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 0x40a57
movq 0x445be(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x292d0(%rip), %rsi     # 0x69d0c
leaq 0x292e7(%rip), %rdx     # 0x69d2a
movl $0x5a70, %ecx           # imm = 0x5A70
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%rbx)
jne 0x40a97
movq 0x44588(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2929a(%rip), %rsi     # 0x69d0c
leaq 0x292b1(%rip), %rdx     # 0x69d2a
movl $0x5a71, %ecx           # imm = 0x5A71
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%rbx)
je 0x40ab1
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4090c
movaps (%r14), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
xorps %xmm0, %xmm0
jmp 0x40aa9
// File: /workspace/github_c_makefile_star2_O2/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 0x40af1
movq 0x44524(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x29236(%rip), %rsi     # 0x69d0c
leaq 0x2924d(%rip), %rdx     # 0x69d2a
movl $0x5a7c, %ecx           # imm = 0x5A7C
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%rbx)
jne 0x40b31
movq 0x444ee(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x29200(%rip), %rsi     # 0x69d0c
leaq 0x29217(%rip), %rdx     # 0x69d2a
movl $0x5a7d, %ecx           # imm = 0x5A7D
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%rbx)
je 0x40b4e
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4090c
movaps (%r14), %xmm0
movhlps %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addq $0x18, %rsp
popq %rbx
popq %r14
retq
xorps %xmm0, %xmm0
jmp 0x40b46
// File: /workspace/github_c_makefile_star2_O2/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 0x40b8e
movq 0x44487(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x29199(%rip), %rsi     # 0x69d0c
leaq 0x291b0(%rip), %rdx     # 0x69d2a
movl $0x5a88, %ecx           # imm = 0x5A88
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%rbx)
jne 0x40bce
movq 0x44451(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x29163(%rip), %rsi     # 0x69d0c
leaq 0x2917a(%rip), %rdx     # 0x69d2a
movl $0x5a89, %ecx           # imm = 0x5A89
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%rbx)
je 0x40bec
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4090c
movss 0x8(%r14), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
xorps %xmm0, %xmm0
jmp 0x40be4
// File: /workspace/github_c_makefile_star2_O2/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 0x40c2c
movq 0x443e9(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x290fb(%rip), %rsi     # 0x69d0c
leaq 0x29112(%rip), %rdx     # 0x69d2a
movl $0x5a94, %ecx           # imm = 0x5A94
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%rbx)
jne 0x40c6c
movq 0x443b3(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x290c5(%rip), %rsi     # 0x69d0c
leaq 0x290dc(%rip), %rdx     # 0x69d2a
movl $0x5a95, %ecx           # imm = 0x5A95
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x4780(%rbx)
je 0x40c8a
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4090c
movss 0xc(%r14), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
xorps %xmm0, %xmm0
jmp 0x40c82
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x40ccd
movq 0x44348(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2905a(%rip), %rsi     # 0x69d0c
leaq 0x29071(%rip), %rdx     # 0x69d2a
movl $0x5aa1, %ecx           # imm = 0x5AA1
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x40d13
movq 0x44310(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x29022(%rip), %rsi     # 0x69d0c
leaq 0x29039(%rip), %rdx     # 0x69d2a
xorl %ebp, %ebp
movl $0x5aa2, %ecx           # imm = 0x5AA2
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x40d1e
xorl %ebp, %ebp
cmpq %rax, 0x4778(%rbx)
je 0x40d2b
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0xa8(%rax), %rax
movups 0x44(%rax), %xmm0
leaq 0x20(%rsp), %r14
movaps %xmm0, (%r14)
cvttps2dq (%r14), %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%r14)
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4090c
movss (%r15), %xmm0
movss 0x4(%r15), %xmm1
movss 0x8(%r15), %xmm2
addss %xmm0, %xmm2
movss 0xc(%r15), %xmm3
addss %xmm1, %xmm3
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x3fbfa
movaps 0x10(%rsp), %xmm2
movss (%r15), %xmm0
movaps %xmm2, %xmm1
unpckhpd %xmm2, %xmm1            # xmm1 = xmm1[1],xmm2[1]
addss %xmm2, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x40d1e
addss 0x8(%rsp), %xmm0
ucomiss %xmm2, %xmm0
jbe 0x40d1e
movss 0x4(%rsp), %xmm0
movaps %xmm2, %xmm1
shufps $0x55, %xmm2, %xmm1     # xmm1 = xmm1[1,1],xmm2[1,1]
shufps $0xff, %xmm2, %xmm2     # xmm2 = xmm2[3,3,3,3]
addss %xmm1, %xmm2
ucomiss %xmm0, %xmm2
jbe 0x40d1e
addss 0xc(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x40d1e
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %rbx, %rdi
callq 0x143d0
movl %eax, %ebp
jmp 0x40d1e
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
subq $0x40, %rsp
movl %esi, %ebx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x40e40
movq 0x441d5(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x28ee7(%rip), %rsi     # 0x69d0c
leaq 0x28efe(%rip), %rdx     # 0x69d2a
movl $0x5ab7, %ecx           # imm = 0x5AB7
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x40e86
movq 0x4419d(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x28eaf(%rip), %rsi     # 0x69d0c
leaq 0x28ec6(%rip), %rdx     # 0x69d2a
xorl %ebp, %ebp
movl $0x5ab8, %ecx           # imm = 0x5AB8
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x40e91
xorl %ebp, %ebp
cmpq %rax, 0x4778(%r14)
je 0x40ea0
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0xa8(%rax), %rax
movups 0x44(%rax), %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
cvttps2dq (%r15), %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%r15)
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x4090c
movss (%r12), %xmm0
movss 0x4(%r12), %xmm1
movss 0x8(%r12), %xmm2
addss %xmm0, %xmm2
movss 0xc(%r12), %xmm3
addss %xmm1, %xmm3
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x3fbfa
movaps 0x10(%rsp), %xmm2
movss (%r12), %xmm0
movaps %xmm2, %xmm1
unpckhpd %xmm2, %xmm1            # xmm1 = xmm1[1],xmm2[1]
addss %xmm2, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x40e91
addss 0x8(%rsp), %xmm0
ucomiss %xmm2, %xmm0
jbe 0x40e91
movss 0x4(%rsp), %xmm0
movaps %xmm2, %xmm1
shufps $0x55, %xmm2, %xmm1     # xmm1 = xmm1[1,1],xmm2[1,1]
shufps $0xff, %xmm2, %xmm2     # xmm2 = xmm2[3,3,3,3]
addss %xmm1, %xmm2
ucomiss %xmm0, %xmm2
jbe 0x40e91
addss 0xc(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x40e91
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
movl %ebx, %esi
callq 0x123c0
movl %eax, %ebp
jmp 0x40e91
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
testq %rdi, %rdi
jne 0x40fc0
movq 0x44055(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x28d67(%rip), %rsi     # 0x69d0c
leaq 0x28d7e(%rip), %rdx     # 0x69d2a
movl $0x5acd, %ecx           # imm = 0x5ACD
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x41009
movq 0x4401d(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x28d2e(%rip), %rsi     # 0x69d0c
leaq 0x28d45(%rip), %rdx     # 0x69d2a
xorl %r15d, %r15d
movl $0x5ace, %ecx           # imm = 0x5ACE
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x41015
xorl %r15d, %r15d
cmpq %rax, 0x4778(%r14)
je 0x41027
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xa8(%rax), %rax
movups 0x44(%rax), %xmm0
leaq 0x20(%rsp), %r12
movaps %xmm0, (%r12)
cvttps2dq (%r12), %xmm0
cvtdq2ps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%r12)
movq %rsp, %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x4090c
movss (%r13), %xmm0
movss 0x4(%r13), %xmm1
movss 0x8(%r13), %xmm2
addss %xmm0, %xmm2
movss 0xc(%r13), %xmm3
addss %xmm1, %xmm3
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
callq 0x3fbfa
movaps 0x10(%rsp), %xmm2
movss (%r13), %xmm0
movaps %xmm2, %xmm1
unpckhpd %xmm2, %xmm1            # xmm1 = xmm1[1],xmm2[1]
addss %xmm2, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x41015
addss 0x8(%rsp), %xmm0
ucomiss %xmm2, %xmm0
jbe 0x41015
movss 0x4(%rsp), %xmm0
movaps %xmm2, %xmm1
shufps $0x55, %xmm2, %xmm1     # xmm1 = xmm1[1,1],xmm2[1,1]
shufps $0xff, %xmm2, %xmm2     # xmm2 = xmm2[3,3,3,3]
addss %xmm1, %xmm2
ucomiss %xmm0, %xmm2
jbe 0x41015
addss 0xc(%rsp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x41015
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x12750
movl %eax, %r15d
jmp 0x41015
// File: /workspace/github_c_makefile_star2_O2/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 0x41148
movq 0x43ecd(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x28bdf(%rip), %rsi     # 0x69d0c
leaq 0x28bf6(%rip), %rdx     # 0x69d2a
movl $0x5b29, %ecx           # imm = 0x5B29
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
testq %r14, %r14
jne 0x41187
movq 0x43e95(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x28ba7(%rip), %rsi     # 0x69d0c
leaq 0x28bbe(%rip), %rdx     # 0x69d2a
movl $0x5b2a, %ecx           # imm = 0x5B2A
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
cmpq $0x0, 0xa8(%r14)
jne 0x411c9
movq 0x43e58(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x28b6a(%rip), %rsi     # 0x69d0c
leaq 0x28b81(%rip), %rdx     # 0x69d2a
movl $0x5b2b, %ecx           # imm = 0x5B2B
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
testq %r14, %r14
je 0x41218
movq 0xa8(%r14), %r12
testq %r12, %r12
je 0x41218
movl 0x74(%r12), %eax
addl %ebp, %eax
cltd
idivl 0x80(%r12)
movl %edx, %r15d
testl %eax, %eax
je 0x41208
xorl %ebp, %ebp
testl %eax, %eax
cmovgl %eax, %ebp
subl $0x1, %ebp
jb 0x41205
movq %rbx, %rdi
movq %r14, %rsi
callq 0x41248
jmp 0x411f3
movl %r15d, %ebp
testl $0xfffffffb, 0x70(%r12) # imm = 0xFFFFFFFB
jne 0x41227
movl %r15d, 0x74(%r12)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r13d, %r13d
testl %ebp, %ebp
cmovgl %ebp, %r13d
leaq 0x8(%rsp), %r14
subl $0x1, %r13d
jb 0x41213
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3e99a
jmp 0x41235
// File: /workspace/github_c_makefile_star2_O2/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 0x4174a
movq 0x438cb(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x285dd(%rip), %rsi     # 0x69d0c
leaq 0x285f4(%rip), %rdx     # 0x69d2a
movl $0x5c26, %ecx           # imm = 0x5C26
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x4780(%r15), %r13
testq %r13, %r13
jne 0x41789
movq 0x43893(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x285a5(%rip), %rsi     # 0x69d0c
leaq 0x285bc(%rip), %rdx     # 0x69d2a
movl $0x5c27, %ecx           # imm = 0x5C27
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x4780(%r15), %r13
cmpq $0x0, 0xa8(%r13)
jne 0x417cb
movq 0x43856(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x28568(%rip), %rsi     # 0x69d0c
leaq 0x2857f(%rip), %rdx     # 0x69d2a
movl $0x5c28, %ecx           # imm = 0x5C28
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
movq 0x4780(%r15), %r13
testq %r13, %r13
je 0x41843
cmpq $0x0, 0xa8(%r13)
je 0x41843
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3e99a
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 0x140a0
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 0x41852
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_strfmt
NK_LIB int
nk_strfmt(char *buf, int buf_size, const char *fmt, va_list args)
{
    int result = -1;
    NK_ASSERT(buf);
    NK_ASSERT(buf_size);
    if (!buf || !buf_size || !fmt) return 0;
#ifdef NK_INCLUDE_STANDARD_IO
    result = NK_VSNPRINTF(buf, (nk_size)buf_size, fmt, args);
    result = (result >= buf_size) ? -1: result;
    buf[buf_size-1] = 0;
#else
    result = nk_vsnprintf(buf, buf_size, fmt, args);
#endif
    return result;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x42098
movq %rdx, %rcx
movq %rsi, %rdx
testq %rsi, %rsi
je 0x42096
movq %rdi, %rbx
movl $0x100, %esi            # imm = 0x100
callq 0x12530
movb $0x0, 0xff(%rbx)
popq %rbx
retq
movq 0x42f51(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x27c63(%rip), %rsi     # 0x69d0c
leaq 0x27c7a(%rip), %rdx     # 0x69d2a
movl $0x1cf8, %ecx           # imm = 0x1CF8
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x18
popq %rsi
callq 0x23ed0
movq %rbx, (%r14)
andq $0x0, 0x8(%r14)
andl $0x0, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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
pushq $0x18
popq %rsi
callq 0x23ed0
testq %r14, %r14
jne 0x424ec
movq 0x42b29(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2783b(%rip), %rsi     # 0x69d0c
leaq 0x27852(%rip), %rdx     # 0x69d2a
movl $0x5d34, %ecx           # imm = 0x5D34
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq %r14, (%rbx)
andq $0x0, 0x8(%rbx)
andl $0x0, 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x18
popq %rsi
callq 0x23ed0
movl %ebx, (%r14)
andq $0x0, 0x8(%r14)
andl $0x0, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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 0x42565
movq 0x42ab0(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x277c2(%rip), %rsi     # 0x69d0c
leaq 0x277d9(%rip), %rdx     # 0x69d2a
movl $0x5d56, %ecx           # imm = 0x5D56
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
testq %r14, %r14
jne 0x425a4
movq 0x42a78(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2778a(%rip), %rsi     # 0x69d0c
leaq 0x277a1(%rip), %rdx     # 0x69d2a
movl $0x5d57, %ecx           # imm = 0x5D57
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
cmpq $0x0, 0xa8(%r14)
jne 0x425e6
movq 0x42a3b(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x2774d(%rip), %rsi     # 0x69d0c
leaq 0x27764(%rip), %rdx     # 0x69d2a
movl $0x5d58, %ecx           # imm = 0x5D58
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %r14
testq %r14, %r14
je 0x42621
cmpq $0x0, 0xa8(%r14)
je 0x42621
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x12990
testl %eax, %eax
je 0x42621
leaq 0x30(%rsp), %rsi
addq $0x68, %r14
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
pushq $-0x1
popq %rdx
movq %r14, %rdi
callq 0x13660
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_image_color
NK_API void
nk_image_color(struct nk_context *ctx, struct nk_image img, struct nk_color col)
{
    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, col);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x42668
movq 0x429ad(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x276bf(%rip), %rsi     # 0x69d0c
leaq 0x276d6(%rip), %rdx     # 0x69d2a
movl $0x5d65, %ecx           # imm = 0x5D65
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r15
testq %r15, %r15
jne 0x426a7
movq 0x42975(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x27687(%rip), %rsi     # 0x69d0c
leaq 0x2769e(%rip), %rdx     # 0x69d2a
movl $0x5d66, %ecx           # imm = 0x5D66
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r15
cmpq $0x0, 0xa8(%r15)
jne 0x426e9
movq 0x42938(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x2764a(%rip), %rsi     # 0x69d0c
leaq 0x27661(%rip), %rdx     # 0x69d2a
movl $0x5d67, %ecx           # imm = 0x5D67
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r15
testq %r15, %r15
je 0x42720
cmpq $0x0, 0xa8(%r15)
je 0x42720
movq %rsp, %rdi
movq %r14, %rsi
callq 0x12990
testl %eax, %eax
je 0x42720
leaq 0x30(%rsp), %rsi
addq $0x68, %r15
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r15, %rdi
movl %ebx, %edx
callq 0x13660
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_sub9slice_id
NK_API struct nk_nine_slice
nk_sub9slice_id(int id, nk_ushort w, nk_ushort h, struct nk_rect rgn, nk_ushort l, nk_ushort t, nk_ushort r, nk_ushort b)
{
    struct nk_nine_slice s;
    struct nk_image *i = &s.img;
    nk_zero(&s, sizeof(s));
    i->handle.id = id;
    i->w = w; i->h = h;
    i->region[0] = (nk_ushort)rgn.x;
    i->region[1] = (nk_ushort)rgn.y;
    i->region[2] = (nk_ushort)rgn.w;
    i->region[3] = (nk_ushort)rgn.h;
    s.l = l; s.t = t; s.r = r; s.b = b;
    return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebx
movl %r8d, %ebp
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movl %ecx, %r14d
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, %r13
pushq $0x20
popq %rsi
callq 0x23ed0
movl %r12d, (%r13)
movw %r15w, 0x8(%r13)
movw %r14w, 0xa(%r13)
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(%r13)
movw %bp, 0x18(%r13)
movw %bx, 0x1a(%r13)
movzwl 0x60(%rsp), %eax
movw %ax, 0x1c(%r13)
movzwl 0x68(%rsp), %eax
movw %ax, 0x1e(%r13)
movq %r13, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_nine_slice_handle
NK_API struct nk_nine_slice
nk_nine_slice_handle(nk_handle handle, nk_ushort l, nk_ushort t, nk_ushort r, nk_ushort b)
{
    struct nk_nine_slice s;
    struct nk_image *i = &s.img;
    nk_zero(&s, sizeof(s));
    i->handle = handle;
    i->w = 0; i->h = 0;
    i->region[0] = 0;
    i->region[1] = 0;
    i->region[2] = 0;
    i->region[3] = 0;
    s.l = l; s.t = t; s.r = r; s.b = b;
    return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %ebx
movl %r8d, %ebp
movl %ecx, %r14d
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r13
pushq $0x20
popq %rsi
callq 0x23ed0
movq %r12, (%r13)
andq $0x0, 0x8(%r13)
andl $0x0, 0x10(%r13)
movw %r15w, 0x18(%r13)
movw %r14w, 0x1a(%r13)
movw %bp, 0x1c(%r13)
movw %bx, 0x1e(%r13)
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq