LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_add_image
NK_API void
nk_draw_list_add_image(struct nk_draw_list *list, struct nk_image texture,
    struct nk_rect rect, struct nk_color color)
{
    NK_ASSERT(list);
    if (!list) return;
    /* push new command with given texture */
    nk_draw_list_push_image(list, texture.handle);
    if (nk_image_is_subimage(&texture)) {
        /* add region inside of the texture  */
        struct nk_vec2 uv[2];
        uv[0].x = (float)texture.region[0]/(float)texture.w;
        uv[0].y = (float)texture.region[1]/(float)texture.h;
        uv[1].x = (float)(texture.region[0] + texture.region[2])/(float)texture.w;
        uv[1].y = (float)(texture.region[1] + texture.region[3])/(float)texture.h;
        nk_draw_list_push_rect_uv(list, nk_vec2(rect.x, rect.y),
            nk_vec2(rect.x + rect.w, rect.y + rect.h),  uv[0], uv[1], color);
    } else nk_draw_list_push_rect_uv(list, nk_vec2(rect.x, rect.y),
            nk_vec2(rect.x + rect.w, rect.y + rect.h),
            nk_vec2(0.0f, 0.0f), nk_vec2(1.0f, 1.0f),color);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
testq %rdi, %rdi
je 0x29bbf
movl %esi, %ebx
movq %rdi, %r14
movaps %xmm1, (%rsp)
movaps %xmm0, 0x10(%rsp)
leaq 0x40(%rsp), %r15
movq (%r15), %rsi
callq 0x28e35
movq 0x8(%r15), %xmm1
pshuflw $0x50, %xmm1, %xmm0     # xmm0 = xmm1[0,0,1,1,4,5,6,7]
pshufd $0x50, %xmm0, %xmm2     # xmm2 = xmm0[0,0,1,1]
pxor %xmm0, %xmm0
pcmpeqw %xmm0, %xmm2
movmskpd %xmm2, %eax
cmpl $0x3, %eax
jne 0x29bf4
movaps 0x10(%rsp), %xmm0
movaps %xmm0, %xmm1
addps (%rsp), %xmm1
movaps 0x3ca17(%rip), %xmm3    # 0x665d0
xorpd %xmm2, %xmm2
jmp 0x29c2b
movq 0x5b42a(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x4013c(%rip), %rsi     # 0x69d0c
leaq 0x40153(%rip), %rdx     # 0x69d2a
movl $0x296d, %ecx           # imm = 0x296D
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x13960
punpcklwd %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
cvtdq2ps %xmm1, %xmm1
movd 0xc(%r15), %xmm3
punpcklwd %xmm0, %xmm3    # xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1],xmm3[2],xmm0[2],xmm3[3],xmm0[3]
cvtdq2ps %xmm3, %xmm2
divps %xmm1, %xmm2
movq 0x10(%r15), %xmm4
punpcklwd %xmm0, %xmm4    # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1],xmm4[2],xmm0[2],xmm4[3],xmm0[3]
paddd %xmm3, %xmm4
cvtdq2ps %xmm4, %xmm3
divps %xmm1, %xmm3
movaps 0x10(%rsp), %xmm0
movaps %xmm0, %xmm1
addps (%rsp), %xmm1
movq %r14, %rdi
movl %ebx, %esi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x29c91
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk__next
NK_API const struct nk_command*
nk__next(struct nk_context *ctx, const struct nk_command *cmd)
{
    nk_byte *buffer;
    const struct nk_command *next;
    NK_ASSERT(ctx);
    if (!ctx || !cmd || !ctx->count) return 0;
    if (cmd->next >= ctx->memory.allocated) return 0;
    buffer = (nk_byte*)ctx->memory.memory.ptr;
    next = nk_ptr_add_const(struct nk_command, buffer, cmd->next);
    return next;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2aa38
testq %rsi, %rsi
je 0x2aa34
cmpl $0x0, 0x4790(%rdi)
je 0x2aa34
movq 0x8(%rsi), %rbx
cmpq 0x2560(%rdi), %rbx
jae 0x2aa34
addq 0x2548(%rdi), %rbx
jmp 0x2aa66
xorl %ebx, %ebx
jmp 0x2aa66
movq 0x5a5b1(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x3f2c3(%rip), %rsi     # 0x69d0c
leaq 0x3f2da(%rip), %rdx     # 0x69d2a
xorl %ebx, %ebx
movl $0x4ba4, %ecx           # imm = 0x4BA4
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: stbrp_setup_heuristic
STBRP_DEF void stbrp_setup_heuristic(stbrp_context *context, int heuristic)
{
   switch (context->init_mode) {
      case STBRP__INIT_skyline:
         STBRP_ASSERT(heuristic == STBRP_HEURISTIC_Skyline_BL_sortHeight || heuristic == STBRP_HEURISTIC_Skyline_BF_sortHeight);
         context->heuristic = heuristic;
         break;
      default:
         STBRP_ASSERT(0);
   }
}

// Assembly:
pushq %rax
cmpl $0x1, 0xc(%rdi)
jne 0x2aaa6
cmpl $0x2, %esi
jae 0x2aac5
movl %esi, 0x10(%rdi)
popq %rax
retq
leaq 0x3f3e0(%rip), %rdi     # 0x69e8d
leaq 0x3f276(%rip), %rsi     # 0x69d2a
leaq 0x3f2ec(%rip), %rcx     # 0x69da7
movl $0x2b3e, %edx           # imm = 0x2B3E
callq 0x12b10
leaq 0x3f272(%rip), %rdi     # 0x69d3e
leaq 0x3f257(%rip), %rsi     # 0x69d2a
leaq 0x3f2cd(%rip), %rcx     # 0x69da7
movl $0x2b3a, %edx           # imm = 0x2B3A
callq 0x12b10
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: stbrp_init_target
STBRP_DEF void stbrp_init_target(stbrp_context *context, int width, int height, stbrp_node *nodes, int num_nodes)
{
   int i;

   for (i=0; i < num_nodes-1; ++i)
      nodes[i].next = &nodes[i+1];
   nodes[i].next = NULL;
   context->init_mode = STBRP__INIT_skyline;
   context->heuristic = STBRP_HEURISTIC_Skyline_default;
   context->free_head = &nodes[0];
   context->active_head = &context->extra[0];
   context->width = width;
   context->height = height;
   context->num_nodes = num_nodes;
   stbrp_setup_allow_out_of_mem(context, 0);

   /*  node 0 is the full width, node 1 is the sentinel (lets us not store width explicitly) */
   context->extra[0].x = 0;
   context->extra[0].y = 0;
   context->extra[0].next = &context->extra[1];
   context->extra[1].x = (stbrp_coord) width;
   context->extra[1].y = (1<<30);
   context->extra[1].next = NULL;
}

// Assembly:
leal -0x1(%r8), %eax
xorl %r9d, %r9d
testl %eax, %eax
cmovgl %eax, %r9d
leaq 0x10(%rcx), %r10
movq %r9, %r11
subq $0x1, %r11
jb 0x2ab21
movq %r10, -0x8(%r10)
addq $0x10, %r10
jmp 0x2ab11
shlq $0x4, %r9
andq $0x0, 0x8(%rcx,%r9)
movq $0x1, 0xc(%rdi)
movq %rcx, 0x20(%rdi)
leaq 0x28(%rdi), %rcx
movq %rcx, 0x18(%rdi)
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movl %r8d, 0x14(%rdi)
addl %esi, %eax
cltd
idivl %r8d
movl %eax, 0x8(%rdi)
andq $0x0, 0x28(%rdi)
leaq 0x38(%rdi), %rax
movq %rax, 0x30(%rdi)
movl %esi, 0x38(%rdi)
movl $0x40000000, 0x3c(%rdi) # imm = 0x40000000
andq $0x0, 0x40(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: stbtt_GetKerningTableLength
STBTT_DEF int  stbtt_GetKerningTableLength(const stbtt_fontinfo *info)
{
   stbtt_uint8 *data = info->data + info->kern;

   /*  we only look at the first table. it must be 'horizontal' and format 0. */
   if (!info->kern)
      return 0;
   if (ttUSHORT(data+2) < 1) /*  number of tables, need at least 1 */
      return 0;
   if (ttUSHORT(data+8) != 1) /*  horizontal flag must be set in format */
      return 0;

   return ttUSHORT(data+10);
}

// Assembly:
movslq 0x2c(%rdi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x2bf1e
movq 0x8(%rdi), %rdx
movb 0x3(%rdx,%rcx), %sil
orb 0x2(%rdx,%rcx), %sil
je 0x2bf1e
movzwl 0x8(%rdx,%rcx), %esi
rolw $0x8, %si
cmpw $0x1, %si
jne 0x2bf1e
movzwl 0xa(%rdx,%rcx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: stbtt_GetKerningTable
STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo *info, stbtt_kerningentry* table, int table_length)
{
   stbtt_uint8 *data = info->data + info->kern;
   int k, length;

   /*  we only look at the first table. it must be 'horizontal' and format 0. */
   if (!info->kern)
      return 0;
   if (ttUSHORT(data+2) < 1) /*  number of tables, need at least 1 */
      return 0;
   if (ttUSHORT(data+8) != 1) /*  horizontal flag must be set in format */
      return 0;

   length = ttUSHORT(data+10);
   if (table_length < length)
      length = table_length;

   for (k = 0; k < length; k++)
   {
      table[k].glyph1 = ttUSHORT(data+18+(k*6));
      table[k].glyph2 = ttUSHORT(data+20+(k*6));
      table[k].advance = ttSHORT(data+22+(k*6));
   }

   return length;
}

// Assembly:
movslq 0x2c(%rdi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x2bfcb
movq 0x8(%rdi), %rdi
movb 0x3(%rdi,%rcx), %r8b
orb 0x2(%rdi,%rcx), %r8b
je 0x2bfcb
movzwl 0x8(%rdi,%rcx), %r8d
rolw $0x8, %r8w
cmpw $0x1, %r8w
jne 0x2bfcb
leaq (%rdi,%rcx), %rax
addq $0x17, %rax
movzwl -0xd(%rax), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
cmpl %edx, %ecx
cmovll %ecx, %edx
xorl %ecx, %ecx
testl %edx, %edx
movl $0x0, %edi
cmovgl %edx, %edi
imulq $0x6, %rdi, %rdi
cmpq %rcx, %rdi
je 0x2bfc9
movzwl -0x5(%rax,%rcx), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
movl %r8d, (%rsi,%rcx,2)
movzwl -0x3(%rax,%rcx), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
movl %r8d, 0x4(%rsi,%rcx,2)
movzbl -0x1(%rax,%rcx), %r8d
shll $0x8, %r8d
movzbl (%rax,%rcx), %r9d
movswl %r8w, %r8d
orl %r9d, %r8d
movl %r8d, 0x8(%rsi,%rcx,2)
addq $0x6, %rcx
jmp 0x2bf7c
movl %edx, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: stbtt_FindSVGDoc
STBTT_DEF stbtt_uint8 *stbtt_FindSVGDoc(const stbtt_fontinfo *info, int gl)
{
   int i;
   stbtt_uint8 *data = info->data;
   stbtt_uint8 *svg_doc_list = data + stbtt__get_svg((stbtt_fontinfo *) info);

   int numEntries = ttUSHORT(svg_doc_list);
   stbtt_uint8 *svg_docs = svg_doc_list + 2;

   for(i=0; i<numEntries; i++) {
      stbtt_uint8 *svg_doc = svg_docs + (12 * i);
      if ((gl >= ttUSHORT(svg_doc)) && (gl <= ttUSHORT(svg_doc + 2)))
         return svg_doc;
   }
   return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq 0x8(%rdi), %r14
movl 0x34(%rdi), %eax
testl %eax, %eax
jns 0x2c6c7
movq %rdi, %r15
movl 0x10(%rdi), %esi
leaq 0x3dbdc(%rip), %rdx     # 0x6a27c
movq %r14, %rdi
callq 0x2c543
testl %eax, %eax
je 0x2c6c1
movl %eax, %ebp
movl %eax, %eax
leaq (%r14,%rax), %rdi
addq $0x2, %rdi
callq 0x2b2ba
addl %ebp, %eax
jmp 0x2c6c3
xorl %eax, %eax
movl %eax, 0x34(%r15)
cltq
addq %r14, %rax
addq $0x2, %rax
movzwl -0x2(%rax), %ecx
rolw $0x8, %cx
movzwl %cx, %ecx
subq $0x1, %rcx
jb 0x2c704
movzwl (%rax), %edx
rolw $0x8, %dx
movzwl %dx, %edx
cmpl %ebx, %edx
jg 0x2c6fe
movzwl 0x2(%rax), %edx
rolw $0x8, %dx
movzwl %dx, %edx
cmpl %ebx, %edx
jae 0x2c706
addq $0xc, %rax
jmp 0x2c6db
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: stbtt_GetGlyphSVG
STBTT_DEF int stbtt_GetGlyphSVG(const stbtt_fontinfo *info, int gl, const char **svg)
{
   stbtt_uint8 *data = info->data;
   stbtt_uint8 *svg_doc;

   if (info->svg == 0)
      return 0;

   svg_doc = stbtt_FindSVGDoc(info, gl);
   if (svg_doc != NULL) {
      *svg = (char *) data + info->svg + ttULONG(svg_doc + 4);
      return ttULONG(svg_doc + 8);
   } else {
      return 0;
   }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x0, 0x34(%rdi)
je 0x2c765
movq %rdx, %rbx
movq %rdi, %r15
movq 0x8(%rdi), %r12
callq 0x12bf0
testq %rax, %rax
je 0x2c765
movq %rax, %r14
movslq 0x34(%r15), %rax
addq %rax, %r12
leaq 0x4(%r14), %rdi
callq 0x2b2ba
movl %eax, %eax
addq %r12, %rax
movq %rax, (%rbx)
addq $0x8, %r14
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2b2ba
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_find_glyph
NK_API const struct nk_font_glyph*
nk_font_find_glyph(struct nk_font *font, nk_rune unicode)
{
    int i = 0;
    int count;
    int total_glyphs = 0;
    const struct nk_font_glyph *glyph = 0;
    const struct nk_font_config *iter = 0;

    NK_ASSERT(font);
    NK_ASSERT(font->glyphs);
    NK_ASSERT(font->info.ranges);
    if (!font || !font->glyphs) return 0;

    glyph = font->fallback;
    iter = font->config;
    do {count = nk_range_count(iter->range);
        for (i = 0; i < count; ++i) {
            nk_rune f = iter->range[(i*2)+0];
            nk_rune t = iter->range[(i*2)+1];
            int diff = (int)((t - f) + 1);
            if (unicode >= f && unicode <= t)
                return &font->glyphs[((nk_rune)total_glyphs + (unicode - f))];
            total_glyphs += diff;
        }
    } while ((iter = iter->n) != font->config);
    return glyph;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x30d55
movq 0x542c0(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x38fd2(%rip), %rsi     # 0x69d0c
leaq 0x38fe9(%rip), %rdx     # 0x69d2a
movl $0x429a, %ecx           # imm = 0x429A
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x58(%rbx)
jne 0x30d88
movq 0x5428d(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x38f9f(%rip), %rsi     # 0x69d0c
leaq 0x38fb6(%rip), %rdx     # 0x69d2a
movl $0x429b, %ecx           # imm = 0x429B
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x48(%rbx)
jne 0x30dbb
movq 0x5425a(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x38f6c(%rip), %rsi     # 0x69d0c
leaq 0x38f83(%rip), %rdx     # 0x69d2a
movl $0x429c, %ecx           # imm = 0x429C
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
xorl %r15d, %r15d
cmpq $0x0, 0x58(%rbx)
je 0x30e23
movq 0x60(%rbx), %r14
movq 0x78(%rbx), %r13
xorl %r12d, %r12d
movq 0x30(%r13), %rdi
callq 0x30e38
testl %eax, %eax
cmovlel %r15d, %eax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x30e07
movq 0x30(%r13), %rsi
movl (%rsi,%rcx,8), %edx
movl 0x4(%rsi,%rcx,8), %esi
cmpl %ebp, %edx
ja 0x30df9
cmpl %ebp, %esi
jae 0x30e13
subl %edx, %r12d
addl %esi, %r12d
incl %r12d
incq %rcx
jmp 0x30de1
movq 0x48(%r13), %r13
cmpq 0x78(%rbx), %r13
jne 0x30dd0
jmp 0x30e26
addl %ebp, %r12d
subl %edx, %r12d
imulq $0x30, %r12, %r14
addq 0x58(%rbx), %r14
jmp 0x30e26
xorl %r14d, %r14d
movq %r14, %rax
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_range_count
NK_INTERN int
nk_range_count(const nk_rune *range)
{
    const nk_rune *iter = range;
    NK_ASSERT(range);
    if (!range) return 0;
    while (*(iter++) != 0);
    return (iter == range) ? 0 : (int)((iter - range)/2);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x30e5e
xorl %eax, %eax
cmpl $0x0, (%rdi,%rax)
leaq 0x4(%rax), %rax
jne 0x30e43
sarq $0x2, %rax
pushq $0x2
popq %rcx
cqto
idivq %rcx
movq %rax, %rbx
jmp 0x30e8c
movq 0x5418b(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x38e9d(%rip), %rsi     # 0x69d0c
leaq 0x38eb4(%rip), %rdx     # 0x69d2a
xorl %ebx, %ebx
movl $0x40cd, %ecx           # imm = 0x40CD
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movl %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_font_config
NK_API struct nk_font_config
nk_font_config(float pixel_height)
{
    struct nk_font_config cfg;
    nk_zero_struct(cfg);
    cfg.ttf_blob = 0;
    cfg.ttf_size = 0;
    cfg.ttf_data_owned_by_atlas = 0;
    cfg.size = pixel_height;
    cfg.oversample_h = 3;
    cfg.oversample_v = 1;
    cfg.pixel_snap = 0;
    cfg.coord_type = NK_COORD_UV;
    cfg.spacing = nk_vec2(0,0);
    cfg.range = nk_font_default_glyph_ranges();
    cfg.merge_mode = 0;
    cfg.fallback_glyph = '?';
    cfg.font = 0;
    cfg.n = 0;
    return cfg;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movss %xmm0, 0xc(%rsp)
movq %rdi, %rbx
pushq $0x58
popq %rsi
callq 0x23ed0
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movl $0x1000000, 0x18(%rbx)  # imm = 0x1000000
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x20(%rbx)
movb $0x3, 0x1c(%rbx)
andl $0x0, 0x24(%rbx)
andq $0x0, 0x28(%rbx)
leaq 0x35cd7(%rip), %rax     # 0x66bb0
movq %rax, 0x30(%rbx)
movl $0x3f, 0x40(%rbx)
andq $0x0, 0x38(%rbx)
andq $0x0, 0x48(%rbx)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_atlas_init_default
NK_API void
nk_font_atlas_init_default(struct nk_font_atlas *atlas)
{
    NK_ASSERT(atlas);
    if (!atlas) return;
    nk_zero_struct(*atlas);
    atlas->temporary.userdata.ptr = 0;
    atlas->temporary.alloc = nk_malloc;
    atlas->temporary.free = nk_mfree;
    atlas->permanent.userdata.ptr = 0;
    atlas->permanent.alloc = nk_malloc;
    atlas->permanent.free = nk_mfree;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x30f34
movq %rdi, %rbx
movl $0x190, %esi            # imm = 0x190
callq 0x23ed0
andq $0x0, 0x28(%rbx)
leaq -0xd166(%rip), %rax     # 0x23db0
movq %rax, 0x30(%rbx)
leaq -0xd169(%rip), %rcx     # 0x23db8
movq %rcx, 0x38(%rbx)
andq $0x0, 0x10(%rbx)
movq %rax, 0x18(%rbx)
movq %rcx, 0x20(%rbx)
popq %rbx
retq
movq 0x540b5(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x38dc7(%rip), %rsi     # 0x69d0c
leaq 0x38dde(%rip), %rdx     # 0x69d2a
movl $0x440b, %ecx           # imm = 0x440B
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_atlas_init
NK_API void
nk_font_atlas_init(struct nk_font_atlas *atlas, struct nk_allocator *alloc)
{
    NK_ASSERT(atlas);
    NK_ASSERT(alloc);
    if (!atlas || !alloc) return;
    nk_zero_struct(*atlas);
    atlas->permanent = *alloc;
    atlas->temporary = *alloc;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
testq %rdi, %rdi
je 0x30fa1
testq %rbx, %rbx
je 0x30fda
movq %rdi, %r14
movl $0x190, %esi            # imm = 0x190
callq 0x23ed0
movq 0x10(%rbx), %rax
movq %rax, 0x20(%r14)
movups (%rbx), %xmm0
movups %xmm0, 0x10(%r14)
movups (%rbx), %xmm0
movups %xmm0, 0x28(%r14)
movq 0x10(%rbx), %rax
movq %rax, 0x38(%r14)
jmp 0x30fd2
movq 0x54048(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x38d5a(%rip), %rsi     # 0x69d0c
leaq 0x38d71(%rip), %rdx     # 0x69d2a
movl $0x4419, %ecx           # imm = 0x4419
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
testq %rbx, %rbx
je 0x30fda
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x5400f(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x38d21(%rip), %rsi     # 0x69d0c
leaq 0x38d38(%rip), %rdx     # 0x69d2a
movl $0x441a, %ecx           # imm = 0x441A
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_atlas_init_custom
NK_API void
nk_font_atlas_init_custom(struct nk_font_atlas *atlas,
    struct nk_allocator *permanent, struct nk_allocator *temporary)
{
    NK_ASSERT(atlas);
    NK_ASSERT(permanent);
    NK_ASSERT(temporary);
    if (!atlas || !permanent || !temporary) return;
    nk_zero_struct(*atlas);
    atlas->permanent = *permanent;
    atlas->temporary = *temporary;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testq %rdi, %rdi
jne 0x31051
movq 0x53fc6(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x38cd7(%rip), %rsi     # 0x69d0c
leaq 0x38cee(%rip), %rdx     # 0x69d2a
movl $0x4424, %ecx           # imm = 0x4424
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %r15, %r15
jne 0x31084
movq 0x53f93(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x38ca4(%rip), %rsi     # 0x69d0c
leaq 0x38cbb(%rip), %rdx     # 0x69d2a
movl $0x4425, %ecx           # imm = 0x4425
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %rbx, %rbx
je 0x310d3
testq %r15, %r15
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x310c7
movl $0x190, %esi            # imm = 0x190
movq %r14, %rdi
callq 0x23ed0
movq 0x10(%r15), %rax
movq %rax, 0x20(%r14)
movups (%r15), %xmm0
movups %xmm0, 0x10(%r14)
movups (%rbx), %xmm0
movups %xmm0, 0x28(%r14)
movq 0x10(%rbx), %rax
movq %rax, 0x38(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x53f16(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x38c28(%rip), %rsi     # 0x69d0c
leaq 0x38c3f(%rip), %rdx     # 0x69d2a
movl $0x4426, %ecx           # imm = 0x4426
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_atlas_begin
NK_API void
nk_font_atlas_begin(struct nk_font_atlas *atlas)
{
    NK_ASSERT(atlas);
    NK_ASSERT(atlas->temporary.alloc && atlas->temporary.free);
    NK_ASSERT(atlas->permanent.alloc && atlas->permanent.free);
    if (!atlas || !atlas->permanent.alloc || !atlas->permanent.free ||
        !atlas->temporary.alloc || !atlas->temporary.free) return;
    if (atlas->glyphs) {
        atlas->permanent.free(atlas->permanent.userdata, atlas->glyphs);
        atlas->glyphs = 0;
    }
    if (atlas->pixel) {
        atlas->permanent.free(atlas->permanent.userdata, atlas->pixel);
        atlas->pixel = 0;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x31142
movq 0x53ed3(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x38be5(%rip), %rsi     # 0x69d0c
leaq 0x38bfc(%rip), %rdx     # 0x69d2a
movl $0x442f, %ecx           # imm = 0x442F
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x30(%rbx)
je 0x31150
cmpq $0x0, 0x38(%rbx)
jne 0x3117c
movq 0x53e99(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x38bab(%rip), %rsi     # 0x69d0c
leaq 0x38bc2(%rip), %rdx     # 0x69d2a
movl $0x4430, %ecx           # imm = 0x4430
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x18(%rbx)
je 0x3118a
cmpq $0x0, 0x20(%rbx)
jne 0x311bd
movq 0x53e5f(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x38b71(%rip), %rsi     # 0x69d0c
leaq 0x38b88(%rip), %rdx     # 0x69d2a
movl $0x4431, %ecx           # imm = 0x4431
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x18(%rbx)
je 0x31201
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x31201
cmpq $0x0, 0x30(%rbx)
je 0x31201
cmpq $0x0, 0x38(%rbx)
je 0x31201
movq 0x168(%rbx), %rsi
testq %rsi, %rsi
je 0x311ee
movq 0x10(%rbx), %rdi
callq *%rax
andq $0x0, 0x168(%rbx)
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x31201
movq 0x10(%rbx), %rdi
callq *0x20(%rbx)
andq $0x0, (%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_font_atlas_add_default
NK_API struct nk_font*
nk_font_atlas_add_default(struct nk_font_atlas *atlas,
    float pixel_height, const struct nk_font_config *config)
{
    NK_ASSERT(atlas);
    NK_ASSERT(atlas->temporary.alloc);
    NK_ASSERT(atlas->temporary.free);
    NK_ASSERT(atlas->permanent.alloc);
    NK_ASSERT(atlas->permanent.free);
    return nk_font_atlas_add_compressed_base85(atlas,
        nk_proggy_clean_ttf_compressed_data_base85, pixel_height, config);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movss %xmm0, 0xc(%rsp)
movq %rdi, %r14
testq %rdi, %rdi
jne 0x32396
movq 0x52c7f(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x37991(%rip), %rsi     # 0x69d0c
leaq 0x379a8(%rip), %rdx     # 0x69d2a
movl $0x450d, %ecx           # imm = 0x450D
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
cmpq $0x0, 0x30(%r14)
jne 0x323c9
movq 0x52c4c(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x3795e(%rip), %rsi     # 0x69d0c
leaq 0x37975(%rip), %rdx     # 0x69d2a
movl $0x450e, %ecx           # imm = 0x450E
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
cmpq $0x0, 0x38(%r14)
jne 0x323fc
movq 0x52c19(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x3792b(%rip), %rsi     # 0x69d0c
leaq 0x37942(%rip), %rdx     # 0x69d2a
movl $0x450f, %ecx           # imm = 0x450F
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
cmpq $0x0, 0x18(%r14)
jne 0x3242f
movq 0x52be6(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x378f8(%rip), %rsi     # 0x69d0c
leaq 0x3790f(%rip), %rdx     # 0x69d2a
movl $0x4510, %ecx           # imm = 0x4510
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
cmpq $0x0, 0x20(%r14)
jne 0x32462
movq 0x52bb3(%rip), %r15     # 0x84ff0
movq (%r15), %rdi
leaq 0x378c5(%rip), %rsi     # 0x69d0c
leaq 0x378dc(%rip), %rdx     # 0x69d2a
movl $0x4511, %ecx           # imm = 0x4511
xorl %eax, %eax
callq 0x12ea0
movq (%r15), %rdi
callq 0x13960
leaq 0x347d7(%rip), %rsi     # 0x66c40
movq %r14, %rdi
movss 0xc(%rsp), %xmm0
movq %rbx, %rdx
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x12860
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_memset
NK_LIB void
nk_memset(void *ptr, int c0, nk_size size)
{
    #define nk_word unsigned
    #define nk_wsize sizeof(nk_word)
    #define nk_wmask (nk_wsize - 1)
    nk_byte *dst = (nk_byte*)ptr;
    unsigned c = 0;
    nk_size t = 0;

    if ((c = (nk_byte)c0) != 0) {
        c = (c << 8) | c; /* at least 16-bits  */
        if (sizeof(unsigned int) > 2)
            c = (c << 16) | c; /* at least 32-bits*/
    }

    /* too small of a word count */
    dst = (nk_byte*)ptr;
    if (size < 3 * nk_wsize) {
        while (size--) *dst++ = (nk_byte)c0;
        return;
    }

    /* align destination */
    if ((t = NK_PTR_TO_UINT(dst) & nk_wmask) != 0) {
        t = nk_wsize -t;
        size -= t;
        do {
            *dst++ = (nk_byte)c0;
        } while (--t != 0);
    }

    /* fill word */
    t = size / nk_wsize;
    do {
        *(nk_word*)((void*)dst) = c;
        dst += nk_wsize;
    } while (--t != 0);

    /* fill trailing bytes */
    t = (size & nk_wmask);
    if (t != 0) {
        do {
            *dst++ = (nk_byte)c0;
        } while (--t != 0);
    }

    #undef nk_word
    #undef nk_wsize
    #undef nk_wmask
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpq $0xb, %rsi
ja 0x338d6
xorl %eax, %eax
cmpq %rax, %rbx
je 0x33935
movb $0x0, (%r14,%rax)
incq %rax
jmp 0x338c7
movq %r14, %r12
andq $0x3, %r12
je 0x33900
pushq $0x4
popq %r15
subq %r12, %r15
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x12c10
subq %r15, %rbx
negq %r12
addq %r12, %r14
addq $0x4, %r14
movq %rbx, %r15
andq $-0x4, %r15
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x12c10
andq $0x3, %rbx
je 0x33935
addq %r15, %r14
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x12c10
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_atlas_end
NK_API void
nk_font_atlas_end(struct nk_font_atlas *atlas, nk_handle texture,
    struct nk_draw_null_texture *tex_null)
{
    int i = 0;
    struct nk_font *font_iter;
    NK_ASSERT(atlas);
    if (!atlas) {
        if (!tex_null) return;
        tex_null->texture = texture;
        tex_null->uv = nk_vec2(0.5f,0.5f);
    }
    if (tex_null) {
        tex_null->texture = texture;
        tex_null->uv.x = (atlas->custom.x + 0.5f)/(float)atlas->tex_width;
        tex_null->uv.y = (atlas->custom.y + 0.5f)/(float)atlas->tex_height;
    }
    for (font_iter = atlas->fonts; font_iter; font_iter = font_iter->next) {
        font_iter->texture = texture;
#ifdef NK_INCLUDE_VERTEX_BUFFER_OUTPUT
        font_iter->handle.texture = texture;
#endif
    }
    for (i = 0; i < NK_CURSOR_COUNT; ++i)
        atlas->cursors[i].img.handle = texture;

    atlas->temporary.free(atlas->temporary.userdata, atlas->pixel);
    atlas->pixel = 0;
    atlas->tex_width = 0;
    atlas->tex_height = 0;
    atlas->custom.x = 0;
    atlas->custom.y = 0;
    atlas->custom.w = 0;
    atlas->custom.h = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
testq %rdi, %rdi
je 0x33962
testq %r15, %r15
jne 0x339a3
jmp 0x339ce
movq 0x51687(%rip), %r12     # 0x84ff0
movq (%r12), %rdi
leaq 0x36398(%rip), %rsi     # 0x69d0c
leaq 0x363af(%rip), %rdx     # 0x69d2a
movl $0x4599, %ecx           # imm = 0x4599
xorl %eax, %eax
callq 0x12ea0
movq (%r12), %rdi
callq 0x13960
testq %r15, %r15
je 0x33a11
movsd 0x32c23(%rip), %xmm0    # 0x665c0
movsd %xmm0, 0x8(%r15)
movq %r14, (%r15)
movq 0x40(%rbx), %xmm0
punpcklwd %xmm0, %xmm0    # xmm0 = xmm0[0,0,1,1,2,2,3,3]
psrad $0x10, %xmm0
cvtdq2ps %xmm0, %xmm0
addps 0x32c02(%rip), %xmm0    # 0x665c0
movsd 0x8(%rbx), %xmm1
cvtdq2ps %xmm1, %xmm1
divps %xmm1, %xmm0
movlps %xmm0, 0x8(%r15)
leaq 0x178(%rbx), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x339e7
movq %r14, 0x70(%rax)
movq %r14, 0x28(%rax)
jmp 0x339d5
pushq $0x48
popq %rax
cmpq $0x160, %rax            # imm = 0x160
je 0x339fc
movq %r14, (%rbx,%rax)
addq $0x28, %rax
jmp 0x339ea
movq (%rbx), %rsi
movq 0x28(%rbx), %rdi
callq *0x38(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x40(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_atlas_cleanup
NK_API void
nk_font_atlas_cleanup(struct nk_font_atlas *atlas)
{
    NK_ASSERT(atlas);
    NK_ASSERT(atlas->temporary.alloc);
    NK_ASSERT(atlas->temporary.free);
    NK_ASSERT(atlas->permanent.alloc);
    NK_ASSERT(atlas->permanent.free);
    if (!atlas || !atlas->permanent.alloc || !atlas->permanent.free) return;
    if (atlas->config) {
        struct nk_font_config *iter;
        for (iter = atlas->config; iter; iter = iter->next) {
            struct nk_font_config *i;
            for (i = iter->n; i != iter; i = i->n) {
                atlas->permanent.free(atlas->permanent.userdata, i->ttf_blob);
                i->ttf_blob = 0;
            }
            atlas->permanent.free(atlas->permanent.userdata, iter->ttf_blob);
            iter->ttf_blob = 0;
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x33a56
movq 0x515bf(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x362d1(%rip), %rsi     # 0x69d0c
leaq 0x362e8(%rip), %rdx     # 0x69d2a
movl $0x45b9, %ecx           # imm = 0x45B9
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x30(%rbx)
jne 0x33a89
movq 0x5158c(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x3629e(%rip), %rsi     # 0x69d0c
leaq 0x362b5(%rip), %rdx     # 0x69d2a
movl $0x45ba, %ecx           # imm = 0x45BA
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x38(%rbx)
jne 0x33abc
movq 0x51559(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x3626b(%rip), %rsi     # 0x69d0c
leaq 0x36282(%rip), %rdx     # 0x69d2a
movl $0x45bb, %ecx           # imm = 0x45BB
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x18(%rbx)
jne 0x33aef
movq 0x51526(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x36238(%rip), %rsi     # 0x69d0c
leaq 0x3624f(%rip), %rdx     # 0x69d2a
movl $0x45bc, %ecx           # imm = 0x45BC
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x20(%rbx)
jne 0x33b22
movq 0x514f3(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x36205(%rip), %rsi     # 0x69d0c
leaq 0x3621c(%rip), %rdx     # 0x69d2a
movl $0x45bd, %ecx           # imm = 0x45BD
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
cmpq $0x0, 0x18(%rbx)
je 0x33b72
cmpq $0x0, 0x20(%rbx)
je 0x33b72
movq 0x180(%rbx), %r14
testq %r14, %r14
je 0x33b72
testq %r14, %r14
je 0x33b72
movq %r14, %r15
movq 0x48(%r15), %r15
movq 0x10(%rbx), %rdi
movq 0x20(%rbx), %rax
cmpq %r14, %r15
je 0x33b62
movq 0x8(%r15), %rsi
callq *%rax
andq $0x0, 0x8(%r15)
jmp 0x33b44
movq 0x8(%r14), %rsi
callq *%rax
andq $0x0, 0x8(%r14)
movq (%r14), %r14
jmp 0x33b3c
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_begin
NK_API void
nk_input_begin(struct nk_context *ctx)
{
    int i;
    struct nk_input *in;
    NK_ASSERT(ctx);
    if (!ctx) return;
    in = &ctx->input;
    for (i = 0; i < NK_BUTTON_MAX; ++i)
        in->mouse.buttons[i].clicked = 0;

    in->keyboard.text_len = 0;
    in->mouse.scroll_delta = nk_vec2(0,0);
    in->mouse.prev.x = in->mouse.pos.x;
    in->mouse.prev.y = in->mouse.pos.y;
    in->mouse.delta.x = 0;
    in->mouse.delta.y = 0;
    for (i = 0; i < NK_KEY_MAX; i++)
        in->keyboard.keys[i].clicked = 0;
}

// Assembly:
testq %rdi, %rdi
je 0x33dae
xorl %eax, %eax
cmpq $0x40, %rax
je 0x33d7d
andl $0x0, 0x108(%rdi,%rax)
addq $0x10, %rax
jmp 0x33d69
andl $0x0, 0x100(%rdi)
andq $0x0, 0x15c(%rdi)
movsd 0x144(%rdi), %xmm0
movups %xmm0, 0x14c(%rdi)
xorl %eax, %eax
cmpq $0x1e, %rax
je 0x33dad
andl $0x0, 0x4(%rdi,%rax,8)
incq %rax
jmp 0x33d9d
retq
pushq %rbx
movq 0x5123a(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x35f4c(%rip), %rsi     # 0x69d0c
leaq 0x35f63(%rip), %rdx     # 0x69d2a
movl $0x4603, %ecx           # imm = 0x4603
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_end
NK_API void
nk_input_end(struct nk_context *ctx)
{
    struct nk_input *in;
    NK_ASSERT(ctx);
    if (!ctx) return;
    in = &ctx->input;
    if (in->mouse.grab)
        in->mouse.grab = 0;
    if (in->mouse.ungrab) {
        in->mouse.grabbed = 0;
        in->mouse.ungrab = 0;
        in->mouse.grab = 0;
    }
}

// Assembly:
testq %rdi, %rdi
je 0x33e0a
cmpb $0x0, 0x164(%rdi)
je 0x33df1
movb $0x0, 0x164(%rdi)
cmpb $0x0, 0x166(%rdi)
je 0x33e09
movb $0x0, 0x166(%rdi)
andw $0x0, 0x164(%rdi)
retq
pushq %rbx
movq 0x511de(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x35ef0(%rip), %rsi     # 0x69d0c
leaq 0x35f07(%rip), %rdx     # 0x69d2a
movl $0x4616, %ecx           # imm = 0x4616
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_motion
NK_API void
nk_input_motion(struct nk_context *ctx, int x, int y)
{
    struct nk_input *in;
    NK_ASSERT(ctx);
    if (!ctx) return;
    in = &ctx->input;
    in->mouse.pos.x = (float)x;
    in->mouse.pos.y = (float)y;
    in->mouse.delta.x = in->mouse.pos.x - in->mouse.prev.x;
    in->mouse.delta.y = in->mouse.pos.y - in->mouse.prev.y;
}

// Assembly:
testq %rdi, %rdi
je 0x33e66
movd %edx, %xmm0
movd %esi, %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2ps %xmm1, %xmm0
movlps %xmm0, 0x144(%rdi)
movsd 0x14c(%rdi), %xmm1
subps %xmm1, %xmm0
movlps %xmm0, 0x154(%rdi)
retq
pushq %rbx
movq 0x51182(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x35e94(%rip), %rsi     # 0x69d0c
leaq 0x35eab(%rip), %rdx     # 0x69d2a
movl $0x4625, %ecx           # imm = 0x4625
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_key
NK_API void
nk_input_key(struct nk_context *ctx, enum nk_keys key, nk_bool down)
{
    struct nk_input *in;
    NK_ASSERT(ctx);
    if (!ctx) return;
    in = &ctx->input;
#ifdef NK_KEYSTATE_BASED_INPUT
    if (in->keyboard.keys[key].down != down)
        in->keyboard.keys[key].clicked++;
#else
    in->keyboard.keys[key].clicked++;
#endif
    in->keyboard.keys[key].down = down;
}

// Assembly:
testq %rdi, %rdi
je 0x33ea8
movl %esi, %eax
cmpl %edx, (%rdi,%rax,8)
je 0x33ea4
incl 0x4(%rdi,%rax,8)
movl %edx, (%rdi,%rax,8)
retq
pushq %rbx
movq 0x51140(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x35e52(%rip), %rsi     # 0x69d0c
leaq 0x35e69(%rip), %rdx     # 0x69d2a
movl $0x4631, %ecx           # imm = 0x4631
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_button
NK_API void
nk_input_button(struct nk_context *ctx, enum nk_buttons id, int x, int y, nk_bool down)
{
    struct nk_mouse_button *btn;
    struct nk_input *in;
    NK_ASSERT(ctx);
    if (!ctx) return;
    in = &ctx->input;
    if (in->mouse.buttons[id].down == down) return;

    btn = &in->mouse.buttons[id];
    btn->clicked_pos.x = (float)x;
    btn->clicked_pos.y = (float)y;
    btn->down = down;
    btn->clicked++;

    /* Fix Click-Drag for touch events. */
    in->mouse.delta.x = 0;
    in->mouse.delta.y = 0;
#ifdef NK_BUTTON_TRIGGER_ON_RELEASE
    if (down == 1 && id == NK_BUTTON_LEFT)
    {
        in->mouse.down_pos.x = btn->clicked_pos.x;
        in->mouse.down_pos.y = btn->clicked_pos.y;
    }
#endif
}

// Assembly:
testq %rdi, %rdi
je 0x33f16
movl %esi, %eax
shlq $0x4, %rax
cmpl %r8d, 0x104(%rdi,%rax)
je 0x33f15
addq %rdi, %rax
addq $0x104, %rax            # imm = 0x104
movd %ecx, %xmm0
movd %edx, %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2ps %xmm1, %xmm0
movlps %xmm0, 0x8(%rax)
movl %r8d, (%rax)
incl 0x4(%rax)
andq $0x0, 0x154(%rdi)
retq
pushq %rbx
movq 0x510d2(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x35de4(%rip), %rsi     # 0x69d0c
leaq 0x35dfb(%rip), %rdx     # 0x69d2a
movl $0x4641, %ecx           # imm = 0x4641
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_glyph
NK_API void
nk_input_glyph(struct nk_context *ctx, const nk_glyph glyph)
{
    int len = 0;
    nk_rune unicode;
    struct nk_input *in;

    NK_ASSERT(ctx);
    if (!ctx) return;
    in = &ctx->input;

    len = nk_utf_decode(glyph, &unicode, NK_UTF_SIZE);
    if (len && ((in->keyboard.text_len + len) < NK_INPUT_MAX)) {
        nk_utf_encode(unicode, &in->keyboard.text[in->keyboard.text_len],
            NK_INPUT_MAX - in->keyboard.text_len);
        in->keyboard.text_len += len;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x33fe8
movq %rdi, %rbx
leaq 0x4(%rsp), %rax
pushq $0x4
popq %rdx
movq %rsi, %rdi
movq %rax, %rsi
callq 0x13020
testl %eax, %eax
je 0x33fe0
movl %eax, %r14d
movslq 0x100(%rbx), %rax
leal (%rax,%r14), %ecx
cmpl $0xf, %ecx
jg 0x33fe0
movl 0x4(%rsp), %edi
leaq (%rbx,%rax), %rsi
addq $0xf0, %rsi
pushq $0x10
popq %rdx
subl %eax, %edx
callq 0x12f70
addl %r14d, 0x100(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x51001(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x35d13(%rip), %rsi     # 0x69d0c
leaq 0x35d2a(%rip), %rdx     # 0x69d2a
movl $0x4666, %ecx           # imm = 0x4666
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_char
NK_API void
nk_input_char(struct nk_context *ctx, char c)
{
    nk_glyph glyph;
    NK_ASSERT(ctx);
    if (!ctx) return;
    glyph[0] = c;
    nk_input_glyph(ctx, glyph);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x3403b
leaq 0xc(%rsp), %rax
movb %sil, (%rax)
movq %rax, %rsi
callq 0x12050
addq $0x10, %rsp
popq %rbx
retq
movq 0x50fae(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x35cc0(%rip), %rsi     # 0x69d0c
leaq 0x35cd7(%rip), %rdx     # 0x69d2a
movl $0x4675, %ecx           # imm = 0x4675
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_unicode
NK_API void
nk_input_unicode(struct nk_context *ctx, nk_rune unicode)
{
    nk_glyph rune;
    NK_ASSERT(ctx);
    if (!ctx) return;
    nk_utf_encode(unicode, rune, NK_UTF_SIZE);
    nk_input_glyph(ctx, rune);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3409d
movq %rdi, %rbx
leaq 0x4(%rsp), %r14
pushq $0x4
popq %rdx
movl %esi, %edi
movq %r14, %rsi
callq 0x12f70
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12050
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x50f4c(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x35c5e(%rip), %rsi     # 0x69d0c
leaq 0x35c75(%rip), %rdx     # 0x69d2a
movl $0x467e, %ecx           # imm = 0x467E
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_has_mouse_click
NK_API nk_bool
nk_input_has_mouse_click(const struct nk_input *i, enum nk_buttons id)
{
    const struct nk_mouse_button *btn;
    if (!i) return nk_false;
    btn = &i->mouse.buttons[id];
    return (btn->clicked && btn->down == nk_false) ? nk_true : nk_false;
}

// Assembly:
xorl %eax, %eax
testq %rdi, %rdi
je 0x340f9
movl %esi, %ecx
shlq $0x4, %rcx
cmpl $0x0, 0x108(%rdi,%rcx)
je 0x340f9
addq %rdi, %rcx
addq $0x104, %rcx            # imm = 0x104
xorl %eax, %eax
cmpl $0x0, (%rcx)
sete %al
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_has_mouse_click_down_in_rect
NK_API nk_bool
nk_input_has_mouse_click_down_in_rect(const struct nk_input *i, enum nk_buttons id,
    struct nk_rect b, nk_bool down)
{
    const struct nk_mouse_button *btn;
    if (!i) return nk_false;
    btn = &i->mouse.buttons[id];
    return nk_input_has_mouse_click_in_rect(i, id, b) && (btn->down == down);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %ebp, %ebp
testq %rdi, %rdi
je 0x341d6
movl %edx, %ebx
movl %esi, %r15d
movq %rdi, %r14
callq 0x120c0
testl %eax, %eax
je 0x341d6
movl %r15d, %eax
shlq $0x4, %rax
xorl %ebp, %ebp
cmpl %ebx, 0x104(%r14,%rax)
sete %bpl
movl %ebp, %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_input_is_mouse_click_in_rect
NK_API nk_bool
nk_input_is_mouse_click_in_rect(const struct nk_input *i, enum nk_buttons id,
    struct nk_rect b)
{
    const struct nk_mouse_button *btn;
    if (!i) return nk_false;
    btn = &i->mouse.buttons[id];
    return (nk_input_has_mouse_click_down_in_rect(i, id, b, nk_false) &&
            btn->clicked) ? nk_true : nk_false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x34216
movl %esi, %r14d
movq %rdi, %rbx
xorl %ebp, %ebp
xorl %edx, %edx
callq 0x12750
testl %eax, %eax
je 0x34218
movl %r14d, %eax
shlq $0x4, %rax
xorl %ebp, %ebp
cmpl $0x0, 0x108(%rbx,%rax)
setne %bpl
jmp 0x34218
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_is_mouse_click_down_in_rect
NK_API nk_bool
nk_input_is_mouse_click_down_in_rect(const struct nk_input *i, enum nk_buttons id,
    struct nk_rect b, nk_bool down)
{
    const struct nk_mouse_button *btn;
    if (!i) return nk_false;
    btn = &i->mouse.buttons[id];
    return (nk_input_has_mouse_click_down_in_rect(i, id, b, down) &&
            btn->clicked) ? nk_true : nk_false;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
xorl %ebx, %ebx
testq %rdi, %rdi
je 0x3424c
movl %esi, %ebp
movq %rdi, %r14
callq 0x12750
testl %eax, %eax
je 0x3424c
movl %ebp, %eax
shlq $0x4, %rax
xorl %ebx, %ebx
cmpl $0x0, 0x108(%r14,%rax)
setne %bl
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_any_mouse_click_in_rect
NK_API nk_bool
nk_input_any_mouse_click_in_rect(const struct nk_input *in, struct nk_rect b)
{
    int i, down = 0;
    for (i = 0; i < NK_BUTTON_MAX; ++i)
        down = down || nk_input_is_mouse_click_in_rect(in, (enum nk_buttons)i, b);
    return down;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %rdi, %rbx
xorl %ebp, %ebp
pushq $0x1
popq %r14
xorl %eax, %eax
cmpl $0x4, %ebp
je 0x34292
testl %eax, %eax
movl %r14d, %eax
jne 0x3428e
movq %rbx, %rdi
movl %ebp, %esi
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
callq 0x13620
incl %ebp
jmp 0x3426f
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_is_mouse_pressed
NK_API nk_bool
nk_input_is_mouse_pressed(const struct nk_input *i, enum nk_buttons id)
{
    const struct nk_mouse_button *b;
    if (!i) return nk_false;
    b = &i->mouse.buttons[id];
    if (b->down && b->clicked)
        return nk_true;
    return nk_false;
}

// Assembly:
xorl %eax, %eax
testq %rdi, %rdi
je 0x343b3
movl %esi, %ecx
shlq $0x4, %rcx
cmpl $0x0, 0x104(%rdi,%rcx)
je 0x343b3
addq %rdi, %rcx
addq $0x104, %rcx            # imm = 0x104
cmpl $0x0, 0x4(%rcx)
je 0x343b3
pushq $0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_input_is_key_pressed
NK_API nk_bool
nk_input_is_key_pressed(const struct nk_input *i, enum nk_keys key)
{
    const struct nk_key *k;
    if (!i) return nk_false;
    k = &i->keyboard.keys[key];
    if ((k->down && k->clicked) || (!k->down && k->clicked >= 2))
        return nk_true;
    return nk_false;
}

// Assembly:
xorl %eax, %eax
testq %rdi, %rdi
je 0x34400
movl %esi, %ecx
cmpl $0x0, (%rdi,%rcx,8)
movl 0x4(%rdi,%rcx,8), %ecx
je 0x343fb
testl %ecx, %ecx
je 0x34400
pushq $0x1
popq %rax
retq
cmpl $0x1, %ecx
ja 0x343f7
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_style_set_font
NK_API void
nk_style_set_font(struct nk_context *ctx, const struct nk_user_font *font)
{
    struct nk_style *style;
    NK_ASSERT(ctx);

    if (!ctx) return;
    style = &ctx->style;
    style->font = font;
    ctx->stacks.fonts.head = 0;
    if (ctx->current)
        nk_layout_reset_min_row_height(ctx);
}

// Assembly:
testq %rdi, %rdi
je 0x3594a
movq %rsi, 0x168(%rdi)
andl $0x0, 0x2fc8(%rdi)
cmpq $0x0, 0x4780(%rdi)
jne 0x13df0
retq
pushq %rbx
movq 0x4f69e(%rip), %rbx     # 0x84ff0
movq (%rbx), %rdi
leaq 0x343b0(%rip), %rsi     # 0x69d0c
leaq 0x343c7(%rip), %rdx     # 0x69d2a
movl $0x49cb, %ecx           # imm = 0x49CB
xorl %eax, %eax
callq 0x12ea0
movq (%rbx), %rdi
popq %rbx
jmp 0x13960
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_layout_reset_min_row_height
NK_API void
nk_layout_reset_min_row_height(struct nk_context *ctx)
{
    struct nk_window *win;
    struct nk_panel *layout;

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

    win = ctx->current;
    layout = win->layout;
    layout->row.min_height = ctx->style.font->height;
    layout->row.min_height += ctx->style.text.padding.y*2;
    layout->row.min_height += ctx->style.window.min_row_height_padding*2;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x359b0
movq 0x4f665(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x34377(%rip), %rsi     # 0x69d0c
leaq 0x3438e(%rip), %rdx     # 0x69d2a
movl $0x54d6, %ecx           # imm = 0x54D6
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
jne 0x359ef
movq 0x4f62d(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x3433f(%rip), %rsi     # 0x69d0c
leaq 0x34356(%rip), %rdx     # 0x69d2a
movl $0x54d7, %ecx           # imm = 0x54D7
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
cmpq $0x0, 0xa8(%rax)
jne 0x35a31
movq 0x4f5f0(%rip), %r14     # 0x84ff0
movq (%r14), %rdi
leaq 0x34302(%rip), %rsi     # 0x69d0c
leaq 0x34319(%rip), %rdx     # 0x69d2a
movl $0x54d8, %ecx           # imm = 0x54D8
xorl %eax, %eax
callq 0x12ea0
movq (%r14), %rdi
callq 0x13960
movq 0x4780(%rbx), %rax
testq %rax, %rax
je 0x35a6a
movq 0xa8(%rax), %rax
testq %rax, %rax
je 0x35a6a
movq 0x168(%rbx), %rcx
movss 0x1c4(%rbx), %xmm0
addss %xmm0, %xmm0
addss 0x8(%rcx), %xmm0
movss 0x24ac(%rbx), %xmm1
addss %xmm1, %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x7c(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq