LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x44838
movq 0x427dd(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x2c57f(%rip), %rsi     # 0x70d9c
leaq 0x2c596(%rip), %rdx     # 0x70dba
movl $0x5ab7, %ecx           # imm = 0x5AB7
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x44882
movq 0x427a5(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x2c547(%rip), %rsi     # 0x70d9c
leaq 0x2c55e(%rip), %rdx     # 0x70dba
xorl %ebp, %ebp
movl $0x5ab8, %ecx           # imm = 0x5AB8
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x44906
xorl %ebp, %ebp
cmpq %rax, 0x4778(%r14)
jne 0x44906
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 0x4432e
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 0x44906
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_O3/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 0x4495a
movq 0x426bd(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2c45e(%rip), %rsi     # 0x70d9c
leaq 0x2c475(%rip), %rdx     # 0x70dba
movl $0x5acd, %ecx           # imm = 0x5ACD
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x449a2
movq 0x42683(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2c424(%rip), %rsi     # 0x70d9c
leaq 0x2c43b(%rip), %rdx     # 0x70dba
xorl %ebp, %ebp
movl $0x5ace, %ecx           # imm = 0x5ACE
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x44a11
xorl %ebp, %ebp
cmpq %rax, 0x4778(%r14)
jne 0x44a11
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 0x4432e
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 0x44a20
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 0x44a11
movsd 0x8(%rsp), %xmm1
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x44a11
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 0x44a11
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
ucomiss %xmm2, %xmm0
jbe 0x44a11
addq $0x104, %r14            # imm = 0x104
xorl %ebp, %ebp
cmpl %ebx, (%r14,%rax)
sete %bpl
jmp 0x44a11
// File: /workspace/github_c_makefile_star2_O3/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 0x44acc
movq 0x42549(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2c2eb(%rip), %rsi     # 0x70d9c
leaq 0x2c302(%rip), %rdx     # 0x70dba
movl $0x5b29, %ecx           # imm = 0x5B29
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r14
testq %r14, %r14
jne 0x44b0b
movq 0x42511(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2c2b3(%rip), %rsi     # 0x70d9c
leaq 0x2c2ca(%rip), %rdx     # 0x70dba
movl $0x5b2a, %ecx           # imm = 0x5B2A
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r14
cmpq $0x0, 0xa8(%r14)
jne 0x44b4d
movq 0x424d4(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2c276(%rip), %rsi     # 0x70d9c
leaq 0x2c28d(%rip), %rdx     # 0x70dba
movl $0x5b2b, %ecx           # imm = 0x5B2B
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r14
testq %r14, %r14
je 0x44bc9
movq 0xa8(%r14), %r13
testq %r13, %r13
je 0x44bc9
movl 0x74(%r13), %eax
addl %ebp, %eax
cltd
idivl 0x80(%r13)
movl %edx, %r15d
testl %eax, %eax
je 0x44ba3
movl %r15d, %ebp
jle 0x44ba3
movl %eax, %r12d
movq 0xa8(%r14), %rax
movss 0x78(%rax), %xmm0
subss 0x24b8(%rbx), %xmm0
movl 0x80(%rax), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x40a2e
decl %r12d
jne 0x44b76
movl %r15d, %ebp
testl $0xfffffffb, 0x70(%r13) # imm = 0xFFFFFFFB
je 0x44bc5
testl %ebp, %ebp
jle 0x44bc5
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x42153
decl %ebp
jne 0x44bb6
movl %r15d, 0x74(%r13)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x450be
movq 0x41f57(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2bcf9(%rip), %rsi     # 0x70d9c
leaq 0x2bd10(%rip), %rdx     # 0x70dba
movl $0x5c26, %ecx           # imm = 0x5C26
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r15), %r13
testq %r13, %r13
jne 0x450fd
movq 0x41f1f(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2bcc1(%rip), %rsi     # 0x70d9c
leaq 0x2bcd8(%rip), %rdx     # 0x70dba
movl $0x5c27, %ecx           # imm = 0x5C27
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r15), %r13
cmpq $0x0, 0xa8(%r13)
jne 0x4513f
movq 0x41ee2(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2bc84(%rip), %rsi     # 0x70d9c
leaq 0x2bc9b(%rip), %rdx     # 0x70dba
movl $0x5c28, %ecx           # imm = 0x5C28
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r15), %r13
testq %r13, %r13
je 0x451b7
cmpq $0x0, 0xa8(%r13)
je 0x451b7
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x42153
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 0x451c6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x2542e
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_O3/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 0x2542e
testq %r14, %r14
jne 0x45ee1
movq 0x41134(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x2aed6(%rip), %rsi     # 0x70d9c
leaq 0x2aeed(%rip), %rdx     # 0x70dba
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_O3/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 0x2542e
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_O3/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 0x45f68
movq 0x410ad(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2ae4f(%rip), %rsi     # 0x70d9c
leaq 0x2ae66(%rip), %rdx     # 0x70dba
movl $0x5d56, %ecx           # imm = 0x5D56
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r14
testq %r14, %r14
jne 0x45fa7
movq 0x41075(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2ae17(%rip), %rsi     # 0x70d9c
leaq 0x2ae2e(%rip), %rdx     # 0x70dba
movl $0x5d57, %ecx           # imm = 0x5D57
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r14
cmpq $0x0, 0xa8(%r14)
jne 0x45fe9
movq 0x41038(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2adda(%rip), %rsi     # 0x70d9c
leaq 0x2adf1(%rip), %rdx     # 0x70dba
movl $0x5d58, %ecx           # imm = 0x5D58
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %r14
testq %r14, %r14
je 0x46026
cmpq $0x0, 0xa8(%r14)
je 0x46026
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x128e0
testl %eax, %eax
je 0x46026
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
// File: /workspace/github_c_makefile_star2_O3/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 0x4606d
movq 0x40fa8(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x2ad4a(%rip), %rsi     # 0x70d9c
leaq 0x2ad61(%rip), %rdx     # 0x70dba
movl $0x5d65, %ecx           # imm = 0x5D65
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %r15
testq %r15, %r15
jne 0x460ac
movq 0x40f70(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x2ad12(%rip), %rsi     # 0x70d9c
leaq 0x2ad29(%rip), %rdx     # 0x70dba
movl $0x5d66, %ecx           # imm = 0x5D66
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %r15
cmpq $0x0, 0xa8(%r15)
jne 0x460ee
movq 0x40f33(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x2acd5(%rip), %rsi     # 0x70d9c
leaq 0x2acec(%rip), %rdx     # 0x70dba
movl $0x5d67, %ecx           # imm = 0x5D67
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %r15
testq %r15, %r15
je 0x46125
cmpq $0x0, 0xa8(%r15)
je 0x46125
movq %rsp, %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x46125
leaq 0x30(%rsp), %rsi
addq $0x68, %r15
movsd (%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r15, %rdi
movl %ebx, %edx
callq 0x134d0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_nine_slice_ptr
NK_API struct nk_nine_slice
nk_nine_slice_ptr(void *ptr, 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));
    NK_ASSERT(ptr);
    i->handle.ptr = ptr;
    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, %r12d
movq %rsi, %r13
movq %rdi, %r15
movl $0x20, %esi
callq 0x2542e
testq %r13, %r13
jne 0x463ab
movq 0x40c71(%rip), %rax     # 0x86ff0
movq (%rax), %rdi
leaq 0x2aa13(%rip), %rsi     # 0x70d9c
leaq 0x2aa2a(%rip), %rdx     # 0x70dba
movl $0x5dba, %ecx           # imm = 0x5DBA
xorl %eax, %eax
callq 0x12d80
movq 0x40c4d(%rip), %rax     # 0x86ff0
movq (%rax), %rdi
callq 0x13780
movq %r13, (%r15)
movq $0x0, 0x8(%r15)
movl $0x0, 0x10(%r15)
movw %r12w, 0x18(%r15)
movw %r14w, 0x1a(%r15)
movw %bp, 0x1c(%r15)
movw %bx, 0x1e(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_push_behavior
NK_API nk_bool
nk_button_push_behavior(struct nk_context *ctx, enum nk_button_behavior behavior)
{
    struct nk_config_stack_button_behavior *button_stack;
    struct nk_config_stack_button_behavior_element *element;

    NK_ASSERT(ctx);
    if (!ctx) return 0;

    button_stack = &ctx->stacks.button_behaviors;
    NK_ASSERT(button_stack->head < (int)NK_LEN(button_stack->elements));
    if (button_stack->head >= (int)NK_LEN(button_stack->elements))
        return 0;

    element = &button_stack->elements[button_stack->head++];
    element->address = &ctx->button_behavior;
    element->old_value = ctx->button_behavior;
    ctx->button_behavior = behavior;
    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x4656b
movl %esi, %ebx
movq %rdi, %r14
movl 0x3050(%rdi), %eax
cmpl $0x8, %eax
jl 0x4652f
movq 0x40af4(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x2a896(%rip), %rsi     # 0x70d9c
leaq 0x2a8ad(%rip), %rdx     # 0x70dba
xorl %ebp, %ebp
movl $0x5f7a, %ecx           # imm = 0x5F7A
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movl 0x3050(%r14), %eax
cmpl $0x7, %eax
jg 0x46599
leal 0x1(%rax), %ecx
movl %ecx, 0x3050(%r14)
cltq
shlq $0x4, %rax
leaq 0x259c(%r14), %rcx
movq %rcx, 0x3058(%r14,%rax)
movl 0x259c(%r14), %ecx
movl %ecx, 0x3060(%r14,%rax)
movl %ebx, 0x259c(%r14)
movl $0x1, %ebp
jmp 0x46599
movq 0x40a7e(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2a820(%rip), %rsi     # 0x70d9c
leaq 0x2a837(%rip), %rdx     # 0x70dba
xorl %ebp, %ebp
movl $0x5f76, %ecx           # imm = 0x5F76
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_pop_behavior
NK_API nk_bool
nk_button_pop_behavior(struct nk_context *ctx)
{
    struct nk_config_stack_button_behavior *button_stack;
    struct nk_config_stack_button_behavior_element *element;

    NK_ASSERT(ctx);
    if (!ctx) return 0;

    button_stack = &ctx->stacks.button_behaviors;
    NK_ASSERT(button_stack->head > 0);
    if (button_stack->head < 1)
        return 0;

    element = &button_stack->elements[--button_stack->head];
    *element->address = element->old_value;
    return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x46618
movq %rdi, %rbx
movl 0x3050(%rdi), %eax
testl %eax, %eax
jg 0x465f4
movq 0x40a2d(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x2a7cf(%rip), %rsi     # 0x70d9c
leaq 0x2a7e6(%rip), %rdx     # 0x70dba
xorl %ebp, %ebp
movl $0x5f8e, %ecx           # imm = 0x5F8E
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movl 0x3050(%rbx), %eax
testl %eax, %eax
jle 0x46646
decl %eax
movl %eax, 0x3050(%rbx)
shlq $0x4, %rax
movl 0x3060(%rbx,%rax), %ecx
movq 0x3058(%rbx,%rax), %rax
movl %ecx, (%rax)
movl $0x1, %ebp
jmp 0x46646
movq 0x409d1(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2a773(%rip), %rsi     # 0x70d9c
leaq 0x2a78a(%rip), %rdx     # 0x70dba
xorl %ebp, %ebp
movl $0x5f8a, %ecx           # imm = 0x5F8A
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_text_styled
NK_API nk_bool
nk_button_text_styled(struct nk_context *ctx,
    const struct nk_style_button *style, const char *title, int len)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;

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

    win = ctx->current;
    layout = win->layout;
    state = nk_widget(&bounds, ctx);

    if (!state) return 0;
    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    return nk_do_button_text(&ctx->last_widget_state, &win->buffer, bounds,
                    title, len, style->text_alignment, ctx->button_behavior,
                    style, in, ctx->style.font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x46699
movq 0x4097e(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2a71f(%rip), %rsi     # 0x70d9c
leaq 0x2a736(%rip), %rdx     # 0x70dba
movl $0x5fa1, %ecx           # imm = 0x5FA1
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x466cc
movq 0x4094b(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2a6ec(%rip), %rsi     # 0x70d9c
leaq 0x2a703(%rip), %rdx     # 0x70dba
movl $0x5fa2, %ecx           # imm = 0x5FA2
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x4670d
movq 0x40911(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2a6b2(%rip), %rsi     # 0x70d9c
leaq 0x2a6c9(%rip), %rdx     # 0x70dba
movl $0x5fa3, %ecx           # imm = 0x5FA3
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x46745
movq 0x408d2(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2a673(%rip), %rsi     # 0x70d9c
leaq 0x2a68a(%rip), %rdx     # 0x70dba
movl $0x5fa4, %ecx           # imm = 0x5FA4
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %rbx, %rbx
sete %cl
testq %r14, %r14
sete %dl
xorl %eax, %eax
orb %cl, %dl
jne 0x467dc
movq 0x4780(%r14), %r12
testq %r12, %r12
je 0x467dc
movq 0xa8(%r12), %r13
testq %r13, %r13
je 0x467dc
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x467dc
cmpl $0x1, %eax
jne 0x46797
xorl %eax, %eax
testb $0x10, 0x5(%r13)
cmoveq %r14, %rax
jmp 0x46799
xorl %eax, %eax
leaq 0x2598(%r14), %rdi
addq $0x68, %r12
movl 0x90(%rbx), %r8d
movl 0x259c(%r14), %r9d
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
subq $0x8, %rsp
movq %r12, %rsi
movq %r15, %rdx
movl %ebp, %ecx
pushq 0x168(%r14)
pushq %rax
pushq %rbx
callq 0x3e5cb
addq $0x20, %rsp
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_do_button
NK_LIB nk_bool
nk_do_button(nk_flags *state, struct nk_command_buffer *out, struct nk_rect r,
    const struct nk_style_button *style, const struct nk_input *in,
    enum nk_button_behavior behavior, struct nk_rect *content)
{
    struct nk_rect bounds;
    NK_ASSERT(style);
    NK_ASSERT(state);
    NK_ASSERT(out);
    if (!out || !style)
        return nk_false;

    /* calculate button content space */
    content->x = r.x + style->padding.x + style->border + style->rounding;
    content->y = r.y + style->padding.y + style->border + style->rounding;
    content->w = r.w - (2 * (style->padding.x + style->border + style->rounding));
    content->h = r.h - (2 * (style->padding.y + style->border + style->rounding));

    /* execute button behavior */
    bounds.x = r.x - style->touch_padding.x;
    bounds.y = r.y - style->touch_padding.y;
    bounds.w = r.w + 2 * style->touch_padding.x;
    bounds.h = r.h + 2 * style->touch_padding.y;
    return nk_button_behavior(state, bounds, in, behavior);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %r12
movl %r8d, 0xc(%rsp)
movq %rcx, %r14
movq %rdx, %r13
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %rsi, %rbp
movq %rdi, %r15
testq %rdx, %rdx
jne 0x46a90
movq 0x40585(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2a327(%rip), %rsi     # 0x70d9c
leaq 0x2a33e(%rip), %rdx     # 0x70dba
movl $0x5e53, %ecx           # imm = 0x5E53
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r15, %r15
jne 0x46ac1
movq 0x40554(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2a2f6(%rip), %rsi     # 0x70d9c
leaq 0x2a30d(%rip), %rdx     # 0x70dba
movl $0x5e54, %ecx           # imm = 0x5E54
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %rbp, %rbp
je 0x46b52
testq %r13, %r13
je 0x46b7e
movsd 0xa0(%r13), %xmm4
movaps %xmm4, %xmm1
movaps 0x20(%rsp), %xmm0
addps %xmm0, %xmm1
movss 0x98(%r13), %xmm2
movss 0x9c(%r13), %xmm3
shufps $0x0, %xmm2, %xmm2      # xmm2 = xmm2[0,0,0,0]
addps %xmm2, %xmm1
shufps $0x0, %xmm3, %xmm3      # xmm3 = xmm3[0,0,0,0]
addps %xmm3, %xmm1
addps %xmm4, %xmm2
addps %xmm3, %xmm2
addps %xmm2, %xmm2
movaps 0x10(%rsp), %xmm4
movaps %xmm4, %xmm3
subps %xmm2, %xmm3
movlhps %xmm3, %xmm1            # xmm1 = xmm1[0],xmm3[0]
movups %xmm1, (%r12)
movsd 0xb0(%r13), %xmm1
subps %xmm1, %xmm0
addps %xmm1, %xmm1
addps %xmm4, %xmm1
movq %r15, %rdi
movq %r14, %rsi
movl 0xc(%rsp), %edx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5160c
movq 0x40497(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x2a239(%rip), %rsi     # 0x70d9c
leaq 0x2a250(%rip), %rdx     # 0x70dba
movl $0x5e55, %ecx           # imm = 0x5E55
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_button
NK_LIB const struct nk_style_item*
nk_draw_button(struct nk_command_buffer *out,
    const struct nk_rect *bounds, nk_flags state,
    const struct nk_style_button *style)
{
    const struct nk_style_item *background;
    if (state & NK_WIDGET_STATE_HOVER)
        background = &style->hover;
    else if (state & NK_WIDGET_STATE_ACTIVED)
        background = &style->active;
    else background = &style->normal;

    switch (background->type) {
        case NK_STYLE_ITEM_IMAGE:
            nk_draw_image(out, *bounds, &background->data.image, nk_rgb_factor(nk_white, style->color_factor_background));
            break;
        case NK_STYLE_ITEM_NINE_SLICE:
            nk_draw_nine_slice(out, *bounds, &background->data.slice, nk_rgb_factor(nk_white, style->color_factor_background));
            break;
        case NK_STYLE_ITEM_COLOR:
            nk_fill_rect(out, *bounds, style->rounding, nk_rgb_factor(background->data.color, style->color_factor_background));
            nk_stroke_rect(out, *bounds, style->rounding, style->border, nk_rgb_factor(style->border_color, style->color_factor_background));
            break;
    }
    return background;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rsi, %r14
xorl %eax, %eax
testb $0x20, %dl
movl $0x50, %ecx
cmoveq %rax, %rcx
testb $0x10, %dl
movl $0x28, %eax
cmoveq %rcx, %rax
movq %rdi, %r15
leaq (%r12,%rax), %rbx
movl (%r12,%rax), %eax
testl %eax, %eax
je 0x46c8e
cmpl $0x2, %eax
je 0x46c33
cmpl $0x1, %eax
jne 0x46d16
leaq 0x8(%rbx), %rsi
movss 0x7c(%r12), %xmm0
movss 0x26cbd(%rip), %xmm1    # 0x6d8a8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
movl $0xff, %ecx
andl %ecx, %eax
ucomiss 0x26ca3(%rip), %xmm0    # 0x6d8a4
cmovnel %eax, %ecx
cmovpl %eax, %ecx
movl %ecx, %eax
shll $0x10, %eax
movl %ecx, %edx
shll $0x8, %edx
orl %eax, %edx
addl %ecx, %edx
addl $0xff000000, %edx       # imm = 0xFF000000
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movq %r15, %rdi
callq 0x134d0
jmp 0x46d16
leaq 0x8(%rbx), %rsi
movss 0x7c(%r12), %xmm0
movss 0x26c62(%rip), %xmm1    # 0x6d8a8
mulss %xmm0, %xmm1
cvttss2si %xmm1, %eax
movl $0xff, %ecx
andl %ecx, %eax
ucomiss 0x26c48(%rip), %xmm0    # 0x6d8a4
cmovnel %eax, %ecx
cmovpl %eax, %ecx
movl %ecx, %eax
shll $0x10, %eax
movl %ecx, %edx
shll $0x8, %edx
orl %eax, %edx
addl %ecx, %edx
addl $0xff000000, %edx       # imm = 0xFF000000
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movq %r15, %rdi
callq 0x13fe0
jmp 0x46d16
movss 0x7c(%r12), %xmm0
movss 0x9c(%r12), %xmm1
movss %xmm1, (%rsp)
movl 0x8(%rbx), %edi
callq 0x13e60
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movq %r15, %rdi
movss (%rsp), %xmm2
movl %eax, %esi
callq 0x12de0
movss 0x9c(%r12), %xmm0
movss %xmm0, (%rsp)
movss 0x98(%r12), %xmm0
movss %xmm0, 0x4(%rsp)
movss 0x7c(%r12), %xmm0
movl 0x78(%r12), %edi
callq 0x13e60
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movq %r15, %rdi
movss (%rsp), %xmm2
movss 0x4(%rsp), %xmm3
movl %eax, %esi
callq 0x12060
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_symbol_styled
NK_API nk_bool
nk_button_symbol_styled(struct nk_context *ctx,
    const struct nk_style_button *style, enum nk_symbol_type symbol)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;

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

    win = ctx->current;
    layout = win->layout;
    state = nk_widget(&bounds, ctx);
    if (!state) return 0;
    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    return nk_do_button_symbol(&ctx->last_widget_state, &win->buffer, bounds,
            symbol, ctx->button_behavior, style, in, ctx->style.font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x46d6c
movq 0x402a9(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x2a04b(%rip), %rsi     # 0x70d9c
leaq 0x2a062(%rip), %rdx     # 0x70dba
movl $0x5fef, %ecx           # imm = 0x5FEF
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %r15
testq %r15, %r15
jne 0x46dab
movq 0x40271(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x2a013(%rip), %rsi     # 0x70d9c
leaq 0x2a02a(%rip), %rdx     # 0x70dba
movl $0x5ff0, %ecx           # imm = 0x5FF0
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %r15
cmpq $0x0, 0xa8(%r15)
jne 0x46df0
movq 0x40234(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x29fd6(%rip), %rsi     # 0x70d9c
leaq 0x29fed(%rip), %rdx     # 0x70dba
xorl %r12d, %r12d
movl $0x5ff1, %ecx           # imm = 0x5FF1
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %r15
testq %r15, %r15
je 0x46e60
movq 0xa8(%r15), %r13
testq %r13, %r13
je 0x46e5d
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
movl %eax, %r12d
testl %eax, %eax
je 0x46e60
xorl %r9d, %r9d
cmpl $0x1, %r12d
jne 0x46e22
testb $0x10, 0x5(%r13)
cmoveq %r14, %r9
leaq 0x2598(%r14), %rdi
addq $0x68, %r15
movl 0x259c(%r14), %ecx
movq 0x168(%r14), %rax
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movq %rax, (%rsp)
movq %r15, %rsi
movl %ebp, %edx
movq %rbx, %r8
callq 0x3ffe3
movl %eax, %r12d
jmp 0x46e60
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_image_styled
NK_API nk_bool
nk_button_image_styled(struct nk_context *ctx, const struct nk_style_button *style,
    struct nk_image img)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;

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

    win = ctx->current;
    layout = win->layout;

    state = nk_widget(&bounds, ctx);
    if (!state) return 0;
    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    return nk_do_button_image(&ctx->last_widget_state, &win->buffer, bounds,
                img, ctx->button_behavior, style, in);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x46ef9
movq 0x4011c(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x29ebe(%rip), %rsi     # 0x70d9c
leaq 0x29ed5(%rip), %rdx     # 0x70dba
movl $0x600f, %ecx           # imm = 0x600F
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %r15
testq %r15, %r15
jne 0x46f38
movq 0x400e4(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x29e86(%rip), %rsi     # 0x70d9c
leaq 0x29e9d(%rip), %rdx     # 0x70dba
movl $0x6010, %ecx           # imm = 0x6010
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %r15
cmpq $0x0, 0xa8(%r15)
jne 0x46f7c
movq 0x400a7(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x29e49(%rip), %rsi     # 0x70d9c
leaq 0x29e60(%rip), %rdx     # 0x70dba
xorl %ebp, %ebp
movl $0x6011, %ecx           # imm = 0x6011
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %r15
testq %r15, %r15
je 0x46ff4
movq 0xa8(%r15), %r12
testq %r12, %r12
je 0x46ff2
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
movl %eax, %ebp
testl %eax, %eax
je 0x46ff4
leaq 0x60(%rsp), %rax
xorl %r8d, %r8d
cmpl $0x1, %ebp
jne 0x46fb2
testb $0x10, 0x5(%r12)
cmoveq %r14, %r8
addq $0x68, %r15
movl 0x259c(%r14), %edx
addq $0x2598, %r14           # imm = 0x2598
movsd 0x20(%rsp), %xmm0
movsd 0x28(%rsp), %xmm1
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax), %xmm2
movups %xmm2, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x3fc8f
movl %eax, %ebp
jmp 0x46ff4
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_symbol_text_styled
NK_API nk_bool
nk_button_symbol_text_styled(struct nk_context *ctx,
    const struct nk_style_button *style, enum nk_symbol_type symbol,
    const char *text, int len, nk_flags align)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;

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

    win = ctx->current;
    layout = win->layout;

    state = nk_widget(&bounds, ctx);
    if (!state) return 0;
    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    return nk_do_button_text_symbol(&ctx->last_widget_state, &win->buffer, bounds,
                symbol, text, len, align, ctx->button_behavior,
                style, ctx->style.font, in);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %r12d
movl %r8d, %r13d
movq %rcx, %rbp
movl %edx, 0x4(%rsp)
movq %rsi, %r15
movq %rdi, %r14
testq %rdi, %rdi
jne 0x47097
movq 0x3ff7e(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x29d20(%rip), %rsi     # 0x70d9c
leaq 0x29d37(%rip), %rdx     # 0x70dba
movl $0x6031, %ecx           # imm = 0x6031
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq %rbp, 0x8(%rsp)
movq 0x4780(%r14), %rbx
testq %rbx, %rbx
jne 0x470db
movq 0x3ff41(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x29ce3(%rip), %rsi     # 0x70d9c
leaq 0x29cfa(%rip), %rdx     # 0x70dba
movl $0x6032, %ecx           # imm = 0x6032
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %rbx
cmpq $0x0, 0xa8(%rbx)
jne 0x47123
movq 0x3ff04(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x29ca6(%rip), %rsi     # 0x70d9c
leaq 0x29cbd(%rip), %rdx     # 0x70dba
xorl %ebp, %ebp
movl $0x6033, %ecx           # imm = 0x6033
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %rbx
testq %rbx, %rbx
je 0x471a4
movq %r15, 0x10(%rsp)
movq 0xa8(%rbx), %r15
testq %r15, %r15
je 0x471a2
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
movl %eax, %ebp
testl %eax, %eax
je 0x471a4
xorl %eax, %eax
cmpl $0x1, %ebp
jne 0x47157
testb $0x10, 0x5(%r15)
cmoveq %r14, %rax
movq 0x8(%rsp), %rcx
movl 0x4(%rsp), %edx
leaq 0x2598(%r14), %rdi
addq $0x68, %rbx
movl 0x259c(%r14), %r10d
movsd 0x18(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
movq %rbx, %rsi
movl %r13d, %r8d
movl %r12d, %r9d
pushq %rax
pushq 0x168(%r14)
pushq 0x20(%rsp)
pushq %r10
callq 0x3efdb
addq $0x20, %rsp
movl %eax, %ebp
jmp 0x471a4
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_image_text_styled
NK_API nk_bool
nk_button_image_text_styled(struct nk_context *ctx,
    const struct nk_style_button *style, struct nk_image img, const char *text,
    int len, nk_flags align)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;

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

    win = ctx->current;
    layout = win->layout;

    state = nk_widget(&bounds, ctx);
    if (!state) return 0;
    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    return nk_do_button_text_image(&ctx->last_widget_state, &win->buffer,
            bounds, img, text, len, align, ctx->button_behavior,
            style, ctx->style.font, in);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r15
movq %rsi, 0x40(%rsp)
movq %rdi, %r12
testq %rdi, %rdi
jne 0x472c3
movq 0x3fd52(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x29af4(%rip), %rsi     # 0x70d9c
leaq 0x29b0b(%rip), %rdx     # 0x70dba
movl $0x6060, %ecx           # imm = 0x6060
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r12), %r13
testq %r13, %r13
jne 0x47304
movq 0x3fd19(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x29abb(%rip), %rsi     # 0x70d9c
leaq 0x29ad2(%rip), %rdx     # 0x70dba
movl $0x6061, %ecx           # imm = 0x6061
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r12), %r13
cmpq $0x0, 0xa8(%r13)
jne 0x4734f
movq 0x3fcdb(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x29a7c(%rip), %rsi     # 0x70d9c
leaq 0x29a93(%rip), %rdx     # 0x70dba
xorl %ebx, %ebx
movl $0x6062, %ecx           # imm = 0x6062
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
movq 0x4780(%r12), %r13
testq %r13, %r13
je 0x473f2
movl %ebp, 0x3c(%rsp)
movq 0xa8(%r13), %rbp
testq %rbp, %rbp
je 0x473f0
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
callq 0x128e0
movl %eax, %ebx
testl %eax, %eax
je 0x473f2
leaq 0x90(%rsp), %rax
xorl %ecx, %ecx
cmpl $0x1, %ebx
jne 0x4738d
testb $0x10, 0x5(%rbp)
cmoveq %r12, %rcx
movq 0x40(%rsp), %r8
leaq 0x2598(%r12), %rdi
addq $0x68, %r13
movl 0x259c(%r12), %r9d
movq 0x168(%r12), %rdx
movsd 0x48(%rsp), %xmm0
movsd 0x50(%rsp), %xmm1
movq 0x10(%rax), %rsi
movq %rsi, 0x10(%rsp)
movups (%rax), %xmm2
movups %xmm2, (%rsp)
movq %rcx, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %r8, 0x18(%rsp)
movq %r13, %rsi
movq %r15, %rdx
movl %r14d, %ecx
movl 0x3c(%rsp), %r8d
callq 0x3eae5
movl %eax, %ebx
jmp 0x473f2
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_check_text
NK_API nk_bool
nk_check_text(struct nk_context *ctx, const char *text, int len, nk_bool active)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;
    const struct nk_style *style;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;

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

    win = ctx->current;
    style = &ctx->style;
    layout = win->layout;

    state = nk_widget(&bounds, ctx);
    if (!state) return active;
    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    nk_do_toggle(&ctx->last_widget_state, &win->buffer, bounds, &active,
        text, len, NK_TOGGLE_CHECK, &style->checkbox, in, style->font, NK_WIDGET_LEFT, NK_TEXT_LEFT);
    return active;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl %ecx, 0x4(%rsp)
testq %rdi, %rdi
jne 0x474d1
movq 0x3fb46(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x298e7(%rip), %rsi     # 0x70d9c
leaq 0x298fe(%rip), %rdx     # 0x70dba
movl $0x6155, %ecx           # imm = 0x6155
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%rbx), %r12
testq %r12, %r12
jne 0x47512
movq 0x3fb0c(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x298ad(%rip), %rsi     # 0x70d9c
leaq 0x298c4(%rip), %rdx     # 0x70dba
movl $0x6156, %ecx           # imm = 0x6156
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%rbx), %r12
cmpq $0x0, 0xa8(%r12)
jne 0x4755b
movq 0x3facc(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x2986d(%rip), %rsi     # 0x70d9c
leaq 0x29884(%rip), %rdx     # 0x70dba
movl $0x6157, %ecx           # imm = 0x6157
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%rbx), %r12
testq %r12, %r12
je 0x475e2
movq 0xa8(%r12), %r13
testq %r13, %r13
je 0x475e2
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x128e0
testl %eax, %eax
je 0x475e2
cmpl $0x1, %eax
jne 0x4758b
xorl %eax, %eax
testb $0x10, 0x5(%r13)
cmoveq %rbx, %rax
jmp 0x4758d
xorl %eax, %eax
leaq 0x2598(%rbx), %rdi
addq $0x68, %r12
leaq 0x578(%rbx), %r10
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
subq $0x8, %rsp
movl $0x11, %r11d
leaq 0xc(%rsp), %r15
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movl %ebp, %r8d
xorl %r9d, %r9d
pushq %r11
pushq %r11
pushq 0x168(%rbx)
pushq %rax
pushq %r10
callq 0x475f4
addq $0x30, %rsp
movl (%r15), %r15d
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_check_text_align
NK_API nk_bool
nk_check_text_align(struct nk_context *ctx, const char *text, int len, nk_bool active, nk_flags widget_alignment, nk_flags text_alignment)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;
    const struct nk_style *style;

    struct nk_rect bounds;
    enum nk_widget_layout_states state;

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

    win = ctx->current;
    style = &ctx->style;
    layout = win->layout;

    state = nk_widget(&bounds, ctx);
    if (!state) return active;
    in = (state == NK_WIDGET_ROM || state == NK_WIDGET_DISABLED || layout->flags & NK_WINDOW_ROM) ? 0 : &ctx->input;
    nk_do_toggle(&ctx->last_widget_state, &win->buffer, bounds, &active,
        text, len, NK_TOGGLE_CHECK, &style->checkbox, in, style->font, widget_alignment, text_alignment);
    return active;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebp
movl %r8d, %r15d
movl %ecx, %r13d
movl %edx, %r12d
movq %rsi, 0x10(%rsp)
movq %rdi, %r14
movl %ecx, 0x4(%rsp)
testq %rdi, %rdi
jne 0x47f0e
movq 0x3f107(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x28ea9(%rip), %rsi     # 0x70d9c
leaq 0x28ec0(%rip), %rdx     # 0x70dba
movl $0x6171, %ecx           # imm = 0x6171
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %rbx
testq %rbx, %rbx
jne 0x47f4d
movq 0x3f0cf(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x28e71(%rip), %rsi     # 0x70d9c
leaq 0x28e88(%rip), %rdx     # 0x70dba
movl $0x6172, %ecx           # imm = 0x6172
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %rbx
cmpq $0x0, 0xa8(%rbx)
jne 0x47f93
movq 0x3f092(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x28e34(%rip), %rsi     # 0x70d9c
leaq 0x28e4b(%rip), %rdx     # 0x70dba
movl $0x6173, %ecx           # imm = 0x6173
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %rbx
testq %rbx, %rbx
je 0x4801d
movq %r15, 0x8(%rsp)
movq 0xa8(%rbx), %r15
testq %r15, %r15
je 0x4801d
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x4801d
cmpl $0x1, %eax
jne 0x47fc7
xorl %eax, %eax
testb $0x10, 0x5(%r15)
cmoveq %r14, %rax
jmp 0x47fc9
xorl %eax, %eax
leaq 0x2598(%r14), %rdi
addq $0x68, %rbx
leaq 0x578(%r14), %r10
movsd 0x18(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
subq $0x8, %rsp
leaq 0xc(%rsp), %r13
movq %rbx, %rsi
movq %r13, %rdx
movq 0x18(%rsp), %rcx
movl %r12d, %r8d
xorl %r9d, %r9d
pushq %rbp
pushq 0x18(%rsp)
pushq 0x168(%r14)
pushq %rax
pushq %r10
callq 0x475f4
addq $0x30, %rsp
movl (%r13), %r13d
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_check_flags_text
NK_API unsigned int
nk_check_flags_text(struct nk_context *ctx, const char *text, int len,
    unsigned int flags, unsigned int value)
{
    int old_active;
    NK_ASSERT(ctx);
    NK_ASSERT(text);
    if (!ctx || !text) return flags;
    old_active = (int)((flags & value) & value);
    if (nk_check_text(ctx, text, len, old_active))
        flags |= value;
    else flags &= ~value;
    return flags;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rsi, %r14
testq %rdi, %rdi
je 0x48066
testq %r14, %r14
je 0x48097
movl %r8d, %ebp
movl %r8d, %ecx
andl %ebx, %ecx
movq %r14, %rsi
callq 0x133c0
movl %ebp, %ecx
orl %ebx, %ecx
notl %ebp
andl %ebx, %ebp
testl %eax, %eax
cmovnel %ecx, %ebp
movl %ebp, %ebx
jmp 0x480c3
movq 0x3ef83(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x28d25(%rip), %rsi     # 0x70d9c
leaq 0x28d3c(%rip), %rdx     # 0x70dba
movl $0x6187, %ecx           # imm = 0x6187
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
jne 0x480c3
movq 0x3ef52(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x28cf4(%rip), %rsi     # 0x70d9c
leaq 0x28d0b(%rip), %rdx     # 0x70dba
movl $0x6188, %ecx           # imm = 0x6188
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq