LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x501c5
movq 0x36e52(%rip), %r13     # 0x86ff0
movq (%r13), %rdi
leaq 0x20bf3(%rip), %rsi     # 0x70d9c
leaq 0x20c0a(%rip), %rdx     # 0x70dba
movl $0x70c9, %ecx           # imm = 0x70C9
xorl %eax, %eax
callq 0x12d80
movq (%r13), %rdi
callq 0x13780
testq %r12, %r12
je 0x50210
testq %rbx, %rbx
sete %al
testl %ebp, %ebp
sete %cl
orb %al, %cl
jne 0x502a0
movslq %r15d, %rax
leaq (%r12,%rax,4), %r15
movss (%r15), %xmm1
movl %ebp, %r12d
testl %ebp, %ebp
jle 0x5024a
xorl %eax, %eax
movaps %xmm1, %xmm2
movss (%r15,%rax,4), %xmm0
maxss %xmm0, %xmm1
minss %xmm2, %xmm0
incq %rax
movaps %xmm0, %xmm2
cmpq %rax, %r12
jne 0x501f5
jmp 0x5024d
movq 0x36dd9(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x20b7b(%rip), %rsi     # 0x70d9c
leaq 0x20b92(%rip), %rdx     # 0x70dba
movl $0x70ca, %ecx           # imm = 0x70CA
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13780
movaps %xmm1, %xmm0
movl 0x1654(%rbx), %ecx
movl 0x1658(%rbx), %edx
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %r8d
callq 0x12330
testl %eax, %eax
je 0x502a0
testl %ebp, %ebp
jle 0x5028a
xorl %r14d, %r14d
movss (%r15,%r14,4), %xmm0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x12400
incq %r14
cmpq %r14, %r12
jne 0x50272
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13f40
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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, %r12d
movq %rcx, %r14
movq %rdx, %r15
movl %esi, 0x4(%rsp)
movq %rdi, %rbp
testq %rdi, %rdi
jne 0x50301
movq 0x36d14(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x20ab6(%rip), %rsi     # 0x70d9c
leaq 0x20acd(%rip), %rdx     # 0x70dba
movl $0x70e2, %ecx           # imm = 0x70E2
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
callq 0x13780
testq %r14, %r14
je 0x50368
testq %rbp, %rbp
sete %al
testl %r12d, %r12d
sete %cl
orb %al, %cl
jne 0x503ff
movq %rbp, 0x10(%rsp)
movq %r15, %rdi
movl %r13d, %esi
callq *%r14
movaps %xmm0, %xmm1
testl %r12d, %r12d
jle 0x503a2
movl %r13d, %ebx
movl %r12d, %ebp
movaps %xmm1, %xmm2
movss %xmm2, 0x8(%rsp)
movss %xmm1, 0xc(%rsp)
movq %r15, %rdi
movl %ebx, %esi
callq *%r14
movss 0xc(%rsp), %xmm1
maxss %xmm0, %xmm1
minss 0x8(%rsp), %xmm0
incl %ebx
movaps %xmm0, %xmm2
decl %ebp
jne 0x50339
jmp 0x503a5
movq 0x36c81(%rip), %rbx     # 0x86ff0
movq (%rbx), %rdi
leaq 0x20a23(%rip), %rsi     # 0x70d9c
leaq 0x20a3a(%rip), %rdx     # 0x70dba
movl $0x70e3, %ecx           # imm = 0x70E3
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13780
movaps %xmm1, %xmm0
movq 0x10(%rsp), %rbx
movl 0x1654(%rbx), %ecx
movl 0x1658(%rbx), %edx
movq %rbx, %rdi
movl 0x4(%rsp), %esi
movl %r12d, %r8d
callq 0x12330
testl %eax, %eax
je 0x503ff
testl %r12d, %r12d
jle 0x503e9
movq %r15, %rdi
movl %r13d, %esi
callq *%r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x12400
incl %r13d
decl %r12d
jne 0x503ce
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x13f40
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_button_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:
movl (%rdi), %ecx
andl $0x2, %ecx
orl $0x4, %ecx
movl %ecx, (%rdi)
testq %rsi, %rsi
je 0x516e6
movss 0x144(%rsi), %xmm3
xorl %eax, %eax
ucomiss %xmm0, %xmm3
movaps %xmm1, %xmm2
addss %xmm0, %xmm2
jb 0x516a9
ucomiss %xmm3, %xmm2
jbe 0x516a9
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x148(%rsi), %xmm5
ucomiss %xmm3, %xmm5
jb 0x516a9
movaps %xmm0, %xmm4
addps %xmm1, %xmm4
shufps $0x55, %xmm4, %xmm4     # xmm4 = xmm4[1,1,1,1]
ucomiss %xmm5, %xmm4
jbe 0x516a9
movl $0x12, (%rdi)
xorl %ecx, %ecx
cmpl $0x0, 0x104(%rsi)
setne %cl
shll $0x4, %ecx
addl $0x12, %ecx
movl %ecx, (%rdi)
movss 0x10c(%rsi), %xmm5
ucomiss %xmm0, %xmm5
jb 0x516a9
ucomiss %xmm5, %xmm2
jbe 0x516a9
movss 0x110(%rsi), %xmm5
ucomiss %xmm3, %xmm5
jb 0x516a9
ucomiss %xmm5, %xmm4
jbe 0x516a9
movl 0x104(%rsi), %r8d
testl %edx, %edx
je 0x51720
movl %r8d, %eax
movss 0x14c(%rsi), %xmm3
testb $0x10, %cl
jne 0x516e9
ucomiss %xmm0, %xmm3
jb 0x516e5
ucomiss %xmm3, %xmm2
jbe 0x516e5
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x150(%rsi), %xmm2
ucomiss %xmm3, %xmm2
jb 0x516e5
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movl $0x40, %edx
ucomiss %xmm2, %xmm0
ja 0x5171b
retq
xorl %eax, %eax
retq
ucomiss %xmm0, %xmm3
movl $0x8, %edx
jb 0x5171b
ucomiss %xmm3, %xmm2
jbe 0x5171b
movaps %xmm0, %xmm5
shufps $0x55, %xmm0, %xmm5     # xmm5 = xmm5[1,1],xmm0[1,1]
movss 0x150(%rsi), %xmm4
ucomiss %xmm5, %xmm4
jb 0x5171b
movaps %xmm0, %xmm5
addps %xmm1, %xmm5
shufps $0x55, %xmm5, %xmm5     # xmm5 = xmm5[1,1,1,1]
ucomiss %xmm4, %xmm5
ja 0x516b6
orl %edx, %ecx
movl %ecx, (%rdi)
retq
testl %r8d, %r8d
je 0x516a9
cmpl $0x0, 0x108(%rsi)
je 0x516a9
movl $0x1, %eax
jmp 0x516a9
// File: /workspace/github_c_makefile_star2_O3/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 0x46b8f
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 0x13e60
movsd (%r12), %xmm0
movsd 0x8(%r12), %xmm1
movss 0x1c0e7(%rip), %xmm2    # 0x6d8a4
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 0x52280
// File: /workspace/github_c_makefile_star2_O3/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 0x53bbc
movq 0x33459(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x1d1fb(%rip), %rsi     # 0x70d9c
leaq 0x1d212(%rip), %rdx     # 0x70dba
movl $0x7542, %ecx           # imm = 0x7542
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x53c00
movq 0x33421(%rip), %r14     # 0x86ff0
movq (%r14), %rdi
leaq 0x1d1c3(%rip), %rsi     # 0x70d9c
leaq 0x1d1da(%rip), %rdx     # 0x70dba
movl $0x7543, %ecx           # imm = 0x7543
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x53c19
decl (%rax)
movq %rbx, %rdi
callq 0x140d0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13280
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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
movl $0x20, %edx
movl $0x8, %ecx
movl $0x1, %esi
callq 0x256b9
testq %rax, %rax
je 0x541d9
movq %rax, %r15
cmpl $0x0, 0xd0(%r14)
jne 0x541b4
movq 0xb0(%r14), %rdi
callq 0x13080
movq %rax, %r12
movq 0xb0(%r14), %rdi
callq 0x14030
addq %r12, %rax
subq %r15, %rax
movq %rax, 0xd8(%r14)
movl $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_O3/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 %r12
pushq %rbx
movl (%rdi), %r11d
cmpl %esi, %r11d
jg 0x5428b
movq 0x8(%rdi), %rax
cmpl %esi, (%rax)
jle 0x542aa
leal (%rdx,%rsi), %r8d
xorl %eax, %eax
movl $0x0, %r9d
cmpl %r8d, %r11d
jge 0x5427f
xorl %r9d, %r9d
xorl %r10d, %r10d
xorl %r14d, %r14d
movl 0x4(%rdi), %eax
movl %eax, %ebp
subl %r14d, %ebp
jle 0x54240
imull %r10d, %ebp
movq 0x8(%rdi), %rdi
movl (%rdi), %ebx
movl %ebx, %r15d
cmpl %esi, %r11d
jge 0x5426b
subl %esi, %r15d
jmp 0x5426e
movq 0x8(%rdi), %rdi
movl (%rdi), %ebx
movl %ebx, %r12d
subl %r11d, %r12d
leal (%r12,%r10), %r11d
movl %edx, %r15d
subl %r10d, %r15d
cmpl %edx, %r11d
cmovlel %r12d, %r15d
movl %r14d, %ebp
subl %eax, %ebp
imull %r15d, %ebp
movl %r14d, %eax
jmp 0x5426e
subl %r11d, %r15d
addl %ebp, %r9d
addl %r15d, %r10d
movl %ebx, %r11d
movl %eax, %r14d
cmpl %r8d, %ebx
jl 0x5421f
movl %r9d, (%rcx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ce06(%rip), %rdi     # 0x71098
leaq 0x1cb21(%rip), %rsi     # 0x70dba
leaq 0x1ce07(%rip), %rcx     # 0x710a7
movl $0x2b78, %edx           # imm = 0x2B78
callq 0x12a50
leaq 0x1ce44(%rip), %rdi     # 0x710f5
leaq 0x1cb02(%rip), %rsi     # 0x70dba
leaq 0x1cde8(%rip), %rcx     # 0x710a7
movl $0x2b7f, %edx           # imm = 0x2B7F
callq 0x12a50
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: stbtt__GetGlyphClass
static stbtt_int32  stbtt__GetGlyphClass(stbtt_uint8 *classDefTable, int glyph)
{
   stbtt_uint16 classDefFormat = ttUSHORT(classDefTable);
   switch (classDefFormat)
   {
      case 1: {
         stbtt_uint16 startGlyphID = ttUSHORT(classDefTable + 2);
         stbtt_uint16 glyphCount = ttUSHORT(classDefTable + 4);
         stbtt_uint8 *classDef1ValueArray = classDefTable + 6;

         if (glyph >= startGlyphID && glyph < startGlyphID + glyphCount)
            return (stbtt_int32)ttUSHORT(classDef1ValueArray + 2 * (glyph - startGlyphID));
         break;
      }

      case 2: {
         stbtt_uint16 classRangeCount = ttUSHORT(classDefTable + 2);
         stbtt_uint8 *classRangeRecords = classDefTable + 4;

         /*  Binary search. */
         stbtt_int32 l=0, r=classRangeCount-1, m;
         int strawStart, strawEnd, needle=glyph;
         while (l <= r) {
            stbtt_uint8 *classRangeRecord;
            m = (l + r) >> 1;
            classRangeRecord = classRangeRecords + 6 * m;
            strawStart = ttUSHORT(classRangeRecord);
            strawEnd = ttUSHORT(classRangeRecord + 2);
            if (needle < strawStart)
               r = m - 1;
            else if (needle > strawEnd)
               l = m + 1;
            else
               return (stbtt_int32)ttUSHORT(classRangeRecord + 4);
         }
         break;
      }

      default:
         return -1; /*  Unsupported definition type, return an error. */
   }

   /*  "All glyphs not assigned to a class fall into class 0". (OpenType spec) */
   return 0;
}

// Assembly:
movzwl (%rdi), %eax
rolw $0x8, %ax
cmpw $0x2, %ax
je 0x559af
movzwl %ax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x1, %ecx
jne 0x55a26
movzwl 0x2(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %edx
xorl %eax, %eax
movl %esi, %ecx
subl %edx, %ecx
jl 0x55a26
movzwl 0x4(%rdi), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
addl %edx, %r8d
cmpl %esi, %r8d
jbe 0x55a26
addq $0x6, %rdi
addl %ecx, %ecx
movslq %ecx, %rcx
leaq (%rdi,%rcx), %rax
leaq (%rdi,%rcx), %rdx
incq %rdx
jmp 0x55a1b
movzwl 0x2(%rdi), %eax
rolw $0x8, %ax
testw %ax, %ax
je 0x55a10
movzwl %ax, %eax
addq $0x4, %rdi
decl %eax
xorl %ecx, %ecx
leal (%rcx,%rax), %edx
movl %edx, %r8d
sarl %r8d
andl $-0x2, %edx
leal (%rdx,%rdx,2), %edx
movslq %edx, %rdx
movzwl (%rdi,%rdx), %r9d
rolw $0x8, %r9w
movzwl %r9w, %r9d
cmpl %esi, %r9d
jle 0x559f4
decl %r8d
movl %r8d, %eax
jmp 0x55a0c
addq %rdi, %rdx
movzwl 0x2(%rdx), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
cmpl %esi, %ecx
jae 0x55a13
incl %r8d
movl %r8d, %ecx
cmpl %eax, %ecx
jle 0x559c7
xorl %eax, %eax
retq
leaq 0x4(%rdx), %rax
addq $0x5, %rdx
movzbl (%rax), %eax
movzbl (%rdx), %ecx
shll $0x8, %eax
orl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk__match
NK_INTERN void
nk__match(unsigned char *data, unsigned int length)
{
    /* INVERSE of memmove... write each byte before copying the next...*/
    NK_ASSERT (nk__dout + length <= nk__barrier);
    if (nk__dout + length > nk__barrier) { nk__dout += length; return; }
    if (data < nk__barrier4) { nk__dout = nk__barrier+1; return; }
    while (length--) *nk__dout++ = *data++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq 0x31a9b(%rip), %rax     # 0x88138
movl %esi, %r14d
leaq (%rax,%r14), %rdx
movq 0x31a7d(%rip), %rcx     # 0x88128
cmpq %rcx, %rdx
jbe 0x566ea
movq 0x30939(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x1a6db(%rip), %rsi     # 0x70d9c
leaq 0x1a6f2(%rip), %rdx     # 0x70dba
movl $0x436e, %ecx           # imm = 0x436E
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x31a55(%rip), %rax     # 0x88138
movq 0x31a3e(%rip), %rcx     # 0x88128
leaq (%rax,%r14), %rdx
cmpq %rcx, %rdx
ja 0x5671e
cmpq %rbx, 0x31a36(%rip)     # 0x88130
jbe 0x56704
incq %rcx
movq %rcx, %rdx
jmp 0x5671e
testl %ebp, %ebp
je 0x56725
xorl %ecx, %ecx
movb (%rbx,%rcx), %dl
movb %dl, (%rax,%rcx)
incq %rcx
cmpl %ecx, %r14d
jne 0x5670a
addq %rcx, %rax
movq %rax, %rdx
movq %rdx, 0x31a13(%rip)     # 0x88138
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk__lit
NK_INTERN void
nk__lit(unsigned char *data, unsigned int length)
{
    NK_ASSERT (nk__dout + length <= nk__barrier);
    if (nk__dout + length > nk__barrier) { nk__dout += length; return; }
    if (data < nk__barrier2) { nk__dout = nk__barrier+1; return; }
    NK_MEMCPY(nk__dout, data, length);
    nk__dout += length;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movq 0x319f9(%rip), %rdi     # 0x88138
movl %esi, %ebx
leaq (%rdi,%rbx), %rcx
movq 0x319dc(%rip), %rax     # 0x88128
cmpq %rax, %rcx
jbe 0x5678b
movq 0x30898(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x1a63a(%rip), %rsi     # 0x70d9c
leaq 0x1a651(%rip), %rdx     # 0x70dba
movl $0x4376, %ecx           # imm = 0x4376
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x319b4(%rip), %rdi     # 0x88138
movq 0x3199d(%rip), %rax     # 0x88128
leaq (%rdi,%rbx), %rcx
cmpq %rax, %rcx
ja 0x567ba
cmpq %r14, 0x3197d(%rip)     # 0x88118
jbe 0x567a5
incq %rax
movq %rax, %rcx
jmp 0x567ba
movq %r14, %rsi
movq %rbx, %rdx
callq 0x25a38
addq 0x31981(%rip), %rbx     # 0x88138
movq %rbx, %rcx
movq %rcx, 0x31977(%rip)     # 0x88138
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_range_glyph_count
NK_INTERN int
nk_range_glyph_count(const nk_rune *range, int count)
{
    int i = 0;
    int total_glyphs = 0;
    for (i = 0; i < count; ++i) {
        int diff;
        nk_rune f = range[(i*2)+0];
        nk_rune t = range[(i*2)+1];
        NK_ASSERT(t >= f);
        diff = (int)((t - f) + 1);
        total_glyphs += diff;
    }
    return total_glyphs;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
jle 0x56836
movq %rdi, %rbx
movl %esi, %r13d
xorl %r15d, %r15d
xorl %r14d, %r14d
movl (%rbx,%r15,8), %ebp
movl 0x4(%rbx,%r15,8), %r12d
cmpl %ebp, %r12d
jae 0x56823
movq 0x307f9(%rip), %rax     # 0x86ff0
movq (%rax), %rdi
leaq 0x1a59b(%rip), %rsi     # 0x70d9c
leaq 0x1a5b2(%rip), %rdx     # 0x70dba
movl $0x40db, %ecx           # imm = 0x40DB
xorl %eax, %eax
callq 0x12d80
movq 0x307d5(%rip), %rax     # 0x86ff0
movq (%rax), %rdi
callq 0x13780
subl %ebp, %r14d
addl %r12d, %r14d
incl %r14d
incq %r15
cmpq %r15, %r13
jne 0x567e2
jmp 0x56839
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_text_width
NK_INTERN float
nk_font_text_width(nk_handle handle, float height, const char *text, int len)
{
    nk_rune unicode;
    int text_len  = 0;
    float text_width = 0;
    int glyph_len = 0;
    float scale = 0;

    struct nk_font *font = (struct nk_font*)handle.ptr;
    NK_ASSERT(font);
    NK_ASSERT(font->glyphs);
    if (!font || !text || !len)
        return 0;

    scale = height/font->info.height;
    glyph_len = text_len = nk_utf_decode(text, &unicode, (int)len);
    if (!glyph_len) return 0;
    while (text_len <= (int)len && glyph_len) {
        const struct nk_font_glyph *g;
        if (unicode == NK_UTF_INVALID) break;

        /* query currently drawn glyph information */
        g = nk_font_find_glyph(font, unicode);
        text_width += g->xadvance * scale;

        /* offset next glyph */
        glyph_len = nk_utf_decode(text + text_len, &unicode, (int)len - text_len);
        text_len += glyph_len;
    }
    return text_width;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebx
movq %rsi, %r14
movss %xmm0, 0x8(%rsp)
movq %rdi, %r15
testq %rdi, %rdi
jne 0x56899
movq 0x3077e(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x1a51f(%rip), %rsi     # 0x70d9c
leaq 0x1a536(%rip), %rdx     # 0x70dba
movl $0x425f, %ecx           # imm = 0x425F
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x58(%r15)
jne 0x568ce
movq 0x30749(%rip), %r12     # 0x86ff0
movq (%r12), %rdi
leaq 0x1a4ea(%rip), %rsi     # 0x70d9c
leaq 0x1a501(%rip), %rdx     # 0x70dba
movl $0x4260, %ecx           # imm = 0x4260
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
xorps %xmm0, %xmm0
movss %xmm0, 0x4(%rsp)
testq %r15, %r15
je 0x56981
testq %r14, %r14
je 0x56981
testl %ebx, %ebx
je 0x56981
movss 0x8(%rsp), %xmm0
divss 0x30(%r15), %xmm0
movss %xmm0, 0x8(%rsp)
leaq 0xc(%rsp), %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x12ef0
movl %eax, %r12d
testl %eax, %eax
sete %al
cmpl %ebx, %r12d
setg %cl
orb %al, %cl
jne 0x56981
xorps %xmm0, %xmm0
movss %xmm0, 0x4(%rsp)
leaq 0xc(%rsp), %r13
movl 0xc(%rsp), %esi
cmpl $0xfffd, %esi           # imm = 0xFFFD
je 0x56981
movq %r15, %rdi
callq 0x13fb0
movss 0x4(%rax), %xmm0
mulss 0x8(%rsp), %xmm0
movss 0x4(%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x4(%rsp)
movslq %r12d, %r12
leaq (%r14,%r12), %rdi
movl %ebx, %edx
subl %r12d, %edx
movq %r13, %rsi
callq 0x12ef0
addl %eax, %r12d
cmpl %ebx, %r12d
jg 0x56981
testl %eax, %eax
jne 0x56932
movss 0x4(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_query_font_glyph
NK_INTERN void
nk_font_query_font_glyph(nk_handle handle, float height,
    struct nk_user_font_glyph *glyph, nk_rune codepoint, nk_rune next_codepoint)
{
    float scale;
    const struct nk_font_glyph *g;
    struct nk_font *font;

    NK_ASSERT(glyph);
    NK_UNUSED(next_codepoint);

    font = (struct nk_font*)handle.ptr;
    NK_ASSERT(font);
    NK_ASSERT(font->glyphs);
    if (!font || !glyph)
        return;

    scale = height/font->info.height;
    g = nk_font_find_glyph(font, codepoint);
    glyph->width = (g->x1 - g->x0) * scale;
    glyph->height = (g->y1 - g->y0) * scale;
    glyph->offset = nk_vec2(g->x0 * scale, g->y0 * scale);
    glyph->xadvance = (g->xadvance * scale);
    glyph->uv[0] = nk_vec2(g->u0, g->v0);
    glyph->uv[1] = nk_vec2(g->u1, g->v1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movaps %xmm0, (%rsp)
movq %rdi, %r14
testq %rsi, %rsi
jne 0x569dc
movq 0x30639(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x1a3db(%rip), %rsi     # 0x70d9c
leaq 0x1a3f2(%rip), %rdx     # 0x70dba
movl $0x427e, %ecx           # imm = 0x427E
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
jne 0x56a0d
movq 0x30608(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x1a3aa(%rip), %rsi     # 0x70d9c
leaq 0x1a3c1(%rip), %rdx     # 0x70dba
movl $0x4282, %ecx           # imm = 0x4282
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x58(%r14)
jne 0x56a40
movq 0x305d5(%rip), %r15     # 0x86ff0
movq (%r15), %rdi
leaq 0x1a377(%rip), %rsi     # 0x70d9c
leaq 0x1a38e(%rip), %rdx     # 0x70dba
movl $0x4283, %ecx           # imm = 0x4283
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x56aad
movaps (%rsp), %xmm0
divss 0x30(%r14), %xmm0
movaps %xmm0, (%rsp)
movq %r14, %rdi
movl %ebp, %esi
callq 0x13fb0
movsd 0x8(%rax), %xmm0
movsd 0x10(%rax), %xmm1
subps %xmm0, %xmm1
movaps (%rsp), %xmm3
movaps %xmm3, %xmm2
shufps $0x0, %xmm3, %xmm2      # xmm2 = xmm2[0,0],xmm3[0,0]
mulps %xmm2, %xmm1
mulps %xmm0, %xmm2
movlhps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
movups %xmm2, 0x10(%rbx)
movaps %xmm3, %xmm0
mulss 0x4(%rax), %xmm0
movss %xmm0, 0x20(%rbx)
movsd 0x20(%rax), %xmm0
movsd %xmm0, (%rbx)
movsd 0x28(%rax), %xmm0
movsd %xmm0, 0x8(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_free_page_element
NK_LIB void
nk_free_page_element(struct nk_context *ctx, struct nk_page_element *elem)
{
    /* we have a pool so just add to free list */
    if (ctx->use_pool) {
        nk_link_page_element_into_freelist(ctx, elem);
        return;
    }
    /* if possible remove last element from back of fixed memory buffer */
    {void *elem_end = (void*)(elem + 1);
    void *buffer_end = (nk_byte*)ctx->memory.memory.ptr + ctx->memory.size;
    if (elem_end == buffer_end)
        ctx->memory.size -= sizeof(struct nk_page_element);
    else nk_link_page_element_into_freelist(ctx, elem);}
}

// Assembly:
cmpl $0x0, 0x471c(%rdi)
jne 0x56ade
leaq 0x208(%rsi), %rcx
movq 0x2578(%rdi), %rax
movq 0x2548(%rdi), %rdx
addq %rax, %rdx
cmpq %rdx, %rcx
je 0x56af9
movq 0x4788(%rdi), %rax
testq %rax, %rax
je 0x56af1
movq %rax, 0x1f8(%rsi)
movq %rsi, 0x4788(%rdi)
retq
addq $-0x208, %rax           # imm = 0xFDF8
movq %rax, 0x2578(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_createundo
NK_INTERN nk_rune*
nk_textedit_createundo(struct nk_text_undo_state *state, int pos,
    int insert_len, int delete_len)
{
    struct nk_text_undo_record *r = nk_textedit_create_undo_record(state, insert_len);
    if (r == 0)
        return 0;

    r->where = pos;
    r->insert_length = (short) insert_len;
    r->delete_length = (short) delete_len;

    if (insert_len == 0) {
        r->char_storage = -1;
        return 0;
    } else {
        r->char_storage = state->undo_char_point;
        state->undo_char_point = (short)(state->undo_char_point +  insert_len);
        return &state->undo_char[r->char_storage];
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %rbx
movw $0x63, 0x1442(%rdi)
movw $0x3e7, 0x1446(%rdi)    # imm = 0x3E7
cmpw $0x63, 0x1440(%rdi)
jne 0x5804c
movq %rbx, %rdi
callq 0x580f6
cmpl $0x3e7, %r14d           # imm = 0x3E7
jle 0x5806a
xorl %eax, %eax
movw %ax, 0x1440(%rbx)
movw %ax, 0x1444(%rbx)
jmp 0x580eb
movswl 0x1444(%rbx), %eax
movl %eax, %ecx
addl %r14d, %ecx
cmpl $0x3e8, %ecx            # imm = 0x3E8
jl 0x58099
movq %rbx, %rdi
callq 0x580f6
movswl 0x1444(%rbx), %eax
leal (%rax,%r14), %ecx
cmpl $0x3e7, %ecx            # imm = 0x3E7
jg 0x5807e
movswq 0x1440(%rbx), %rcx
leal 0x1(%rcx), %edx
movw %dx, 0x1440(%rbx)
leaq (%rcx,%rcx,2), %rcx
leaq (%rbx,%rcx,4), %rcx
movl %r15d, (%rcx)
movw %r14w, 0x4(%rcx)
movw %bp, 0x6(%rcx)
testl %r14d, %r14d
je 0x580e3
movw %ax, 0x8(%rcx)
leal (%r14,%rax), %ecx
movw %cx, 0x1444(%rbx)
movswq %ax, %rax
leaq (%rbx,%rax,4), %rax
addq $0x4a4, %rax            # imm = 0x4A4
jmp 0x580eb
movw $0xffff, 0x8(%rcx)      # imm = 0xFFFF
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_discard_undo
NK_INTERN void
nk_textedit_discard_undo(struct nk_text_undo_state *state)
{
    /* discard the oldest entry in the undo list */
    if (state->undo_point > 0) {
        /* if the 0th undo state has characters, clean those up */
        if (state->undo_rec[0].char_storage >= 0) {
            int n = state->undo_rec[0].insert_length, i;
            /* delete n characters from all other records */
            state->undo_char_point = (short)(state->undo_char_point - n);
            NK_MEMCPY(state->undo_char, state->undo_char + n,
                (nk_size)state->undo_char_point*sizeof(nk_rune));
            for (i=0; i < state->undo_point; ++i) {
                if (state->undo_rec[i].char_storage >= 0)
                state->undo_rec[i].char_storage = (short)
                    (state->undo_rec[i].char_storage - n);
            }
        }
        --state->undo_point;
        NK_MEMCPY(state->undo_rec, state->undo_rec+1,
            (nk_size)((nk_size)state->undo_point * sizeof(state->undo_rec[0])));
    }
}

// Assembly:
movzwl 0x1440(%rdi), %eax
testw %ax, %ax
jle 0x581a5
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
js 0x5817d
movswq 0x4(%rbx), %r14
movl 0x1444(%rbx), %eax
subl %r14d, %eax
movw %ax, 0x1444(%rbx)
leaq 0x4a4(%rbx), %rdi
leaq (%rbx,%r14,4), %rsi
addq $0x4a4, %rsi            # imm = 0x4A4
movswq %ax, %rdx
shlq $0x2, %rdx
callq 0x25a38
movswq 0x1440(%rbx), %rax
testq %rax, %rax
jle 0x5817d
movq %rax, %rcx
shlq $0x2, %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
movzwl 0x8(%rbx,%rdx), %esi
testw %si, %si
js 0x58174
subl %r14d, %esi
movw %si, 0x8(%rbx,%rdx)
addq $0xc, %rdx
cmpq %rdx, %rcx
jne 0x58162
decl %eax
movw %ax, 0x1440(%rbx)
leaq 0xc(%rbx), %rsi
movswq %ax, %rax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x25a38
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_layout_row
NK_INTERN void
nk_textedit_layout_row(struct nk_text_edit_row *r, struct nk_text_edit *edit,
    int line_start_id, float row_height, const struct nk_user_font *font)
{
    int l;
    int glyphs = 0;
    nk_rune unicode;
    const char *remaining;
    int len = nk_str_len_char(&edit->string);
    const char *end = nk_str_get_const(&edit->string) + len;
    const char *text = nk_str_at_const(&edit->string, line_start_id, &unicode, &l);
    const struct nk_vec2 size = nk_text_calculate_text_bounds(font,
        text, (int)(end - text), row_height, &remaining, 0, &glyphs, NK_STOP_ON_NEW_LINE);

    r->x0 = 0.0f;
    r->x1 = size.x;
    r->baseline_y_delta = size.y;
    r->ymin = 0.0f;
    r->ymax = size.y;
    r->num_chars = glyphs;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r14
movss %xmm0, 0x8(%rsp)
movq %rdi, %rbx
movl $0x0, 0xc(%rsp)
xorl %r13d, %r13d
cmpl $0x0, 0x90(%rsi)
je 0x5941b
movq 0x70(%rsi), %rax
testq %rax, %rax
je 0x5941b
movq 0x58(%rsi), %r15
cltq
jmp 0x59420
xorl %eax, %eax
xorl %r15d, %r15d
addq $0x18, %rsi
addl %eax, %r15d
leaq 0x10(%rsp), %rax
leaq 0x14(%rsp), %rcx
movq %rsi, %rdi
movl %edx, %esi
movq %rax, %rdx
callq 0x13f60
subl %eax, %r15d
leaq 0x18(%rsp), %rcx
leaq 0xc(%rsp), %r12
movq %r14, %rdi
movq %rax, %rsi
movl %r15d, %edx
movss 0x8(%rsp), %xmm0
xorl %r8d, %r8d
movq %r12, %r9
callq 0x58b50
movl %r13d, (%rbx)
movlps %xmm0, 0x4(%rbx)
movl %r13d, 0xc(%rbx)
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movss %xmm0, 0x10(%rbx)
movl (%r12), %eax
movl %eax, 0x14(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_move_to_last
NK_INTERN void
nk_textedit_move_to_last(struct nk_text_edit *state)
{
    /* move cursor to last character of selection */
    if (NK_TEXT_HAS_SELECTION(state)) {
        nk_textedit_sortselection(state);
        nk_textedit_clamp(state);
        state->cursor = state->select_end;
        state->select_start = state->select_end;
        state->has_preferred_x = 0;
    }
}

// Assembly:
movl 0xac(%rdi), %eax
movl 0xb0(%rdi), %ecx
cmpl %ecx, %eax
je 0x594d2
pushq %rbx
movq %rdi, %rbx
jle 0x594b0
movl %eax, 0xb0(%rbx)
movl %ecx, 0xac(%rbx)
movq %rbx, %rdi
callq 0x4ac86
movl 0xb0(%rbx), %eax
movl %eax, 0xa8(%rbx)
movl %eax, 0xac(%rbx)
movb $0x0, 0xb7(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_move_to_word_next
NK_INTERN int
nk_textedit_move_to_word_next(struct nk_text_edit *state)
{
   const int len = state->string.len;
   int c = state->cursor+1;
   while( c < len && !nk_is_word_boundary(state, c))
      ++c;

   if( c > len )
      c = len;

   return c;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl 0x90(%rdi), %ebp
movl 0xa8(%rdi), %ebx
movl %ebx, %r15d
leal 0x1(%r15), %ebx
cmpl %ebp, %ebx
jge 0x59502
movq %r14, %rdi
movl %ebx, %esi
callq 0x596d9
testl %eax, %eax
je 0x594e9
cmpl %ebp, %r15d
cmovgel %ebp, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_is_word_boundary
NK_INTERN int
nk_is_word_boundary( struct nk_text_edit *state, int idx)
{
    int len;
    nk_rune c;
    if (idx <= 0) return 1;
    if (!nk_str_at_rune(&state->string, idx, &c, &len)) return 1;
    return (c == ' ' || c == '\t' ||c == 0x3000 || c == ',' || c == ';' ||
            c == '(' || c == ')' || c == '{' || c == '}' || c == '[' || c == ']' ||
            c == '|');
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl $0x1, %ebx
testl %esi, %esi
jle 0x59731
addq $0x18, %rdi
leaq 0x8(%rsp), %rdx
leaq 0xc(%rsp), %rcx
callq 0x123e0
testq %rax, %rax
je 0x59731
movl 0x8(%rsp), %eax
cmpq $0x3b, %rax
ja 0x59719
movabsq $0x800130100000200, %rcx # imm = 0x800130100000200
btq %rax, %rcx
jb 0x59731
leal -0x5b(%rax), %ecx
cmpl $0x22, %ecx
ja 0x59739
movabsq $0x500000005, %rdx      # imm = 0x500000005
btq %rcx, %rdx
jae 0x59739
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
cmpl $0x3000, %eax           # imm = 0x3000
je 0x59731
xorl %ebx, %ebx
cmpl $0x7c, %eax
sete %bl
jmp 0x59731
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/objects.c
// Function: moonnuklear_newuserdata
ud_t *newuserdata(lua_State *L, void *handle, const char *mt, const char *tracename)
    {
    ud_t *ud;
    /* we use handle as search key */
    ud = (ud_t*)udata_new(L, sizeof(ud_t), (uint64_t)(uintptr_t)handle, mt);
    memset(ud, 0, sizeof(ud_t));
    ud->handle = handle;
    ud->ref1 = LUA_NOREF;
    ud->ref2 = LUA_NOREF;
    MarkValid(ud);
    if(trace_objects)
        printf("create %s %p (%p)\n", tracename, (void*)ud, handle);
    return ud;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %r14
movq %rdx, %rcx
movq %rsi, %rbx
movl $0xa0, %esi
movq %rbx, %rdx
callq 0x13d30
movq %rax, %r15
leaq 0x8(%rax), %rdi
movl $0x98, %edx
xorl %esi, %esi
callq 0x12b50
movq %rbx, (%r15)
movl $0xfffffffe, 0x78(%r15) # imm = 0xFFFFFFFE
movabsq $-0x1ffffffff, %rax     # imm = 0xFFFFFFFE00000001
movq %rax, 0x70(%r15)
movq 0x2d5a6(%rip), %rax     # 0x86fd0
cmpl $0x0, (%rax)
je 0x59a46
leaq 0x188e9(%rip), %rdi     # 0x7231f
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x12940
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/objects.c
// Function: moonnuklear_freeuserdata
int freeuserdata(lua_State *L, ud_t *ud, const char *tracename)
    {
    /* The 'Valid' mark prevents double calls when an object is explicitly destroyed, 
     * and subsequently deleted also by the GC (the ud sticks around until the GC
     * collects it, so we mark it as invalid when the object is explicitly destroyed
     * by the script, or implicitly destroyed because child of a destroyed object). */
    if(!IsValid(ud)) return 0;
    CancelValid(ud);
    unreference(L, ud->ref1);
    unreference(L, ud->ref2);
    if(ud->info) 
        Free(L, ud->info);
    if(trace_objects)
        printf("delete %s %p (%p)\n", tracename, (void*)ud, ud->handle);
    udata_free(L, (uint64_t)(uintptr_t)ud->handle);
    return 1;
    }

// Assembly:
movl 0x70(%rsi), %ecx
xorl %eax, %eax
testb $0x1, %cl
je 0x59af8
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
andl $-0x2, %ecx
movl %ecx, 0x70(%rsi)
movl 0x74(%rsi), %edx
cmpl $-0x2, %edx
je 0x59a8e
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x13f50
movl $0xfffffffe, 0x74(%r14) # imm = 0xFFFFFFFE
movl 0x78(%r14), %edx
cmpl $-0x2, %edx
je 0x59aac
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x13f50
movl $0xfffffffe, 0x78(%r14) # imm = 0xFFFFFFFE
movq 0x98(%r14), %rsi
testq %rsi, %rsi
je 0x59ac0
movq %rbx, %rdi
callq 0x130d0
movq 0x2d509(%rip), %rax     # 0x86fd0
cmpl $0x0, (%rax)
je 0x59ae3
movq (%r14), %rcx
leaq 0x1885c(%rip), %rdi     # 0x72332
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x12940
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x13f20
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/objects.c
// Function: moonnuklear_testxxx
void *testxxx(lua_State *L, int arg, ud_t **udp, const char *mt)
    {
    ud_t *ud = (ud_t*)udata_test(L, arg, mt);
    if(ud && IsValid(ud)) { if(udp) *udp=ud; return ud->handle; }
    if(udp) *udp = NULL;
    return 0;
    }

// Assembly:
pushq %rbx
movq %rdx, %rbx
movq %rcx, %rdx
callq 0x137a0
testq %rax, %rax
je 0x59b70
testb $0x1, 0x70(%rax)
jne 0x59b80
testq %rbx, %rbx
je 0x59b7c
movq $0x0, (%rbx)
xorl %eax, %eax
jmp 0x59b8b
testq %rbx, %rbx
je 0x59b88
movq %rax, (%rbx)
movq (%rax), %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/objects.c
// Function: moonnuklear_checkxxx
void *checkxxx(lua_State *L, int arg, ud_t **udp, const char *mt)
    {
    ud_t *ud = (ud_t*)udata_test(L, arg, mt);
    if(ud && IsValid(ud)) 
        { if(udp) *udp = ud; return ud->handle; }
    lua_pushfstring(L, "not a %s", mt);
    luaL_argerror(L, arg, lua_tostring(L, -1));
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
movq %rcx, %rdx
callq 0x137a0
testq %rax, %rax
je 0x59bb3
testb $0x1, 0x70(%rax)
jne 0x59be8
leaq 0x18795(%rip), %rsi     # 0x7234f
xorl %r15d, %r15d
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x12d80
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x12630
movq %r14, %rdi
movl %ebx, %esi
movq %rax, %rdx
callq 0x12460
jmp 0x59bf3
testq %r15, %r15
je 0x59bf0
movq %rax, (%r15)
movq (%rax), %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/objects.c
// Function: moonnuklear_checkxxxlist
void** checkxxxlist(lua_State *L, int arg, int *count, int *err, const char *mt)
/* xxx* checkxxxlist(lua_State *L, int arg, int *count, int *err)
 * Checks if the variable at arg on the Lua stack is a list of xxx objects.
 * On success, returns an array of xxx handles and sets its length in *count.
 * The array is Malloc()'d and must be released by the caller using Free().
 * On error, sets *err to ERR_XXX, *count to 0, and returns NULL. 
 */
    {
    void** list;
    int i;

    *count = 0;
    *err = 0;
    if(lua_isnoneornil(L, arg))
        { *err = ERR_NOTPRESENT; return NULL; }
    if(lua_type(L, arg) != LUA_TTABLE)
        { *err = ERR_TABLE; return NULL; }
    *count = luaL_len(L, arg);
    if(*count == 0)
        { *err = ERR_EMPTY; return NULL; }
    list = (void**)MallocNoErr(L, sizeof(void*) * (*count));

    if(!list)
        { *count = 0; *err = ERR_MEMORY; return NULL; }

    for(i=0; i<*count; i++)
        {
        lua_rawgeti(L, arg, i+1);
        list[i] = (void*)(uintptr_t)testxxx(L, -1, NULL, mt);
        if(!list[i])
            { Free(L, list); *count = 0; *err = ERR_TYPE; return NULL; }
        lua_pop(L, 1);
        }
    return list;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r12
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
xorl %eax, %eax
movl %eax, (%rdx)
movl %eax, (%rcx)
callq 0x13df0
testl %eax, %eax
jle 0x59ce5
movq %r15, %rdi
movl %ebp, %esi
callq 0x13df0
movl $0xfffffffc, %ecx       # imm = 0xFFFFFFFC
cmpl $0x5, %eax
jne 0x59d1f
movq %r15, %rdi
movl %ebp, %esi
callq 0x13e10
movl %eax, (%r14)
testl %eax, %eax
je 0x59cec
movslq %eax, %rsi
shlq $0x3, %rsi
movq %r15, %rdi
callq 0x12ba0
testq %rax, %rax
je 0x59cf3
movq %rax, %r13
cmpl $0x0, (%r14)
jle 0x59d24
movq %r12, 0x10(%rsp)
movq %rbx, 0x8(%rsp)
xorl %ebx, %ebx
leaq 0x1(%rbx), %r12
movq %r15, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x12950
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq 0x10(%rsp), %rdx
callq 0x137a0
testq %rax, %rax
je 0x59cfa
testb $0x1, 0x70(%rax)
je 0x59cfa
movq (%rax), %rax
movq %rax, (%r13,%rbx,8)
testq %rax, %rax
je 0x59d03
movq %r15, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12180
movslq (%r14), %rax
movq %r12, %rbx
cmpq %rax, %r12
jl 0x59c90
jmp 0x59d24
movl $0x1, %ecx
jmp 0x59d1f
movl $0xfffffffb, %ecx       # imm = 0xFFFFFFFB
jmp 0x59d1f
movl $0xfffffffa, %ecx       # imm = 0xFFFFFFFA
jmp 0x59d18
movq $0x0, (%r13,%rbx,8)
movq %r15, %rdi
movq %r13, %rsi
callq 0x130d0
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
movq 0x8(%rsp), %rbx
movl $0x0, (%r14)
movl %ecx, (%rbx)
xorl %r13d, %r13d
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/panel.c
// Function: Get_offset
static int Get_offset(lua_State *L)
    {
    nk_panel_t* panel = checkpanel(L, 1, NULL);
    lua_pushinteger(L, *panel->offset_x);
    lua_pushinteger(L, *panel->offset_y);
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xd587(%rip), %rcx      # 0x673dd
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
movq 0x18(%rax), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq 0x12b60
movq 0x20(%r14), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq 0x12b60
movl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/panel.c
// Function: Get_at
static int Get_at(lua_State *L)
    {
    nk_panel_t* panel = checkpanel(L, 1, NULL);
    lua_pushnumber(L, panel->at_x);
    lua_pushnumber(L, panel->at_y);
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xd541(%rip), %rcx      # 0x673dd
movl $0x1, %esi
xorl %edx, %edx
callq 0x120d0
movq %rax, %r14
cvtss2sd 0x28(%rax), %xmm0
movq %rbx, %rdi
callq 0x13180
xorps %xmm0, %xmm0
cvtss2sd 0x2c(%r14), %xmm0
movq %rbx, %rdi
callq 0x13180
movl $0x2, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonnuklear/src/panel.c
// Function: Window_get_panel
static int Window_get_panel(lua_State *L)
    {
    ud_t *ud;
    nk_context_t *context = checkcontext(L, 1, &ud);
    nk_panel_t* panel = nk_window_get_panel(context);
    return newpanel(L, ud, panel);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xd299(%rip), %rcx      # 0x67280
movl $0x1, %ebx
movq %rsp, %r12
movl $0x1, %esi
movq %r12, %rdx
callq 0x120d0
movq %rax, %rdi
callq 0x12e20
movq %rax, %r15
movq (%r12), %r12
movq %rax, %rdi
callq 0x132d0
testq %rax, %rax
je 0x5a027
movq %r14, %rdi
movq %r15, %rsi
callq 0x13c10
movl %eax, %ebx
jmp 0x5a058
leaq 0xd3af(%rip), %rdx      # 0x673dd
leaq 0xd3b4(%rip), %rcx      # 0x673e9
movq %r14, %rdi
movq %r15, %rsi
callq 0x13e90
movq %r12, 0x10(%rax)
movq 0x18(%r12), %rcx
movq %rcx, 0x18(%rax)
leaq 0x12(%rip), %rcx        # 0x5a066
movq %rcx, 0x8(%rax)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq