// File: /workspace/github_cpp_makefile_star2_O3/carlos-urena[P]svg-gen/svgobjects.cpp
// Function: Ellipse::Ellipse(unsigned int, VectorTempl3<float> const&, VectorTempl3<float> const&, VectorTempl3<float>)
Ellipse::Ellipse( unsigned n, const vec3 & center, const vec3 & eje1, const vec3 eje2 )
{
  for( unsigned i= 0 ; i < n ; i++ )
  {
    const real ang = real(i)*real(2.0)*real(M_PI)/real(n) ,
               c   = cos(double(ang)),
               s   = sin(double(ang));

    points3D.push_back( center + c*eje1 + s*eje2 ) ;
  }
  style.draw_filled = false ;
  style.draw_lines  = true ;
  style.close_lines = true ;
  style.lines_width = 0.006 ;
  style.lines_color = vec3( 0.0, 1.0, 0.0 );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %r12d
movq %rdi, %rbx
movlps %xmm0, -0xa0(%rbp)
movss %xmm1, -0x98(%rbp)
movb $0x0, 0x8(%rdi)
leaq 0x91a3(%rip), %rax      # 0x11760
movq %rax, (%rdi)
addq $0x20, %rdi
callq 0x6c64
xorps %xmm0, %xmm0
movups %xmm0, 0x88(%rbx)
movups %xmm0, 0x78(%rbx)
movups %xmm0, 0x68(%rbx)
leaq 0x92de(%rip), %rax      # 0x118c0
movq %rax, (%rbx)
testl %r12d, %r12d
je 0x875b
movl %r12d, %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movss %xmm0, -0x3c(%rbp)
leaq 0x68(%rbx), %rax
movq %rax, -0x58(%rbp)
xorl %r13d, %r13d
movl %r13d, %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
mulss 0x4c78(%rip), %xmm0     # 0xd298
divss -0x3c(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x60(%rbp)
callq 0x32e0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x40(%rbp)
movsd -0x60(%rbp), %xmm0
callq 0x3060
movss -0x40(%rbp), %xmm2
xorl %eax, %eax
movss (%r14,%rax,4), %xmm1
mulss %xmm2, %xmm1
movss %xmm1, -0x38(%rbp,%rax,4)
incq %rax
cmpq $0x3, %rax
jne 0x864d
movsd -0x38(%rbp), %xmm1
movss -0x30(%rbp), %xmm2
movsd %xmm1, -0x80(%rbp)
movss %xmm2, -0x78(%rbp)
xorl %eax, %eax
movss (%r15,%rax,4), %xmm1
addss -0x80(%rbp,%rax,4), %xmm1
movss %xmm1, -0x38(%rbp,%rax,4)
incq %rax
cmpq $0x3, %rax
jne 0x867c
cvtsd2ss %xmm0, %xmm0
movsd -0x38(%rbp), %xmm1
movss -0x30(%rbp), %xmm2
movsd %xmm1, -0x90(%rbp)
movss %xmm2, -0x88(%rbp)
xorl %eax, %eax
movss -0xa0(%rbp,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, -0x38(%rbp,%rax,4)
incq %rax
cmpq $0x3, %rax
jne 0x86b7
movsd -0x38(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movsd %xmm0, -0x70(%rbp)
movss %xmm1, -0x68(%rbp)
xorl %eax, %eax
movss -0x90(%rbp,%rax,4), %xmm0
addss -0x70(%rbp,%rax,4), %xmm0
movss %xmm0, -0x38(%rbp,%rax,4)
incq %rax
cmpq $0x3, %rax
jne 0x86e9
movsd -0x38(%rbp), %xmm0
movss -0x30(%rbp), %xmm1
movss %xmm0, -0x4c(%rbp)
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movss %xmm0, -0x48(%rbp)
movss %xmm1, -0x44(%rbp)
movq 0x70(%rbx), %rsi
cmpq 0x78(%rbx), %rsi
je 0x8742
movl -0x44(%rbp), %eax
movl %eax, 0x8(%rsi)
movq -0x4c(%rbp), %rax
movq %rax, (%rsi)
addq $0xc, 0x70(%rbx)
jmp 0x874f
movq -0x58(%rbp), %rdi
leaq -0x4c(%rbp), %rdx
callq 0xc244
incl %r13d
cmpl %r12d, %r13d
jne 0x8609
movb $0x0, 0x3a(%rbx)
movw $0x101, 0x38(%rbx)      # imm = 0x101
movl $0x3bc49ba6, 0x3c(%rbx) # imm = 0x3BC49BA6
movabsq $0x3f80000000000000, %rax # imm = 0x3F80000000000000
movq %rax, 0x20(%rbx)
movl $0x0, 0x28(%rbx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0xbbb4
movq %r14, %rdi
callq 0x32b0
nop