LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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:
cmpl $0x2, %r8d
jl 0x2c811
leal -0x1(%r8), %r9d
leaq 0x10(%rcx), %r10
xorl %eax, %eax
incq %rax
movq %r10, -0x8(%r10)
addq $0x10, %r10
cmpq %rax, %r9
jne 0x2c7ff
jmp 0x2c813
xorl %eax, %eax
shlq $0x4, %rax
xorl %r9d, %r9d
movq %r9, 0x8(%rcx,%rax)
movq $0x1, 0xc(%rdi)
movq %rcx, 0x20(%rdi)
leaq 0x28(%rdi), %rax
movq %rax, 0x18(%rdi)
movl %esi, (%rdi)
movl %edx, 0x4(%rdi)
movl %r8d, 0x14(%rdi)
leal (%r8,%rsi), %eax
decl %eax
cltd
idivl %r8d
movl %eax, 0x8(%rdi)
movq %r9, 0x28(%rdi)
leaq 0x38(%rdi), %rax
movq %rax, 0x30(%rdi)
movl %esi, 0x38(%rdi)
movl $0x40000000, 0x3c(%rdi) # imm = 0x40000000
movq %r9, 0x40(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x2ddc0
movq 0x8(%rdi), %rdx
movb 0x3(%rdx,%rcx), %sil
orb 0x2(%rdx,%rcx), %sil
je 0x2ddc0
movzwl 0x8(%rdx,%rcx), %esi
rolw $0x8, %si
cmpw $0x1, %si
jne 0x2ddc0
movzwl 0xa(%rdx,%rcx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x2de6c
movq 0x8(%rdi), %rdi
movb 0x3(%rdi,%rcx), %r8b
orb 0x2(%rdi,%rcx), %r8b
je 0x2de6c
movzwl 0x8(%rdi,%rcx), %r8d
rolw $0x8, %r8w
cmpw $0x1, %r8w
jne 0x2de6c
movzwl 0xa(%rdi,%rcx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
cmpl %edx, %eax
cmovll %eax, %edx
testl %edx, %edx
jle 0x2de6a
movl %edx, %r8d
leaq (%rcx,%rdi), %rax
addq $0x17, %rax
addq %r8, %r8
leaq (%r8,%r8,2), %rcx
xorl %edi, %edi
movzwl -0x5(%rax,%rdi), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
movl %r8d, (%rsi,%rdi,2)
movzwl -0x3(%rax,%rdi), %r8d
rolw $0x8, %r8w
movzwl %r8w, %r8d
movl %r8d, 0x4(%rsi,%rdi,2)
movzbl -0x1(%rax,%rdi), %r8d
shll $0x8, %r8d
movzbl (%rax,%rdi), %r9d
movswl %r8w, %r8d
orl %r9d, %r8d
movl %r8d, 0x8(%rsi,%rdi,2)
addq $0x6, %rdi
cmpq %rdi, %rcx
jne 0x2de1f
movl %edx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r15
movq 0x8(%rdi), %r14
cmpl $0x0, 0x34(%rdi)
jns 0x2e618
movl 0x10(%r15), %esi
leaq 0x43d37(%rip), %rdx     # 0x72330
movq %r14, %rdi
callq 0x2e48e
testl %eax, %eax
je 0x2e612
movl %eax, %ecx
movl 0x2(%r14,%rcx), %ecx
bswapl %ecx
addl %eax, %ecx
jmp 0x2e614
xorl %ecx, %ecx
movl %ecx, 0x34(%r15)
movslq 0x34(%r15), %rax
movzwl (%r14,%rax), %ecx
rolw $0x8, %cx
testw %cx, %cx
je 0x2e66c
movzwl %cx, %edx
leaq (%r14,%rax), %rcx
addq $0x2, %rcx
movl %edx, %edx
movzwl (%rcx), %esi
rolw $0x8, %si
movzwl %si, %esi
cmpl %ebx, %esi
jg 0x2e654
movzwl 0x2(%rcx), %esi
rolw $0x8, %si
movzwl %si, %esi
cmpl %ebx, %esi
jge 0x2e659
movb $0x1, %sil
jmp 0x2e65e
xorl %esi, %esi
movq %rcx, %rax
testb %sil, %sil
je 0x2e66e
addq $0xc, %rcx
decq %rdx
jne 0x2e637
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %ebp, %ebp
cmpl $0x0, 0x34(%rdi)
je 0x2e6ae
movq %rdx, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
callq 0x12b30
testq %rax, %rax
je 0x2e6ae
movslq 0x34(%r14), %rcx
addq %rcx, %r15
movl 0x4(%rax), %ecx
bswapl %ecx
addq %r15, %rcx
movq %rcx, (%rbx)
movl 0x8(%rax), %ebp
bswapl %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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, %ebx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x3370a
movq 0x5490b(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3e69d(%rip), %rsi     # 0x71d8c
leaq 0x3e6b4(%rip), %rdx     # 0x71daa
movl $0x429a, %ecx           # imm = 0x429A
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x58(%r14)
jne 0x3373d
movq 0x548d8(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3e66a(%rip), %rsi     # 0x71d8c
leaq 0x3e681(%rip), %rdx     # 0x71daa
movl $0x429b, %ecx           # imm = 0x429B
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x48(%r14)
jne 0x33770
movq 0x548a5(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3e637(%rip), %rsi     # 0x71d8c
leaq 0x3e64e(%rip), %rdx     # 0x71daa
movl $0x429c, %ecx           # imm = 0x429C
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
je 0x337f0
xorl %r12d, %r12d
cmpq $0x0, 0x58(%r14)
je 0x337f0
movq 0x60(%r14), %r13
movq 0x78(%r14), %rbp
movq 0x30(%rbp), %rdi
callq 0x33805
testl %eax, %eax
jle 0x337e1
movq 0x30(%rbp), %rcx
movl %eax, %eax
xorl %edx, %edx
movl (%rcx,%rdx,8), %edi
cmpl %ebx, %edi
seta %r9b
movl 0x4(%rcx,%rdx,8), %r8d
cmpl %ebx, %r8d
setb %sil
orb %r9b, %sil
je 0x337c1
subl %edi, %r12d
addl %r8d, %r12d
incl %r12d
jmp 0x337d4
leal (%r12,%rbx), %r8d
subl %edi, %r8d
leaq (%r8,%r8,2), %r15
shlq $0x4, %r15
addq 0x58(%r14), %r15
testb %sil, %sil
je 0x337f3
incq %rdx
cmpq %rdx, %rax
jne 0x3379c
movq 0x48(%rbp), %rbp
cmpq 0x78(%r14), %rbp
jne 0x33787
movq %r13, %r15
jmp 0x337f3
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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 0x3382d
xorl %ebx, %ebx
cmpl $0x0, (%rdi,%rbx)
leaq 0x4(%rbx), %rbx
jne 0x33810
movq %rbx, %rax
shrq $0x2, %rax
shrq $0x3f, %rbx
addq %rax, %rbx
shrq %rbx
jmp 0x3385b
movq 0x547bc(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3e54e(%rip), %rsi     # 0x71d8c
leaq 0x3e565(%rip), %rdx     # 0x71daa
xorl %ebx, %ebx
movl $0x40cd, %ecx           # imm = 0x40CD
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x58, %esi
callq 0x25316
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)
movl $0x0, 0x24(%rbx)
xorl %eax, %eax
movq %rax, 0x28(%rbx)
leaq 0x3b382(%rip), %rcx     # 0x6ec30
movq %rcx, 0x30(%rbx)
movl $0x3f, 0x40(%rbx)
movq %rax, 0x38(%rbx)
movq %rax, 0x48(%rbx)
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x33905
movq %rdi, %rbx
movq %rdi, %r14
andq $0x3, %r14
je 0x3393c
movl $0x4, %r15d
subq %r14, %r15
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x12b50
orq $0x18c, %r14            # imm = 0x18C
addq %rbx, %r15
jmp 0x33945
movq 0x546e4(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3e476(%rip), %rsi     # 0x71d8c
leaq 0x3e48d(%rip), %rdx     # 0x71daa
movl $0x440b, %ecx           # imm = 0x440B
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x13780
movl $0x190, %r14d           # imm = 0x190
movq %rbx, %r15
movl %r14d, %r12d
andl $-0x4, %r12d
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x12b50
andq $0x3, %r14
je 0x3396f
addq %r12, %r15
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x12b50
xorl %eax, %eax
movq %rax, 0x28(%rbx)
leaq -0xe7de(%rip), %rcx     # 0x2519e
movq %rcx, 0x30(%rbx)
leaq -0xe7e1(%rip), %rdx     # 0x251a6
movq %rdx, 0x38(%rbx)
movq %rax, 0x10(%rbx)
movq %rcx, 0x18(%rbx)
movq %rdx, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: 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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x339e3
movq 0x54632(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3e3c4(%rip), %rsi     # 0x71d8c
leaq 0x3e3db(%rip), %rdx     # 0x71daa
movl $0x4419, %ecx           # imm = 0x4419
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
jne 0x33a14
movq 0x54601(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3e393(%rip), %rsi     # 0x71d8c
leaq 0x3e3aa(%rip), %rdx     # 0x71daa
movl $0x441a, %ecx           # imm = 0x441A
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
sete %al
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x33aa2
movq %rbx, %r15
andq $0x3, %r15
je 0x33a4f
movl $0x4, %r12d
subq %r15, %r12
movq %rbx, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x12b50
orq $0x18c, %r15            # imm = 0x18C
addq %rbx, %r12
jmp 0x33a58
movl $0x190, %r15d           # imm = 0x190
movq %rbx, %r12
movl %r15d, %r13d
andl $-0x4, %r13d
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x12b50
andq $0x3, %r15
je 0x33a82
addq %r13, %r12
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x12b50
movq 0x10(%r14), %rax
movq %rax, 0x20(%rbx)
movups (%r14), %xmm0
movups %xmm0, 0x10(%rbx)
movups (%r14), %xmm0
movups %xmm0, 0x28(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x38(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testq %rdi, %rdi
jne 0x33af3
movq 0x54524(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3e2b5(%rip), %rsi     # 0x71d8c
leaq 0x3e2cc(%rip), %rdx     # 0x71daa
movl $0x4424, %ecx           # imm = 0x4424
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r15, %r15
jne 0x33b26
movq 0x544f1(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3e282(%rip), %rsi     # 0x71d8c
leaq 0x3e299(%rip), %rdx     # 0x71daa
movl $0x4425, %ecx           # imm = 0x4425
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x33b59
movq 0x544be(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3e24f(%rip), %rsi     # 0x71d8c
leaq 0x3e266(%rip), %rdx     # 0x71daa
movl $0x4426, %ecx           # imm = 0x4426
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %rbx, %rbx
sete %al
testq %r15, %r15
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
orb %al, %dl
jne 0x33bef
movq %r14, %r12
andq $0x3, %r12
je 0x33b9c
movl $0x4, %r13d
subq %r12, %r13
movq %r14, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x12b50
orq $0x18c, %r12            # imm = 0x18C
addq %r14, %r13
jmp 0x33ba5
movl $0x190, %r12d           # imm = 0x190
movq %r14, %r13
movl %r12d, %ebp
andl $-0x4, %ebp
movq %r13, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x12b50
andq $0x3, %r12
je 0x33bce
addq %rbp, %r13
movq %r13, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x12b50
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 %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_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 0x33c36
movq 0x543df(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3e171(%rip), %rsi     # 0x71d8c
leaq 0x3e188(%rip), %rdx     # 0x71daa
movl $0x442f, %ecx           # imm = 0x442F
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x30(%rbx)
je 0x33c44
cmpq $0x0, 0x38(%rbx)
jne 0x33c70
movq 0x543a5(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3e137(%rip), %rsi     # 0x71d8c
leaq 0x3e14e(%rip), %rdx     # 0x71daa
movl $0x4430, %ecx           # imm = 0x4430
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x18(%rbx)
je 0x33c7e
cmpq $0x0, 0x20(%rbx)
jne 0x33caa
movq 0x5436b(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3e0fd(%rip), %rsi     # 0x71d8c
leaq 0x3e114(%rip), %rdx     # 0x71daa
movl $0x4431, %ecx           # imm = 0x4431
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x33d00
cmpq $0x0, 0x18(%rbx)
je 0x33d00
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x33d00
cmpq $0x0, 0x30(%rbx)
je 0x33d00
cmpq $0x0, 0x38(%rbx)
je 0x33d00
movq 0x168(%rbx), %rsi
testq %rsi, %rsi
je 0x33cea
movq 0x10(%rbx), %rdi
callq *%rax
movq $0x0, 0x168(%rbx)
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x33d00
movq 0x10(%rbx), %rdi
callq *0x20(%rbx)
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x34ff7
movq 0x5301e(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3cdb0(%rip), %rsi     # 0x71d8c
leaq 0x3cdc7(%rip), %rdx     # 0x71daa
movl $0x450d, %ecx           # imm = 0x450D
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x30(%r14)
jne 0x3502a
movq 0x52feb(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3cd7d(%rip), %rsi     # 0x71d8c
leaq 0x3cd94(%rip), %rdx     # 0x71daa
movl $0x450e, %ecx           # imm = 0x450E
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x38(%r14)
jne 0x3505d
movq 0x52fb8(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3cd4a(%rip), %rsi     # 0x71d8c
leaq 0x3cd61(%rip), %rdx     # 0x71daa
movl $0x450f, %ecx           # imm = 0x450F
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x18(%r14)
jne 0x35090
movq 0x52f85(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3cd17(%rip), %rsi     # 0x71d8c
leaq 0x3cd2e(%rip), %rdx     # 0x71daa
movl $0x4510, %ecx           # imm = 0x4510
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpq $0x0, 0x20(%r14)
jne 0x350c3
movq 0x52f52(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x3cce4(%rip), %rsi     # 0x71d8c
leaq 0x3ccfb(%rip), %rdx     # 0x71daa
movl $0x4511, %ecx           # imm = 0x4511
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
leaq 0x39bf6(%rip), %rsi     # 0x6ecc0
movq %r14, %rdi
movss 0xc(%rsp), %xmm0
movq %rbx, %rdx
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x127b0
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_bake_custom_data
NK_INTERN void
nk_font_bake_custom_data(void *img_memory, int img_width, int img_height,
    struct nk_recti img_dst, const char *texture_data_mask, int tex_width,
    int tex_height, char white, char black)
{
    nk_byte *pixels;
    int y = 0;
    int x = 0;
    int n = 0;

    NK_ASSERT(img_memory);
    NK_ASSERT(img_width);
    NK_ASSERT(img_height);
    NK_ASSERT(texture_data_mask);
    NK_UNUSED(tex_height);
    if (!img_memory || !img_width || !img_height || !texture_data_mask)
        return;

    pixels = (nk_byte*)img_memory;
    for (y = 0, n = 0; y < tex_height; ++y) {
        for (x = 0; x < tex_width; ++x, ++n) {
            const int off0 = ((img_dst.x + x) + (img_dst.y + y) * img_width);
            const int off1 = off0 + 1 + tex_width;
            pixels[off0] = (texture_data_mask[n] == white) ? 0xFF : 0x00;
            pixels[off1] = (texture_data_mask[n] == black) ? 0xFF : 0x00;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movl %edx, %r15d
movl %esi, %ebp
movq %rdi, %r14
testq %rdi, %rdi
jne 0x364d7
movq 0x51b40(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3b8d1(%rip), %rsi     # 0x71d8c
leaq 0x3b8e8(%rip), %rdx     # 0x71daa
movl $0x422a, %ecx           # imm = 0x422A
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testl %ebp, %ebp
jne 0x36509
movq 0x51b0e(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3b89f(%rip), %rsi     # 0x71d8c
leaq 0x3b8b6(%rip), %rdx     # 0x71daa
movl $0x422b, %ecx           # imm = 0x422B
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testl %r15d, %r15d
jne 0x3653c
movq 0x51adb(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3b86c(%rip), %rsi     # 0x71d8c
leaq 0x3b883(%rip), %rdx     # 0x71daa
movl $0x422c, %ecx           # imm = 0x422C
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testl %r15d, %r15d
sete %al
testl %ebp, %ebp
sete %cl
testq %r14, %r14
sete %dl
orb %cl, %dl
orb %al, %dl
jne 0x365b4
movswl %bx, %eax
sarl $0x10, %ebx
imull %ebp, %ebx
addl %eax, %ebx
movl %ebp, %eax
xorl %ecx, %ecx
leaq 0x3c467(%rip), %rdx     # 0x729d0
xorl %esi, %esi
movslq %esi, %rsi
xorl %edi, %edi
leal (%rbx,%rdi), %r8d
leaq (%rsi,%rdi), %r9
movb (%rdx,%r9), %r9b
cmpb $0x2e, %r9b
sete %r10b
negb %r10b
movslq %r8d, %r8
movb %r10b, (%r14,%r8)
cmpb $0x58, %r9b
sete %r9b
negb %r9b
movb %r9b, 0x5b(%r14,%r8)
incq %rdi
cmpq $0x5a, %rdi
jne 0x36570
incl %ecx
addq %rdi, %rsi
addq %rax, %rbx
cmpl $0x1b, %ecx
jne 0x3656b
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_font_bake_convert
NK_INTERN void
nk_font_bake_convert(void *out_memory, int img_width, int img_height,
    const void *in_memory)
{
    int n = 0;
    nk_rune *dst;
    const nk_byte *src;

    NK_ASSERT(out_memory);
    NK_ASSERT(in_memory);
    NK_ASSERT(img_width);
    NK_ASSERT(img_height);
    if (!out_memory || !in_memory || !img_height || !img_width) return;

    dst = (nk_rune*)out_memory;
    src = (const nk_byte*)in_memory;
    for (n = (int)(img_width * img_height); n > 0; n--)
        *dst++ = ((nk_rune)(*src++) << 24) | 0x00FFFFFF;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
testq %rcx, %rcx
jne 0x36603
movq 0x51a14(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3b7a5(%rip), %rsi     # 0x71d8c
leaq 0x3b7bc(%rip), %rdx     # 0x71daa
movl $0x4245, %ecx           # imm = 0x4245
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testl %r15d, %r15d
jne 0x36636
movq 0x519e1(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3b772(%rip), %rsi     # 0x71d8c
leaq 0x3b789(%rip), %rdx     # 0x71daa
movl $0x4246, %ecx           # imm = 0x4246
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testl %ebp, %ebp
jne 0x36668
movq 0x519af(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3b740(%rip), %rsi     # 0x71d8c
leaq 0x3b757(%rip), %rdx     # 0x71daa
movl $0x4247, %ecx           # imm = 0x4247
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testl %ebp, %ebp
setne %al
testl %r15d, %r15d
setne %cl
testq %rbx, %rbx
setne %dl
andb %al, %dl
andb %cl, %dl
imull %r15d, %ebp
testl %ebp, %ebp
setg %al
andb %dl, %al
cmpb $0x1, %al
jne 0x366ab
incl %ebp
xorl %eax, %eax
movzbl (%rbx,%rax), %ecx
shll $0x18, %ecx
orl $0xffffff, %ecx         # imm = 0xFFFFFF
movl %ecx, (%r14,%rax,4)
incq %rax
decl %ebp
cmpl $0x1, %ebp
jg 0x36690
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
jne 0x36716
movq 0x5191b(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x3b6ac(%rip), %rsi     # 0x71d8c
leaq 0x3b6c3(%rip), %rdx     # 0x71daa
movl $0x4599, %ecx           # imm = 0x4599
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r15, %r15
je 0x367ec
movq %r14, (%r15)
movsd 0x37ec0(%rip), %xmm0    # 0x6e5d0
movsd %xmm0, 0x8(%r15)
testq %r15, %r15
je 0x36746
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 0x37e9a(%rip), %xmm0    # 0x6e5d0
movsd 0x8(%rbx), %xmm1
cvtdq2ps %xmm1, %xmm1
divps %xmm1, %xmm0
movlps %xmm0, 0x8(%r15)
movq 0x178(%rbx), %rax
testq %rax, %rax
je 0x3675f
movq %r14, 0x70(%rax)
movq %r14, 0x28(%rax)
movq (%rax), %rax
jmp 0x3674d
movdqa 0x37e29(%rip), %xmm0    # 0x6e590
movl $0x70, %eax
movdqa 0x37dfc(%rip), %xmm1    # 0x6e570
movdqa 0x37f24(%rip), %xmm2    # 0x6e6a0
pshufd $0xf5, %xmm2, %xmm3     # xmm3 = xmm2[1,1,3,3]
movdqa 0x37ec7(%rip), %xmm4    # 0x6e650
movdqa %xmm0, %xmm5
pxor %xmm1, %xmm5
movdqa %xmm2, %xmm6
pcmpgtd %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pcmpeqd %xmm3, %xmm5
pand %xmm6, %xmm5
movd %xmm5, %ecx
testb $0x1, %cl
je 0x367b4
movq %r14, -0x28(%rbx,%rax)
pextrw $0x4, %xmm5, %ecx
testb $0x1, %cl
je 0x367c2
movq %r14, (%rbx,%rax)
paddq %xmm4, %xmm0
addq $0x50, %rax
cmpq $0x1b0, %rax            # imm = 0x1B0
jne 0x36789
movq (%rbx), %rsi
movq 0x28(%rbx), %rdi
callq *0x38(%rbx)
pxor %xmm0, %xmm0
movdqu %xmm0, (%rbx)
movq $0x0, 0x40(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: 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 0x36831
movq 0x517e4(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3b576(%rip), %rsi     # 0x71d8c
leaq 0x3b58d(%rip), %rdx     # 0x71daa
movl $0x45b9, %ecx           # imm = 0x45B9
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x30(%rbx)
jne 0x36864
movq 0x517b1(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3b543(%rip), %rsi     # 0x71d8c
leaq 0x3b55a(%rip), %rdx     # 0x71daa
movl $0x45ba, %ecx           # imm = 0x45BA
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x38(%rbx)
jne 0x36897
movq 0x5177e(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3b510(%rip), %rsi     # 0x71d8c
leaq 0x3b527(%rip), %rdx     # 0x71daa
movl $0x45bb, %ecx           # imm = 0x45BB
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x18(%rbx)
jne 0x368ca
movq 0x5174b(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3b4dd(%rip), %rsi     # 0x71d8c
leaq 0x3b4f4(%rip), %rdx     # 0x71daa
movl $0x45bc, %ecx           # imm = 0x45BC
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
cmpq $0x0, 0x20(%rbx)
jne 0x368fd
movq 0x51718(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x3b4aa(%rip), %rsi     # 0x71d8c
leaq 0x3b4c1(%rip), %rdx     # 0x71daa
movl $0x45bd, %ecx           # imm = 0x45BD
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
testq %rbx, %rbx
je 0x36956
cmpq $0x0, 0x18(%rbx)
je 0x36956
cmpq $0x0, 0x20(%rbx)
je 0x36956
movq 0x180(%rbx), %r14
testq %r14, %r14
je 0x36956
movq 0x48(%r14), %r15
cmpq %r14, %r15
je 0x3693e
movq 0x8(%r15), %rsi
movq 0x10(%rbx), %rdi
callq *0x20(%rbx)
movq $0x0, 0x8(%r15)
movq 0x48(%r15), %r15
jmp 0x36920
movq 0x8(%r14), %rsi
movq 0x10(%rbx), %rdi
callq *0x20(%rbx)
movq $0x0, 0x8(%r14)
movq (%r14), %r14
jmp 0x36917
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbx
testq %rdi, %rdi
je 0x36cb1
xorl %eax, %eax
movl $0x0, 0x108(%rdi,%rax)
addq $0x10, %rax
cmpq $0x40, %rax
jne 0x36bb0
movl $0x0, 0x100(%rdi)
movq $0x0, 0x15c(%rdi)
movsd 0x144(%rdi), %xmm0
movups %xmm0, 0x14c(%rdi)
movdqa 0x37abf(%rip), %xmm0    # 0x6e6b0
movdqa 0x37997(%rip), %xmm1    # 0x6e590
xorl %eax, %eax
movdqa 0x3796d(%rip), %xmm2    # 0x6e570
movdqa 0x37ab5(%rip), %xmm3    # 0x6e6c0
pshufd $0xf5, %xmm3, %xmm4     # xmm4 = xmm3[1,1,3,3]
movdqa 0x37ab8(%rip), %xmm5    # 0x6e6d0
movdqa %xmm1, %xmm6
pxor %xmm2, %xmm6
movdqa %xmm3, %xmm7
pcmpgtd %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm6     # xmm6 = xmm6[1,1,3,3]
pcmpeqd %xmm4, %xmm6
pand %xmm7, %xmm6
movd %xmm6, %ecx
testb $0x1, %cl
je 0x36c46
movl $0x0, 0x4(%rdi,%rax,8)
pextrw $0x4, %xmm6, %ecx
testb $0x1, %cl
je 0x36c58
movl $0x0, 0xc(%rdi,%rax,8)
movdqa %xmm0, %xmm6
pxor %xmm2, %xmm6
movdqa %xmm3, %xmm7
pcmpgtd %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm6     # xmm6 = xmm6[1,1,3,3]
pcmpeqd %xmm4, %xmm6
pand %xmm7, %xmm6
pextrw $0x0, %xmm6, %ecx
testb $0x1, %cl
je 0x36c87
movl $0x0, 0x14(%rdi,%rax,8)
pextrw $0x4, %xmm6, %ecx
testb $0x1, %cl
je 0x36c99
movl $0x0, 0x1c(%rdi,%rax,8)
addq $0x4, %rax
paddq %xmm5, %xmm1
paddq %xmm5, %xmm0
cmpq $0x20, %rax
jne 0x36c18
popq %rbx
retq
movq 0x51338(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3b0ca(%rip), %rsi     # 0x71d8c
leaq 0x3b0e1(%rip), %rdx     # 0x71daa
movl $0x4603, %ecx           # imm = 0x4603
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
popq %rbx
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x36d0d
cmpb $0x0, 0x164(%rdi)
je 0x36cf3
movb $0x0, 0x164(%rdi)
cmpb $0x0, 0x166(%rdi)
je 0x36d0c
movb $0x0, 0x166(%rdi)
movw $0x0, 0x164(%rdi)
retq
pushq %rbx
movq 0x512db(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3b06d(%rip), %rsi     # 0x71d8c
leaq 0x3b084(%rip), %rdx     # 0x71daa
movl $0x4616, %ecx           # imm = 0x4616
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
popq %rbx
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x36d69
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 0x5127f(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3b011(%rip), %rsi     # 0x71d8c
leaq 0x3b028(%rip), %rdx     # 0x71daa
movl $0x4625, %ecx           # imm = 0x4625
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
popq %rbx
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x36dab
movl %esi, %eax
cmpl %edx, (%rdi,%rax,8)
je 0x36da7
incl 0x4(%rdi,%rax,8)
movl %edx, (%rdi,%rax,8)
retq
pushq %rbx
movq 0x5123d(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3afcf(%rip), %rsi     # 0x71d8c
leaq 0x3afe6(%rip), %rdx     # 0x71daa
movl $0x4631, %ecx           # imm = 0x4631
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
popq %rbx
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x36e1c
movl %esi, %eax
shlq $0x4, %rax
cmpl %r8d, 0x104(%rdi,%rax)
je 0x36e1b
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)
movq $0x0, 0x154(%rdi)
retq
pushq %rbx
movq 0x511cc(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3af5e(%rip), %rsi     # 0x71d8c
leaq 0x3af75(%rip), %rdx     # 0x71daa
movl $0x4641, %ecx           # imm = 0x4641
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
popq %rbx
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x36ef2
movq %rdi, %rbx
leaq 0x4(%rsp), %rax
movq %rsi, %rdi
movq %rax, %rsi
movl $0x4, %edx
callq 0x12ef0
testl %eax, %eax
je 0x36eea
movl %eax, %r14d
movslq 0x100(%rbx), %rax
leal (%rax,%r14), %ecx
cmpl $0xf, %ecx
jg 0x36eea
movl 0x4(%rsp), %edi
leaq (%rbx,%rax), %rsi
addq $0xf0, %rsi
movl $0x10, %edx
subl %eax, %edx
callq 0x12e50
addl %r14d, 0x100(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x510f7(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3ae89(%rip), %rsi     # 0x71d8c
leaq 0x3aea0(%rip), %rdx     # 0x71daa
movl $0x4666, %ecx           # imm = 0x4666
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x36f45
leaq 0xc(%rsp), %rax
movb %sil, (%rax)
movq %rax, %rsi
callq 0x12040
addq $0x10, %rsp
popq %rbx
retq
movq 0x510a4(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3ae36(%rip), %rsi     # 0x71d8c
leaq 0x3ae4d(%rip), %rdx     # 0x71daa
movl $0x4675, %ecx           # imm = 0x4675
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x36fa9
movq %rdi, %rbx
leaq 0x4(%rsp), %r14
movl %esi, %edi
movq %r14, %rsi
movl $0x4, %edx
callq 0x12e50
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12040
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x51040(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x3add2(%rip), %rsi     # 0x71d8c
leaq 0x3ade9(%rip), %rdx     # 0x71daa
movl $0x467e, %ecx           # imm = 0x467E
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/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 0x37005
movl %esi, %ecx
shlq $0x4, %rcx
cmpl $0x0, 0x108(%rdi,%rcx)
je 0x37005
addq %rdi, %rcx
addq $0x104, %rcx            # imm = 0x104
xorl %eax, %eax
cmpl $0x0, (%rcx)
sete %al
retq
// File: /workspace/github_c_makefile_star2_O1/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:
xorl %eax, %eax
testq %rdi, %rdi
je 0x3710f
movl %esi, %ecx
movq %rcx, %rsi
shlq $0x4, %rsi
movss 0x10c(%rdi,%rsi), %xmm2
ucomiss %xmm0, %xmm2
jb 0x3710f
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x3710f
addq %rdi, %rsi
addq $0x10c, %rsi            # imm = 0x10C
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x4(%rsi), %xmm2
ucomiss %xmm3, %xmm2
jb 0x3710f
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
ucomiss %xmm2, %xmm0
jbe 0x3710f
shlq $0x4, %rcx
xorl %eax, %eax
cmpl %edx, 0x104(%rdi,%rcx)
sete %al
retq
// File: /workspace/github_c_makefile_star2_O1/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:
xorl %eax, %eax
testq %rdi, %rdi
je 0x3716f
movl %esi, %ecx
movq %rcx, %rdx
shlq $0x4, %rdx
movss 0x10c(%rdi,%rdx), %xmm2
ucomiss %xmm0, %xmm2
jb 0x3716f
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x3716f
leaq (%rdi,%rdx), %rsi
addq $0x10c, %rsi            # imm = 0x10C
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x4(%rsi), %xmm2
ucomiss %xmm3, %xmm2
jb 0x3716f
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
ucomiss %xmm2, %xmm0
jbe 0x3716f
leaq 0x104(%rdi), %rsi
cmpl $0x0, (%rsi,%rdx)
je 0x37170
retq
shlq $0x4, %rcx
xorl %eax, %eax
cmpl $0x0, 0x108(%rdi,%rcx)
setne %al
retq
// File: /workspace/github_c_makefile_star2_O1/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:
xorl %eax, %eax
testq %rdi, %rdi
je 0x371f3
movl %esi, %ecx
movq %rcx, %rsi
shlq $0x4, %rsi
movss 0x10c(%rdi,%rsi), %xmm2
ucomiss %xmm0, %xmm2
jb 0x371f3
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x371f3
leaq (%rdi,%rsi), %r8
addq $0x10c, %r8             # imm = 0x10C
movaps %xmm0, %xmm3
shufps $0x55, %xmm0, %xmm3     # xmm3 = xmm3[1,1],xmm0[1,1]
movss 0x4(%r8), %xmm2
ucomiss %xmm3, %xmm2
jb 0x371f3
addps %xmm1, %xmm0
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
ucomiss %xmm2, %xmm0
jbe 0x371f3
leaq 0x104(%rdi), %r8
cmpl %edx, (%r8,%rsi)
jne 0x371f3
shlq $0x4, %rcx
xorl %eax, %eax
cmpl $0x0, 0x108(%rdi,%rcx)
setne %al
retq
// File: /workspace/github_c_makefile_star2_O1/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:
addps %xmm0, %xmm1
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2     # xmm2 = xmm2[1,1],xmm0[1,1]
movaps %xmm1, %xmm3
shufps $0x55, %xmm1, %xmm3     # xmm3 = xmm3[1,1],xmm1[1,1]
xorl %eax, %eax
xorl %ecx, %ecx
testq %rdi, %rdi
sete %dl
orb %cl, %dl
testb $0x1, %dl
je 0x37222
addq $0x10, %rax
cmpq $0x40, %rax
jne 0x37209
jmp 0x37267
movss 0x10c(%rdi,%rax), %xmm4
xorl %ecx, %ecx
ucomiss %xmm0, %xmm4
jb 0x37216
ucomiss %xmm4, %xmm1
jbe 0x37216
movss 0x110(%rdi,%rax), %xmm4
xorl %ecx, %ecx
ucomiss %xmm2, %xmm4
jb 0x37216
ucomiss %xmm4, %xmm3
jbe 0x37216
cmpl $0x0, 0x104(%rdi,%rax)
je 0x3725a
xorl %ecx, %ecx
jmp 0x37216
cmpl $0x0, 0x108(%rdi,%rax)
setne %cl
jmp 0x37216
movzbl %cl, %eax
andl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x373cb
movl %esi, %eax
shlq $0x4, %rax
cmpl $0x0, 0x104(%rdi,%rax)
je 0x373cc
leaq (%rdi,%rax), %rcx
addq $0x104, %rcx            # imm = 0x104
movl $0x1, %eax
cmpl $0x0, 0x4(%rcx)
je 0x373cc
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x37417
movl %esi, %ecx
movl (%rdi,%rcx,8), %edx
testl %edx, %edx
je 0x3741c
movl $0x1, %eax
cmpl $0x0, 0x4(%rdi,%rcx,8)
je 0x37418
retq
testl %edx, %edx
jne 0x37428
movl $0x1, %eax
cmpl $0x1, 0x4(%rdi,%rcx,8)
ja 0x37417
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x38eb1
movq %rsi, 0x168(%rdi)
movl $0x0, 0x2fc8(%rdi)
cmpq $0x0, 0x4780(%rdi)
jne 0x13bf0
retq
pushq %rbx
movq 0x4f137(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x38ec9(%rip), %rsi     # 0x71d8c
leaq 0x38ee0(%rip), %rdx     # 0x71daa
movl $0x49cb, %ecx           # imm = 0x49CB
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
popq %rbx
jmp 0x13780