// File: carlos-urena[P]svg-gen/svgobjects.cpp
// Function: YCylinderPoint::YCylinderPoint(Point&)
YCylinderPoint::YCylinderPoint( Point & ppoint )

: Point(vec3(0,0,0),vec3(1.0,0.0,0.0))
{
  assert( ! ppoint.projected );

  vec3       pesf = ppoint.pos3D.normalized();
  const real f    = real(1.0)/real(sqrt( double( pesf[0]*pesf[0]+pesf[2]*pesf[2] )));

  pos3D = vec3(  f*pesf[0], pesf[1], f*pesf[2]) ;
  color = vec3(1.0,0.0,0.0) ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
leaq -0x1c(%rbp), %rdi
leaq -0x20(%rbp), %rsi
leaq -0x24(%rbp), %rdx
leaq -0x28(%rbp), %rcx
callq 0x8c30
movl $0x3f800000, -0x38(%rbp) # imm = 0x3F800000
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x40(%rbp)
leaq -0x34(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x3c(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x8c30
movq -0xd0(%rbp), %rdi
movl -0x14(%rbp), %eax
movl %eax, -0x48(%rbp)
movq -0x1c(%rbp), %rax
movq %rax, -0x50(%rbp)
movsd -0x50(%rbp), %xmm0
movss -0x48(%rbp), %xmm1
movl -0x2c(%rbp), %eax
movl %eax, -0x58(%rbp)
movq -0x34(%rbp), %rax
movq %rax, -0x60(%rbp)
movsd -0x60(%rbp), %xmm2
movss -0x58(%rbp), %xmm3
callq 0xad10
movq -0xd0(%rbp), %rax
leaq 0xbb7c(%rip), %rcx      # 0x1db08
addq $0x10, %rcx
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movb 0x8(%rax), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x11fa2
jmp 0x11fa4
jmp 0x11fc3
leaq 0x5ba5(%rip), %rdi      # 0x17b50
leaq 0x54be(%rip), %rsi      # 0x17470
movl $0x446, %edx            # imm = 0x446
leaq 0x5ba5(%rip), %rcx      # 0x17b63
callq 0x3100
movq -0x10(%rbp), %rdi
addq $0x1c, %rdi
callq 0x8ea0
movss %xmm1, -0xe4(%rbp)
movaps %xmm0, -0xe0(%rbp)
jmp 0x11fe1
movss -0xe4(%rbp), %xmm0
movaps -0xe0(%rbp), %xmm1
movlpd %xmm1, -0x98(%rbp)
movss %xmm0, -0x90(%rbp)
movl -0x90(%rbp), %eax
movl %eax, -0x70(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x6c(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x8e00
jmp 0x12023
leaq -0x6c(%rbp), %rdi
callq 0x93d0
movq %rax, -0xf0(%rbp)
jmp 0x12035
movq -0xf0(%rbp), %rax
movss (%rax), %xmm0
movss %xmm0, -0xfc(%rbp)
leaq -0x6c(%rbp), %rdi
callq 0x93d0
movq %rax, -0xf8(%rbp)
jmp 0x1205a
movq -0xf8(%rbp), %rax
movss (%rax), %xmm0
movss %xmm0, -0x10c(%rbp)
leaq -0x6c(%rbp), %rdi
callq 0x93d0
movq %rax, -0x108(%rbp)
jmp 0x1207f
movq -0x108(%rbp), %rax
movss 0x8(%rax), %xmm0
movss %xmm0, -0x11c(%rbp)
leaq -0x6c(%rbp), %rdi
callq 0x93d0
movq %rax, -0x118(%rbp)
jmp 0x120a5
movss -0x10c(%rbp), %xmm2
movss -0xfc(%rbp), %xmm0
movss -0x11c(%rbp), %xmm1
movq -0x118(%rbp), %rax
movss 0x8(%rax), %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x3140
cvtsd2ss %xmm0, %xmm1
movss 0x4f1a(%rip), %xmm0     # 0x17004
divss %xmm1, %xmm0
movss %xmm0, -0x9c(%rbp)
movss -0x9c(%rbp), %xmm0
movss %xmm0, -0x12c(%rbp)
leaq -0x6c(%rbp), %rdi
callq 0x93d0
movq %rax, -0x128(%rbp)
jmp 0x12118
movss -0x12c(%rbp), %xmm0
movq -0x128(%rbp), %rax
movss (%rax), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0xac(%rbp)
leaq -0x6c(%rbp), %rdi
callq 0x93d0
movq %rax, -0x138(%rbp)
jmp 0x12149
movq -0x138(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x150(%rbp)
movss -0x9c(%rbp), %xmm0
movss %xmm0, -0x144(%rbp)
leaq -0x6c(%rbp), %rdi
callq 0x93d0
movq %rax, -0x140(%rbp)
jmp 0x1217d
movq -0x150(%rbp), %rdx
movss -0x144(%rbp), %xmm0
movq -0x140(%rbp), %rax
movss 0x8(%rax), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, -0xb0(%rbp)
leaq -0xa8(%rbp), %rdi
leaq -0xac(%rbp), %rsi
leaq -0xb0(%rbp), %rcx
callq 0x8c30
jmp 0x121c0
movq -0xd0(%rbp), %rax
movl -0xa0(%rbp), %ecx
movl %ecx, 0x24(%rax)
movq -0xa8(%rbp), %rcx
movq %rcx, 0x1c(%rax)
movl $0x3f800000, -0xc0(%rbp) # imm = 0x3F800000
movl $0x0, -0xc4(%rbp)
movl $0x0, -0xc8(%rbp)
leaq -0xbc(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
leaq -0xc4(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
callq 0x8c30
jmp 0x1221c
movq -0xd0(%rbp), %rax
movq -0xbc(%rbp), %rcx
movq %rcx, 0x28(%rax)
movl -0xb4(%rbp), %ecx
movl %ecx, 0x30(%rax)
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0xd0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
callq 0x14010
movq -0x80(%rbp), %rdi
callq 0x3280
nopw %cs:(%rax,%rax)