LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_selectable_text
NK_API nk_bool
nk_selectable_text(struct nk_context *ctx, const char *str, int len,
    nk_flags align, nk_bool *value)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;
    const struct nk_style *style;

    enum nk_widget_layout_states state;
    struct nk_rect bounds;

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

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

    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_selectable(&ctx->last_widget_state, &win->buffer, bounds,
                str, len, align, value, &style->selectable, in, style->font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movl %ecx, 0x4(%rsp)
movl %edx, (%rsp)
movq %rsi, %r12
movq %rdi, %r14
testq %rdi, %rdi
jne 0x44eda
movq 0x4013b(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x24e4d(%rip), %rsi     # 0x69d0c
leaq 0x24e64(%rip), %rdx     # 0x69d2a
movl $0x630d, %ecx           # imm = 0x630D
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %rbx, %rbx
jne 0x44f0b
movq 0x4010a(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x24e1c(%rip), %rsi     # 0x69d0c
leaq 0x24e33(%rip), %rdx     # 0x69d2a
movl $0x630e, %ecx           # imm = 0x630E
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r13
testq %r13, %r13
jne 0x44f4a
movq 0x400d2(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x24de4(%rip), %rsi     # 0x69d0c
leaq 0x24dfb(%rip), %rdx     # 0x69d2a
movl $0x630f, %ecx           # imm = 0x630F
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r13
cmpq $0x0, 0xa8(%r13)
jne 0x44f8e
movq 0x40095(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x24da7(%rip), %rsi     # 0x69d0c
leaq 0x24dbe(%rip), %rdx     # 0x69d2a
xorl %ebp, %ebp
movl $0x6310, %ecx           # imm = 0x6310
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r13
testq %r13, %r13
je 0x4500d
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x4500d
movq 0xa8(%r13), %r15
testq %r15, %r15
je 0x4500d
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x12990
movl %eax, %ebp
testl %eax, %eax
je 0x4500d
xorl %eax, %eax
cmpl $0x1, %ebp
jne 0x44fc4
testb $0x10, 0x5(%r15)
cmoveq %r14, %rax
leaq 0x2598(%r14), %rdi
addq $0x68, %r13
leaq 0x698(%r14), %r10
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
subq $0x8, %rsp
movq %r13, %rsi
movq %r12, %rdx
movl 0x8(%rsp), %ecx
movl 0xc(%rsp), %r8d
movq %rbx, %r9
pushq 0x168(%r14)
pushq %rax
pushq %r10
callq 0x4501e
addq $0x20, %rsp
movl %eax, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_selectable_image_text
NK_API nk_bool
nk_selectable_image_text(struct nk_context *ctx, struct nk_image img,
    const char *str, int len, nk_flags align, nk_bool *value)
{
    struct nk_window *win;
    struct nk_panel *layout;
    const struct nk_input *in;
    const struct nk_style *style;

    enum nk_widget_layout_states state;
    struct nk_rect bounds;

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

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

    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_selectable_image(&ctx->last_widget_state, &win->buffer, bounds,
                str, len, align, value, &img, &style->selectable, in, style->font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movl %ecx, 0x4(%rsp)
movl %edx, (%rsp)
movq %rsi, %r12
movq %rdi, %r14
testq %rdi, %rdi
jne 0x4535e
movq 0x3fcb7(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x249c9(%rip), %rsi     # 0x69d0c
leaq 0x249e0(%rip), %rdx     # 0x69d2a
movl $0x632a, %ecx           # imm = 0x632A
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %rbx, %rbx
jne 0x4538f
movq 0x3fc86(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x24998(%rip), %rsi     # 0x69d0c
leaq 0x249af(%rip), %rdx     # 0x69d2a
movl $0x632b, %ecx           # imm = 0x632B
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r13
testq %r13, %r13
jne 0x453ce
movq 0x3fc4e(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x24960(%rip), %rsi     # 0x69d0c
leaq 0x24977(%rip), %rdx     # 0x69d2a
movl $0x632c, %ecx           # imm = 0x632C
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r13
cmpq $0x0, 0xa8(%r13)
jne 0x45416
movq 0x3fc11(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x24923(%rip), %rsi     # 0x69d0c
leaq 0x2493a(%rip), %rdx     # 0x69d2a
xorl %ebp, %ebp
movl $0x632d, %ecx           # imm = 0x632D
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %r13
testq %r13, %r13
je 0x45498
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x45498
movq 0xa8(%r13), %r15
testq %r15, %r15
je 0x45498
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x12990
movl %eax, %ebp
testl %eax, %eax
je 0x45498
leaq 0x50(%rsp), %rax
xorl %r10d, %r10d
cmpl $0x1, %ebp
jne 0x45452
testb $0x10, 0x5(%r15)
cmoveq %r14, %r10
leaq 0x2598(%r14), %rdi
addq $0x68, %r13
leaq 0x698(%r14), %r11
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
movq %r13, %rsi
movq %r12, %rdx
movl (%rsp), %ecx
movl 0x4(%rsp), %r8d
movq %rbx, %r9
pushq 0x168(%r14)
pushq %r10
pushq %r11
pushq %rax
callq 0x454a9
addq $0x20, %rsp
movl %eax, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_slider_int
NK_API nk_bool
nk_slider_int(struct nk_context *ctx, int min, int *val, int max, int step)
{
    int ret;
    float value = (float)*val;
    ret = nk_slider_float(ctx, (float)min, &value, (float)max, (float)step);
    *val =  (int)value;
    return ret;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
cvtsi2ssl (%rdx), %xmm2
cvtsi2ss %esi, %xmm0
leaq 0x4(%rsp), %r14
cvtsi2ss %ecx, %xmm1
movss %xmm2, (%r14)
cvtsi2ss %r8d, %xmm2
movq %r14, %rsi
callq 0x13480
cvttss2si (%r14), %ecx
movl %ecx, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_delete
NK_API void
nk_textedit_delete(struct nk_text_edit *state, int where, int len)
{
    /* delete characters while updating undo */
    nk_textedit_makeundo_delete(state, where, len);
    nk_str_delete_runes(&state->string, where, len);
    state->has_preferred_x = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0xc0, %rdi
xorl %r13d, %r13d
movl %esi, (%rsp)
movl %edx, 0x4(%rsp)
xorl %ecx, %ecx
callq 0x52be2
testq %rax, %rax
je 0x46e21
movq %rax, %r15
leaq 0x18(%rbx), %r12
movl 0x4(%rsp), %eax
testl %eax, %eax
movl $0x0, %r14d
cmovgl %eax, %r14d
movl (%rsp), %ebp
cmpq %r13, %r14
je 0x46e21
leal (%rbp,%r13), %esi
movq %r12, %rdi
callq 0x12a60
movl %eax, (%r15,%r13,4)
incq %r13
jmp 0x46e06
leaq 0x18(%rbx), %rdi
movl (%rsp), %esi
movl 0x4(%rsp), %edx
callq 0x12e20
movb $0x0, 0xb7(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_delete_selection
NK_API void
nk_textedit_delete_selection(struct nk_text_edit *state)
{
    /* delete the section */
    nk_textedit_clamp(state);
    if (NK_TEXT_HAS_SELECTION(state)) {
        if (state->select_start < state->select_end) {
            nk_textedit_delete(state, state->select_start,
                state->select_end - state->select_start);
            state->select_end = state->cursor = state->select_start;
        } else {
            nk_textedit_delete(state, state->select_end,
                state->select_start - state->select_end);
            state->select_start = state->cursor = state->select_end;
        }
        state->has_preferred_x = 0;
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x46ea3
movl 0xac(%rbx), %esi
movl 0xb0(%rbx), %edx
movl %esi, %eax
subl %edx, %eax
je 0x46ea1
jge 0x46e7c
subl %esi, %edx
movq %rbx, %rdi
callq 0x123a0
movl 0xac(%rbx), %eax
movl %eax, 0xb0(%rbx)
jmp 0x46e94
movq %rbx, %rdi
movl %edx, %esi
movl %eax, %edx
callq 0x123a0
movl 0xb0(%rbx), %eax
movl %eax, 0xac(%rbx)
movl %eax, 0xa8(%rbx)
movb $0x0, 0xb7(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_clamp
NK_INTERN void
nk_textedit_clamp(struct nk_text_edit *state)
{
    /* make the selection/cursor state valid if client altered the string */
    int n = state->string.len;
    if (NK_TEXT_HAS_SELECTION(state)) {
        if (state->select_start > n) state->select_start = n;
        if (state->select_end   > n) state->select_end = n;
        /* if clamping forced them to be equal, move the cursor to match */
        if (state->select_start == state->select_end)
            state->cursor = state->select_start;
    }
    if (state->cursor > n) state->cursor = n;
}

// Assembly:
movl 0x90(%rdi), %eax
movl 0xac(%rdi), %ecx
movl 0xb0(%rdi), %edx
cmpl %edx, %ecx
je 0x46edb
cmpl %eax, %ecx
jle 0x46ec5
movl %eax, 0xac(%rdi)
movl %eax, %ecx
cmpl %eax, %edx
jle 0x46ed1
movl %eax, 0xb0(%rdi)
movl %eax, %edx
cmpl %edx, %ecx
jne 0x46edb
movl %ecx, 0xa8(%rdi)
cmpl %eax, 0xa8(%rdi)
jle 0x46ee9
movl %eax, 0xa8(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_cut
NK_API nk_bool
nk_textedit_cut(struct nk_text_edit *state)
{
    /* API cut: delete selection */
    if (state->mode == NK_TEXT_EDIT_MODE_VIEW)
        return 0;
    if (NK_TEXT_HAS_SELECTION(state)) {
        nk_textedit_delete_selection(state); /* implicitly clamps */
        state->has_preferred_x = 0;
        return 1;
    }
   return 0;
}

// Assembly:
xorl %eax, %eax
cmpb $0x0, 0xb4(%rdi)
je 0x46f1a
pushq %rbx
movq %rdi, %rbx
movl 0xac(%rdi), %ecx
cmpl 0xb0(%rdi), %ecx
je 0x46f19
movq %rbx, %rdi
callq 0x14070
movb $0x0, 0xb7(%rbx)
pushq $0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_paste
NK_API nk_bool
nk_textedit_paste(struct nk_text_edit *state, char const *ctext, int len)
{
    /* API paste: replace existing selection with passed-in text */
    int glyphs;
    const char *text = (const char *) ctext;
    if (state->mode == NK_TEXT_EDIT_MODE_VIEW) return 0;

    /* if there's a selection, the paste should delete it */
    nk_textedit_clamp(state);
    nk_textedit_delete_selection(state);

    /* try to insert the characters */
    glyphs = nk_utf_len(ctext, len);
    if (nk_str_insert_text_char(&state->string, state->cursor, text, len)) {
        nk_textedit_makeundo_insert(state, state->cursor, glyphs);
        state->cursor += len;
        state->has_preferred_x = 0;
        return 1;
    }
    /* remove the undo since we didn't actually insert the characters */
    if (state->undo.undo_point)
        --state->undo.undo_point;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %ebx, %ebx
cmpb $0x0, 0xb4(%rdi)
je 0x46fa6
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
callq 0x46ea3
movq %r14, %rdi
callq 0x14070
movq %r15, %rdi
movl %ebp, %esi
callq 0x127b0
movl %eax, %r12d
leaq 0x18(%r14), %rdi
movl 0xa8(%r14), %esi
movq %r15, %rdx
movl %ebp, %ecx
callq 0x13ba0
testl %eax, %eax
je 0x46f8f
movl 0xa8(%r14), %esi
movq %r14, %rdi
movl %r12d, %edx
callq 0x46fb1
addl %ebp, 0xa8(%r14)
movb $0x0, 0xb7(%r14)
pushq $0x1
popq %rbx
jmp 0x46fa6
movzwl 0x1500(%r14), %eax
testw %ax, %ax
je 0x46fa6
decl %eax
movw %ax, 0x1500(%r14)
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_init_fixed
NK_API void
nk_textedit_init_fixed(struct nk_text_edit *state, void *memory, nk_size size)
{
    NK_ASSERT(state);
    NK_ASSERT(memory);
    if (!state || !memory || !size) return;
    NK_MEMSET(state, 0, sizeof(struct nk_text_edit));
    nk_textedit_clear_state(state, NK_TEXT_EDIT_SINGLE_LINE, 0);
    nk_str_init_fixed(&state->string, memory, size);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
jne 0x47660
movq 0x3d9b7(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x226c8(%rip), %rsi     # 0x69d0c
leaq 0x226df(%rip), %rdx     # 0x69d2a
movl $0x6a3f, %ecx           # imm = 0x6A3F
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %r14, %r14
je 0x476ab
testq %r15, %r15
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x476e2
movl $0x1508, %esi           # imm = 0x1508
movq %r15, %rdi
callq 0x338b1
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x476ee
addq $0x18, %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x14220
movq 0x3d93e(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x22650(%rip), %rsi     # 0x69d0c
leaq 0x22667(%rip), %rdx     # 0x69d2a
movl $0x6a40, %ecx           # imm = 0x6A40
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x13960
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_init
NK_API void
nk_textedit_init(struct nk_text_edit *state, struct nk_allocator *alloc, nk_size size)
{
    NK_ASSERT(state);
    NK_ASSERT(alloc);
    if (!state || !alloc) return;
    NK_MEMSET(state, 0, sizeof(struct nk_text_edit));
    nk_textedit_clear_state(state, NK_TEXT_EDIT_SINGLE_LINE, 0);
    nk_str_init(&state->string, alloc, size);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
testq %rdi, %rdi
je 0x47772
testq %rbx, %rbx
je 0x477a9
movq %rdx, %r14
movq %rdi, %r15
movl $0x1508, %esi           # imm = 0x1508
callq 0x338b1
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x476ee
addq $0x18, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x13b10
movq 0x3d877(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x22589(%rip), %rsi     # 0x69d0c
leaq 0x225a0(%rip), %rdx     # 0x69d2a
movl $0x6a49, %ecx           # imm = 0x6A49
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
testq %rbx, %rbx
je 0x477a9
popq %rbx
popq %r14
popq %r15
retq
movq 0x3d840(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x22552(%rip), %rsi     # 0x69d0c
leaq 0x22569(%rip), %rdx     # 0x69d2a
movl $0x6a4a, %ecx           # imm = 0x6A4A
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_init_default
NK_API void
nk_textedit_init_default(struct nk_text_edit *state)
{
    NK_ASSERT(state);
    if (!state) return;
    NK_MEMSET(state, 0, sizeof(struct nk_text_edit));
    nk_textedit_clear_state(state, NK_TEXT_EDIT_SINGLE_LINE, 0);
    nk_str_init_default(&state->string);
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x47806
movq %rdi, %rbx
movl $0x1508, %esi           # imm = 0x1508
callq 0x338b1
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x476ee
addq $0x18, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x13980
movq 0x3d7e3(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x224f5(%rip), %rsi     # 0x69d0c
leaq 0x2250c(%rip), %rdx     # 0x69d2a
movl $0x6a54, %ecx           # imm = 0x6A54
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_edit_focus
NK_API void
nk_edit_focus(struct nk_context *ctx, nk_flags flags)
{
    nk_hash hash;
    struct nk_window *win;

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

    win = ctx->current;
    hash = win->edit.seq;
    win->edit.active = nk_true;
    win->edit.name = hash;
    if (flags & NK_EDIT_ALWAYS_INSERT_MODE)
        win->edit.mode = NK_TEXT_EDIT_MODE_INSERT;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x4796d
movq 0x3d6a8(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x223ba(%rip), %rsi     # 0x69d0c
leaq 0x223d1(%rip), %rdx     # 0x69d2a
movl $0x6d11, %ecx           # imm = 0x6D11
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
jne 0x479b1
movq 0x3d670(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x22382(%rip), %rsi     # 0x69d0c
leaq 0x22399(%rip), %rdx     # 0x69d2a
movl $0x6d12, %ecx           # imm = 0x6D12
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x4780(%r14), %rax
testq %rax, %rax
je 0x479d4
movl 0x184(%rax), %ecx
movl $0x1, 0x18c(%rax)
movl %ecx, 0x180(%rax)
btl $0x9, %ebx
jae 0x479d4
movb $0x1, 0x1a8(%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_edit_unfocus
NK_API void
nk_edit_unfocus(struct nk_context *ctx)
{
    struct nk_window *win;
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current) return;

    win = ctx->current;
    win->edit.active = nk_false;
    win->edit.name = 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x47a12
movq 0x3d603(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x22315(%rip), %rsi     # 0x69d0c
leaq 0x2232c(%rip), %rdx     # 0x69d2a
movl $0x6d20, %ecx           # imm = 0x6D20
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x47a56
movq 0x3d5cb(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x222dd(%rip), %rsi     # 0x69d0c
leaq 0x222f4(%rip), %rdx     # 0x69d2a
movl $0x6d21, %ecx           # imm = 0x6D21
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x47a64
andl $0x0, 0x18c(%rax)
andl $0x0, 0x180(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_property_int
NK_API void
nk_property_int(struct nk_context *ctx, const char *name,
    int min, int *val, int max, int step, float inc_per_pixel)
{
    struct nk_property_variant variant;
    NK_ASSERT(ctx);
    NK_ASSERT(name);
    NK_ASSERT(val);

    if (!ctx || !ctx->current || !name || !val) return;
    variant = nk_property_variant_int(*val, min, max, step);
    nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_INT);
    *val = variant.value.i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movss %xmm0, 0xc(%rsp)
movl %r9d, 0x8(%rsp)
movl %r8d, %r15d
movq %rcx, %rbx
movl %edx, %r13d
movq %rsi, %r14
movq %rdi, %r12
testq %rdi, %rdi
jne 0x4972e
movq 0x3b8e9(%rip), %rbp     # 0x84ff0
movq (%rbp), %rdi
leaq 0x205fa(%rip), %rsi     # 0x69d0c
leaq 0x20611(%rip), %rdx     # 0x69d2a
movl $0x6f54, %ecx           # imm = 0x6F54
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
testq %r14, %r14
jne 0x49761
movq 0x3b8b6(%rip), %rbp     # 0x84ff0
movq (%rbp), %rdi
leaq 0x205c7(%rip), %rsi     # 0x69d0c
leaq 0x205de(%rip), %rdx     # 0x69d2a
movl $0x6f55, %ecx           # imm = 0x6F55
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
testq %rbx, %rbx
jne 0x49794
movq 0x3b883(%rip), %rbp     # 0x84ff0
movq (%rbp), %rdi
leaq 0x20594(%rip), %rsi     # 0x69d0c
leaq 0x205ab(%rip), %rdx     # 0x69d2a
movl $0x6f56, %ecx           # imm = 0x6F56
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
testq %r12, %r12
je 0x497e6
testq %rbx, %rbx
je 0x497e6
testq %r14, %r14
je 0x497e6
cmpq $0x0, 0x4780(%r12)
je 0x497e6
movl (%rbx), %eax
leaq 0x10(%rsp), %rbp
andl $0x0, (%rbp)
movl %eax, 0x8(%rbp)
movl %r13d, 0x10(%rbp)
movl %r15d, 0x18(%rbp)
movl 0x8(%rsp), %eax
movl %eax, 0x20(%rbp)
movq %r12, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movss 0xc(%rsp), %xmm0
xorl %ecx, %ecx
callq 0x497f5
movl 0x8(%rbp), %eax
movl %eax, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_property_float
NK_API void
nk_property_float(struct nk_context *ctx, const char *name,
    float min, float *val, float max, float step, float inc_per_pixel)
{
    struct nk_property_variant variant;
    NK_ASSERT(ctx);
    NK_ASSERT(name);
    NK_ASSERT(val);

    if (!ctx || !ctx->current || !name || !val) return;
    variant = nk_property_variant_float(*val, min, max, step);
    nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT);
    *val = variant.value.f;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movss %xmm3, 0xc(%rsp)
movss %xmm2, 0x8(%rsp)
movss %xmm1, 0x4(%rsp)
movq %rdx, %rbx
movss %xmm0, (%rsp)
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
jne 0x4a8dd
movq 0x3a73a(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x1f44b(%rip), %rsi     # 0x69d0c
leaq 0x1f462(%rip), %rdx     # 0x69d2a
movl $0x6f62, %ecx           # imm = 0x6F62
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %r14, %r14
jne 0x4a910
movq 0x3a707(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x1f418(%rip), %rsi     # 0x69d0c
leaq 0x1f42f(%rip), %rdx     # 0x69d2a
movl $0x6f63, %ecx           # imm = 0x6F63
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %rbx, %rbx
jne 0x4a943
movq 0x3a6d4(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x1f3e5(%rip), %rsi     # 0x69d0c
leaq 0x1f3fc(%rip), %rdx     # 0x69d2a
movl $0x6f64, %ecx           # imm = 0x6F64
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %r15, %r15
je 0x4a9bc
testq %rbx, %rbx
je 0x4a9bc
testq %r14, %r14
je 0x4a9bc
cmpq $0x0, 0x4780(%r15)
je 0x4a9bc
movss (%rbx), %xmm0
leaq 0x10(%rsp), %r12
movl $0x1, (%r12)
movss %xmm0, 0x8(%r12)
movss (%rsp), %xmm0
movss %xmm0, 0x10(%r12)
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x18(%r12)
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x20(%r12)
pushq $0x1
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movss 0xc(%rsp), %xmm0
callq 0x497f5
movss 0x8(%r12), %xmm0
movss %xmm0, (%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_property_double
NK_API void
nk_property_double(struct nk_context *ctx, const char *name,
    double min, double *val, double max, double step, float inc_per_pixel)
{
    struct nk_property_variant variant;
    NK_ASSERT(ctx);
    NK_ASSERT(name);
    NK_ASSERT(val);

    if (!ctx || !ctx->current || !name || !val) return;
    variant = nk_property_variant_double(*val, min, max, step);
    nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT);
    *val = variant.value.d;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movss %xmm3, 0x4(%rsp)
movsd %xmm2, 0x18(%rsp)
movsd %xmm1, 0x10(%rsp)
movq %rdx, %rbx
movsd %xmm0, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %r15
testq %rdi, %rdi
jne 0x4aa27
movq 0x3a5f0(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x1f301(%rip), %rsi     # 0x69d0c
leaq 0x1f318(%rip), %rdx     # 0x69d2a
movl $0x6f70, %ecx           # imm = 0x6F70
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %r14, %r14
jne 0x4aa5a
movq 0x3a5bd(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x1f2ce(%rip), %rsi     # 0x69d0c
leaq 0x1f2e5(%rip), %rdx     # 0x69d2a
movl $0x6f71, %ecx           # imm = 0x6F71
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %rbx, %rbx
jne 0x4aa8d
movq 0x3a58a(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x1f29b(%rip), %rsi     # 0x69d0c
leaq 0x1f2b2(%rip), %rdx     # 0x69d2a
movl $0x6f72, %ecx           # imm = 0x6F72
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %r15, %r15
je 0x4ab07
testq %rbx, %rbx
je 0x4ab07
testq %r14, %r14
je 0x4ab07
cmpq $0x0, 0x4780(%r15)
je 0x4ab07
movsd (%rbx), %xmm0
leaq 0x20(%rsp), %r12
movl $0x2, (%r12)
movsd %xmm0, 0x8(%r12)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x10(%r12)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x18(%r12)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x20(%r12)
pushq $0x1
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movss 0x4(%rsp), %xmm0
callq 0x497f5
movsd 0x8(%r12), %xmm0
movsd %xmm0, (%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_propertyi
NK_API int
nk_propertyi(struct nk_context *ctx, const char *name, int min, int val,
    int max, int step, float inc_per_pixel)
{
    struct nk_property_variant variant;
    NK_ASSERT(ctx);
    NK_ASSERT(name);

    if (!ctx || !ctx->current || !name) return val;
    variant = nk_property_variant_int(val, min, max, step);
    nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_INT);
    val = variant.value.i;
    return val;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movss %xmm0, 0xc(%rsp)
movl %r9d, 0x8(%rsp)
movl %r8d, %r15d
movl %ecx, %ebx
movl %edx, %r13d
movq %rsi, %r14
movq %rdi, %r12
testq %rdi, %rdi
jne 0x4ab6d
movq 0x3a4aa(%rip), %rbp     # 0x84ff0
movq (%rbp), %rdi
leaq 0x1f1bb(%rip), %rsi     # 0x69d0c
leaq 0x1f1d2(%rip), %rdx     # 0x69d2a
movl $0x6f7e, %ecx           # imm = 0x6F7E
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
testq %r14, %r14
jne 0x4aba0
movq 0x3a477(%rip), %rbp     # 0x84ff0
movq (%rbp), %rdi
leaq 0x1f188(%rip), %rsi     # 0x69d0c
leaq 0x1f19f(%rip), %rdx     # 0x69d2a
movl $0x6f7f, %ecx           # imm = 0x6F7F
xorl %eax, %eax
callq 0x12ea0
movq (%rbp), %rdi
callq 0x13960
testq %r12, %r12
je 0x4abe9
testq %r14, %r14
je 0x4abe9
cmpq $0x0, 0x4780(%r12)
je 0x4abe9
leaq 0x10(%rsp), %rbp
andl $0x0, (%rbp)
movl %ebx, 0x8(%rbp)
movl %r13d, 0x10(%rbp)
movl %r15d, 0x18(%rbp)
movl 0x8(%rsp), %eax
movl %eax, 0x20(%rbp)
movq %r12, %rdi
movq %r14, %rsi
movq %rbp, %rdx
movss 0xc(%rsp), %xmm0
xorl %ecx, %ecx
callq 0x497f5
movl 0x8(%rbp), %ebx
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_propertyf
NK_API float
nk_propertyf(struct nk_context *ctx, const char *name, float min,
    float val, float max, float step, float inc_per_pixel)
{
    struct nk_property_variant variant;
    NK_ASSERT(ctx);
    NK_ASSERT(name);

    if (!ctx || !ctx->current || !name) return val;
    variant = nk_property_variant_float(val, min, max, step);
    nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT);
    val = variant.value.f;
    return val;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movss %xmm4, 0x14(%rsp)
movss %xmm3, 0x10(%rsp)
movss %xmm2, 0xc(%rsp)
movss %xmm0, 0x8(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x4ac5e
movq 0x3a3c3(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1f0d5(%rip), %rsi     # 0x69d0c
leaq 0x1f0ec(%rip), %rdx     # 0x69d2a
movl $0x6f8c, %ecx           # imm = 0x6F8C
xorl %eax, %eax
movss %xmm1, 0x4(%rsp)
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movss 0x4(%rsp), %xmm1
testq %rbx, %rbx
jne 0x4ac9b
movq 0x3a386(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1f098(%rip), %rsi     # 0x69d0c
leaq 0x1f0af(%rip), %rdx     # 0x69d2a
movl $0x6f8d, %ecx           # imm = 0x6F8D
xorl %eax, %eax
movss %xmm1, 0x4(%rsp)
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movss 0x4(%rsp), %xmm1
testq %r14, %r14
je 0x4ad02
testq %rbx, %rbx
je 0x4ad02
cmpq $0x0, 0x4780(%r14)
je 0x4ad02
leaq 0x18(%rsp), %r15
movl $0x1, (%r15)
movss %xmm1, 0x8(%r15)
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x10(%r15)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x18(%r15)
movss 0x10(%rsp), %xmm0
movss %xmm0, 0x20(%r15)
pushq $0x1
popq %rcx
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movss 0x14(%rsp), %xmm0
callq 0x497f5
movss 0x8(%r15), %xmm1
movaps %xmm1, %xmm0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_propertyd
NK_API double
nk_propertyd(struct nk_context *ctx, const char *name, double min,
    double val, double max, double step, float inc_per_pixel)
{
    struct nk_property_variant variant;
    NK_ASSERT(ctx);
    NK_ASSERT(name);

    if (!ctx || !ctx->current || !name) return val;
    variant = nk_property_variant_double(val, min, max, step);
    nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT);
    val = variant.value.d;
    return val;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movss %xmm4, 0xc(%rsp)
movsd %xmm3, 0x20(%rsp)
movsd %xmm2, 0x18(%rsp)
movsd %xmm0, 0x10(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x4ad71
movq 0x3a2ae(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1efc0(%rip), %rsi     # 0x69d0c
leaq 0x1efd7(%rip), %rdx     # 0x69d2a
movl $0x6f9a, %ecx           # imm = 0x6F9A
xorl %eax, %eax
movsd %xmm1, (%rsp)
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movsd (%rsp), %xmm1
testq %rbx, %rbx
jne 0x4adac
movq 0x3a273(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1ef85(%rip), %rsi     # 0x69d0c
leaq 0x1ef9c(%rip), %rdx     # 0x69d2a
movl $0x6f9b, %ecx           # imm = 0x6F9B
xorl %eax, %eax
movsd %xmm1, (%rsp)
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movsd (%rsp), %xmm1
testq %r14, %r14
je 0x4ae13
testq %rbx, %rbx
je 0x4ae13
cmpq $0x0, 0x4780(%r14)
je 0x4ae13
leaq 0x28(%rsp), %r15
movl $0x2, (%r15)
movsd %xmm1, 0x8(%r15)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x10(%r15)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%r15)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x20(%r15)
pushq $0x1
popq %rcx
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movss 0xc(%rsp), %xmm0
callq 0x497f5
movsd 0x8(%r15), %xmm1
movaps %xmm1, %xmm0
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_chart_end
NK_API void
nk_chart_end(struct nk_context *ctx)
{
    struct nk_window *win;
    struct nk_chart *chart;

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

    win = ctx->current;
    chart = &win->layout->chart;
    NK_MEMSET(chart, 0, sizeof(*chart));
    return;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4b9cb
movq 0x3964a(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x1e35c(%rip), %rsi     # 0x69d0c
leaq 0x1e373(%rip), %rdx     # 0x69d2a
movl $0x70b7, %ecx           # imm = 0x70B7
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x4ba0f
movq 0x39612(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x1e324(%rip), %rsi     # 0x69d0c
leaq 0x1e33b(%rip), %rdx     # 0x69d2a
movl $0x70b8, %ecx           # imm = 0x70B8
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x4ba2c
movl $0xf8, %edi
addq 0xa8(%rax), %rdi
movl $0xc4, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x338b1
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_plot
NK_API void
nk_plot(struct nk_context *ctx, enum nk_chart_type type, const float *values,
    int count, int offset)
{
    int i = 0;
    float min_value;
    float max_value;

    NK_ASSERT(ctx);
    NK_ASSERT(values);
    if (!ctx || !values || !count) return;

    min_value = values[offset];
    max_value = values[offset];
    for (i = 0; i < count; ++i) {
        min_value = NK_MIN(values[i + offset], min_value);
        max_value = NK_MAX(values[i + offset], max_value);
    }

    if (nk_chart_begin(ctx, type, count, min_value, max_value)) {
        for (i = 0; i < count; ++i)
            nk_chart_push(ctx, values[i + offset]);
        nk_chart_end(ctx);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r15d
movl %ecx, %ebp
movq %rdx, %r12
movl %esi, %r14d
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4ba80
movq 0x39597(%rip), %r13     # 0x84ff0
movq (%r13), %rdi
leaq 0x1e2a8(%rip), %rsi     # 0x69d0c
leaq 0x1e2bf(%rip), %rdx     # 0x69d2a
movl $0x70c9, %ecx           # imm = 0x70C9
xorl %eax, %eax
callq 0x12ea0
movq (%r13), %rdi
callq 0x13960
testq %r12, %r12
je 0x4bad0
testq %rbx, %rbx
sete %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
jne 0x4bb36
movslq %r15d, %rax
leaq (%r12,%rax,4), %r15
movss (%r15), %xmm0
xorl %eax, %eax
testl %ebp, %ebp
movl $0x0, %r12d
cmovgl %ebp, %r12d
movaps %xmm0, %xmm1
cmpq %rax, %r12
je 0x4bb0a
movss (%r15,%rax,4), %xmm2
maxss %xmm2, %xmm1
minss %xmm0, %xmm2
incq %rax
movaps %xmm2, %xmm0
jmp 0x4bab5
movq 0x39519(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1e22b(%rip), %rsi     # 0x69d0c
leaq 0x1e242(%rip), %rdx     # 0x69d2a
movl $0x70ca, %ecx           # imm = 0x70CA
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13960
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x12940
testl %eax, %eax
je 0x4bb36
xorl %r14d, %r14d
cmpq %r14, %r12
je 0x4bb45
movss (%r15,%r14,4), %xmm0
movq %rbx, %rdi
callq 0x12d40
incq %r14
jmp 0x4bb1e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x14180
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_plot_function
NK_API void
nk_plot_function(struct nk_context *ctx, enum nk_chart_type type, void *userdata,
    float(*value_getter)(void* user, int index), int count, int offset)
{
    int i = 0;
    float min_value;
    float max_value;

    NK_ASSERT(ctx);
    NK_ASSERT(value_getter);
    if (!ctx || !value_getter || !count) return;

    max_value = min_value = value_getter(userdata, offset);
    for (i = 0; i < count; ++i) {
        float value = value_getter(userdata, i + offset);
        min_value = NK_MIN(value, min_value);
        max_value = NK_MAX(value, max_value);
    }

    if (nk_chart_begin(ctx, type, count, min_value, max_value)) {
        for (i = 0; i < count; ++i)
            nk_chart_push(ctx, value_getter(userdata, i + offset));
        nk_chart_end(ctx);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r13d
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r15
movl %esi, 0x4(%rsp)
movq %rdi, %r12
testq %rdi, %rdi
jne 0x4bbad
movq 0x39468(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1e17a(%rip), %rsi     # 0x69d0c
leaq 0x1e191(%rip), %rdx     # 0x69d2a
movl $0x70e2, %ecx           # imm = 0x70E2
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
callq 0x13960
testq %r14, %r14
je 0x4bc15
testq %r12, %r12
sete %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
jne 0x4bc83
movq %r12, 0x10(%rsp)
movq %r15, %rdi
movl %r13d, %esi
callq *%r14
xorl %r12d, %r12d
testl %ebp, %ebp
movl %ebp, (%rsp)
cmovgl %ebp, %r12d
movl %r13d, %ebx
movl %r12d, %ebp
movaps %xmm0, %xmm1
subl $0x1, %ebp
jb 0x4bc4f
movq %r15, %rdi
movl %ebx, %esi
movss %xmm1, 0xc(%rsp)
movss %xmm0, 0x8(%rsp)
callq *%r14
movss 0xc(%rsp), %xmm1
maxss %xmm0, %xmm1
minss 0x8(%rsp), %xmm0
incl %ebx
jmp 0x4bbe8
movq 0x393d4(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x1e0e6(%rip), %rsi     # 0x69d0c
leaq 0x1e0fd(%rip), %rdx     # 0x69d2a
movl $0x70e3, %ecx           # imm = 0x70E3
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13960
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl 0x4(%rsp), %esi
movl (%rsp), %edx
callq 0x12940
testl %eax, %eax
je 0x4bc83
subl $0x1, %r12d
jb 0x4bc92
movq %r15, %rdi
movl %r13d, %esi
callq *%r14
movq %rbx, %rdi
callq 0x12d40
incl %r13d
jmp 0x4bc67
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x14180
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_behavior
NK_LIB nk_bool
nk_button_behavior(nk_flags *state, struct nk_rect r,
    const struct nk_input *i, enum nk_button_behavior behavior)
{
    int ret = 0;
    nk_widget_state_reset(state);
    if (!i) return 0;
    if (nk_input_is_mouse_hovering_rect(i, r)) {
        *state = NK_WIDGET_STATE_HOVERED;
        if (nk_input_is_mouse_down(i, NK_BUTTON_LEFT))
            *state = NK_WIDGET_STATE_ACTIVE;
        if (nk_input_has_mouse_click_in_button_rect(i, NK_BUTTON_LEFT, r)) {
            ret = (behavior != NK_BUTTON_DEFAULT) ?
                nk_input_is_mouse_down(i, NK_BUTTON_LEFT):
#ifdef NK_BUTTON_TRIGGER_ON_RELEASE
                nk_input_is_mouse_released(i, NK_BUTTON_LEFT);
#else
                nk_input_is_mouse_pressed(i, NK_BUTTON_LEFT);
#endif
        }
    }
    if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(i, r))
        *state |= NK_WIDGET_STATE_ENTERED;
    else if (nk_input_is_mouse_prev_hovering_rect(i, r))
        *state |= NK_WIDGET_STATE_LEFT;
    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl (%rdi), %r12d
andl $0x2, %r12d
orl $0x4, %r12d
movl %r12d, (%rdi)
testq %rsi, %rsi
je 0x4ca23
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
movaps %xmm0, (%rsp)
movaps %xmm1, 0x10(%rsp)
callq 0x143d0
testl %eax, %eax
je 0x4ca27
movl $0x12, (%rbx)
xorl %r12d, %r12d
cmpl $0x0, 0x104(%r14)
setne %r12b
shll $0x4, %r12d
addl $0x12, %r12d
movl %r12d, (%rbx)
xorl %ebp, %ebp
movq %r14, %rdi
xorl %esi, %esi
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0x13390
testl %eax, %eax
je 0x4ca29
movl 0x104(%r14), %eax
testl %r15d, %r15d
je 0x4ca7e
movl %eax, %ebp
jmp 0x4ca29
xorl %ebp, %ebp
jmp 0x4ca6f
xorl %ebp, %ebp
movaps 0x10(%rsp), %xmm1
movaps (%rsp), %xmm0
testb $0x10, %r12b
je 0x4ca56
movq %r14, %rdi
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0x13d20
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
testl %eax, %eax
je 0x4ca66
movq %r14, %rdi
callq 0x13d20
testl %eax, %eax
je 0x4ca6f
pushq $0x40
jmp 0x4ca68
pushq $0x8
popq %rax
orl %eax, %r12d
movl %r12d, (%rbx)
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
testl %eax, %eax
movaps 0x10(%rsp), %xmm1
movaps (%rsp), %xmm0
je 0x4ca32
cmpl $0x0, 0x108(%r14)
je 0x4ca32
pushq $0x1
popq %rbp
jmp 0x4ca32
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_button_symbol
NK_LIB void
nk_draw_button_symbol(struct nk_command_buffer *out,
    const struct nk_rect *bounds, const struct nk_rect *content,
    nk_flags state, const struct nk_style_button *style,
    enum nk_symbol_type type, const struct nk_user_font *font)
{
    struct nk_color sym, bg;
    const struct nk_style_item *background;

    /* select correct colors/images */
    background = nk_draw_button(out, bounds, state, style);
    if (background->type == NK_STYLE_ITEM_COLOR)
        bg = background->data.color;
    else bg = style->text_background;

    if (state & NK_WIDGET_STATE_HOVER)
        sym = style->text_hover;
    else if (state & NK_WIDGET_STATE_ACTIVED)
        sym = style->text_active;
    else sym = style->text_normal;

    sym = nk_rgb_factor(sym, style->color_factor_text);
    nk_draw_symbol(out, type, *content, bg, sym, 1, font);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, 0x4(%rsp)
movq %r8, %r13
movl %ecx, %ebp
movq %rdx, %r12
movq %rdi, %r15
movq 0x40(%rsp), %r14
movl %ecx, %edx
movq %r8, %rcx
callq 0x43162
leaq 0x8(%rax), %rcx
leaq 0x80(%r13), %rdx
cmpl $0x0, (%rax)
cmoveq %rcx, %rdx
movl (%rdx), %ebx
movl %ebp, %eax
andl $0x20, %eax
shrl $0x2, %eax
orq $0x84, %rax
testb $0x10, %bpl
movl $0x88, %ecx
cmoveq %rax, %rcx
movl (%r13,%rcx), %edi
movss 0x94(%r13), %xmm0
callq 0x140a0
movsd (%r12), %xmm0
movsd 0x8(%r12), %xmm1
movss 0x19d19(%rip), %xmm2    # 0x66834
movq %r15, %rdi
movl 0x4(%rsp), %esi
movl %ebx, %edx
movl %eax, %ecx
movq %r14, %r8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4d54c
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_tooltip_end
NK_API void
nk_tooltip_end(struct nk_context *ctx)
{
    NK_ASSERT(ctx);
    NK_ASSERT(ctx->current);
    if (!ctx || !ctx->current) return;
    ctx->current->seq--;
    nk_popup_close(ctx);
    nk_popup_end(ctx);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x4ec41
movq 0x363d4(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x1b0e6(%rip), %rsi     # 0x69d0c
leaq 0x1b0fd(%rip), %rdx     # 0x69d2a
movl $0x7542, %ecx           # imm = 0x7542
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x4ec85
movq 0x3639c(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x1b0ae(%rip), %rsi     # 0x69d0c
leaq 0x1b0c5(%rip), %rdx     # 0x69d2a
movl $0x7543, %ecx           # imm = 0x7543
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x4ec9e
decl (%rax)
movq %rbx, %rdi
callq 0x14350
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x133e0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_push_command
NK_INTERN struct nk_draw_command*
nk_draw_list_push_command(struct nk_draw_list *list, struct nk_rect clip,
    nk_handle texture)
{
    NK_STORAGE const nk_size cmd_align = NK_ALIGNOF(struct nk_draw_command);
    NK_STORAGE const nk_size cmd_size = sizeof(struct nk_draw_command);
    struct nk_draw_command *cmd;

    NK_ASSERT(list);
    cmd = (struct nk_draw_command*)
        nk_buffer_alloc(list->buffer, NK_BUFFER_BACK, cmd_size, cmd_align);

    if (!cmd) return 0;
    if (!list->cmd_count) {
        nk_byte *memory = (nk_byte*)nk_buffer_memory(list->buffer);
        nk_size total = nk_buffer_total(list->buffer);
        memory = nk_ptr_add(nk_byte, memory, total);
        list->cmd_offset = (nk_size)(memory - (nk_byte*)cmd);
    }

    cmd->elem_count = 0;
    cmd->clip_rect = clip;
    cmd->texture = texture;
#ifdef NK_INCLUDE_COMMAND_USERDATA
    cmd->userdata = list->userdata;
#endif

    list->cmd_count++;
    list->clip_rect = clip;
    return cmd;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movaps %xmm1, (%rsp)
movaps %xmm0, 0x10(%rsp)
movq %rdi, %r14
movq 0xb0(%rdi), %rdi
pushq $0x1
popq %rsi
pushq $0x20
popq %rdx
pushq $0x8
popq %rcx
callq 0x2403e
testq %rax, %rax
je 0x4f25c
movq %rax, %r15
cmpl $0x0, 0xd0(%r14)
jne 0x4f23a
movq 0xb0(%r14), %rdi
callq 0x131d0
movq %rax, %r12
movq 0xb0(%r14), %rdi
callq 0x14280
addq %r12, %rax
subq %r15, %rax
movq %rax, 0xd8(%r14)
andl $0x0, (%r15)
movaps 0x10(%rsp), %xmm0
unpcklpd (%rsp), %xmm0           # xmm0 = xmm0[0],mem[0]
movups %xmm0, 0x4(%r15)
movq %rbx, 0x18(%r15)
incl 0xd0(%r14)
movups %xmm0, (%r14)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: stbrp__skyline_find_min_y
static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0, int width, int *pwaste)
{
   stbrp_node *node = first;
   int x1 = x0 + width;
   int min_y, visited_width, waste_area;

   STBRP__NOTUSED(c);

   STBRP_ASSERT(first->x <= x0);

   #if 0
   /*  skip in case we're past the node */
   while (node->next->x <= x0)
      ++node;
   #else
   STBRP_ASSERT(node->next->x > x0); /*  we ended up handling this in the caller for efficiency */
   #endif

   STBRP_ASSERT(node->x <= x0);

   min_y = 0;
   waste_area = 0;
   visited_width = 0;
   while (node->x < x1) {
      if (node->y > min_y) {
         /*  raise min_y higher. */
         /*  we've accounted for all waste up to min_y, */
         /*  but we'll now add more waste for everything we've visited */
         waste_area += visited_width * (node->y - min_y);
         min_y = node->y;
         /*  the first time through, visited_width might be reduced */
         if (node->x < x0)
            visited_width += node->next->x - x0;
         else
            visited_width += node->next->x - node->x;
      } else {
         /*  add waste area */
         int under_width = node->next->x - node->x;
         if (under_width + visited_width > width)
            under_width = width - visited_width;
         waste_area += under_width * (min_y - node->y);
         visited_width += under_width;
      }
      node = node->next;
   }

   *pwaste = waste_area;
   return min_y;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl (%rdi), %ebx
cmpl %esi, %ebx
jg 0x4f301
movq 0x8(%rdi), %rax
cmpl %esi, (%rax)
jle 0x4f320
leal (%rdx,%rsi), %r8d
xorl %eax, %eax
xorl %r10d, %r10d
xorl %r9d, %r9d
cmpl %r8d, %ebx
jge 0x4f2f3
movl 0x4(%rdi), %r11d
movl %r11d, %r14d
subl %eax, %r14d
jle 0x4f2b8
imull %r10d, %r14d
movq 0x8(%rdi), %rdi
movl (%rdi), %ebp
movl %ebp, %r15d
cmpl %esi, %ebx
jge 0x4f2e3
subl %esi, %r15d
jmp 0x4f2e6
movq 0x8(%rdi), %rdi
movl (%rdi), %ebp
movl %ebp, %r14d
subl %ebx, %r14d
leal (%r14,%r10), %ebx
movl %edx, %r15d
subl %r10d, %r15d
cmpl %edx, %ebx
cmovlel %r14d, %r15d
movl %eax, %r14d
subl %r11d, %r14d
imull %r15d, %r14d
movl %eax, %r11d
jmp 0x4f2e6
subl %ebx, %r15d
addl %r14d, %r9d
addl %r15d, %r10d
movl %ebp, %ebx
movl %r11d, %eax
jmp 0x4f291
movl %r9d, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ad00(%rip), %rdi     # 0x6a008
leaq 0x1aa1b(%rip), %rsi     # 0x69d2a
leaq 0x1ad01(%rip), %rcx     # 0x6a017
movl $0x2b78, %edx           # imm = 0x2B78
callq 0x12b10
leaq 0x1ad3e(%rip), %rdi     # 0x6a065
leaq 0x1a9fc(%rip), %rsi     # 0x69d2a
leaq 0x1ace2(%rip), %rcx     # 0x6a017
movl $0x2b7f, %edx           # imm = 0x2B7F
callq 0x12b10