LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x46c4f
movq 0x413c6(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2b158(%rip), %rsi     # 0x71d8c
leaq 0x2b16f(%rip), %rdx     # 0x71daa
movl $0x5d65, %ecx           # imm = 0x5D65
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x46c85
movq 0x41390(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2b122(%rip), %rsi     # 0x71d8c
leaq 0x2b139(%rip), %rdx     # 0x71daa
movl $0x5d66, %ecx           # imm = 0x5D66
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x46cc2
movq 0x41353(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2b0e5(%rip), %rsi     # 0x71d8c
leaq 0x2b0fc(%rip), %rdx     # 0x71daa
movl $0x5d67, %ecx           # imm = 0x5D67
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
je 0x46d0a
movq 0x4780(%r14), %r15
testq %r15, %r15
je 0x46d0a
cmpq $0x0, 0xa8(%r15)
je 0x46d0a
movq %rsp, %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x46d0a
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_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_sub9slice_ptr
NK_API struct nk_nine_slice
nk_sub9slice_ptr(void *ptr, 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.ptr = ptr;
    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
movq %rsi, %r12
movq %rdi, %r13
movl $0x20, %esi
callq 0x25316
movq %r12, (%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_O1/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
movl $0x20, %esi
callq 0x25316
movq %r12, (%r13)
movq $0x0, 0x8(%r13)
movl $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
// File: /workspace/github_c_makefile_star2_O1/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 0x25316
testq %r13, %r13
jne 0x46f90
movq 0x4108c(%rip), %rax     # 0x87ff0
movq (%rax), %rdi
leaq 0x2ae1e(%rip), %rsi     # 0x71d8c
leaq 0x2ae35(%rip), %rdx     # 0x71daa
movl $0x5dba, %ecx           # imm = 0x5DBA
xorl %eax, %eax
callq 0x12d80
movq 0x41068(%rip), %rax     # 0x87ff0
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_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_nine_slice_id
NK_API struct nk_nine_slice
nk_nine_slice_id(int id, 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 = 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
movl %esi, %r12d
movq %rdi, %r13
movl $0x20, %esi
callq 0x25316
movl %r12d, (%r13)
movq $0x0, 0x8(%r13)
movl $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
// File: /workspace/github_c_makefile_star2_O1/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 0x4714d
movl %esi, %ebx
movq %rdi, %r14
cmpl $0x8, 0x3050(%rdi)
jl 0x47104
movq 0x40f11(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2aca3(%rip), %rsi     # 0x71d8c
leaq 0x2acba(%rip), %rdx     # 0x71daa
movl $0x5f7a, %ecx           # imm = 0x5F7A
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movslq 0x3050(%r14), %rax
xorl %ebp, %ebp
cmpq $0x7, %rax
jg 0x4717b
leal 0x1(%rax), %ecx
movl %ecx, 0x3050(%r14)
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 0x4717b
movq 0x40e9c(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2ac2e(%rip), %rsi     # 0x71d8c
leaq 0x2ac45(%rip), %rdx     # 0x71daa
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_O1/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 %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x471f7
movq %rdi, %rbx
cmpl $0x0, 0x3050(%rdi)
jg 0x471c9
movq 0x40e4c(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2abde(%rip), %rsi     # 0x71d8c
leaq 0x2abf5(%rip), %rdx     # 0x71daa
movl $0x5f8e, %ecx           # imm = 0x5F8E
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movl 0x3050(%rbx), %eax
testl %eax, %eax
jle 0x47227
decl %eax
movl %eax, 0x3050(%rbx)
shlq $0x4, %rax
movl 0x3060(%rbx,%rax), %ecx
movq 0x3058(%rbx,%rax), %rax
movl %ecx, (%rax)
movl $0x1, %ebx
jmp 0x47229
movq 0x40df2(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x2ab84(%rip), %rsi     # 0x71d8c
leaq 0x2ab9b(%rip), %rdx     # 0x71daa
xorl %ebx, %ebx
movl $0x5f8a, %ecx           # imm = 0x5F8A
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
jmp 0x47229
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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 0x4727f
movq 0x40d98(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2ab29(%rip), %rsi     # 0x71d8c
leaq 0x2ab40(%rip), %rdx     # 0x71daa
movl $0x5fa1, %ecx           # imm = 0x5FA1
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x472b2
movq 0x40d65(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2aaf6(%rip), %rsi     # 0x71d8c
leaq 0x2ab0d(%rip), %rdx     # 0x71daa
movl $0x5fa2, %ecx           # imm = 0x5FA2
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x472ea
movq 0x40d2d(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2aabe(%rip), %rsi     # 0x71d8c
leaq 0x2aad5(%rip), %rdx     # 0x71daa
movl $0x5fa3, %ecx           # imm = 0x5FA3
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x47329
movq 0x40cee(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x2aa7f(%rip), %rsi     # 0x71d8c
leaq 0x2aa96(%rip), %rdx     # 0x71daa
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 0x473c0
movq 0x4780(%r14), %r12
testq %r12, %r12
je 0x473c0
movq 0xa8(%r12), %r13
testq %r13, %r13
je 0x473c0
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x473c0
cmpl $0x1, %eax
jne 0x4737b
xorl %eax, %eax
testb $0x10, 0x5(%r13)
cmoveq %r14, %rax
jmp 0x4737d
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 0x3ee0e
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_O1/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 0x47677
movq 0x4099e(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2a730(%rip), %rsi     # 0x71d8c
leaq 0x2a747(%rip), %rdx     # 0x71daa
movl $0x5e53, %ecx           # imm = 0x5E53
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r15, %r15
jne 0x476a8
movq 0x4096d(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2a6ff(%rip), %rsi     # 0x71d8c
leaq 0x2a716(%rip), %rdx     # 0x71daa
movl $0x5e54, %ecx           # imm = 0x5E54
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %rbp, %rbp
jne 0x476d9
movq 0x4093c(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2a6ce(%rip), %rsi     # 0x71d8c
leaq 0x2a6e5(%rip), %rdx     # 0x71daa
movl $0x5e55, %ecx           # imm = 0x5E55
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %rbp, %rbp
sete %al
testq %r13, %r13
sete %cl
orb %al, %cl
jne 0x47768
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 0x521be
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_O1/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 0x47872
cmpl $0x2, %eax
je 0x4781a
cmpl $0x1, %eax
jne 0x478fa
movss 0x7c(%r12), %xmm0
ucomiss 0x270e4(%rip), %xmm0    # 0x6e8b4
mulss 0x270e0(%rip), %xmm0    # 0x6e8b8
cvttss2si %xmm0, %eax
movl $0xff, %ecx
cmovnel %eax, %ecx
leaq 0x8(%rbx), %rsi
cmovpl %eax, %ecx
movzbl %cl, %eax
movl %eax, %ecx
shll $0x10, %ecx
movl %eax, %edx
shll $0x8, %edx
orl %ecx, %edx
addl %eax, %edx
addl $0xff000000, %edx       # imm = 0xFF000000
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movq %r15, %rdi
callq 0x134d0
jmp 0x478fa
movss 0x7c(%r12), %xmm0
ucomiss 0x2708c(%rip), %xmm0    # 0x6e8b4
mulss 0x27088(%rip), %xmm0    # 0x6e8b8
cvttss2si %xmm0, %eax
movl $0xff, %ecx
cmovnel %eax, %ecx
leaq 0x8(%rbx), %rsi
cmovpl %eax, %ecx
movzbl %cl, %eax
movl %eax, %ecx
shll $0x10, %ecx
movl %eax, %edx
shll $0x8, %edx
orl %ecx, %edx
addl %eax, %edx
addl $0xff000000, %edx       # imm = 0xFF000000
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movq %r15, %rdi
callq 0x13fe0
jmp 0x478fa
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_O1/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 %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x4794e
movq 0x406c7(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2a459(%rip), %rsi     # 0x71d8c
leaq 0x2a470(%rip), %rdx     # 0x71daa
movl $0x5fef, %ecx           # imm = 0x5FEF
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x47984
movq 0x40691(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2a423(%rip), %rsi     # 0x71d8c
leaq 0x2a43a(%rip), %rdx     # 0x71daa
movl $0x5ff0, %ecx           # imm = 0x5FF0
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x479c1
movq 0x40654(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2a3e6(%rip), %rsi     # 0x71d8c
leaq 0x2a3fd(%rip), %rdx     # 0x71daa
movl $0x5ff1, %ecx           # imm = 0x5FF1
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
xorl %eax, %eax
testq %r14, %r14
je 0x47a39
movq 0x4780(%r14), %r15
testq %r15, %r15
je 0x47a39
movq 0xa8(%r15), %r12
testq %r12, %r12
je 0x47a39
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x47a39
xorl %r9d, %r9d
cmpl $0x1, %eax
jne 0x47a03
testb $0x10, 0x5(%r12)
cmoveq %r14, %r9
leaq 0x2598(%r14), %rdi
addq $0x68, %r15
movl 0x259c(%r14), %ecx
movq 0x168(%r14), %rax
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movq %rax, (%rsp)
movq %r15, %rsi
movl %ebp, %edx
movq %rbx, %r8
callq 0x40888
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x47acc
movq 0x40549(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2a2db(%rip), %rsi     # 0x71d8c
leaq 0x2a2f2(%rip), %rdx     # 0x71daa
movl $0x600f, %ecx           # imm = 0x600F
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x47b02
movq 0x40513(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2a2a5(%rip), %rsi     # 0x71d8c
leaq 0x2a2bc(%rip), %rdx     # 0x71daa
movl $0x6010, %ecx           # imm = 0x6010
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x47b3f
movq 0x404d6(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x2a268(%rip), %rsi     # 0x71d8c
leaq 0x2a27f(%rip), %rdx     # 0x71daa
movl $0x6011, %ecx           # imm = 0x6011
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
xorl %eax, %eax
testq %r14, %r14
je 0x47bc2
movq 0x4780(%r14), %r15
testq %r15, %r15
je 0x47bc2
movq 0xa8(%r15), %r12
testq %r12, %r12
je 0x47bc2
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x47bc2
leaq 0x50(%rsp), %rcx
xorl %r8d, %r8d
cmpl $0x1, %eax
jne 0x47b86
testb $0x10, 0x5(%r12)
cmoveq %r14, %r8
addq $0x68, %r15
movl 0x259c(%r14), %edx
addq $0x2598, %r14           # imm = 0x2598
movsd 0x18(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx), %xmm2
movups %xmm2, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x40533
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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, 0xc(%rsp)
movl %r8d, %r15d
movq %rcx, %r12
movl %edx, %r13d
movq %rsi, %rbp
movq %rdi, %r14
testq %rdi, %rdi
jne 0x47c63
movq 0x403b2(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2a144(%rip), %rsi     # 0x71d8c
leaq 0x2a15b(%rip), %rdx     # 0x71daa
movl $0x6031, %ecx           # imm = 0x6031
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x47c99
movq 0x4037c(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2a10e(%rip), %rsi     # 0x71d8c
leaq 0x2a125(%rip), %rdx     # 0x71daa
movl $0x6032, %ecx           # imm = 0x6032
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x47cd6
movq 0x4033f(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x2a0d1(%rip), %rsi     # 0x71d8c
leaq 0x2a0e8(%rip), %rdx     # 0x71daa
movl $0x6033, %ecx           # imm = 0x6033
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
xorl %eax, %eax
testq %r14, %r14
je 0x47d68
movq 0x4780(%r14), %rbx
testq %rbx, %rbx
je 0x47d68
movq %rbp, 0x10(%rsp)
movq 0xa8(%rbx), %rbp
testq %rbp, %rbp
je 0x47d68
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x47d68
cmpl $0x1, %eax
jne 0x47d20
xorl %eax, %eax
testb $0x10, 0x5(%rbp)
cmoveq %r14, %rax
jmp 0x47d22
xorl %eax, %eax
leaq 0x2598(%r14), %rdi
addq $0x68, %rbx
movl 0x259c(%r14), %r10d
movsd 0x18(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
movq %rbx, %rsi
movl %r13d, %edx
movq %r12, %rcx
movl %r15d, %r8d
movl 0xc(%rsp), %r9d
pushq %rax
pushq 0x168(%r14)
pushq 0x20(%rsp)
pushq %r10
callq 0x3f85e
addq $0x20, %rsp
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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 $0x48, %rsp
movl %r8d, %r13d
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
testq %rdi, %rdi
jne 0x47e82
movq 0x40193(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x29f25(%rip), %rsi     # 0x71d8c
leaq 0x29f3c(%rip), %rdx     # 0x71daa
movl $0x6060, %ecx           # imm = 0x6060
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r12)
jne 0x47eb9
movq 0x4015c(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x29eee(%rip), %rsi     # 0x71d8c
leaq 0x29f05(%rip), %rdx     # 0x71daa
movl $0x6061, %ecx           # imm = 0x6061
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r12), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x47ef7
movq 0x4011e(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x29eb0(%rip), %rsi     # 0x71d8c
leaq 0x29ec7(%rip), %rdx     # 0x71daa
movl $0x6062, %ecx           # imm = 0x6062
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
xorl %eax, %eax
testq %r12, %r12
je 0x47fad
movl %r13d, 0x34(%rsp)
movq 0x4780(%r12), %r13
testq %r13, %r13
je 0x47fad
movq 0xa8(%r13), %rbx
testq %rbx, %rbx
je 0x47fad
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
callq 0x128e0
testl %eax, %eax
je 0x47fad
leaq 0x80(%rsp), %rcx
cmpl $0x1, %eax
jne 0x47f52
xorl %eax, %eax
testb $0x10, 0x5(%rbx)
cmoveq %r12, %rax
jmp 0x47f54
xorl %eax, %eax
leaq 0x2598(%r12), %rdi
addq $0x68, %r13
movl 0x259c(%r12), %r9d
movq 0x168(%r12), %rdx
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movq 0x10(%rcx), %rsi
movq %rsi, 0x10(%rsp)
movups (%rcx), %xmm2
movups %xmm2, (%rsp)
movq %rax, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %r15, 0x18(%rsp)
movq %r13, %rsi
movq %r14, %rdx
movl %ebp, %ecx
movl 0x34(%rsp), %r8d
callq 0x3f331
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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 %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl %ecx, 0xc(%rsp)
testq %rdi, %rdi
jne 0x48083
movq 0x3ff92(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x29d24(%rip), %rsi     # 0x71d8c
leaq 0x29d3b(%rip), %rdx     # 0x71daa
movl $0x6155, %ecx           # imm = 0x6155
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x480b9
movq 0x3ff5c(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x29cee(%rip), %rsi     # 0x71d8c
leaq 0x29d05(%rip), %rdx     # 0x71daa
movl $0x6156, %ecx           # imm = 0x6156
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x480f6
movq 0x3ff1f(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x29cb1(%rip), %rsi     # 0x71d8c
leaq 0x29cc8(%rip), %rdx     # 0x71daa
movl $0x6157, %ecx           # imm = 0x6157
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x48190
movq 0x4780(%rbx), %r15
testq %r15, %r15
je 0x48190
movq 0xa8(%r15), %r12
testq %r12, %r12
je 0x48190
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x128e0
testl %eax, %eax
je 0x48190
cmpl $0x1, %eax
jne 0x4813f
xorl %eax, %eax
testb $0x10, 0x5(%r12)
cmoveq %rbx, %rax
jmp 0x48141
xorl %eax, %eax
leaq 0x2598(%rbx), %rdi
addq $0x68, %r15
leaq 0x578(%rbx), %r10
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
subq $0x8, %rsp
movl $0x11, %r11d
leaq 0x14(%rsp), %rdx
movq %r15, %rsi
movq %r14, %rcx
movl %ebp, %r8d
xorl %r9d, %r9d
pushq %r11
pushq %r11
pushq 0x168(%rbx)
pushq %rax
pushq %r10
callq 0x481a1
addq $0x30, %rsp
movl 0xc(%rsp), %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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, %r15d
movq %r8, 0x10(%rsp)
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %r14
movl %ecx, 0xc(%rsp)
testq %rdi, %rdi
jne 0x48a73
movq 0x3f5a2(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x29334(%rip), %rsi     # 0x71d8c
leaq 0x2934b(%rip), %rdx     # 0x71daa
movl $0x6171, %ecx           # imm = 0x6171
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x48aa9
movq 0x3f56c(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x292fe(%rip), %rsi     # 0x71d8c
leaq 0x29315(%rip), %rdx     # 0x71daa
movl $0x6172, %ecx           # imm = 0x6172
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x48ae6
movq 0x3f52f(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x292c1(%rip), %rsi     # 0x71d8c
leaq 0x292d8(%rip), %rdx     # 0x71daa
movl $0x6173, %ecx           # imm = 0x6173
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r14, %r14
je 0x48b77
movq 0x4780(%r14), %r13
testq %r13, %r13
je 0x48b77
movq 0xa8(%r13), %rbx
testq %rbx, %rbx
je 0x48b77
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x48b77
cmpl $0x1, %eax
jne 0x48b29
xorl %eax, %eax
testb $0x10, 0x5(%rbx)
cmoveq %r14, %rax
jmp 0x48b2b
xorl %eax, %eax
leaq 0x2598(%r14), %rdi
addq $0x68, %r13
leaq 0x578(%r14), %r10
movsd 0x18(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
subq $0x8, %rsp
leaq 0x14(%rsp), %rdx
movq %r13, %rsi
movq %r12, %rcx
movl %ebp, %r8d
xorl %r9d, %r9d
pushq %r15
pushq 0x20(%rsp)
pushq 0x168(%r14)
pushq %rax
pushq %r10
callq 0x481a1
addq $0x30, %rsp
movl 0xc(%rsp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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 %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movl %ecx, %ebx
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r12
testq %rdi, %rdi
jne 0x48bd6
movq 0x3f441(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x291d2(%rip), %rsi     # 0x71d8c
leaq 0x291e9(%rip), %rdx     # 0x71daa
movl $0x6187, %ecx           # imm = 0x6187
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
testq %r15, %r15
jne 0x48c09
movq 0x3f40e(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x2919f(%rip), %rsi     # 0x71d8c
leaq 0x291b6(%rip), %rdx     # 0x71daa
movl $0x6188, %ecx           # imm = 0x6188
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
testq %r15, %r15
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x48c3a
movl %ebp, %ecx
andl %ebx, %ecx
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
callq 0x133c0
movl %ebp, %ecx
orl %ebx, %ecx
notl %ebp
andl %ebx, %ebp
testl %eax, %eax
cmovnel %ecx, %ebp
movl %ebp, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_checkbox_text
NK_API nk_bool
nk_checkbox_text(struct nk_context *ctx, const char *text, int len, nk_bool *active)
{
    int old_val;
    NK_ASSERT(ctx);
    NK_ASSERT(text);
    NK_ASSERT(active);
    if (!ctx || !text || !active) return 0;
    old_val = *active;
    *active = nk_check_text(ctx, text, len, *active);
    return old_val != *active;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
jne 0x48c91
movq 0x3f386(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x29117(%rip), %rsi     # 0x71d8c
leaq 0x2912e(%rip), %rdx     # 0x71daa
movl $0x6194, %ecx           # imm = 0x6194
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r14, %r14
jne 0x48cc4
movq 0x3f353(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x290e4(%rip), %rsi     # 0x71d8c
leaq 0x290fb(%rip), %rdx     # 0x71daa
movl $0x6195, %ecx           # imm = 0x6195
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x48cf7
movq 0x3f320(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x290b1(%rip), %rsi     # 0x71d8c
leaq 0x290c8(%rip), %rdx     # 0x71daa
movl $0x6196, %ecx           # imm = 0x6196
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %rbx, %rbx
sete %cl
testq %r14, %r14
sete %al
testq %r15, %r15
sete %dl
orb %al, %dl
xorl %eax, %eax
orb %cl, %dl
jne 0x48d30
movl (%rbx), %r12d
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
movl %r12d, %ecx
callq 0x133c0
movl %eax, %ecx
movl %eax, (%rbx)
xorl %eax, %eax
cmpl %ecx, %r12d
setne %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_checkbox_text_align
NK_API nk_bool
nk_checkbox_text_align(struct nk_context *ctx, const char *text, int len, nk_bool *active, nk_flags widget_alignment, nk_flags text_alignment)
{
    int old_val;
    NK_ASSERT(ctx);
    NK_ASSERT(text);
    NK_ASSERT(active);
    if (!ctx || !text || !active) return 0;
    old_val = *active;
    *active = nk_check_text_align(ctx, text, len, *active, widget_alignment, text_alignment);
    return old_val != *active;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, 0x4(%rsp)
movl %r8d, %r14d
movq %rcx, %rbx
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r13
testq %rdi, %rdi
jne 0x48d8b
movq 0x3f28c(%rip), %rbp     # 0x87ff0
movq (%rbp), %rdi
leaq 0x2901d(%rip), %rsi     # 0x71d8c
leaq 0x29034(%rip), %rdx     # 0x71daa
movl $0x61a0, %ecx           # imm = 0x61A0
xorl %eax, %eax
callq 0x12d80
movq (%rbp), %rdi
callq 0x13780
testq %r12, %r12
jne 0x48dbe
movq 0x3f259(%rip), %rbp     # 0x87ff0
movq (%rbp), %rdi
leaq 0x28fea(%rip), %rsi     # 0x71d8c
leaq 0x29001(%rip), %rdx     # 0x71daa
movl $0x61a1, %ecx           # imm = 0x61A1
xorl %eax, %eax
callq 0x12d80
movq (%rbp), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x48df1
movq 0x3f226(%rip), %rbp     # 0x87ff0
movq (%rbp), %rdi
leaq 0x28fb7(%rip), %rsi     # 0x71d8c
leaq 0x28fce(%rip), %rdx     # 0x71daa
movl $0x61a2, %ecx           # imm = 0x61A2
xorl %eax, %eax
callq 0x12d80
movq (%rbp), %rdi
callq 0x13780
testq %rbx, %rbx
sete %cl
testq %r12, %r12
sete %al
testq %r13, %r13
sete %dl
orb %al, %dl
xorl %eax, %eax
orb %cl, %dl
jne 0x48e30
movl (%rbx), %ebp
movq %r13, %rdi
movq %r12, %rsi
movl %r15d, %edx
movl %ebp, %ecx
movl %r14d, %r8d
movl 0x4(%rsp), %r9d
callq 0x13120
movl %eax, %ecx
movl %eax, (%rbx)
xorl %eax, %eax
cmpl %ecx, %ebp
setne %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_checkbox_flags_text
NK_API nk_bool
nk_checkbox_flags_text(struct nk_context *ctx, const char *text, int len,
    unsigned int *flags, unsigned int value)
{
    nk_bool active;
    NK_ASSERT(ctx);
    NK_ASSERT(text);
    NK_ASSERT(flags);
    if (!ctx || !text || !flags) return 0;

    active = (int)((*flags & value) & value);
    if (nk_checkbox_text(ctx, text, len, &active)) {
        if (active) *flags |= value;
        else *flags &= ~value;
        return 1;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r12
testq %rdi, %rdi
jne 0x48e8b
movq 0x3f18c(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x28f1d(%rip), %rsi     # 0x71d8c
leaq 0x28f34(%rip), %rdx     # 0x71daa
movl $0x61ad, %ecx           # imm = 0x61AD
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
testq %r15, %r15
jne 0x48ebe
movq 0x3f159(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x28eea(%rip), %rsi     # 0x71d8c
leaq 0x28f01(%rip), %rdx     # 0x71daa
movl $0x61ae, %ecx           # imm = 0x61AE
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
testq %r14, %r14
jne 0x48ef1
movq 0x3f126(%rip), %r13     # 0x87ff0
movq (%r13), %rdi
leaq 0x28eb7(%rip), %rsi     # 0x71d8c
leaq 0x28ece(%rip), %rdx     # 0x71daa
movl $0x61af, %ecx           # imm = 0x61AF
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
testq %r14, %r14
sete %al
testq %r15, %r15
sete %cl
testq %r12, %r12
sete %dl
orb %cl, %dl
xorl %r13d, %r13d
orb %al, %dl
jne 0x48f3b
movl %ebp, %edx
movl (%r14), %ebp
andl %ebx, %ebp
movq %r12, %rdi
movq %r15, %rsi
movl %ebp, %ecx
callq 0x133c0
cmpl %eax, %ebp
je 0x48f3b
testl %eax, %eax
je 0x48f2d
orl (%r14), %ebx
jmp 0x48f32
notl %ebx
andl (%r14), %ebx
movl %ebx, (%r14)
movl $0x1, %r13d
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_option_text
NK_API nk_bool
nk_option_text(struct nk_context *ctx, const char *text, int len, nk_bool is_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 is_active;

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

    state = nk_widget(&bounds, ctx);
    if (!state) return (int)state;
    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, &is_active,
        text, len, NK_TOGGLE_OPTION, &style->option, in, style->font, NK_WIDGET_LEFT, NK_TEXT_LEFT);
    return is_active;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl %ecx, 0xc(%rsp)
testq %rdi, %rdi
jne 0x49094
movq 0x3ef81(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x28d13(%rip), %rsi     # 0x71d8c
leaq 0x28d2a(%rip), %rdx     # 0x71daa
movl $0x61e0, %ecx           # imm = 0x61E0
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x490ca
movq 0x3ef4b(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x28cdd(%rip), %rsi     # 0x71d8c
leaq 0x28cf4(%rip), %rdx     # 0x71daa
movl $0x61e1, %ecx           # imm = 0x61E1
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x49107
movq 0x3ef0e(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x28ca0(%rip), %rsi     # 0x71d8c
leaq 0x28cb7(%rip), %rdx     # 0x71daa
movl $0x61e2, %ecx           # imm = 0x61E2
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x49148
movq 0x4780(%rbx), %r15
testq %r15, %r15
je 0x49148
movq 0xa8(%r15), %r12
testq %r12, %r12
je 0x49148
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x128e0
testl %eax, %eax
je 0x4914c
cmpl $0x1, %eax
jne 0x49159
xorl %eax, %eax
testb $0x10, 0x5(%r12)
cmoveq %rbx, %rax
jmp 0x4915b
movl 0xc(%rsp), %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
leaq 0x2598(%rbx), %rdi
addq $0x68, %r15
leaq 0x458(%rbx), %r10
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
subq $0x8, %rsp
movl $0x11, %r11d
leaq 0x14(%rsp), %r12
movq %r15, %rsi
movq %r12, %rdx
movq %r14, %rcx
movl %ebp, %r8d
movl $0x1, %r9d
pushq %r11
pushq %r11
pushq 0x168(%rbx)
pushq %rax
pushq %r10
callq 0x481a1
addq $0x30, %rsp
movl (%r12), %eax
jmp 0x4914c
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_option_text_align
NK_API nk_bool
nk_option_text_align(struct nk_context *ctx, const char *text, int len, nk_bool is_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 is_active;

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

    state = nk_widget(&bounds, ctx);
    if (!state) return (int)state;
    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, &is_active,
        text, len, NK_TOGGLE_OPTION, &style->option, in, style->font, widget_alignment, text_alignment);
    return is_active;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %r15d
movq %r8, 0x10(%rsp)
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %r14
movl %ecx, 0xc(%rsp)
testq %rdi, %rdi
jne 0x49209
movq 0x3ee0c(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x28b9e(%rip), %rsi     # 0x71d8c
leaq 0x28bb5(%rip), %rdx     # 0x71daa
movl $0x61fc, %ecx           # imm = 0x61FC
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%r14)
jne 0x4923f
movq 0x3edd6(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x28b68(%rip), %rsi     # 0x71d8c
leaq 0x28b7f(%rip), %rdx     # 0x71daa
movl $0x61fd, %ecx           # imm = 0x61FD
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
movq 0x4780(%r14), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x4927c
movq 0x3ed99(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x28b2b(%rip), %rsi     # 0x71d8c
leaq 0x28b42(%rip), %rdx     # 0x71daa
movl $0x61fe, %ecx           # imm = 0x61FE
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r14, %r14
je 0x492bb
movq 0x4780(%r14), %r13
testq %r13, %r13
je 0x492bb
movq 0xa8(%r13), %rbx
testq %rbx, %rbx
je 0x492bb
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x128e0
testl %eax, %eax
je 0x492bf
cmpl $0x1, %eax
jne 0x492ce
xorl %eax, %eax
testb $0x10, 0x5(%rbx)
cmoveq %r14, %rax
jmp 0x492d0
movl 0xc(%rsp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
leaq 0x2598(%r14), %rdi
addq $0x68, %r13
leaq 0x458(%r14), %r10
movsd 0x18(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
subq $0x8, %rsp
leaq 0x14(%rsp), %rbx
movq %r13, %rsi
movq %rbx, %rdx
movq %r12, %rcx
movl %ebp, %r8d
movl $0x1, %r9d
pushq %r15
pushq 0x20(%rsp)
pushq 0x168(%r14)
pushq %rax
pushq %r10
callq 0x481a1
addq $0x30, %rsp
movl (%rbx), %eax
jmp 0x492bf