LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x47779
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 0x1c543(%rip), %xmm2    # 0x6e8b4
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 0x52e29
// File: /workspace/github_c_makefile_star2_O1/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 0x54708
movq 0x3390d(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x1d69f(%rip), %rsi     # 0x71d8c
leaq 0x1d6b6(%rip), %rdx     # 0x71daa
movl $0x7542, %ecx           # imm = 0x7542
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x4780(%rbx)
jne 0x5473e
movq 0x338d7(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x1d669(%rip), %rsi     # 0x71d8c
leaq 0x1d680(%rip), %rdx     # 0x71daa
movl $0x7543, %ecx           # imm = 0x7543
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x54768
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x54768
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_O1/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 0x25548
testq %rax, %rax
je 0x54d24
movq %rax, %r15
cmpl $0x0, 0xd0(%r14)
jne 0x54cff
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_O1/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 %r14
pushq %rbx
cmpl %esi, (%rdi)
jg 0x54dc7
movq 0x8(%rdi), %rax
cmpl %esi, (%rax)
jle 0x54de6
leal (%rdx,%rsi), %r8d
movl (%rdi), %r11d
xorl %eax, %eax
movl $0x0, %r9d
cmpl %r8d, %r11d
jge 0x54dbf
xorl %r9d, %r9d
xorl %r10d, %r10d
xorl %ebp, %ebp
movl 0x4(%rdi), %eax
movl %eax, %ebx
subl %ebp, %ebx
jle 0x54d82
imull %r10d, %ebx
movq 0x8(%rdi), %r14
movl (%r14), %r14d
cmpl %esi, %r11d
jge 0x54da8
subl %esi, %r14d
jmp 0x54dab
movq 0x8(%rdi), %rbx
movl (%rbx), %ebx
subl %r11d, %ebx
leal (%rbx,%r10), %r11d
movl %edx, %r14d
subl %r10d, %r14d
cmpl %edx, %r11d
cmovlel %ebx, %r14d
movl %ebp, %ebx
subl %eax, %ebx
imull %r14d, %ebx
movl %ebp, %eax
jmp 0x54dab
subl %r11d, %r14d
addl %ebx, %r9d
addl %r14d, %r10d
movq 0x8(%rdi), %rdi
movl (%rdi), %r11d
movl %eax, %ebp
cmpl %r8d, %r11d
jl 0x54d64
movl %r9d, (%rcx)
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x1d2ba(%rip), %rdi     # 0x72088
leaq 0x1cfd5(%rip), %rsi     # 0x71daa
leaq 0x1d2bb(%rip), %rcx     # 0x72097
movl $0x2b78, %edx           # imm = 0x2B78
callq 0x12a50
leaq 0x1d2f8(%rip), %rdi     # 0x720e5
leaq 0x1cfb6(%rip), %rsi     # 0x71daa
leaq 0x1d29c(%rip), %rcx     # 0x72097
movl $0x2b7f, %edx           # imm = 0x2B7F
callq 0x12a50
// File: /workspace/github_c_makefile_star2_O1/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 0x564b0
movzwl %ax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x1, %ecx
jne 0x5656a
movzwl 0x2(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
movb $0x1, %cl
movl %esi, %edx
subl %eax, %edx
jge 0x5653d
jmp 0x56564
movzwl 0x2(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %r8d
decl %r8d
xorl %r9d, %r9d
movl %r9d, %ecx
movl %r8d, %edx
cmpl %r8d, %r9d
jg 0x56537
leal (%rcx,%rdx), %r8d
sarl %r8d
movslq %r8d, %r9
addq %r9, %r9
leaq (%r9,%r9,2), %r9
movzwl 0x4(%rdi,%r9), %r10d
rolw $0x8, %r10w
movzwl %r10w, %r10d
cmpl %esi, %r10d
jle 0x564fa
decl %r8d
movb $0x1, %r10b
jmp 0x5652f
movzwl 0x6(%rdi,%r9), %r10d
rolw $0x8, %r10w
movzwl %r10w, %r10d
cmpl %esi, %r10d
jge 0x5651c
movl %r8d, %r9d
incl %r9d
movb $0x1, %r10b
movl %edx, %r8d
jmp 0x56532
movzwl 0x8(%rdi,%r9), %eax
rolw $0x8, %ax
movzwl %ax, %eax
xorl %r10d, %r10d
movl %edx, %r8d
movl %ecx, %r9d
testb %r10b, %r10b
jne 0x564c2
cmpl %edx, %ecx
jg 0x56568
jmp 0x5656a
movzwl 0x4(%rdi), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
addl %eax, %r8d
cmpl %esi, %r8d
jle 0x56564
movslq %edx, %rax
movzwl 0x6(%rdi,%rax,2), %eax
rolw $0x8, %ax
movzwl %ax, %eax
xorl %ecx, %ecx
testb %cl, %cl
je 0x5656a
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl %esi, %r14d
movq 0x31e9d(%rip), %rax     # 0x89138
addq %r14, %rax
cmpq 0x31e83(%rip), %rax     # 0x89128
jbe 0x572d3
movq 0x30d42(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x1aad4(%rip), %rsi     # 0x71d8c
leaq 0x1aaeb(%rip), %rdx     # 0x71daa
movl $0x436e, %ecx           # imm = 0x436E
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x31e5e(%rip), %rax     # 0x89138
addq %r14, %rax
movq 0x31e44(%rip), %rcx     # 0x89128
cmpq %rcx, %rax
ja 0x57318
cmpq %rbx, 0x31e40(%rip)     # 0x89130
jbe 0x572fa
incq %rcx
movq %rcx, %rax
jmp 0x57318
testl %ebp, %ebp
je 0x5731f
movq 0x31e33(%rip), %rax     # 0x89138
xorl %ecx, %ecx
movb (%rbx,%rcx), %dl
movb %dl, (%rax,%rcx)
incq %rcx
cmpl %ecx, %r14d
jne 0x57307
addq %rcx, %rax
movq %rax, 0x31e19(%rip)     # 0x89138
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk__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
movl %esi, %ebx
movq 0x31dfd(%rip), %rax     # 0x89138
addq %rbx, %rax
cmpq 0x31de3(%rip), %rax     # 0x89128
jbe 0x57373
movq 0x30ca2(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x1aa34(%rip), %rsi     # 0x71d8c
leaq 0x1aa4b(%rip), %rdx     # 0x71daa
movl $0x4376, %ecx           # imm = 0x4376
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movq 0x31dbe(%rip), %rdi     # 0x89138
leaq (%rdi,%rbx), %rcx
movq 0x31da3(%rip), %rax     # 0x89128
cmpq %rax, %rcx
ja 0x573b0
cmpq %r14, 0x31d87(%rip)     # 0x89118
jbe 0x5739b
incq %rax
movq %rax, %rcx
jmp 0x573b0
movq %r14, %rsi
movq %rbx, %rdx
callq 0x258b3
addq 0x31d8b(%rip), %rbx     # 0x89138
movq %rbx, %rcx
movq %rcx, 0x31d81(%rip)     # 0x89138
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5742c
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 0x57419
movq 0x30c03(%rip), %rax     # 0x87ff0
movq (%rax), %rdi
leaq 0x1a995(%rip), %rsi     # 0x71d8c
leaq 0x1a9ac(%rip), %rdx     # 0x71daa
movl $0x40db, %ecx           # imm = 0x40DB
xorl %eax, %eax
callq 0x12d80
movq 0x30bdf(%rip), %rax     # 0x87ff0
movq (%rax), %rdi
callq 0x13780
subl %ebp, %r14d
addl %r12d, %r14d
incl %r14d
incq %r15
cmpq %r15, %r13
jne 0x573d8
jmp 0x5742f
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_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movq %rsi, %r14
movss %xmm0, 0x10(%rsp)
movq %rdi, %r15
testq %rdi, %rdi
jne 0x57490
movq 0x30b87(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x1a918(%rip), %rsi     # 0x71d8c
leaq 0x1a92f(%rip), %rdx     # 0x71daa
movl $0x425f, %ecx           # imm = 0x425F
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
cmpq $0x0, 0x58(%r15)
jne 0x574c5
movq 0x30b52(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x1a8e3(%rip), %rsi     # 0x71d8c
leaq 0x1a8fa(%rip), %rdx     # 0x71daa
movl $0x4260, %ecx           # imm = 0x4260
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
xorps %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
testq %r15, %r15
je 0x57574
testq %r14, %r14
je 0x57574
testl %ebx, %ebx
je 0x57574
movss 0x10(%rsp), %xmm0
divss 0x30(%r15), %xmm0
movss %xmm0, 0x10(%rsp)
leaq 0x14(%rsp), %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x12ef0
testl %eax, %eax
je 0x57574
xorps %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movl %eax, %r12d
movl %ebx, %r13d
subl %r12d, %r13d
jl 0x57574
testl %eax, %eax
je 0x57574
movl 0x14(%rsp), %ebp
cmpl $0xfffd, %ebp           # imm = 0xFFFD
je 0x5756c
movq %r15, %rdi
movl %ebp, %esi
callq 0x13fb0
movss 0x4(%rax), %xmm0
mulss 0x10(%rsp), %xmm0
movss 0xc(%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0xc(%rsp)
movslq %r12d, %rdi
addq %r14, %rdi
leaq 0x14(%rsp), %rsi
movl %r13d, %edx
callq 0x12ef0
addl %eax, %r12d
cmpl $0xfffd, %ebp           # imm = 0xFFFD
jne 0x57519
movss 0xc(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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 0x575d0
movq 0x30a45(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x1a7d7(%rip), %rsi     # 0x71d8c
leaq 0x1a7ee(%rip), %rdx     # 0x71daa
movl $0x427e, %ecx           # imm = 0x427E
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
jne 0x57601
movq 0x30a14(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x1a7a6(%rip), %rsi     # 0x71d8c
leaq 0x1a7bd(%rip), %rdx     # 0x71daa
movl $0x4282, %ecx           # imm = 0x4282
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x58(%r14)
jne 0x57634
movq 0x309e1(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x1a773(%rip), %rsi     # 0x71d8c
leaq 0x1a78a(%rip), %rdx     # 0x71daa
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 0x576a1
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_O1/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 0x576d2
leaq 0x208(%rsi), %rcx
movq 0x2578(%rdi), %rax
movq 0x2548(%rdi), %rdx
addq %rax, %rdx
cmpq %rdx, %rcx
je 0x576ed
movq 0x4788(%rdi), %rax
testq %rax, %rax
je 0x576e5
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_O1/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 0x58c05
movq %rbx, %rdi
callq 0x58cb0
cmpl $0x3e7, %r14d           # imm = 0x3E7
jle 0x58c20
xorl %eax, %eax
movw %ax, 0x1440(%rbx)
movw %ax, 0x1444(%rbx)
jmp 0x58c64
movswl 0x1444(%rbx), %eax
addl %r14d, %eax
cmpl $0x3e8, %eax            # imm = 0x3E8
jl 0x58c4a
movq %rbx, %rdi
callq 0x58cb0
movswl 0x1444(%rbx), %eax
addl %r14d, %eax
cmpl $0x3e7, %eax            # imm = 0x3E7
jg 0x58c31
movswq 0x1440(%rbx), %rax
leal 0x1(%rax), %ecx
movw %cx, 0x1440(%rbx)
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,4), %rax
testq %rax, %rax
je 0x58ca3
movl %r15d, (%rax)
movw %r14w, 0x4(%rax)
movw %bp, 0x6(%rax)
testl %r14d, %r14d
je 0x58c9d
movswq 0x1444(%rbx), %rcx
movw %cx, 0x8(%rax)
leal (%r14,%rcx), %eax
movw %ax, 0x1444(%rbx)
leaq (%rbx,%rcx,4), %rax
addq $0x4a4, %rax            # imm = 0x4A4
jmp 0x58ca5
movw $0xffff, 0x8(%rax)      # imm = 0xFFFF
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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:
cmpw $0x0, 0x1440(%rdi)
jle 0x58d60
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
js 0x58d32
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 0x258b3
movswq 0x1440(%rbx), %rax
testq %rax, %rax
jle 0x58d32
shlq $0x2, %rax
leaq (%rax,%rax,2), %rax
xorl %ecx, %ecx
movzwl 0x8(%rbx,%rcx), %edx
testw %dx, %dx
js 0x58d29
subl %r14d, %edx
movw %dx, 0x8(%rbx,%rcx)
addq $0xc, %rcx
cmpq %rcx, %rax
jne 0x58d17
movl 0x1440(%rbx), %eax
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 0x258b3
retq
// File: /workspace/github_c_makefile_star2_O1/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)
movl 0x90(%rsi), %ecx
testl %ecx, %ecx
je 0x5a182
movslq 0x70(%rsi), %rax
jmp 0x5a184
xorl %eax, %eax
xorl %r13d, %r13d
testl %ecx, %ecx
je 0x5a198
cmpq $0x0, 0x70(%rsi)
je 0x5a198
movq 0x58(%rsi), %r15
jmp 0x5a19b
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 0x59827
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_O1/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 0x5a24d
pushq %rbx
movq %rdi, %rbx
jle 0x5a22b
movl %eax, 0xb0(%rbx)
movl %ecx, 0xac(%rbx)
movq %rbx, %rdi
callq 0x4b88d
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_O1/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 0x5a27d
movq %r14, %rdi
movl %ebx, %esi
callq 0x5a453
testl %eax, %eax
je 0x5a264
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_O1/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 0x5a4ab
addq $0x18, %rdi
leaq 0x8(%rsp), %rdx
leaq 0xc(%rsp), %rcx
callq 0x123e0
testq %rax, %rax
je 0x5a4ab
movl 0x8(%rsp), %eax
cmpq $0x3b, %rax
ja 0x5a493
movabsq $0x800130100000200, %rcx # imm = 0x800130100000200
btq %rax, %rcx
jb 0x5a4ab
leal -0x5b(%rax), %ecx
cmpl $0x22, %ecx
ja 0x5a4b3
movabsq $0x500000005, %rdx      # imm = 0x500000005
btq %rcx, %rdx
jae 0x5a4b3
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
cmpl $0x3000, %eax           # imm = 0x3000
je 0x5a4ab
xorl %ebx, %ebx
cmpl $0x7c, %eax
sete %bl
jmp 0x5a4ab
// File: /workspace/github_c_makefile_star2_O1/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
movl $0xa0, %edx
movq %rax, %rdi
xorl %esi, %esi
callq 0x12b50
movq %rbx, (%r15)
movabsq $-0x100000002, %rax     # imm = 0xFFFFFFFEFFFFFFFE
movq %rax, 0x74(%r15)
orb $0x1, 0x70(%r15)
movq 0x2d842(%rip), %rax     # 0x87fd0
cmpl $0x0, (%rax)
je 0x5a7aa
leaq 0x18bb5(%rip), %rdi     # 0x7334f
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_O1/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 0x5a85c
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 0x5a7f2
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x13f50
movl $0xfffffffe, 0x74(%r14) # imm = 0xFFFFFFFE
movl 0x78(%r14), %edx
cmpl $-0x2, %edx
je 0x5a810
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x13f50
movl $0xfffffffe, 0x78(%r14) # imm = 0xFFFFFFFE
movq 0x98(%r14), %rsi
testq %rsi, %rsi
je 0x5a824
movq %rbx, %rdi
callq 0x130d0
movq 0x2d7a5(%rip), %rax     # 0x87fd0
cmpl $0x0, (%rax)
je 0x5a847
movq (%r14), %rcx
leaq 0x18b28(%rip), %rdi     # 0x73362
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_O1/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 0x5a8d4
testb $0x1, 0x70(%rax)
jne 0x5a8e4
testq %rbx, %rbx
je 0x5a8e0
movq $0x0, (%rbx)
xorl %eax, %eax
jmp 0x5a8ef
testq %rbx, %rbx
je 0x5a8ec
movq %rax, (%rbx)
movq (%rax), %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5a917
testb $0x1, 0x70(%rax)
jne 0x5a94c
leaq 0x18a61(%rip), %rsi     # 0x7337f
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 0x5a957
testq %r15, %r15
je 0x5a954
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_O1/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, 0x10(%rsp)
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r12
xorl %eax, %eax
movl %eax, (%rdx)
movl %eax, (%rcx)
callq 0x13df0
testl %eax, %eax
jle 0x5aa4b
movq %r12, %rdi
movl %ebp, %esi
callq 0x13df0
movl $0xfffffffc, %ecx       # imm = 0xFFFFFFFC
cmpl $0x5, %eax
jne 0x5aa7c
movq %r12, %rdi
movl %ebp, %esi
callq 0x13e10
movl %eax, (%r14)
testl %eax, %eax
je 0x5aa52
movslq %eax, %rsi
shlq $0x3, %rsi
movq %r12, %rdi
callq 0x12ba0
testq %rax, %rax
je 0x5aa59
movq %rax, %r13
cmpl $0x0, (%r14)
jle 0x5aa81
movq %rbx, 0x8(%rsp)
xorl %r15d, %r15d
leaq 0x1(%r15), %rbx
movq %r12, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x12950
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq 0x10(%rsp), %rdx
callq 0x137a0
testq %rax, %rax
je 0x5aa20
testb $0x1, 0x70(%rax)
jne 0x5aa24
xorl %eax, %eax
jmp 0x5aa27
movq (%rax), %rax
movq %rax, (%r13,%r15,8)
testq %rax, %rax
je 0x5aa60
movq %r12, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12180
movslq (%r14), %rax
movq %rbx, %r15
cmpq %rax, %rbx
jl 0x5a9f2
jmp 0x5aa81
movl $0x1, %ecx
jmp 0x5aa7c
movl $0xfffffffb, %ecx       # imm = 0xFFFFFFFB
jmp 0x5aa7c
movl $0xfffffffa, %ecx       # imm = 0xFFFFFFFA
jmp 0x5aa75
movq %r12, %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_O1/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 0xd82b(%rip), %rcx      # 0x683dd
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_O1/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 0xd7e5(%rip), %rcx      # 0x683dd
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_O1/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 0xd53d(%rip), %rcx      # 0x68280
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 0x5ad83
movq %r14, %rdi
movq %r15, %rsi
callq 0x13c10
movl %eax, %ebx
jmp 0x5adb4
leaq 0xd653(%rip), %rdx      # 0x683dd
leaq 0xd658(%rip), %rcx      # 0x683e9
movq %r14, %rdi
movq %r15, %rsi
callq 0x13e90
movq %r12, 0x10(%rax)
movq 0x18(%r12), %rcx
movq %rcx, 0x18(%rax)
leaq 0x12(%rip), %rcx        # 0x5adc2
movq %rcx, 0x8(%rax)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/structs.c
// Function: moonnuklear_echeckvec2
int echeckvec2(lua_State *L, int arg, nk_vec2_t *p)
    {
    int err;
    ECHECK_PREAMBLE;
    GetFloati(x, 1);
    GetFloati(y, 2);
    return ERR_SUCCESS;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movq $0x0, (%rdx)
callq 0x13df0
testl %eax, %eax
jle 0x5ae43
movq %rbx, %rdi
movl %ebp, %esi
callq 0x13df0
cmpl $0x5, %eax
jne 0x5ae4f
movl $0x1, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12950
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x12c20
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
testl %eax, %eax
je 0x5ae6e
xorl %edx, %edx
callq 0x12da0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r14)
xorl %r15d, %r15d
movb $0x1, %r12b
jmp 0x5ae84
movl $0x1, %ebp
movl $0x1, %edi
jmp 0x5ae59
movl $0xfffffffc, %ebp       # imm = 0xFFFFFFFC
movl $0xfffffffc, %edi       # imm = 0xFFFFFFFC
callq 0x13ac0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x13f90
jmp 0x5af3d
callq 0x13df0
testl %eax, %eax
jle 0x5af48
movl $0xfffffffe, %r15d      # imm = 0xFFFFFFFE
xorl %r12d, %r12d
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12180
testb %r12b, %r12b
je 0x5aed7
movl $0x2, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12950
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x12c20
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
testl %eax, %eax
je 0x5aeef
xorl %edx, %edx
callq 0x12da0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x4(%r14)
xorl %r14d, %r14d
movb $0x1, %r15b
jmp 0x5af01
movl %r15d, %edi
callq 0x13ac0
leaq 0x170a5(%rip), %rsi     # 0x71f8b
leaq 0x176b1(%rip), %rdx     # 0x7259e
jmp 0x5af2b
callq 0x13df0
testl %eax, %eax
jle 0x5af50
movl $0xfffffffe, %r14d      # imm = 0xFFFFFFFE
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12180
xorl %ebp, %ebp
testb %r15b, %r15b
jne 0x5af3d
movl %r14d, %edi
callq 0x13ac0
leaq 0x17067(%rip), %rsi     # 0x71f8b
leaq 0x16f66(%rip), %rdx     # 0x71e91
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x12d80
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorps %xmm0, %xmm0
jmp 0x5ae36
xorps %xmm0, %xmm0
jmp 0x5aec9
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/structs.c
// Function: moonnuklear_pushvec2
int pushvec2(lua_State *L, nk_vec2_t *p)
    {
    lua_newtable(L);
    SetFloati(x, 1);
    SetFloati(y, 2);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x127c0
cvtss2sd (%r14), %xmm0
movq %rbx, %rdi
callq 0x13180
movl $0x1, %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12dd0
xorps %xmm0, %xmm0
cvtss2sd 0x4(%r14), %xmm0
movq %rbx, %rdi
callq 0x13180
movl $0x2, %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12dd0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/structs.c
// Function: moonnuklear_echeckvec2i
int echeckvec2i(lua_State *L, int arg, nk_vec2i_t *p)
    {
    int err;
    ECHECK_PREAMBLE;
    GetIntegeri(x, 1);
    GetIntegeri(y, 2);
    return ERR_SUCCESS;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movl $0x0, (%rdx)
callq 0x13df0
testl %eax, %eax
jle 0x5b026
movq %rbx, %rdi
movl %ebp, %esi
callq 0x13df0
cmpl $0x5, %eax
jne 0x5b032
movl $0x1, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12950
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x14170
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
testl %eax, %eax
je 0x5b051
xorl %edx, %edx
callq 0x125f0
movq %rax, %r15
movw %r15w, (%r14)
xorl %r12d, %r12d
movb $0x1, %r15b
jmp 0x5b063
movl $0x1, %ebp
movl $0x1, %edi
jmp 0x5b03c
movl $0xfffffffc, %ebp       # imm = 0xFFFFFFFC
movl $0xfffffffc, %edi       # imm = 0xFFFFFFFC
callq 0x13ac0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x13f90
jmp 0x5b11a
callq 0x13df0
xorl %r15d, %r15d
testl %eax, %eax
jle 0x5b01a
movl $0xfffffffe, %r12d      # imm = 0xFFFFFFFE
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12180
testb %r15b, %r15b
je 0x5b0b4
movl $0x2, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12950
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x14170
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
testl %eax, %eax
je 0x5b0cc
xorl %edx, %edx
callq 0x125f0
movq %rax, %r15
movw %r15w, 0x2(%r14)
xorl %r14d, %r14d
movb $0x1, %r15b
jmp 0x5b0de
movl %r12d, %edi
callq 0x13ac0
leaq 0x16ec8(%rip), %rsi     # 0x71f8b
leaq 0x174d4(%rip), %rdx     # 0x7259e
jmp 0x5b108
callq 0x13df0
xorl %r15d, %r15d
testl %eax, %eax
jle 0x5b0a7
movl $0xfffffffe, %r14d      # imm = 0xFFFFFFFE
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12180
xorl %ebp, %ebp
testb %r15b, %r15b
jne 0x5b11a
movl %r14d, %edi
callq 0x13ac0
leaq 0x16e8a(%rip), %rsi     # 0x71f8b
leaq 0x16d89(%rip), %rdx     # 0x71e91
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x12d80
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/structs.c
// Function: moonnuklear_pushvec2i
int pushvec2i(lua_State *L, nk_vec2i_t *p)
    {
    lua_newtable(L);
    SetIntegeri(x, 1);
    SetIntegeri(y, 2);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x127c0
movswq (%r14), %rsi
movq %rbx, %rdi
callq 0x12b60
movl $0x1, %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12dd0
movswq 0x2(%r14), %rsi
movq %rbx, %rdi
callq 0x12b60
movl $0x2, %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12dd0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/structs.c
// Function: moonnuklear_echecscrollk
int echeckscroll(lua_State *L, int arg, nk_scroll_t *p)
    {
    int err;
    ECHECK_PREAMBLE;
    GetIntegeri(x, 1);
    GetIntegeri(y, 2);
    return ERR_SUCCESS;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movq $0x0, (%rdx)
callq 0x13df0
testl %eax, %eax
jle 0x5b1ee
movq %rbx, %rdi
movl %ebp, %esi
callq 0x13df0
cmpl $0x5, %eax
jne 0x5b1fa
movl $0x1, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12950
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x14170
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
testl %eax, %eax
je 0x5b219
xorl %edx, %edx
callq 0x125f0
movq %rax, %r15
movl %r15d, (%r14)
xorl %r12d, %r12d
movb $0x1, %r15b
jmp 0x5b22b
movl $0x1, %ebp
movl $0x1, %edi
jmp 0x5b204
movl $0xfffffffc, %ebp       # imm = 0xFFFFFFFC
movl $0xfffffffc, %edi       # imm = 0xFFFFFFFC
callq 0x13ac0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x13f90
jmp 0x5b2e1
callq 0x13df0
xorl %r15d, %r15d
testl %eax, %eax
jle 0x5b1e3
movl $0xfffffffe, %r12d      # imm = 0xFFFFFFFE
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12180
testb %r15b, %r15b
je 0x5b27b
movl $0x2, %edx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12950
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x14170
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
testl %eax, %eax
je 0x5b293
xorl %edx, %edx
callq 0x125f0
movq %rax, %r15
movl %r15d, 0x4(%r14)
xorl %r14d, %r14d
movb $0x1, %r15b
jmp 0x5b2a5
movl %r12d, %edi
callq 0x13ac0
leaq 0x16d01(%rip), %rsi     # 0x71f8b
leaq 0x1730d(%rip), %rdx     # 0x7259e
jmp 0x5b2cf
callq 0x13df0
xorl %r15d, %r15d
testl %eax, %eax
jle 0x5b26f
movl $0xfffffffe, %r14d      # imm = 0xFFFFFFFE
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12180
xorl %ebp, %ebp
testb %r15b, %r15b
jne 0x5b2e1
movl %r14d, %edi
callq 0x13ac0
leaq 0x16cc3(%rip), %rsi     # 0x71f8b
leaq 0x16bc2(%rip), %rdx     # 0x71e91
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x12d80
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/structs.c
// Function: moonnuklear_pusscrollh
int pushscroll(lua_State *L, nk_scroll_t *p)
    {
    lua_newtable(L);
    SetIntegeri(x, 1);
    SetIntegeri(y, 2);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x127c0
movl (%r14), %esi
movq %rbx, %rdi
callq 0x12b60
movl $0x1, %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12dd0
movl 0x4(%r14), %esi
movq %rbx, %rdi
callq 0x12b60
movl $0x2, %edx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x12dd0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq