// File: /workspace/github_cpp_makefile_star2_O1/donfreiday[P]gb/./imgui/imgui_draw.cpp
// Function: ImDrawList::PathArcTo(ImVec2 const&, float, float, float, int)
void ImDrawList::PathArcTo(const ImVec2& centre, float radius, float amin, float amax, int num_segments)
{
    if (radius == 0.0f)
        _Path.push_back(centre);
    _Path.reserve(_Path.Size + (num_segments + 1));
    for (int i = 0; i <= num_segments; i++)
    {
        const float a = amin + ((float)i / (float)num_segments) * (amax - amin);
        _Path.push_back(ImVec2(centre.x + cosf(a) * radius, centre.y + sinf(a) * radius));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r12d
movss %xmm2, -0x2c(%rbp)
movss %xmm1, -0x34(%rbp)
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm1, %xmm1
movss %xmm0, -0x3c(%rbp)
ucomiss %xmm1, %xmm0
jne 0x2f34d
jp 0x2f34d
movl 0x70(%r15), %r13d
movl 0x74(%r15), %eax
cmpl %eax, %r13d
jne 0x2f337
incl %r13d
testl %eax, %eax
je 0x2f2ec
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x2f2f1
movl $0x8, %ecx
cmpl %r13d, %ecx
cmovgl %ecx, %r13d
cmpl %r13d, %eax
jge 0x2f337
movslq %r13d, %rdi
shlq $0x3, %rdi
callq 0x85d9
movl %r12d, %ebx
movq %rax, %r12
movq 0x78(%r15), %rsi
movslq 0x70(%r15), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x7080
movq 0x78(%r15), %rdi
callq 0x9065
movq %r12, 0x78(%r15)
movl %ebx, %r12d
movl %r13d, 0x74(%r15)
movq 0x78(%r15), %rax
movslq 0x70(%r15), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x70(%r15)
movq (%r14), %rdx
movq %rdx, (%rax,%rcx,8)
movslq 0x70(%r15), %rax
movslq %r12d, %rcx
leaq (%rcx,%rax), %rbx
incq %rbx
cmpl %ebx, 0x74(%r15)
jge 0x2f39b
movq %rbx, %rdi
shlq $0x3, %rdi
callq 0x85d9
movl %r12d, %r13d
movq %rax, %r12
movq 0x78(%r15), %rsi
movslq 0x70(%r15), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x7080
movq 0x78(%r15), %rdi
callq 0x9065
movq %r12, 0x78(%r15)
movl %r13d, %r12d
movl %ebx, 0x74(%r15)
testl %r12d, %r12d
js 0x2f4c9
xorps %xmm0, %xmm0
cvtsi2ss %r12d, %xmm0
movss %xmm0, -0x38(%rbp)
movss -0x2c(%rbp), %xmm0
subss -0x34(%rbp), %xmm0
movss %xmm0, -0x2c(%rbp)
incl %r12d
xorl %r13d, %r13d
movq %r14, -0x50(%rbp)
xorps %xmm1, %xmm1
cvtsi2ss %r13d, %xmm1
divss -0x38(%rbp), %xmm1
mulss -0x2c(%rbp), %xmm1
addss -0x34(%rbp), %xmm1
movss %xmm1, -0x30(%rbp)
movss (%r14), %xmm0
movss %xmm0, -0x44(%rbp)
movaps %xmm1, %xmm0
callq 0x74f0
movss %xmm0, -0x48(%rbp)
movss 0x4(%r14), %xmm0
movss %xmm0, -0x40(%rbp)
movss -0x30(%rbp), %xmm0
callq 0x7050
movl 0x70(%r15), %ebx
movl 0x74(%r15), %eax
cmpl %eax, %ebx
jne 0x2f487
testl %eax, %eax
je 0x2f42f
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x2f434
movl $0x8, %ecx
incl %ebx
cmpl %ebx, %ecx
cmovgl %ecx, %ebx
cmpl %ebx, %eax
jge 0x2f487
movslq %ebx, %rdi
shlq $0x3, %rdi
movss %xmm0, -0x30(%rbp)
callq 0x85d9
movl %r12d, %r14d
movq %rax, %r12
movq 0x78(%r15), %rsi
movslq 0x70(%r15), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
callq 0x7080
movq 0x78(%r15), %rdi
callq 0x9065
movss -0x30(%rbp), %xmm0
movq %r12, 0x78(%r15)
movl %r14d, %r12d
movq -0x50(%rbp), %r14
movl %ebx, 0x74(%r15)
movss -0x3c(%rbp), %xmm2
movss -0x48(%rbp), %xmm1
mulss %xmm2, %xmm1
addss -0x44(%rbp), %xmm1
mulss %xmm2, %xmm0
addss -0x40(%rbp), %xmm0
movq 0x78(%r15), %rax
movslq 0x70(%r15), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x70(%r15)
movss %xmm1, (%rax,%rcx,8)
movss %xmm0, 0x4(%rax,%rcx,8)
incl %r13d
cmpl %r13d, %r12d
jne 0x2f3ca
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq