LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_stroke_polyline
NK_API void
nk_stroke_polyline(struct nk_command_buffer *b, float *points, int point_count,
    float line_thickness, struct nk_color col)
{
    int i;
    nk_size size = 0;
    struct nk_command_polyline *cmd;

    NK_ASSERT(b);
    if (!b || col.a == 0 || line_thickness <= 0) return;
    size = sizeof(*cmd) + sizeof(short) * 2 * (nk_size)point_count;
    cmd = (struct nk_command_polyline*) nk_command_buffer_push(b, NK_COMMAND_POLYLINE, size);
    if (!cmd) return;
    cmd->color = col;
    cmd->point_count = (unsigned short)point_count;
    cmd->line_thickness = (unsigned short)line_thickness;
    for (i = 0; i < point_count; ++i) {
        cmd->points[i].x = (short)points[i*2];
        cmd->points[i].y = (short)points[i*2+1];
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %r14d
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r15
testq %rdi, %rdi
jne 0x280ab
movq 0x5ff78(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x49d09(%rip), %rsi     # 0x71d8c
leaq 0x49d20(%rip), %rdx     # 0x71daa
movl $0x2464, %ecx           # imm = 0x2464
xorl %eax, %eax
movss %xmm0, 0xc(%rsp)
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
movss 0xc(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jae 0x28130
testq %r15, %r15
je 0x28130
cmpl $0x1000000, %r14d       # imm = 0x1000000
jb 0x28130
movslq %ebp, %rax
leaq 0x20(,%rax,4), %rdx
movq %r15, %rdi
movl $0xf, %esi
movss %xmm0, 0xc(%rsp)
callq 0x2703d
movss 0xc(%rsp), %xmm0
testq %rax, %rax
je 0x28130
movl %r14d, %ecx
shrl $0x18, %ecx
movw %r14w, 0x10(%rax)
shrl $0x10, %r14d
movb %r14b, 0x12(%rax)
movb %cl, 0x13(%rax)
movw %bp, 0x16(%rax)
cvttss2si %xmm0, %ecx
movw %cx, 0x14(%rax)
testl %ebp, %ebp
jle 0x28130
movl %ebp, %ecx
xorl %edx, %edx
movsd (%rbx,%rdx,8), %xmm0
cvttps2dq %xmm0, %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
movd %xmm0, 0x18(%rax,%rdx,4)
incq %rdx
cmpq %rdx, %rcx
jne 0x28114
addq $0x10, %rsp
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_draw_image
NK_API void
nk_draw_image(struct nk_command_buffer *b, struct nk_rect r,
    const struct nk_image *img, struct nk_color col)
{
    struct nk_command_image *cmd;
    NK_ASSERT(b);
    if (!b) return;
    if (b->use_clipping) {
        const struct nk_rect *c = &b->clip;
        if (c->w == 0 || c->h == 0 || !NK_INTERSECT(r.x, r.y, r.w, r.h, c->x, c->y, c->w, c->h))
            return;
    }

    cmd = (struct nk_command_image*)
        nk_command_buffer_push(b, NK_COMMAND_IMAGE, sizeof(*cmd));
    if (!cmd) return;
    cmd->x = (short)r.x;
    cmd->y = (short)r.y;
    cmd->w = (unsigned short)NK_MAX(0, r.w);
    cmd->h = (unsigned short)NK_MAX(0, r.h);
    cmd->img = *img;
    cmd->col = col;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x28225
movl %edx, %ebx
movq %rsi, %r14
cmpl $0x0, 0x18(%rdi)
je 0x281c1
movss 0x10(%rdi), %xmm4
xorps %xmm2, %xmm2
ucomiss %xmm2, %xmm4
jne 0x2816b
jnp 0x2821d
movss 0x14(%rdi), %xmm5
ucomiss %xmm2, %xmm5
jne 0x2817b
jnp 0x2821d
movss 0x8(%rdi), %xmm2
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x2821d
addss %xmm2, %xmm4
ucomiss %xmm0, %xmm4
jbe 0x2821d
movss 0xc(%rdi), %xmm3
movaps %xmm0, %xmm2
addps %xmm1, %xmm2
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
ucomiss %xmm3, %xmm2
jbe 0x2821d
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2     # xmm2 = xmm2[1,1],xmm0[1,1]
addss %xmm3, %xmm5
ucomiss %xmm2, %xmm5
jbe 0x2821d
movl $0x38, %edx
movl $0x11, %esi
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
callq 0x2703d
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
testq %rax, %rax
je 0x2821d
cvttps2dq %xmm0, %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
movd %xmm0, 0x10(%rax)
pxor %xmm0, %xmm0
maxps %xmm0, %xmm1
cvttps2dq %xmm1, %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
movd %xmm0, 0x14(%rax)
movups (%r14), %xmm0
movups %xmm0, 0x18(%rax)
movq 0x10(%r14), %rcx
movq %rcx, 0x28(%rax)
movl %ebx, 0x30(%rax)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq 0x5fdc4(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x49b56(%rip), %rsi     # 0x71d8c
leaq 0x49b6d(%rip), %rdx     # 0x71daa
movl $0x2476, %ecx           # imm = 0x2476
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_push_custom
NK_API void
nk_push_custom(struct nk_command_buffer *b, struct nk_rect r,
    nk_command_custom_callback cb, nk_handle usr)
{
    struct nk_command_custom *cmd;
    NK_ASSERT(b);
    if (!b) return;
    if (b->use_clipping) {
        const struct nk_rect *c = &b->clip;
        if (c->w == 0 || c->h == 0 || !NK_INTERSECT(r.x, r.y, r.w, r.h, c->x, c->y, c->w, c->h))
            return;
    }

    cmd = (struct nk_command_custom*)
        nk_command_buffer_push(b, NK_COMMAND_CUSTOM, sizeof(*cmd));
    if (!cmd) return;
    cmd->x = (short)r.x;
    cmd->y = (short)r.y;
    cmd->w = (unsigned short)NK_MAX(0, r.w);
    cmd->h = (unsigned short)NK_MAX(0, r.h);
    cmd->callback_data = usr;
    cmd->callback = cb;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x28784
movq %rdx, %r14
movq %rsi, %rbx
cmpl $0x0, 0x18(%rdi)
je 0x2872b
movss 0x10(%rdi), %xmm4
xorps %xmm2, %xmm2
ucomiss %xmm2, %xmm4
jne 0x286dd
jnp 0x2877c
movss 0x14(%rdi), %xmm5
ucomiss %xmm2, %xmm5
jne 0x286ed
jnp 0x2877c
movss 0x8(%rdi), %xmm2
movaps %xmm0, %xmm3
addss %xmm1, %xmm3
ucomiss %xmm2, %xmm3
jbe 0x2877c
addss %xmm2, %xmm4
ucomiss %xmm0, %xmm4
jbe 0x2877c
movss 0xc(%rdi), %xmm3
movaps %xmm0, %xmm2
addps %xmm1, %xmm2
shufps $0x55, %xmm2, %xmm2     # xmm2 = xmm2[1,1,1,1]
ucomiss %xmm3, %xmm2
jbe 0x2877c
movaps %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm2     # xmm2 = xmm2[1,1],xmm0[1,1]
addss %xmm3, %xmm5
ucomiss %xmm2, %xmm5
jbe 0x2877c
movl $0x28, %edx
movl $0x12, %esi
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
callq 0x2703d
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
testq %rax, %rax
je 0x2877c
cvttps2dq %xmm0, %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
movd %xmm0, 0x10(%rax)
pxor %xmm0, %xmm0
maxps %xmm0, %xmm1
cvttps2dq %xmm1, %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
movd %xmm0, 0x14(%rax)
movq %r14, 0x18(%rax)
movq %rbx, 0x20(%rax)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq 0x5f865(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x495f7(%rip), %rsi     # 0x71d8c
leaq 0x4960e(%rip), %rdx     # 0x71daa
movl $0x24da, %ecx           # imm = 0x24DA
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_init
NK_API void
nk_draw_list_init(struct nk_draw_list *list)
{
    nk_size i = 0;
    NK_ASSERT(list);
    if (!list) return;
    nk_zero(list, sizeof(*list));
    for (i = 0; i < NK_LEN(list->circle_vtx); ++i) {
        const float a = ((float)i / (float)NK_LEN(list->circle_vtx)) * 2 * NK_PI;
        list->circle_vtx[i].x = (float)NK_COS(a);
        list->circle_vtx[i].y = (float)NK_SIN(a);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x28c2d
movq %rdi, %rbx
movq %rdi, %r14
andq $0x3, %r14
je 0x28c64
movl $0x4, %r15d
subq %r14, %r15
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x12b50
orq $0xec, %r14
addq %rbx, %r15
jmp 0x28c6d
movq 0x5f3bc(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x4914e(%rip), %rsi     # 0x71d8c
leaq 0x49165(%rip), %rdx     # 0x71daa
movl $0x2524, %ecx           # imm = 0x2524
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x13780
movl $0xf0, %r14d
movq %rbx, %r15
movl %r14d, %r12d
andl $-0x4, %r12d
movq %r15, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x12b50
andq $0x3, %r14
je 0x28c97
addq %r12, %r15
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x12b50
xorl %r14d, %r14d
xorps %xmm0, %xmm0
cvtsi2ss %r14, %xmm0
divss 0x45c2e(%rip), %xmm0    # 0x6e8d8
addss %xmm0, %xmm0
mulss 0x45c26(%rip), %xmm0    # 0x6e8dc
movss %xmm0, 0x4(%rsp)
callq 0x12770
movss %xmm0, 0x10(%rbx,%r14,8)
movss 0x4(%rsp), %xmm0
callq 0x122b0
movss %xmm0, 0x14(%rbx,%r14,8)
incq %r14
cmpq $0xc, %r14
jne 0x28c9a
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__draw_list_begin
NK_API const struct nk_draw_command*
nk__draw_list_begin(const struct nk_draw_list *canvas, const struct nk_buffer *buffer)
{
    nk_byte *memory;
    nk_size offset;
    const struct nk_draw_command *cmd;

    NK_ASSERT(buffer);
    if (!buffer || !buffer->size || !canvas->cmd_count)
        return 0;

    memory = (nk_byte*)buffer->memory.ptr;
    offset = buffer->memory.size - canvas->cmd_offset;
    cmd = nk_ptr_add(const struct nk_draw_command, memory, offset);
    return cmd;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x28ef5
cmpq $0x0, 0x70(%rsi)
je 0x28ef1
cmpl $0x0, 0xd0(%rdi)
je 0x28ef1
movq 0x48(%rsi), %rbx
subq 0xd8(%rdi), %rbx
addq 0x40(%rsi), %rbx
jmp 0x28f23
xorl %ebx, %ebx
jmp 0x28f23
movq 0x5f0f4(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x48e86(%rip), %rsi     # 0x71d8c
leaq 0x48e9d(%rip), %rdx     # 0x71daa
xorl %ebx, %ebx
movl $0x2550, %ecx           # imm = 0x2550
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk__draw_list_end
NK_API const struct nk_draw_command*
nk__draw_list_end(const struct nk_draw_list *canvas, const struct nk_buffer *buffer)
{
    nk_size size;
    nk_size offset;
    nk_byte *memory;
    const struct nk_draw_command *end;

    NK_ASSERT(buffer);
    NK_ASSERT(canvas);
    if (!buffer || !canvas)
        return 0;

    memory = (nk_byte*)buffer->memory.ptr;
    size = buffer->memory.size;
    offset = size - canvas->cmd_offset;
    end = nk_ptr_add(const struct nk_draw_command, memory, offset);
    end -= (canvas->cmd_count-1);
    return end;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
jne 0x28f6a
movq 0x5f0ab(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x48e3d(%rip), %rsi     # 0x71d8c
leaq 0x48e54(%rip), %rdx     # 0x71daa
movl $0x2561, %ecx           # imm = 0x2561
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
jne 0x28f9b
movq 0x5f07a(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x48e0c(%rip), %rsi     # 0x71d8c
leaq 0x48e23(%rip), %rdx     # 0x71daa
movl $0x2562, %ecx           # imm = 0x2562
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x28fcb
movq 0x48(%r14), %rax
subq 0xd8(%rbx), %rax
addq 0x40(%r14), %rax
movl 0xd0(%rbx), %ecx
decl %ecx
shlq $0x5, %rcx
subq %rcx, %rax
jmp 0x28fcd
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: nk__draw_list_next
NK_API const struct nk_draw_command*
nk__draw_list_next(const struct nk_draw_command *cmd,
    const struct nk_buffer *buffer, const struct nk_draw_list *canvas)
{
    const struct nk_draw_command *end;
    NK_ASSERT(buffer);
    NK_ASSERT(canvas);
    if (!cmd || !buffer || !canvas)
        return 0;

    end = nk__draw_list_end(canvas, buffer);
    if (cmd <= end) return 0;
    return (cmd-1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
testq %rsi, %rsi
jne 0x29017
movq 0x5f000(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x48d91(%rip), %rsi     # 0x71d8c
leaq 0x48da8(%rip), %rdx     # 0x71daa
movl $0x2572, %ecx           # imm = 0x2572
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r14, %r14
jne 0x2904a
movq 0x5efcd(%rip), %r12     # 0x87ff0
movq (%r12), %rdi
leaq 0x48d5e(%rip), %rsi     # 0x71d8c
leaq 0x48d75(%rip), %rdx     # 0x71daa
movl $0x2573, %ecx           # imm = 0x2573
xorl %eax, %eax
callq 0x12d80
movq (%r12), %rdi
callq 0x13780
testq %r14, %r14
sete %al
testq %r15, %r15
sete %cl
testq %rbx, %rbx
sete %dl
orb %cl, %dl
orb %al, %dl
jne 0x29090
movq 0x48(%r15), %rcx
subq 0xd8(%r14), %rcx
addq 0x40(%r15), %rcx
movl 0xd0(%r14), %eax
decl %eax
shlq $0x5, %rax
subq %rax, %rcx
leaq -0x20(%rbx), %rdx
xorl %eax, %eax
cmpq %rbx, %rcx
cmovbq %rdx, %rax
jmp 0x29092
xorl %eax, %eax
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_draw_list_alloc_vertices
NK_INTERN void*
nk_draw_list_alloc_vertices(struct nk_draw_list *list, nk_size count)
{
    void *vtx;
    NK_ASSERT(list);
    if (!list) return 0;
    vtx = nk_buffer_alloc(list->vertices, NK_BUFFER_FRONT,
        list->config.vertex_size*count, list->config.vertex_alignment);
    if (!vtx) return 0;
    list->vertex_count += (unsigned int)count;

    /* This assert triggers because your are drawing a lot of stuff and nuklear
     * defined `nk_draw_index` as `nk_ushort` to safe space be default.
     *
     * So you reached the maximum number of indices or rather vertexes.
     * To solve this issue please change typedef `nk_draw_index` to `nk_uint`
     * and don't forget to specify the new element size in your drawing
     * backend (OpenGL, DirectX, ...). For example in OpenGL for `glDrawElements`
     * instead of specifying `GL_UNSIGNED_SHORT` you have to define `GL_UNSIGNED_INT`.
     * Sorry for the inconvenience. */
    if(sizeof(nk_draw_index)==2) NK_ASSERT((list->vertex_count < NK_USHORT_MAX &&
        "To many vertices for 16-bit vertex indices. Please read comment above on how to solve this problem"));
    return vtx;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0xa8(%rdi), %rcx
movq 0xb8(%rdi), %rdi
movq 0xa0(%r15), %rdx
imulq %rsi, %rdx
xorl %esi, %esi
callq 0x25548
testq %rax, %rax
je 0x29c14
movq %rax, %rbx
addl 0xcc(%r15), %r14d
movl %r14d, 0xcc(%r15)
cmpl $0xffff, %r14d          # imm = 0xFFFF
jb 0x29c16
movq 0x5e403(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x48195(%rip), %rsi     # 0x71d8c
leaq 0x481ac(%rip), %rdx     # 0x71daa
movl $0x2603, %ecx           # imm = 0x2603
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
jmp 0x29c16
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_alloc_elements
NK_INTERN nk_draw_index*
nk_draw_list_alloc_elements(struct nk_draw_list *list, nk_size count)
{
    nk_draw_index *ids;
    struct nk_draw_command *cmd;
    NK_STORAGE const nk_size elem_align = NK_ALIGNOF(nk_draw_index);
    NK_STORAGE const nk_size elem_size = sizeof(nk_draw_index);
    NK_ASSERT(list);
    if (!list) return 0;

    ids = (nk_draw_index*)
        nk_buffer_alloc(list->elements, NK_BUFFER_FRONT, elem_size*count, elem_align);
    if (!ids) return 0;
    cmd = nk_draw_list_command_last(list);
    list->element_count += (unsigned int)count;
    cmd->elem_count += (unsigned int)count;
    return ids;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0xc0(%rdi), %rdi
leaq (%rsi,%rsi), %rdx
xorl %r15d, %r15d
movl $0x2, %ecx
xorl %esi, %esi
callq 0x25548
testq %rax, %rax
je 0x29c63
movq %rax, %r12
movq %r14, %rdi
callq 0x2a6f4
addl %ebx, 0xc8(%r14)
addl %ebx, (%rax)
movq %r12, %r15
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_path_clear
NK_API void
nk_draw_list_path_clear(struct nk_draw_list *list)
{
    NK_ASSERT(list);
    if (!list) return;
    nk_buffer_reset(list->buffer, NK_BUFFER_FRONT);
    list->path_count = 0;
    list->path_offset = 0;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x2a552
movq %rdi, %rbx
movq 0xb0(%rdi), %rdi
xorl %esi, %esi
callq 0x127a0
movq $0x0, 0xe0(%rbx)
popq %rbx
retq
movq 0x5da97(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x47829(%rip), %rsi     # 0x71d8c
leaq 0x47840(%rip), %rdx     # 0x71daa
movl $0x2822, %ecx           # imm = 0x2822
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_draw_list_path_line_to
NK_API void
nk_draw_list_path_line_to(struct nk_draw_list *list, struct nk_vec2 pos)
{
    struct nk_vec2 *points = 0;
    struct nk_draw_command *cmd = 0;
    NK_ASSERT(list);
    if (!list) return;
    if (!list->cmd_count)
        nk_draw_list_add_clip(list, nk_null_rect);

    cmd = nk_draw_list_command_last(list);
    if (cmd && cmd->texture.ptr != list->config.tex_null.texture.ptr)
        nk_draw_list_push_image(list, list->config.tex_null.texture);

    points = nk_draw_list_alloc_path(list, 1);
    if (!points) return;
    points[0] = pos;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movaps %xmm0, (%rsp)
testq %rdi, %rdi
je 0x2a61f
movq %rdi, %rbx
cmpl $0x0, 0xd0(%rdi)
jne 0x2a5b5
movaps 0x43f4a(%rip), %xmm0    # 0x6e4f0
movaps 0x43f53(%rip), %xmm1    # 0x6e500
movq %rbx, %rdi
callq 0x2a66a
movq %rbx, %rdi
callq 0x2a6f4
testq %rax, %rax
je 0x2a5d7
movq 0x88(%rbx), %rsi
cmpq %rsi, 0x18(%rax)
je 0x2a5d7
movq %rbx, %rdi
callq 0x2a76c
movq 0xb0(%rbx), %rdi
movl $0x8, %edx
movl $0x4, %ecx
xorl %esi, %esi
callq 0x25548
testq %rax, %rax
je 0x2a652
movq %rax, %r14
cmpl $0x0, 0xe4(%rbx)
jne 0x2a617
movq 0xb0(%rbx), %rdi
callq 0x13080
movl %r14d, %ecx
subl %eax, %ecx
movl %ecx, 0xe4(%rbx)
incl 0xe0(%rbx)
jmp 0x2a655
movq 0x5d9ca(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x4775c(%rip), %rsi     # 0x71d8c
leaq 0x47773(%rip), %rdx     # 0x71daa
movl $0x282d, %ecx           # imm = 0x282D
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x13780
xorl %r14d, %r14d
testq %r14, %r14
je 0x2a662
movaps (%rsp), %xmm0
movlps %xmm0, (%r14)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_add_clip
NK_INTERN void
nk_draw_list_add_clip(struct nk_draw_list *list, struct nk_rect rect)
{
    NK_ASSERT(list);
    if (!list) return;
    if (!list->cmd_count) {
        nk_draw_list_push_command(list, rect, list->config.tex_null.texture);
    } else {
        struct nk_draw_command *prev = nk_draw_list_command_last(list);
        if (prev->elem_count == 0)
            prev->clip_rect = rect;
        nk_draw_list_push_command(list, rect, prev->texture);
    }
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
testq %rdi, %rdi
je 0x2a6af
movq %rdi, %rbx
cmpl $0x0, 0xd0(%rdi)
je 0x2a6e0
movq %rbx, %rdi
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
callq 0x2a6f4
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
cmpl $0x0, (%rax)
jne 0x2a6a9
movaps %xmm0, %xmm2
movlhps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
movups %xmm2, 0x4(%rax)
movq 0x18(%rax), %rsi
jmp 0x2a6e7
movq 0x5d93a(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x476cc(%rip), %rsi     # 0x71d8c
leaq 0x476e3(%rip), %rdx     # 0x71daa
movl $0x25c7, %ecx           # imm = 0x25C7
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x20, %rsp
popq %rbx
jmp 0x13780
movq 0x88(%rbx), %rsi
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
jmp 0x54c90
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_command_last
NK_INTERN struct nk_draw_command*
nk_draw_list_command_last(struct nk_draw_list *list)
{
    void *memory;
    nk_size size;
    struct nk_draw_command *cmd;
    NK_ASSERT(list->cmd_count);

    memory = nk_buffer_memory(list->buffer);
    size = nk_buffer_total(list->buffer);
    cmd = nk_ptr_add(struct nk_draw_command, memory, size - list->cmd_offset);
    return (cmd - (list->cmd_count-1));
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, 0xd0(%rdi)
jne 0x2a730
movq 0x5d8e5(%rip), %r14     # 0x87ff0
movq (%r14), %rdi
leaq 0x47677(%rip), %rsi     # 0x71d8c
leaq 0x4768e(%rip), %rdx     # 0x71daa
movl $0x25bd, %ecx           # imm = 0x25BD
xorl %eax, %eax
callq 0x12d80
movq (%r14), %rdi
callq 0x13780
movq 0xb0(%rbx), %rdi
callq 0x13080
movq %rax, %r14
movq 0xb0(%rbx), %rdi
callq 0x14030
subq 0xd8(%rbx), %rax
addq %r14, %rax
movl 0xd0(%rbx), %ecx
decl %ecx
shlq $0x5, %rcx
subq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_push_image
NK_INTERN void
nk_draw_list_push_image(struct nk_draw_list *list, nk_handle texture)
{
    NK_ASSERT(list);
    if (!list) return;
    if (!list->cmd_count) {
        nk_draw_list_push_command(list, nk_null_rect, texture);
    } else {
        struct nk_draw_command *prev = nk_draw_list_command_last(list);
        if (prev->elem_count == 0) {
            prev->texture = texture;
        #ifdef NK_INCLUDE_COMMAND_USERDATA
            prev->userdata = list->userdata;
        #endif
    } else if (prev->texture.id != texture.id
        #ifdef NK_INCLUDE_COMMAND_USERDATA
            || prev->userdata.id != list->userdata.id
        #endif
        ) nk_draw_list_push_command(list, prev->clip_rect, texture);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpl $0x0, 0xd0(%rdi)
je 0x2a79d
movq %r14, %rdi
callq 0x2a6f4
cmpl $0x0, (%rax)
je 0x2a7bd
cmpl %ebx, 0x18(%rax)
je 0x2a7c1
movsd 0x4(%rax), %xmm0
movsd 0xc(%rax), %xmm1
jmp 0x2a7ab
movaps 0x43d4c(%rip), %xmm0    # 0x6e4f0
movaps 0x43d55(%rip), %xmm1    # 0x6e500
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x54c90
movq %rbx, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_path_arc_to_fast
NK_API void
nk_draw_list_path_arc_to_fast(struct nk_draw_list *list, struct nk_vec2 center,
    float radius, int a_min, int a_max)
{
    int a = 0;
    NK_ASSERT(list);
    if (!list) return;
    if (a_min <= a_max) {
        for (a = a_min; a <= a_max; a++) {
            const struct nk_vec2 c = list->circle_vtx[(nk_size)a % NK_LEN(list->circle_vtx)];
            const float x = center.x + c.x * radius;
            const float y = center.y + c.y * radius;
            nk_draw_list_path_line_to(list, nk_vec2(x, y));
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
testq %rdi, %rdi
je 0x2a858
movl %edx, %ebx
cmpl %edx, %esi
jg 0x2a84a
movaps %xmm0, %xmm2
movq %rdi, %r14
movslq %esi, %r15
shufps $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
leaq (%rdi,%r15,8), %r12
addq $0x10, %r12
subl %esi, %ebx
incl %ebx
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r15, %rax
mulq %r13
shlq $0x2, %rdx
andq $-0x20, %rdx
leaq (%rdx,%rdx,2), %rax
negq %rax
movsd (%r12,%rax), %xmm0
mulps %xmm1, %xmm0
addps %xmm2, %xmm0
movq %r14, %rdi
callq 0x12970
movaps (%rsp), %xmm2
movaps 0x10(%rsp), %xmm1
incq %r15
addq $0x8, %r12
decl %ebx
jne 0x2a80d
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x5d791(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x47523(%rip), %rsi     # 0x71d8c
leaq 0x4753a(%rip), %rdx     # 0x71daa
movl $0x283f, %ecx           # imm = 0x283F
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_path_curve_to
NK_API void
nk_draw_list_path_curve_to(struct nk_draw_list *list, struct nk_vec2 p2,
    struct nk_vec2 p3, struct nk_vec2 p4, unsigned int num_segments)
{
    float t_step;
    unsigned int i_step;
    struct nk_vec2 p1;

    NK_ASSERT(list);
    NK_ASSERT(list->path_count);
    if (!list || !list->path_count) return;
    num_segments = NK_MAX(num_segments, 1);

    p1 = nk_draw_list_path_last(list);
    t_step = 1.0f/(float)num_segments;
    for (i_step = 1; i_step <= num_segments; ++i_step) {
        float t = t_step * (float)i_step;
        float u = 1.0f - t;
        float w1 = u*u*u;
        float w2 = 3*u*u*t;
        float w3 = 3*u*t*t;
        float w4 = t * t *t;
        float x = w1 * p1.x + w2 * p2.x + w3 * p3.x + w4 * p4.x;
        float y = w1 * p1.y + w2 * p2.y + w3 * p3.y + w4 * p4.y;
        nk_draw_list_path_line_to(list, nk_vec2(x,y));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movl %esi, %ebx
movaps %xmm2, 0x30(%rsp)
movaps %xmm1, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq %rdi, %r14
testq %rdi, %rdi
jne 0x2ac55
movq 0x5d3c0(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x47152(%rip), %rsi     # 0x71d8c
leaq 0x47169(%rip), %rdx     # 0x71daa
movl $0x2896, %ecx           # imm = 0x2896
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
cmpl $0x0, 0xe0(%r14)
jne 0x2ac8b
movq 0x5d38a(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x4711c(%rip), %rsi     # 0x71d8c
leaq 0x47133(%rip), %rdx     # 0x71daa
movl $0x2897, %ecx           # imm = 0x2897
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %r14, %r14
je 0x2ad94
cmpl $0x0, 0xe0(%r14)
je 0x2ad94
cmpl $0x1, %ebx
adcl $0x0, %ebx
movq 0xb0(%r14), %rdi
callq 0x13080
movaps 0x10(%rsp), %xmm7
movaps 0x20(%rsp), %xmm6
movaps 0x30(%rsp), %xmm5
movl 0xe0(%r14), %ecx
movl 0xe4(%r14), %edx
addq %rax, %rdx
decl %ecx
movsd (%rdx,%rcx,8), %xmm0
movaps %xmm0, 0x40(%rsp)
xorps %xmm0, %xmm0
cvtsi2ss %rbx, %xmm0
movss 0x43bc4(%rip), %xmm1    # 0x6e8b4
divss %xmm0, %xmm1
movss %xmm1, 0xc(%rsp)
movl $0x1, %ebp
movl %ebp, %eax
xorps %xmm3, %xmm3
cvtsi2ss %rax, %xmm3
mulss 0xc(%rsp), %xmm3
movss 0x43b9d(%rip), %xmm4    # 0x6e8b4
subss %xmm3, %xmm4
movaps %xmm4, %xmm2
mulss %xmm4, %xmm2
mulss %xmm4, %xmm2
movaps %xmm4, %xmm1
mulss 0x43bcb(%rip), %xmm1    # 0x6e8fc
mulss %xmm1, %xmm4
mulss %xmm3, %xmm4
mulss %xmm3, %xmm1
mulss %xmm3, %xmm1
movaps %xmm3, %xmm0
mulss %xmm3, %xmm0
mulss %xmm3, %xmm0
shufps $0x0, %xmm4, %xmm4      # xmm4 = xmm4[0,0,0,0]
mulps %xmm7, %xmm4
shufps $0x0, %xmm2, %xmm2      # xmm2 = xmm2[0,0,0,0]
mulps 0x40(%rsp), %xmm2
addps %xmm4, %xmm2
shufps $0x0, %xmm1, %xmm1      # xmm1 = xmm1[0,0,0,0]
mulps %xmm6, %xmm1
addps %xmm2, %xmm1
shufps $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
mulps %xmm5, %xmm0
addps %xmm1, %xmm0
movq %r14, %rdi
callq 0x12970
movaps 0x10(%rsp), %xmm7
movaps 0x20(%rsp), %xmm6
movaps 0x30(%rsp), %xmm5
incl %ebp
cmpl %ebx, %ebp
jbe 0x2acff
addq $0x58, %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_draw_list_path_fill
NK_API void
nk_draw_list_path_fill(struct nk_draw_list *list, struct nk_color color)
{
    struct nk_vec2 *points;
    NK_ASSERT(list);
    if (!list) return;
    points = (struct nk_vec2*)nk_buffer_memory(list->buffer);
    nk_draw_list_fill_poly_convex(list, points, list->path_count, color, list->config.shape_AA);
    nk_draw_list_path_clear(list);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2adef
movl %esi, %ebp
movq %rdi, %rbx
movq 0xb0(%rdi), %rdi
callq 0x13080
movl 0x78(%rbx), %r8d
movl 0xe0(%rbx), %edx
movq %rbx, %rdi
movq %rax, %rsi
movl %ebp, %ecx
callq 0x12390
movq 0xb0(%rbx), %rdi
xorl %esi, %esi
callq 0x127a0
movq $0x0, 0xe0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x5d1fa(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x46f8c(%rip), %rsi     # 0x71d8c
leaq 0x46fa3(%rip), %rdx     # 0x71daa
movl $0x28ad, %ecx           # imm = 0x28AD
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_path_stroke
NK_API void
nk_draw_list_path_stroke(struct nk_draw_list *list, struct nk_color color,
    enum nk_draw_list_stroke closed, float thickness)
{
    struct nk_vec2 *points;
    NK_ASSERT(list);
    if (!list) return;
    points = (struct nk_vec2*)nk_buffer_memory(list->buffer);
    nk_draw_list_stroke_poly_line(list, points, list->path_count, color,
        closed, thickness, list->config.line_AA);
    nk_draw_list_path_clear(list);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x2ae8b
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq 0xb0(%rdi), %rdi
movss %xmm0, 0xc(%rsp)
callq 0x13080
movl 0x74(%rbx), %r9d
movl 0xe0(%rbx), %edx
movq %rbx, %rdi
movq %rax, %rsi
movl %r14d, %ecx
movl %ebp, %r8d
movss 0xc(%rsp), %xmm0
callq 0x13910
movq 0xb0(%rbx), %rdi
xorl %esi, %esi
callq 0x127a0
movq $0x0, 0xe0(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq 0x5d15e(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x46ef0(%rip), %rsi     # 0x71d8c
leaq 0x46f07(%rip), %rdx     # 0x71daa
movl $0x28b8, %ecx           # imm = 0x28B8
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x13780
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_stroke_line
NK_API void
nk_draw_list_stroke_line(struct nk_draw_list *list, struct nk_vec2 a,
    struct nk_vec2 b, struct nk_color col, float thickness)
{
    NK_ASSERT(list);
    if (!list || !col.a) return;
    if (list->line_AA == NK_ANTI_ALIASING_ON) {
        nk_draw_list_path_line_to(list, a);
        nk_draw_list_path_line_to(list, b);
    } else {
        nk_draw_list_path_line_to(list, nk_vec2_sub(a,nk_vec2(0.5f,0.5f)));
        nk_draw_list_path_line_to(list, nk_vec2_sub(b,nk_vec2(0.5f,0.5f)));
    }
    nk_draw_list_path_stroke(list,  col, NK_STROKE_OPEN, thickness);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movss %xmm2, 0xc(%rsp)
movl %esi, %ebx
movaps %xmm1, 0x10(%rsp)
movq %rdi, %r14
testq %rdi, %rdi
jne 0x2af13
movq 0x5d10c(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x46e9e(%rip), %rsi     # 0x71d8c
leaq 0x46eb5(%rip), %rdx     # 0x71daa
movl $0x28c3, %ecx           # imm = 0x28C3
xorl %eax, %eax
movaps %xmm0, 0x20(%rsp)
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movaps 0x20(%rsp), %xmm0
testq %r14, %r14
setne %al
cmpl $0x1000000, %ebx        # imm = 0x1000000
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2af42
cmpl $0x1, 0xe8(%r14)
jne 0x2af4c
movq %r14, %rdi
callq 0x12970
movaps 0x10(%rsp), %xmm0
jmp 0x2af67
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
addps 0x436ed(%rip), %xmm0    # 0x6e640
movq %r14, %rdi
callq 0x12970
movaps 0x10(%rsp), %xmm0
addps 0x436d9(%rip), %xmm0    # 0x6e640
movq %r14, %rdi
callq 0x12970
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
movss 0xc(%rsp), %xmm0
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x13b80
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_fill_rect
NK_API void
nk_draw_list_fill_rect(struct nk_draw_list *list, struct nk_rect rect,
    struct nk_color col, float rounding)
{
    NK_ASSERT(list);
    if (!list || !col.a) return;

    if (list->line_AA == NK_ANTI_ALIASING_ON) {
        nk_draw_list_path_rect_to(list, nk_vec2(rect.x, rect.y),
            nk_vec2(rect.x + rect.w, rect.y + rect.h), rounding);
    } else {
        nk_draw_list_path_rect_to(list, nk_vec2(rect.x-0.5f, rect.y-0.5f),
            nk_vec2(rect.x + rect.w, rect.y + rect.h), rounding);
    } nk_draw_list_path_fill(list,  col);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %esi, %ebx
movaps %xmm1, %xmm3
movaps %xmm0, %xmm4
movq %rdi, %r14
testq %rdi, %rdi
jne 0x2afef
movq 0x5d046(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x46dd8(%rip), %rsi     # 0x71d8c
leaq 0x46def(%rip), %rdx     # 0x71daa
movl $0x28d2, %ecx           # imm = 0x28D2
xorl %eax, %eax
movss %xmm2, 0xc(%rsp)
movaps %xmm3, 0x20(%rsp)
movaps %xmm4, 0x10(%rsp)
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movaps 0x10(%rsp), %xmm4
movaps 0x20(%rsp), %xmm3
movss 0xc(%rsp), %xmm2
testq %r14, %r14
setne %al
cmpl $0x1000000, %ebx        # imm = 0x1000000
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2b022
movaps %xmm4, %xmm1
shufps $0x55, %xmm4, %xmm1     # xmm1 = xmm1[1,1],xmm4[1,1]
cmpl $0x1, 0xe8(%r14)
je 0x2b02c
movaps 0x43623(%rip), %xmm0    # 0x6e640
addps %xmm4, %xmm0
jmp 0x2b02f
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movaps %xmm4, %xmm0
movlhps %xmm4, %xmm1            # xmm1 = xmm1[0],xmm4[0]
shufps $0xe2, %xmm4, %xmm1     # xmm1 = xmm1[2,0],xmm4[2,3]
addps %xmm3, %xmm1
movq %r14, %rdi
callq 0x13060
movq %r14, %rdi
movl %ebx, %esi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x12800
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_stroke_rect
NK_API void
nk_draw_list_stroke_rect(struct nk_draw_list *list, struct nk_rect rect,
    struct nk_color col, float rounding, float thickness)
{
    NK_ASSERT(list);
    if (!list || !col.a) return;
    if (list->line_AA == NK_ANTI_ALIASING_ON) {
        nk_draw_list_path_rect_to(list, nk_vec2(rect.x, rect.y),
            nk_vec2(rect.x + rect.w, rect.y + rect.h), rounding);
    } else {
        nk_draw_list_path_rect_to(list, nk_vec2(rect.x-0.5f, rect.y-0.5f),
            nk_vec2(rect.x + rect.w, rect.y + rect.h), rounding);
    } nk_draw_list_path_stroke(list,  col, NK_STROKE_CLOSED, thickness);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movss %xmm3, 0xc(%rsp)
movl %esi, %ebx
movaps %xmm1, %xmm3
movaps %xmm0, %xmm4
movq %rdi, %r14
testq %rdi, %rdi
jne 0x2b0bf
movq 0x5cf76(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x46d08(%rip), %rsi     # 0x71d8c
leaq 0x46d1f(%rip), %rdx     # 0x71daa
movl $0x28e1, %ecx           # imm = 0x28E1
xorl %eax, %eax
movss %xmm2, 0x8(%rsp)
movaps %xmm3, 0x20(%rsp)
movaps %xmm4, 0x10(%rsp)
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movaps 0x10(%rsp), %xmm4
movaps 0x20(%rsp), %xmm3
movss 0x8(%rsp), %xmm2
testq %r14, %r14
setne %al
cmpl $0x1000000, %ebx        # imm = 0x1000000
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2b0f2
movaps %xmm4, %xmm1
shufps $0x55, %xmm4, %xmm1     # xmm1 = xmm1[1,1],xmm4[1,1]
cmpl $0x1, 0xe8(%r14)
je 0x2b0fc
movaps 0x43553(%rip), %xmm0    # 0x6e640
addps %xmm4, %xmm0
jmp 0x2b0ff
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movaps %xmm4, %xmm0
movlhps %xmm4, %xmm1            # xmm1 = xmm1[0],xmm4[0]
shufps $0xe2, %xmm4, %xmm1     # xmm1 = xmm1[2,0],xmm4[2,3]
addps %xmm3, %xmm1
movq %r14, %rdi
callq 0x13060
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %edx
movss 0xc(%rsp), %xmm0
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x13b80
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_fill_triangle
NK_API void
nk_draw_list_fill_triangle(struct nk_draw_list *list, struct nk_vec2 a,
    struct nk_vec2 b, struct nk_vec2 c, struct nk_color col)
{
    NK_ASSERT(list);
    if (!list || !col.a) return;
    nk_draw_list_path_line_to(list, a);
    nk_draw_list_path_line_to(list, b);
    nk_draw_list_path_line_to(list, c);
    nk_draw_list_path_fill(list, col);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %esi, %ebx
movaps %xmm2, 0x20(%rsp)
movaps %xmm1, 0x10(%rsp)
movq %rdi, %r14
testq %rdi, %rdi
jne 0x2b433
movq 0x5cbea(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x4697c(%rip), %rsi     # 0x71d8c
leaq 0x46993(%rip), %rdx     # 0x71daa
movl $0x2911, %ecx           # imm = 0x2911
xorl %eax, %eax
movaps %xmm0, (%rsp)
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movaps (%rsp), %xmm0
testq %r14, %r14
setne %al
cmpl $0x1000000, %ebx        # imm = 0x1000000
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2b47e
movq %r14, %rdi
callq 0x12970
movq %r14, %rdi
movaps 0x10(%rsp), %xmm0
callq 0x12970
movq %r14, %rdi
movaps 0x20(%rsp), %xmm0
callq 0x12970
movq %r14, %rdi
movl %ebx, %esi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x12800
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_stroke_triangle
NK_API void
nk_draw_list_stroke_triangle(struct nk_draw_list *list, struct nk_vec2 a,
    struct nk_vec2 b, struct nk_vec2 c, struct nk_color col, float thickness)
{
    NK_ASSERT(list);
    if (!list || !col.a) return;
    nk_draw_list_path_line_to(list, a);
    nk_draw_list_path_line_to(list, b);
    nk_draw_list_path_line_to(list, c);
    nk_draw_list_path_stroke(list, col, NK_STROKE_CLOSED, thickness);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movss %xmm3, 0xc(%rsp)
movl %esi, %ebx
movaps %xmm2, 0x30(%rsp)
movaps %xmm1, 0x20(%rsp)
movq %rdi, %r14
testq %rdi, %rdi
jne 0x2b4e1
movq 0x5cb3e(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x468d0(%rip), %rsi     # 0x71d8c
leaq 0x468e7(%rip), %rdx     # 0x71daa
movl $0x291c, %ecx           # imm = 0x291C
xorl %eax, %eax
movaps %xmm0, 0x10(%rsp)
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movaps 0x10(%rsp), %xmm0
testq %r14, %r14
setne %al
cmpl $0x1000000, %ebx        # imm = 0x1000000
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2b537
movq %r14, %rdi
callq 0x12970
movq %r14, %rdi
movaps 0x20(%rsp), %xmm0
callq 0x12970
movq %r14, %rdi
movaps 0x30(%rsp), %xmm0
callq 0x12970
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %edx
movss 0xc(%rsp), %xmm0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x13b80
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moonnuklear/src/./nuklear/nuklear.h
// Function: nk_draw_list_fill_circle
NK_API void
nk_draw_list_fill_circle(struct nk_draw_list *list, struct nk_vec2 center,
    float radius, struct nk_color col, unsigned int segs)
{
    float a_max;
    NK_ASSERT(list);
    if (!list || !col.a) return;
    a_max = NK_PI * 2.0f * ((float)segs - 1.0f) / (float)segs;
    nk_draw_list_path_arc_to(list, center, radius, 0.0f, a_max, segs);
    nk_draw_list_path_fill(list, col);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x2b599
movq 0x5ca92(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x46824(%rip), %rsi     # 0x71d8c
leaq 0x4683b(%rip), %rdx     # 0x71daa
movl $0x2928, %ecx           # imm = 0x2928
xorl %eax, %eax
movss %xmm1, 0xc(%rsp)
movaps %xmm0, 0x10(%rsp)
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movaps 0x10(%rsp), %xmm0
movss 0xc(%rsp), %xmm1
testq %r14, %r14
setne %al
cmpl $0x1000000, %ebx        # imm = 0x1000000
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2b5ef
movl %ebp, %eax
cvtsi2ss %rax, %xmm2
movss 0x43306(%rip), %xmm3    # 0x6e8c4
addss %xmm2, %xmm3
mulss 0x43336(%rip), %xmm3    # 0x6e900
divss %xmm2, %xmm3
xorps %xmm2, %xmm2
movq %r14, %rdi
movl %ebp, %esi
callq 0x13480
movq %r14, %rdi
movl %ebx, %esi
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x12800
addq $0x28, %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_draw_list_stroke_circle
NK_API void
nk_draw_list_stroke_circle(struct nk_draw_list *list, struct nk_vec2 center,
    float radius, struct nk_color col, unsigned int segs, float thickness)
{
    float a_max;
    NK_ASSERT(list);
    if (!list || !col.a) return;
    a_max = NK_PI * 2.0f * ((float)segs - 1.0f) / (float)segs;
    nk_draw_list_path_arc_to(list, center, radius, 0.0f, a_max, segs);
    nk_draw_list_path_stroke(list, col, NK_STROKE_CLOSED, thickness);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movss %xmm2, 0xc(%rsp)
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x2b658
movq 0x5c9d3(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x46765(%rip), %rsi     # 0x71d8c
leaq 0x4677c(%rip), %rdx     # 0x71daa
movl $0x2933, %ecx           # imm = 0x2933
xorl %eax, %eax
movss %xmm1, 0x8(%rsp)
movaps %xmm0, 0x10(%rsp)
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movaps 0x10(%rsp), %xmm0
movss 0x8(%rsp), %xmm1
testq %r14, %r14
setne %al
cmpl $0x1000000, %ebx        # imm = 0x1000000
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2b6bc
movl %ebp, %eax
xorps %xmm2, %xmm2
cvtsi2ss %rax, %xmm2
movss 0x43244(%rip), %xmm3    # 0x6e8c4
addss %xmm2, %xmm3
mulss 0x43274(%rip), %xmm3    # 0x6e900
divss %xmm2, %xmm3
xorps %xmm2, %xmm2
movq %r14, %rdi
movl %ebp, %esi
callq 0x13480
movq %r14, %rdi
movl %ebx, %esi
movl $0x1, %edx
movss 0xc(%rsp), %xmm0
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x13b80
addq $0x28, %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_draw_list_stroke_curve
NK_API void
nk_draw_list_stroke_curve(struct nk_draw_list *list, struct nk_vec2 p0,
    struct nk_vec2 cp0, struct nk_vec2 cp1, struct nk_vec2 p1,
    struct nk_color col, unsigned int segments, float thickness)
{
    NK_ASSERT(list);
    if (!list || !col.a) return;
    nk_draw_list_path_line_to(list, p0);
    nk_draw_list_path_curve_to(list, cp0, cp1, p1, segments);
    nk_draw_list_path_stroke(list, col, NK_STROKE_OPEN, thickness);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movss %xmm4, 0xc(%rsp)
movl %edx, %ebp
movl %esi, %ebx
movaps %xmm3, 0x40(%rsp)
movaps %xmm2, 0x30(%rsp)
movaps %xmm1, 0x20(%rsp)
movq %rdi, %r14
testq %rdi, %rdi
jne 0x2b728
movq 0x5c8f7(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x46689(%rip), %rsi     # 0x71d8c
leaq 0x466a0(%rip), %rdx     # 0x71daa
movl $0x293e, %ecx           # imm = 0x293E
xorl %eax, %eax
movaps %xmm0, 0x10(%rsp)
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
movaps 0x10(%rsp), %xmm0
testq %r14, %r14
setne %al
cmpl $0x1000000, %ebx        # imm = 0x1000000
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2b77b
movq %r14, %rdi
callq 0x12970
movq %r14, %rdi
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movaps 0x40(%rsp), %xmm2
movl %ebp, %esi
callq 0x13dc0
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
movss 0xc(%rsp), %xmm0
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x13b80
addq $0x58, %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_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 0x2b7e9
movl %esi, %ebx
movq %rdi, %r14
movaps %xmm1, (%rsp)
movaps %xmm0, 0x10(%rsp)
leaq 0x40(%rsp), %r15
movq (%r15), %rsi
callq 0x2a76c
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 0x2b81e
movaps 0x10(%rsp), %xmm0
movaps %xmm0, %xmm1
addps (%rsp), %xmm1
movaps 0x42dfd(%rip), %xmm3    # 0x6e5e0
xorpd %xmm2, %xmm2
jmp 0x2b85c
movq 0x5c800(%rip), %rbx     # 0x87ff0
movq (%rbx), %rdi
leaq 0x46592(%rip), %rsi     # 0x71d8c
leaq 0x465a9(%rip), %rdx     # 0x71daa
movl $0x296d, %ecx           # imm = 0x296D
xorl %eax, %eax
callq 0x12d80
movq (%rbx), %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x13780
movd 0xc(%r15), %xmm3
pinsrw $0x1, 0xa(%r15), %xmm1
punpcklwd %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1],xmm1[2],xmm0[2],xmm1[3],xmm0[3]
cvtdq2ps %xmm1, %xmm1
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 0x2b8c2
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x2c72c
movq 0x5b8e9(%rip), %r15     # 0x87ff0
movq (%r15), %rdi
leaq 0x4567b(%rip), %rsi     # 0x71d8c
leaq 0x45692(%rip), %rdx     # 0x71daa
movl $0x4ba4, %ecx           # imm = 0x4BA4
xorl %eax, %eax
callq 0x12d80
movq (%r15), %rdi
callq 0x13780
testq %rbx, %rbx
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x2c75b
cmpl $0x0, 0x4790(%rbx)
je 0x2c75b
movq 0x8(%r14), %rax
cmpq 0x2560(%rbx), %rax
jae 0x2c75b
addq 0x2548(%rbx), %rax
jmp 0x2c75d
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: 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 0x2c798
cmpl $0x2, %esi
jae 0x2c7b7
movl %esi, 0x10(%rdi)
popq %rax
retq
leaq 0x4576e(%rip), %rdi     # 0x71f0d
leaq 0x45604(%rip), %rsi     # 0x71daa
leaq 0x4567a(%rip), %rcx     # 0x71e27
movl $0x2b3e, %edx           # imm = 0x2B3E
callq 0x12a50
leaq 0x45600(%rip), %rdi     # 0x71dbe
leaq 0x455e5(%rip), %rsi     # 0x71daa
leaq 0x4565b(%rip), %rcx     # 0x71e27
movl $0x2b3a, %edx           # imm = 0x2B3A
callq 0x12a50