// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x78, %rsp
movlpd %xmm0, 0x70(%rsp)
movlpd %xmm1, 0x68(%rsp)
movlpd %xmm2, 0x60(%rsp)
movq %rdi, 0x58(%rsp)
movl %esi, 0x54(%rsp)
cmpq $0x0, 0x58(%rsp)
jne 0x392da
movq 0x8bd42(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x780e8(%rip), %rsi     # 0xb13a0
leaq 0x780ff(%rip), %rdx     # 0xb13be
movl $0x2896, %ecx           # imm = 0x2896
movb $0x0, %al
callq 0x13ec0
movq 0x8bd1e(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x392dc
jmp 0x392de
movq 0x58(%rsp), %rax
cmpl $0x0, 0xe0(%rax)
jne 0x3931f
movq 0x8bcfd(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
leaq 0x780a3(%rip), %rsi     # 0xb13a0
leaq 0x780ba(%rip), %rdx     # 0xb13be
movl $0x2897, %ecx           # imm = 0x2897
movb $0x0, %al
callq 0x13ec0
movq 0x8bcd9(%rip), %rax     # 0xc4ff0
movq (%rax), %rdi
callq 0x149a0
jmp 0x39321
cmpq $0x0, 0x58(%rsp)
je 0x39337
movq 0x58(%rsp), %rax
cmpl $0x0, 0xe0(%rax)
jne 0x3933c
jmp 0x39532
cmpl $0x1, 0x54(%rsp)
jae 0x3934e
movl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x39356
movl 0x54(%rsp), %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movl %eax, 0x54(%rsp)
movq 0x58(%rsp), %rdi
callq 0x39540
movlpd %xmm0, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x40(%rsp)
movl 0x54(%rsp), %eax
cvtsi2ss %rax, %xmm1
movss 0x7415f(%rip), %xmm0    # 0xad4e8
divss %xmm1, %xmm0
movss %xmm0, 0x50(%rsp)
movl $0x1, 0x4c(%rsp)
movl 0x4c(%rsp), %eax
cmpl 0x54(%rsp), %eax
ja 0x39532
movss 0x50(%rsp), %xmm0
movl 0x4c(%rsp), %eax
cvtsi2ss %rax, %xmm1
mulss %xmm1, %xmm0
movss %xmm0, 0x34(%rsp)
movss 0x34(%rsp), %xmm1
movss 0x74118(%rip), %xmm0    # 0xad4e8
subss %xmm1, %xmm0
movss %xmm0, 0x30(%rsp)
movss 0x30(%rsp), %xmm1
movaps %xmm1, %xmm0
mulss %xmm0, %xmm0
mulss %xmm1, %xmm0
movss %xmm0, 0x2c(%rsp)
movss 0x30(%rsp), %xmm2
movss 0x74125(%rip), %xmm1    # 0xad524
movaps %xmm2, %xmm0
mulss %xmm1, %xmm0
mulss %xmm2, %xmm0
movss 0x34(%rsp), %xmm2
mulss %xmm2, %xmm0
movss %xmm0, 0x28(%rsp)
movss 0x30(%rsp), %xmm0
mulss %xmm1, %xmm0
movss 0x34(%rsp), %xmm1
mulss %xmm1, %xmm0
mulss %xmm1, %xmm0
movss %xmm0, 0x24(%rsp)
movss 0x34(%rsp), %xmm1
movaps %xmm1, %xmm0
mulss %xmm0, %xmm0
mulss %xmm1, %xmm0
movss %xmm0, 0x20(%rsp)
movss 0x2c(%rsp), %xmm0
movss 0x40(%rsp), %xmm2
movss 0x28(%rsp), %xmm1
movss 0x70(%rsp), %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0x24(%rsp), %xmm1
movss 0x68(%rsp), %xmm2
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss 0x20(%rsp), %xmm0
movss 0x60(%rsp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x1c(%rsp)
movss 0x2c(%rsp), %xmm0
movss 0x44(%rsp), %xmm2
movss 0x28(%rsp), %xmm1
movss 0x74(%rsp), %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss 0x24(%rsp), %xmm1
movss 0x6c(%rsp), %xmm2
mulss %xmm2, %xmm1
addss %xmm0, %xmm1
movss 0x20(%rsp), %xmm0
movss 0x64(%rsp), %xmm2
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x18(%rsp)
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
movss 0x1c(%rsp), %xmm0
movss 0x18(%rsp), %xmm1
callq 0x13460
movq (%rsp), %rdi
movlpd %xmm0, 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
callq 0x13a50
movl 0x4c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4c(%rsp)
jmp 0x3939b
addq $0x78, %rsp
retq
nopw (%rax,%rax)