// File: /workspace/github_cpp_makefile_star2_O1/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 $0x48, %rsp
movslq 0x78(%rdi), %rax
testq %rax, %rax
jle 0x794b4
movq %rsi, %r15
movq %rdi, %rbx
movq 0x80(%rdi), %rsi
movss -0x8(%rsi,%rax,8), %xmm0
movss -0x4(%rsi,%rax,8), %xmm1
testl %ecx, %ecx
je 0x7947e
jle 0x7946f
cvtsi2ss %ecx, %xmm2
movss 0x3dcf7(%rip), %xmm3    # 0xb6fe4
movaps %xmm3, %xmm4
divss %xmm2, %xmm4
negl %ecx
movl $0x1, %r12d
movq %rdx, -0x50(%rbp)
movss %xmm0, -0x34(%rbp)
movss %xmm1, -0x30(%rbp)
movq %rcx, -0x48(%rbp)
movss %xmm4, -0x2c(%rbp)
xorps %xmm5, %xmm5
cvtsi2ss %r12d, %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
movl 0x78(%rbx), %r14d
movl 0x7c(%rbx), %eax
cmpl %eax, %r14d
jne 0x79420
testl %eax, %eax
je 0x79375
movl %eax, %esi
shrl $0x1f, %esi
addl %eax, %esi
sarl %esi
addl %eax, %esi
jmp 0x7937a
movl $0x8, %esi
incl %r14d
cmpl %r14d, %esi
cmovgl %esi, %r14d
cmpl %r14d, %eax
jge 0x79420
movss %xmm9, -0x38(%rbp)
movaps %xmm8, -0x60(%rbp)
movss %xmm7, -0x3c(%rbp)
movss %xmm6, -0x40(%rbp)
movaps %xmm5, -0x70(%rbp)
movslq %r14d, %rdi
shlq $0x3, %rdi
callq 0x424fb
movq %rax, %r13
movq 0x80(%rbx), %rsi
testq %rsi, %rsi
je 0x793dd
movslq 0x78(%rbx), %rdx
shlq $0x3, %rdx
movq %r13, %rdi
callq 0xc080
movq 0x80(%rbx), %rdi
callq 0x425d4
movq %r13, 0x80(%rbx)
movl %r14d, 0x7c(%rbx)
movq -0x50(%rbp), %rdx
movss -0x34(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movq -0x48(%rbp), %rcx
movss 0x3dbe2(%rip), %xmm3    # 0xb6fe4
movss -0x2c(%rbp), %xmm4
movaps -0x70(%rbp), %xmm5
movss -0x40(%rbp), %xmm6
movss -0x3c(%rbp), %xmm7
movaps -0x60(%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]
movq 0x80(%rbx), %rax
movslq 0x78(%rbx), %rsi
movlps %xmm8, (%rax,%rsi,8)
incl 0x78(%rbx)
leal (%rcx,%r12), %eax
incl %eax
movl %r12d, %esi
incl %esi
movl %esi, %r12d
cmpl $0x1, %eax
jne 0x79313
addq $0x48, %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(%rbx), %rax
addq $0x78, %rbx
movss 0x14(%rax), %xmm6
movq %rbx, %rdi
xorl %esi, %esi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x794d3
leaq 0x5651f(%rip), %rdi     # 0xcf9da
leaq 0x421c9(%rip), %rsi     # 0xbb68b
leaq 0x4ec47(%rip), %rcx     # 0xc8110
movl $0x666, %edx            # imm = 0x666
callq 0xc140