// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_draw.cpp
// Function: ImDrawList::PathBezierQuadraticCurveTo(ImVec2 const&, ImVec2 const&, int)
void ImDrawList::PathBezierQuadraticCurveTo(const ImVec2& p2, const ImVec2& p3, int num_segments)
{
    ImVec2 p1 = _Path.back();
    if (num_segments == 0)
    {
        PathBezierQuadraticCurveToCasteljau(&_Path, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, _Data->CurveTessellationTol, 0);// Auto-tessellated
    }
    else
    {
        float t_step = 1.0f / (float)num_segments;
        for (int i_step = 1; i_step <= num_segments; i_step++)
            _Path.push_back(ImBezierQuadraticCalc(p1, p2, p3, t_step * i_step));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movslq 0x78(%rdi), %rbx
testq %rbx, %rbx
jle 0x77d1a
movq %rsi, %r15
movq %rdi, %r14
addq $0x78, %rdi
movq 0x80(%r14), %rax
movss -0x8(%rax,%rbx,8), %xmm0
movss -0x4(%rax,%rbx,8), %xmm1
testl %ecx, %ecx
je 0x77ceb
jle 0x77cdc
cvtsi2ss %ecx, %xmm2
movss 0x3d487(%rip), %xmm3    # 0xb4fe4
movaps %xmm3, %xmm4
divss %xmm2, %xmm4
negl %ecx
movl $0x1, %r13d
movq %rdx, -0x58(%rbp)
movq %rcx, -0x50(%rbp)
movq %rdi, -0x48(%rbp)
movss %xmm0, -0x34(%rbp)
movss %xmm1, -0x30(%rbp)
movss %xmm4, -0x2c(%rbp)
xorps %xmm5, %xmm5
cvtsi2ss %r13d, %xmm5
mulss %xmm4, %xmm5
movaps %xmm3, %xmm6
subss %xmm5, %xmm6
movaps %xmm6, %xmm7
addss %xmm6, %xmm7
mulss %xmm5, %xmm7
mulss %xmm5, %xmm5
movss (%r15), %xmm9
mulss %xmm7, %xmm9
movss (%rdx), %xmm8
mulss %xmm5, %xmm8
mulss 0x4(%r15), %xmm7
mulss 0x4(%rdx), %xmm5
cmpl 0x7c(%r14), %ebx
jne 0x77bf8
testl %ebx, %ebx
movaps %xmm5, -0x80(%rbp)
movss %xmm6, -0x40(%rbp)
movss %xmm7, -0x3c(%rbp)
movaps %xmm8, -0x70(%rbp)
movss %xmm9, -0x38(%rbp)
je 0x77c04
movl %ebx, %eax
shrl $0x1f, %eax
addl %ebx, %eax
sarl %eax
addl %ebx, %eax
jmp 0x77c09
movq 0x80(%r14), %r12
jmp 0x77c92
movl $0x8, %eax
incl %ebx
cmpl %ebx, %eax
cmovgl %eax, %ebx
movslq %ebx, %rdi
shlq $0x3, %rdi
callq 0x41c63
movq %rax, %r12
movq 0x80(%r14), %rsi
testq %rsi, %rsi
je 0x77c47
movslq 0x78(%r14), %rdx
shlq $0x3, %rdx
movq %r12, %rdi
callq 0xc080
movq 0x80(%r14), %rdi
callq 0x41d3c
movq %r12, 0x80(%r14)
movl %ebx, 0x7c(%r14)
movl 0x78(%r14), %ebx
movq -0x58(%rbp), %rdx
movq -0x50(%rbp), %rcx
movq -0x48(%rbp), %rdi
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movss 0x3d370(%rip), %xmm3    # 0xb4fe4
movss -0x2c(%rbp), %xmm4
movaps -0x80(%rbp), %xmm5
movss -0x40(%rbp), %xmm6
movss -0x3c(%rbp), %xmm7
movaps -0x70(%rbp), %xmm8
movss -0x38(%rbp), %xmm9
mulss %xmm6, %xmm6
movaps %xmm6, %xmm2
mulss %xmm0, %xmm2
addss %xmm9, %xmm2
addss %xmm2, %xmm8
mulss %xmm1, %xmm6
addss %xmm7, %xmm6
addss %xmm6, %xmm5
unpcklps %xmm5, %xmm8            # xmm8 = xmm8[0],xmm5[0],xmm8[1],xmm5[1]
movslq %ebx, %rax
movlps %xmm8, (%r12,%rax,8)
movl (%rdi), %ebx
incl %ebx
movl %ebx, (%rdi)
leal (%rcx,%r13), %eax
incl %eax
movl %r13d, %esi
incl %esi
movl %esi, %r13d
cmpl $0x1, %eax
jne 0x77b87
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movss (%r15), %xmm2
movss 0x4(%r15), %xmm3
movss (%rdx), %xmm4
movss 0x4(%rdx), %xmm5
movq 0x38(%r14), %rax
movss 0x14(%rax), %xmm6
xorl %esi, %esi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x77d39
leaq 0x55c89(%rip), %rdi     # 0xcd9aa
leaq 0x41963(%rip), %rsi     # 0xb968b
leaq 0x4e380(%rip), %rcx     # 0xc60af
movl $0x666, %edx            # imm = 0x666
callq 0xc140