LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 0x506fd
movzwl %ax, %eax
cmpl $0x1, %eax
jne 0x50757
movzwl 0x2(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %edx
xorl %eax, %eax
movl %esi, %ecx
subl %edx, %ecx
jl 0x50772
movzwl 0x4(%rdi), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
addl %edx, %r8d
cmpl %esi, %r8d
jbe 0x50772
addq $0x6, %rdi
addl %ecx, %ecx
movslq %ecx, %rcx
leaq (%rdi,%rcx), %rax
leaq (%rdi,%rcx), %r8
incq %r8
jmp 0x50766
movzwl 0x2(%rdi), %eax
rolw $0x8, %ax
movzwl %ax, %eax
addq $0x4, %rdi
xorl %edx, %edx
leal -0x1(%rax), %ecx
cmpl %eax, %edx
jge 0x5075b
leal (%rdx,%rcx), %r9d
sarl %r9d
imull $0x6, %r9d, %r8d
movslq %r8d, %r10
leaq (%rdi,%r10), %r8
movzwl (%rdi,%r10), %r10d
rolw $0x8, %r10w
movzwl %r10w, %r10d
cmpl %esi, %r10d
jg 0x50752
movzwl 0x2(%r8), %edx
rolw $0x8, %dx
movzwl %dx, %edx
cmpl %esi, %edx
jae 0x5075e
incl %r9d
movl %r9d, %edx
jmp 0x50711
movl %r9d, %eax
jmp 0x5070e
pushq $-0x1
popq %rax
retq
xorl %eax, %eax
retq
leaq 0x4(%r8), %rax
addq $0x5, %r8
movzbl (%rax), %ecx
shll $0x8, %ecx
movzbl (%r8), %eax
orl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x34efd(%rip), %rax     # 0x86280
movl %esi, %r14d
leaq (%rax,%r14), %rdx
movq 0x34edf(%rip), %rcx     # 0x86270
cmpq %rcx, %rdx
jbe 0x513d0
movq 0x33c53(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x18965(%rip), %rsi     # 0x69d0c
leaq 0x1897c(%rip), %rdx     # 0x69d2a
movl $0x436e, %ecx           # imm = 0x436E
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x34eb7(%rip), %rax     # 0x86280
movq 0x34ea0(%rip), %rcx     # 0x86270
leaq (%rax,%r14), %rdx
cmpq %rcx, %rdx
ja 0x513e8
cmpq %rbx, 0x34e98(%rip)     # 0x86278
jbe 0x513f5
incq %rcx
movq %rcx, %rdx
movq %rdx, 0x34e91(%rip)     # 0x86280
popq %rbx
popq %r14
popq %r15
retq
incq %rax
xorl %ecx, %ecx
cmpl %ecx, %r14d
je 0x513ef
movb (%rbx,%rcx), %dl
movq %rax, 0x34e77(%rip)     # 0x86280
movb %dl, -0x1(%rax)
incq %rax
incq %rcx
jmp 0x513fa
// File: /workspace/github_c_makefile_star2_O2/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 0x34e5d(%rip), %rdi     # 0x86280
movl %esi, %ebx
leaq (%rdi,%rbx), %rcx
movq 0x34e40(%rip), %rax     # 0x86270
cmpq %rax, %rcx
jbe 0x5146f
movq 0x33bb4(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x188c6(%rip), %rsi     # 0x69d0c
leaq 0x188dd(%rip), %rdx     # 0x69d2a
movl $0x4376, %ecx           # imm = 0x4376
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
movq 0x34e18(%rip), %rdi     # 0x86280
movq 0x34e01(%rip), %rax     # 0x86270
leaq (%rdi,%rbx), %rcx
cmpq %rax, %rcx
ja 0x5149e
cmpq %r14, 0x34de1(%rip)     # 0x86260
jbe 0x51489
incq %rax
movq %rax, %rcx
jmp 0x5149e
movq %r14, %rsi
movq %rbx, %rdx
callq 0x24323
addq 0x34de5(%rip), %rbx     # 0x86280
movq %rbx, %rcx
movq %rcx, 0x34ddb(%rip)     # 0x86280
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
movl %esi, %ebx
movq %rdi, %r14
xorl %eax, %eax
testl %esi, %esi
cmovlel %eax, %ebx
xorl %r15d, %r15d
xorl %r13d, %r13d
cmpq %r15, %rbx
je 0x5151c
movl (%r14,%r15,8), %ebp
movl 0x4(%r14,%r15,8), %r12d
cmpl %ebp, %r12d
jae 0x5150e
movq 0x33b0e(%rip), %rax     # 0x84ff0
movq (%rax), %rdi
leaq 0x18820(%rip), %rsi     # 0x69d0c
leaq 0x18837(%rip), %rdx     # 0x69d2a
movl $0x40db, %ecx           # imm = 0x40DB
xorl %eax, %eax
callq 0x12ea0
movq 0x33aea(%rip), %rax     # 0x84ff0
movq (%rax), %rdi
callq 0x13960
subl %ebp, %r13d
addl %r12d, %r13d
incl %r13d
incq %r15
jmp 0x514c8
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5157d
movq 0x33a9a(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x187ab(%rip), %rsi     # 0x69d0c
leaq 0x187c2(%rip), %rdx     # 0x69d2a
movl $0x425f, %ecx           # imm = 0x425F
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
cmpq $0x0, 0x58(%r15)
jne 0x515b2
movq 0x33a65(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x18776(%rip), %rsi     # 0x69d0c
leaq 0x1878d(%rip), %rdx     # 0x69d2a
movl $0x4260, %ecx           # imm = 0x4260
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
xorps %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
testq %r15, %r15
je 0x5165d
testq %r14, %r14
je 0x5165d
testl %ebx, %ebx
je 0x5165d
movss 0x10(%rsp), %xmm0
divss 0x30(%r15), %xmm0
movss %xmm0, 0x10(%rsp)
leaq 0x14(%rsp), %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x13020
testl %eax, %eax
je 0x5165d
movl %eax, %ebp
pushq $0x1
popq %rax
xorps %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
leaq 0x14(%rsp), %r12
movl %ebx, %r13d
subl %ebp, %r13d
jl 0x5165d
testl %eax, %eax
je 0x5165d
movl 0x14(%rsp), %esi
cmpl $0xfffd, %esi           # imm = 0xFFFD
je 0x5165d
movq %r15, %rdi
callq 0x141f0
movss 0x4(%rax), %xmm0
mulss 0x10(%rsp), %xmm0
movss 0xc(%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0xc(%rsp)
movslq %ebp, %rdi
addq %r14, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x13020
addl %eax, %ebp
jmp 0x5160d
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_O2/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 0x516b9
movq 0x3395c(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1866e(%rip), %rsi     # 0x69d0c
leaq 0x18685(%rip), %rdx     # 0x69d2a
movl $0x427e, %ecx           # imm = 0x427E
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %r14, %r14
jne 0x516ea
movq 0x3392b(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1863d(%rip), %rsi     # 0x69d0c
leaq 0x18654(%rip), %rdx     # 0x69d2a
movl $0x4282, %ecx           # imm = 0x4282
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
cmpq $0x0, 0x58(%r14)
jne 0x5171d
movq 0x338f8(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x1860a(%rip), %rsi     # 0x69d0c
leaq 0x18621(%rip), %rdx     # 0x69d2a
movl $0x4283, %ecx           # imm = 0x4283
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
testq %r14, %r14
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x5178a
movaps (%rsp), %xmm0
divss 0x30(%r14), %xmm0
movaps %xmm0, (%rsp)
movq %r14, %rdi
movl %ebp, %esi
callq 0x141f0
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_O2/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 0x517bb
leaq 0x208(%rsi), %rcx
movq 0x2578(%rdi), %rax
movq 0x2548(%rdi), %rdx
addq %rax, %rdx
cmpq %rdx, %rcx
je 0x517d6
movq 0x4788(%rdi), %rax
testq %rax, %rax
je 0x517ce
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_O2/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 0x52c18
movq %rbx, %rdi
callq 0x52cad
cmpl $0x3e7, %r14d           # imm = 0x3E7
jle 0x52c33
andw $0x0, 0x1440(%rbx)
andw $0x0, 0x1444(%rbx)
jmp 0x52ca0
movswl 0x1444(%rbx), %eax
leal (%rax,%r14), %ecx
cmpl $0x3e8, %ecx            # imm = 0x3E8
jl 0x52c50
movq %rbx, %rdi
callq 0x52cad
jmp 0x52c33
movswq 0x1440(%rbx), %rcx
leal 0x1(%rcx), %edx
movw %dx, 0x1440(%rbx)
imulq $0xc, %rcx, %rdx
leaq (%rbx,%rdx), %rcx
movl %r15d, (%rbx,%rdx)
movw %r14w, 0x4(%rbx,%rdx)
movw %bp, 0x6(%rbx,%rdx)
testl %r14d, %r14d
je 0x52c9b
movslq %eax, %rdx
movw %ax, 0x8(%rcx)
addl %r14d, %eax
movw %ax, 0x1444(%rbx)
leaq (%rbx,%rdx,4), %rax
addq $0x4a4, %rax            # imm = 0x4A4
jmp 0x52ca2
orw $-0x1, 0x8(%rcx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x52d57
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpw $0x0, 0x8(%rdi)
js 0x52d33
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 0x24323
movl 0x1440(%rbx), %eax
xorl %ecx, %ecx
testw %ax, %ax
movl %eax, %edx
cmovlel %ecx, %edx
movzwl %dx, %edx
imulq $0xc, %rdx, %rdx
cmpq %rcx, %rdx
je 0x52d33
movzwl 0x8(%rbx,%rcx), %esi
testw %si, %si
js 0x52d2d
subl %r14d, %esi
movw %si, 0x8(%rbx,%rcx)
addq $0xc, %rcx
jmp 0x52d16
decl %eax
movw %ax, 0x1440(%rbx)
leaq 0xc(%rbx), %rsi
movswq %ax, %rax
imulq $0xc, %rax, %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x24323
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movss %xmm0, (%rsp)
andl $0x0, 0x4(%rsp)
movq %rdi, %rbx
cmpl $0x0, 0x90(%rsi)
je 0x53ccb
movq 0x70(%rsi), %rax
testq %rax, %rax
je 0x53ccb
movq 0x58(%rsi), %r15
cltq
jmp 0x53cd0
xorl %eax, %eax
xorl %r15d, %r15d
addq $0x18, %rsi
addl %eax, %r15d
leaq 0x8(%rsp), %rax
leaq 0xc(%rsp), %rcx
movq %rsi, %rdi
movl %edx, %esi
movq %rax, %rdx
callq 0x141a0
subl %eax, %r15d
leaq 0x10(%rsp), %rcx
leaq 0x4(%rsp), %r12
movq %r14, %rdi
movq %rax, %rsi
movl %r15d, %edx
movss (%rsp), %xmm0
xorl %r8d, %r8d
movq %r12, %r9
callq 0x534fe
andl $0x0, (%rbx)
movlps %xmm0, 0x4(%rbx)
andl $0x0, 0xc(%rbx)
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movss %xmm0, 0x10(%rbx)
movl (%r12), %eax
movl %eax, 0x14(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_get_width
NK_INTERN float
nk_textedit_get_width(const struct nk_text_edit *edit, int line_start, int char_id,
    const struct nk_user_font *font)
{
    int len = 0;
    nk_rune unicode = 0;
    const char *str = nk_str_at_const(&edit->string, line_start + char_id, &unicode, &len);
    return font->width(font->userdata, font->height, str, len);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
leaq 0x4(%rsp), %r14
andl $0x0, (%r14)
movq %rsp, %rax
andl $0x0, (%rax)
addq $0x18, %rdi
addl %edx, %esi
movq %rax, %rdx
movq %r14, %rcx
callq 0x141a0
movss 0x8(%rbx), %xmm0
movl (%r14), %edx
movq (%rbx), %rdi
movq %rax, %rsi
callq *0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_move_to_first
NK_INTERN void
nk_textedit_move_to_first(struct nk_text_edit *state)
{
    /* move cursor to first character of selection */
    if (NK_TEXT_HAS_SELECTION(state)) {
        nk_textedit_sortselection(state);
        state->cursor = state->select_start;
        state->select_end = state->select_start;
        state->has_preferred_x = 0;
    }
}

// Assembly:
movl 0xac(%rdi), %eax
movl 0xb0(%rdi), %ecx
cmpl %ecx, %eax
je 0x53dd0
jle 0x53dbd
movl %ecx, 0xac(%rdi)
movl %ecx, %eax
movl %eax, 0xa8(%rdi)
movl %eax, 0xb0(%rdi)
movb $0x0, 0xb7(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x53e15
pushq %rbx
movq %rdi, %rbx
jle 0x53df3
movl %eax, 0xb0(%rbx)
movl %ecx, 0xac(%rbx)
movq %rbx, %rdi
callq 0x46ea3
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_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_move_to_word_previous
NK_INTERN int
nk_textedit_move_to_word_previous(struct nk_text_edit *state)
{
   int c = state->cursor - 1;
   while( c >= 0 && !nk_is_word_boundary(state, c))
      --c;

   if( c < 0 )
      c = 0;

   return c;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl 0xa8(%rdi), %ebx
movl %ebx, %eax
leal -0x1(%rax), %ebx
testl %eax, %eax
jle 0x53e3a
movq %r14, %rdi
movl %ebx, %esi
callq 0x53ffd
testl %eax, %eax
je 0x53e23
xorl %eax, %eax
testl %ebx, %ebx
cmovgl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_textedit_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 0x53e78
movq %r14, %rdi
movl %ebx, %esi
callq 0x53ffd
testl %eax, %eax
je 0x53e5f
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_O2/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
pushq $0x1
popq %rbx
testl %esi, %esi
jle 0x54053
addq $0x18, %rdi
leaq 0x8(%rsp), %rdx
leaq 0xc(%rsp), %rcx
callq 0x12420
testq %rax, %rax
je 0x54053
movl 0x8(%rsp), %eax
cmpq $0x3b, %rax
ja 0x5403b
movabsq $0x800130100000200, %rcx # imm = 0x800130100000200
btq %rax, %rcx
jb 0x54053
leal -0x5b(%rax), %ecx
cmpl $0x22, %ecx
ja 0x5405b
movabsq $0x500000005, %rdx      # imm = 0x500000005
btq %rcx, %rdx
jae 0x5405b
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
cmpl $0x3000, %eax           # imm = 0x3000
je 0x54053
xorl %ebx, %ebx
cmpl $0x7c, %eax
sete %bl
jmp 0x54053
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_string_float_limit
NK_LIB int
nk_string_float_limit(char *string, int prec)
{
    int dot = 0;
    char *c = string;
    while (*c) {
        if (*c == '.') {
            dot = 1;
            c++;
            continue;
        }
        if (dot == (prec+1)) {
            *c = 0;
            break;
        }
        if (dot > 0) dot++;
        c++;
    }
    return (int)(c - string);
}

// Assembly:
xorl %eax, %eax
pushq $0x1
popq %rcx
xorl %edx, %edx
movzbl (%rdi,%rax), %r8d
movl %ecx, %esi
cmpl $0x2e, %r8d
je 0x54291
testl %r8d, %r8d
je 0x5429c
cmpl $0x3, %edx
je 0x54298
xorl %esi, %esi
testl %edx, %edx
setg %sil
addl %edx, %esi
incq %rax
movl %esi, %edx
jmp 0x54270
movb $0x0, (%rdi,%rax)
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_pow
NK_LIB double
nk_pow(double x, int n)
{
    /*  check the sign of n */
    double r = 1;
    int plus = n >= 0;
    n = (plus) ? n : -n;
    while (n > 0) {
        if ((n & 1) == 1)
            r *= x;
        n /= 2;
        x *= x;
    }
    return plus ? r : 1.0 / r;
}

// Assembly:
movl %edi, %eax
negl %eax
cmovsl %edi, %eax
movsd 0x1266c(%rip), %xmm1    # 0x66918
movsd 0x12654(%rip), %xmm0    # 0x66908
testl %eax, %eax
je 0x542c8
testb $0x1, %al
je 0x542c0
mulsd %xmm1, %xmm0
shrl %eax
mulsd %xmm1, %xmm1
jmp 0x542b4
testl %edi, %edi
jns 0x542dc
movsd 0x12634(%rip), %xmm1    # 0x66908
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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 0x13f50
movq %rax, %r15
leaq 0x8(%rax), %rdi
movl $0x98, %edx
xorl %esi, %esi
callq 0x12c10
movq %rbx, (%r15)
movl $0xfffffffe, 0x78(%r15) # imm = 0xFFFFFFFE
movabsq $-0x1ffffffff, %rax     # imm = 0xFFFFFFFE00000001
movq %rax, 0x70(%r15)
movq 0x30ca2(%rip), %rax     # 0x84fd0
cmpl $0x0, (%rax)
je 0x5434a
leaq 0x16f55(%rip), %rdi     # 0x6b28f
movq %r14, %rsi
movq %r15, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x129f0
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x543fa
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 0x54392
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x14190
movl $0xfffffffe, 0x74(%r14) # imm = 0xFFFFFFFE
movl 0x78(%r14), %edx
cmpl $-0x2, %edx
je 0x543b0
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x14190
movl $0xfffffffe, 0x78(%r14) # imm = 0xFFFFFFFE
movq 0x98(%r14), %rsi
testq %rsi, %rsi
je 0x543c4
movq %rbx, %rdi
callq 0x13220
movq 0x30c05(%rip), %rax     # 0x84fd0
cmpl $0x0, (%rax)
je 0x543e7
movq (%r14), %rcx
leaq 0x16ec8(%rip), %rdi     # 0x6b2a2
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x129f0
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x14160
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x13990
testq %rax, %rax
je 0x54470
testb $0x1, 0x70(%rax)
jne 0x5447d
testq %rbx, %rbx
je 0x54479
andq $0x0, (%rbx)
xorl %eax, %eax
jmp 0x54488
testq %rbx, %rbx
je 0x54485
movq %rax, (%rbx)
movq (%rax), %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x13990
testq %rax, %rax
je 0x544b0
testb $0x1, 0x70(%rax)
jne 0x544e3
leaq 0x16e08(%rip), %rsi     # 0x6b2bf
xorl %r15d, %r15d
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x12ea0
pushq $-0x1
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x12690
movq %r14, %rdi
movl %ebx, %esi
movq %rax, %rdx
callq 0x124a0
jmp 0x544ee
testq %r15, %r15
je 0x544eb
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_O2/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, %r14
movl %esi, %ebp
movq %rdx, (%rsp)
andl $0x0, (%rdx)
movq %rdi, %r12
andl $0x0, (%rcx)
callq 0x14030
testl %eax, %eax
jle 0x545c6
movq %r12, %rdi
movl %ebp, %esi
callq 0x14030
cmpl $0x5, %eax
jne 0x545ca
movq %r12, %rdi
movl %ebp, %esi
callq 0x14050
movq (%rsp), %rcx
movl %eax, (%rcx)
testl %eax, %eax
je 0x545ce
movslq %eax, %rsi
shlq $0x3, %rsi
movq %r12, %rdi
callq 0x12c70
testq %rax, %rax
je 0x545e9
movq %rax, %rbx
movq %r14, 0x8(%rsp)
xorl %r14d, %r14d
pushq $-0x2
popq %r13
movq (%rsp), %rax
movslq (%rax), %rax
cmpq %rax, %r14
jge 0x545d7
leaq 0x1(%r14), %r15
movq %r12, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x12a00
movq %r12, %rdi
pushq $-0x1
popq %rsi
xorl %edx, %edx
movq 0x10(%rsp), %rcx
callq 0x143e0
movq %rax, (%rbx,%r14,8)
testq %rax, %rax
je 0x545ef
movq %r12, %rdi
movl %r13d, %esi
callq 0x12190
movq %r15, %r14
jmp 0x5457e
pushq $0x1
jmp 0x545d0
pushq $-0x4
jmp 0x545d0
pushq $-0x5
popq %r13
movl %r13d, (%r14)
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x6
popq %r13
jmp 0x545ff
movq %r12, %rdi
movq %rbx, %rsi
callq 0x13220
movq 0x8(%rsp), %r14
movq (%rsp), %rax
andl $0x0, (%rax)
jmp 0x545d2
// File: /workspace/github_c_makefile_star2_O2/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 0xbca9(%rip), %rcx      # 0x603dd
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x120e0
movq %rax, %r14
movq 0x18(%rax), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq 0x12c20
movq 0x20(%r14), %rax
movl (%rax), %esi
movq %rbx, %rdi
callq 0x12c20
pushq $0x2
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xbc67(%rip), %rcx      # 0x603dd
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x120e0
movq %rax, %r14
cvtss2sd 0x28(%rax), %xmm0
movq %rbx, %rdi
callq 0x132d0
cvtss2sd 0x2c(%r14), %xmm0
movq %rbx, %rdi
callq 0x132d0
pushq $0x2
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xb9ae(%rip), %rcx      # 0x60280
pushq $0x1
popq %rbx
movq %rsp, %r12
movl %ebx, %esi
movq %r12, %rdx
callq 0x120e0
movq %rax, %rdi
callq 0x12f40
movq %rax, %r15
movq (%r12), %r12
movq %rax, %rdi
callq 0x13430
testq %rax, %rax
je 0x5490d
movq %r14, %rdi
movq %r15, %rsi
callq 0x13e10
movl %eax, %ebx
jmp 0x5493e
leaq 0xbac9(%rip), %rdx      # 0x603dd
leaq 0xbace(%rip), %rcx      # 0x603e9
movq %r14, %rdi
movq %r15, %rsi
callq 0x140d0
movq %r12, 0x10(%rax)
movq 0x18(%r12), %rcx
movq %rcx, 0x18(%rax)
leaq 0x12(%rip), %rcx        # 0x5494c
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_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
andq $0x0, (%rdx)
callq 0x14030
testl %eax, %eax
jle 0x549d3
movq %rbx, %rdi
movl %r15d, %esi
callq 0x14030
cmpl $0x5, %eax
jne 0x549d7
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12a00
pushq $-0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12d00
pushq $-0x1
popq %rsi
movq %rbx, %rdi
testl %eax, %eax
je 0x549fd
xorl %edx, %edx
callq 0x12ec0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r14)
movl $0x0, 0x4(%rsp)
movb $0x1, %r13b
jmp 0x54a14
pushq $0x1
jmp 0x549d9
pushq $-0x4
popq %rbp
movl %ebp, %edi
callq 0x13cc0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x141d0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x14030
testl %eax, %eax
jle 0x54abc
pushq $-0x2
popq %rax
movl %eax, 0x4(%rsp)
xorl %r13d, %r13d
pushq $-0x2
popq %r12
movq %rbx, %rdi
movl %r12d, %esi
callq 0x12190
testb %r13b, %r13b
je 0x54a68
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12a00
pushq $-0x1
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12d00
pushq $-0x1
popq %rsi
movq %rbx, %rdi
testl %eax, %eax
je 0x54a80
xorl %edx, %edx
callq 0x12ec0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x4(%r14)
xorl %r12d, %r12d
movb $0x1, %r14b
jmp 0x54a8c
leaq 0x15a7b(%rip), %rsi     # 0x6a4ea
movq %rbx, %rdi
movl 0x4(%rsp), %edx
callq 0x54ac9
jmp 0x549ec
callq 0x14030
testl %eax, %eax
jle 0x54ac4
xorl %r14d, %r14d
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x12190
xorl %ebp, %ebp
testb %r14b, %r14b
jne 0x549ec
leaq 0x15368(%rip), %rsi     # 0x69e11
movq %rbx, %rdi
movl %r12d, %edx
callq 0x54ac9
movl %r15d, %ebp
jmp 0x549ec
xorps %xmm0, %xmm0
jmp 0x549c1
xorps %xmm0, %xmm0
jmp 0x54a5a
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %esi, %esi
xorl %edx, %edx
callq 0x12870
cvtss2sd (%rbx), %xmm0
movq %r14, %rdi
callq 0x132d0
pushq $-0x2
popq %rbp
pushq $0x1
popq %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x12ef0
cvtss2sd 0x4(%rbx), %xmm0
movq %r14, %rdi
callq 0x132d0
pushq $0x2
popq %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x12ef0
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
andl $0x0, (%rdx)
callq 0x14030
testl %eax, %eax
jle 0x54bb9
movq %rbx, %rdi
movl %r15d, %esi
callq 0x14030
cmpl $0x5, %eax
jne 0x54bbd
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12a00
pushq $-0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x14400
pushq $-0x1
popq %rsi
movq %rbx, %rdi
testl %eax, %eax
je 0x54be3
xorl %edx, %edx
callq 0x12650
movq %rax, %r13
movw %r13w, (%r14)
movl $0x0, 0x4(%rsp)
movb $0x1, %r13b
jmp 0x54bf6
pushq $0x1
jmp 0x54bbf
pushq $-0x4
popq %rbp
movl %ebp, %edi
callq 0x13cc0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x141d0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x14030
xorl %r13d, %r13d
testl %eax, %eax
jle 0x54ba8
pushq $-0x2
popq %rax
movl %eax, 0x4(%rsp)
pushq $-0x2
popq %r12
movq %rbx, %rdi
movl %r12d, %esi
callq 0x12190
testb %r13b, %r13b
je 0x54c48
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12a00
pushq $-0x1
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x14400
pushq $-0x1
popq %rsi
movq %rbx, %rdi
testl %eax, %eax
je 0x54c60
xorl %edx, %edx
callq 0x12650
movq %rax, %r13
movw %r13w, 0x2(%r14)
xorl %r12d, %r12d
movb $0x1, %r13b
jmp 0x54c6c
leaq 0x1589b(%rip), %rsi     # 0x6a4ea
movq %rbx, %rdi
movl 0x4(%rsp), %edx
callq 0x54ac9
jmp 0x54bd2
callq 0x14030
xorl %r13d, %r13d
testl %eax, %eax
jle 0x54c3b
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x12190
xorl %ebp, %ebp
testb %r13b, %r13b
jne 0x54bd2
leaq 0x15188(%rip), %rsi     # 0x69e11
movq %rbx, %rdi
movl %r12d, %edx
callq 0x54ac9
movl %r15d, %ebp
jmp 0x54bd2
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %esi, %esi
xorl %edx, %edx
callq 0x12870
movswq (%rbx), %rsi
movq %r14, %rdi
callq 0x12c20
pushq $-0x2
popq %rbp
pushq $0x1
popq %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x12ef0
movswq 0x2(%rbx), %rsi
movq %r14, %rdi
callq 0x12c20
pushq $0x2
popq %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x12ef0
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
andq $0x0, (%rdx)
callq 0x14030
testl %eax, %eax
jle 0x54d58
movq %rbx, %rdi
movl %r15d, %esi
callq 0x14030
cmpl $0x5, %eax
jne 0x54d5c
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12a00
pushq $-0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x14400
pushq $-0x1
popq %rsi
movq %rbx, %rdi
testl %eax, %eax
je 0x54d82
xorl %edx, %edx
callq 0x12650
movq %rax, %r13
movl %r13d, (%r14)
xorl %r12d, %r12d
movb $0x1, %r13b
jmp 0x54d92
pushq $0x1
jmp 0x54d5e
pushq $-0x4
popq %rbp
movl %ebp, %edi
callq 0x13cc0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x141d0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x14030
xorl %r13d, %r13d
testl %eax, %eax
jle 0x54d4d
pushq $-0x2
popq %r12
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x12190
testb %r13b, %r13b
je 0x54ddf
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12a00
pushq $-0x1
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x14400
pushq $-0x1
popq %rsi
movq %rbx, %rdi
testl %eax, %eax
je 0x54df6
xorl %edx, %edx
callq 0x12650
movq %rax, %r13
movl %r13d, 0x4(%r14)
xorl %r12d, %r12d
movb $0x1, %r13b
jmp 0x54e06
leaq 0x15704(%rip), %rsi     # 0x6a4ea
movq %rbx, %rdi
movl %r12d, %edx
callq 0x54ac9
jmp 0x54d71
callq 0x14030
xorl %r13d, %r13d
testl %eax, %eax
pushq $-0x2
popq %r12
jle 0x54dd3
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x12190
xorl %ebp, %ebp
testb %r13b, %r13b
jne 0x54d71
leaq 0x14fee(%rip), %rsi     # 0x69e11
movq %rbx, %rdi
movl %r12d, %edx
callq 0x54ac9
movl %r15d, %ebp
jmp 0x54d71
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x12870
movl (%r14), %esi
movq %rbx, %rdi
callq 0x12c20
pushq $-0x2
popq %rbp
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12ef0
movl 0x4(%r14), %esi
movq %rbx, %rdi
callq 0x12c20
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12ef0
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/structs.c
// Function: moonnuklear_pushrect
int pushrect(lua_State *L, nk_rect_t *p)
    {
    lua_newtable(L);
    SetFloati(x, 1);
    SetFloati(y, 2);
    SetFloati(w, 3);
    SetFloati(h, 4);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x12870
cvtss2sd (%r14), %xmm0
movq %rbx, %rdi
callq 0x132d0
pushq $-0x2
popq %rbp
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12ef0
cvtss2sd 0x4(%r14), %xmm0
movq %rbx, %rdi
callq 0x132d0
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12ef0
cvtss2sd 0x8(%r14), %xmm0
movq %rbx, %rdi
callq 0x132d0
pushq $0x3
popq %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12ef0
cvtss2sd 0xc(%r14), %xmm0
movq %rbx, %rdi
callq 0x132d0
pushq $0x4
popq %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12ef0
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/structs.c
// Function: moonnuklear_pushmemorystatus
int pushmemorystatus(lua_State *L, nk_memory_status_t *p)
    {
    lua_newtable(L);
//  SetEnum(type, "type", pushbufferallocationtype);
    SetInteger(size, "size");
    SetInteger(allocated, "allocated");
    SetInteger(needed, "needed");
    SetInteger(calls, "calls");
    lua_pushlightuserdata(L, p->memory);
    lua_setfield(L, -2, "ptr");
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x12870
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x12c20
leaq 0x1355f(%rip), %rdx     # 0x6a083
pushq $-0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12b50
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x12c20
leaq 0x14a31(%rip), %rdx     # 0x6b575
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12b50
movq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x12c20
leaq 0x14a1e(%rip), %rdx     # 0x6b57f
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12b50
movq 0x28(%r14), %rsi
movq %rbx, %rdi
callq 0x12c20
leaq 0x14a08(%rip), %rdx     # 0x6b586
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12b50
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x135e0
leaq 0x9829(%rip), %rdx      # 0x603c3
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12b50
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/structs.c
// Function: moonnuklear_echeckdrawvertexlayoutelement
int echeckdrawvertexlayoutelement(lua_State *L, int arg, nk_draw_vertex_layout_element_t *p)
    {
    int err;
    ECHECK_PREAMBLE;
    GetEnumi(attribute, 1, testdrawvertexlayoutattribute);
    GetEnumi(format, 2, testdrawvertexlayoutformat);
    GetIntegeriOpt(offset, 3, 0);
    return ERR_SUCCESS;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdx)
callq 0x14030
testl %eax, %eax
jle 0x56c28
movq %rbx, %rdi
movl %r15d, %esi
callq 0x14030
cmpl $0x5, %eax
jne 0x56c2c
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12a00
pushq $0x19
popq %rsi
pushq $-0x1
popq %rbp
leaq 0xc(%rsp), %r12
movq %rbx, %rdi
movl %ebp, %edx
movq %r12, %rcx
callq 0x135b0
movl %eax, (%r14)
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x12190
movl (%r12), %edx
testl %edx, %edx
je 0x56c46
leaq 0x138c7(%rip), %rsi     # 0x6a4ea
jmp 0x56cf5
pushq $0x1
jmp 0x56c2e
pushq $-0x4
popq %rbp
movl %ebp, %edi
callq 0x13cc0
movq %rbx, %rdi
movq %rax, %rsi
callq 0x141d0
jmp 0x56cfd
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12a00
pushq $0x1a
popq %rsi
pushq $-0x1
popq %rbp
leaq 0xc(%rsp), %r12
movq %rbx, %rdi
movl %ebp, %edx
movq %r12, %rcx
callq 0x135b0
movl %eax, 0x4(%r14)
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x12190
movl (%r12), %edx
testl %edx, %edx
je 0x56c8c
leaq 0x13187(%rip), %rsi     # 0x69e11
jmp 0x56cf5
pushq $0x3
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12a00
andl $0x0, 0xc(%rsp)
pushq $-0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x14400
pushq $-0x1
popq %rsi
movq %rbx, %rdi
testl %eax, %eax
je 0x56cc3
xorl %edx, %edx
callq 0x12650
movq %rax, 0x8(%r14)
jmp 0x56cdb
callq 0x14030
testl %eax, %eax
jle 0x56cd6
movl $0xfffffffe, 0xc(%rsp)  # imm = 0xFFFFFFFE
jmp 0x56cdb
andq $0x0, 0x8(%r14)
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x12190
movl 0xc(%rsp), %edx
testl %edx, %edx
je 0x56d0c
leaq 0x14697(%rip), %rsi     # 0x6b38c
movq %rbx, %rdi
callq 0x54ac9
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0x56cfd
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/structs.c
// Function: moonnuklear_pushstyleitem
int pushstyleitem(lua_State *L, nk_style_item_t *p)
    {
    if(p->type == NK_STYLE_ITEM_IMAGE)
        pushimage(L, &p->data.image);
    else if(p->type == NK_STYLE_ITEM_NINE_SLICE)
        pushnine_slice(L, &p->data.image);
    else if(p->type == NK_STYLE_ITEM_COLOR)
        {
        if(p->data.color.r == 0 && p->data.color.b == 0 
                && p->data.color.g == 0 && p->data.color.a == 0)
            lua_pushstring(L, "hide");
        else
            pushcolor(L, &p->data.color);
        }
    else
        return unexpected(L);
    return 1;
    }

// Assembly:
pushq %rax
movl (%rsi), %eax
testl %eax, %eax
je 0x56d2c
cmpl $0x2, %eax
je 0x56d21
cmpl $0x1, %eax
jne 0x56d52
addq $0x8, %rsi
callq 0x13e10
jmp 0x56d4d
cmpb $0x0, 0x8(%rsi)
jne 0x56d44
cmpb $0x0, 0xa(%rsi)
jne 0x56d44
cmpb $0x0, 0x9(%rsi)
jne 0x56d44
cmpb $0x0, 0xb(%rsi)
je 0x56d6e
addq $0x8, %rsi
callq 0x13a10
pushq $0x1
popq %rax
popq %rcx
retq
leaq 0x93c6(%rip), %rsi      # 0x6011f
leaq 0x1482c(%rip), %rdx     # 0x6b58c
movl $0x1aa, %ecx            # imm = 0x1AA
xorl %eax, %eax
popq %r8
jmp 0x13bb0
leaq 0xf0e0(%rip), %rsi      # 0x65e55
callq 0x141d0
jmp 0x56d4d