// File: /workspace/github_cpp_makefile_star2_O3/carlos-urena[P]svg-gen/figures.cpp
// Function: Figure1_HatBox::Figure1_HatBox()
Figure1_HatBox::Figure1_HatBox()
{
  vec3 observador = vec3(0.4,0.5,1.0),
       lookat     = vec3(0.0,0.0,0.0),
       vup        = vec3(0.0,1.0,0.0);

  cam = Camera( lookat, observador, vup );

  // elipse plana original  (no en esfera ni cilindro: no se dibuja)
  Ellipse * pe = new Ellipse( 64, vec3(1.0,1.3,0.0), vec3(0.0,0.4,0.0), vec3(0.0,0.0,0.2) );

  // esfera con relleno de gradiente radial
  Sphere * pes2D = new Sphere( vec3(0.0,0.0,0.0), 1.0 );

  // region
  SpherePolygon *    pesf  = new SpherePolygon( *pe );
  YCylinderPolygon * pcy   = new YCylinderPolygon( *pe );

  //añadir objetos
  const int cadacuantos = 4 ;

  objetos.add( new Axes( 0.010 ) );
  objetos.add( pes2D );
  objetos.add( new YAxisProjectorsSegments( cadacuantos, *pesf ) );
  objetos.add( pesf );
  objetos.add( new SegmentsVert( cadacuantos, *pesf, *pcy ) );
  objetos.add( pcy );
  objetos.add( new YAxisCylinder( cam ) );

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
callq 0xa414
movabsq $0x3f0000003ecccccd, %rax # imm = 0x3F0000003ECCCCCD
leaq -0x98(%rbp), %rdx
movq %rax, (%rdx)
movl $0x3f800000, 0x8(%rdx)  # imm = 0x3F800000
leaq -0x8c(%rbp), %rsi
movq $0x0, (%rsi)
xorl %eax, %eax
movl %eax, 0x8(%rsi)
movabsq $0x3f80000000000000, %rdi # imm = 0x3F80000000000000
leaq -0x80(%rbp), %rcx
movq %rdi, (%rcx)
movl %eax, 0x8(%rcx)
leaq -0x68(%rbp), %rdi
movq %rbx, -0x38(%rbp)
callq 0x6c30
movups -0x68(%rbp), %xmm0
movups -0x58(%rbp), %xmm1
movups -0x48(%rbp), %xmm2
movups %xmm2, 0x20(%rbx)
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
movl $0x98, %edi
callq 0x31d0
movq %rax, %r12
movabsq $0x3fa666663f800000, %rax # imm = 0x3FA666663F800000
leaq -0x68(%rbp), %rdx
movq %rax, (%rdx)
xorl %eax, %eax
movl %eax, 0x8(%rdx)
movabsq $0x3ecccccd00000000, %rsi # imm = 0x3ECCCCCD00000000
leaq -0x74(%rbp), %rcx
movq %rsi, (%rcx)
movl %eax, 0x8(%rcx)
movss 0x9a6a(%rip), %xmm1     # 0xd004
xorps %xmm0, %xmm0
movq %r12, %rdi
movl $0x40, %esi
callq 0x8586
movl $0x38, %edi
callq 0x31d0
movq %rax, %r13
leaq -0x68(%rbp), %rsi
movq $0x0, (%rsi)
movl $0x0, 0x8(%rsi)
movss 0x9a37(%rip), %xmm0     # 0xd008
movq %rax, %rdi
callq 0x76c8
movl $0x98, %edi
callq 0x31d0
movq %rax, %r14
movq %rax, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0xa96a
movl $0x98, %edi
callq 0x31d0
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0xb24e
movl $0x38, %edi
callq 0x31d0
movq %rax, %rbx
movss 0x99ec(%rip), %xmm0     # 0xd00c
movq %rax, %rdi
xorl %esi, %esi
callq 0x976c
movq -0x38(%rbp), %rax
leaq 0x30(%rax), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7554
movq %r12, %rdi
movq %r13, %rsi
callq 0x7554
movl $0x38, %edi
callq 0x31d0
movq %rax, %rbx
movq %rax, %rdi
movl $0x4, %esi
movq %r14, %rdx
callq 0x99e0
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7554
movq %r12, %rdi
movq %r14, %rsi
callq 0x7554
movl $0x38, %edi
callq 0x31d0
movq %rax, %rbx
movq %rax, %rdi
movl $0x4, %esi
movq %r14, %rdx
movq %r15, %rcx
callq 0x95e2
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7554
movq %r12, %rdi
movq %r15, %rsi
callq 0x7554
movl $0x38, %edi
callq 0x31d0
movq %rax, %rbx
movq %rax, %rdi
movq -0x38(%rbp), %rsi
callq 0x9b66
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7554
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x36ea
jmp 0x36ea
jmp 0x36ea
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
jmp 0x371b
movq %rax, -0x30(%rbp)
movq %r15, %rdi
jmp 0x371b
jmp 0x3726
movq %rax, -0x30(%rbp)
movq %r14, %rdi
jmp 0x371b
jmp 0x3726
movq %rax, -0x30(%rbp)
movq %r13, %rdi
jmp 0x371b
jmp 0x3726
movq %rax, -0x30(%rbp)
movq %r12, %rdi
callq 0x31a0
jmp 0x372a
jmp 0x3726
jmp 0x3726
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rbx
leaq 0x70(%rbx), %rdi
callq 0x5d8c
addq $0x30, %rbx
movq %rbx, %rdi
callq 0xbb8e
movq -0x30(%rbp), %rdi
callq 0x32b0