// File: /workspace/github_cpp_makefile_star2_O2/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 0x8796
movabsq $0x3f0000003ecccccd, %rax # imm = 0x3F0000003ECCCCCD
leaq -0x8c(%rbp), %rsi
andq $0x0, (%rsi)
leaq -0x98(%rbp), %rdx
andl $0x0, 0x8(%rsi)
movq %rax, (%rdx)
movl $0x3f800000, 0x8(%rdx)  # imm = 0x3F800000
movabsq $0x3f80000000000000, %rax # imm = 0x3F80000000000000
leaq -0x80(%rbp), %rcx
movq %rax, (%rcx)
andl $0x0, 0x8(%rcx)
leaq -0x68(%rbp), %rdi
movq %rbx, -0x38(%rbp)
callq 0x5f0c
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 0x31b0
movq %rax, %r12
movabsq $0x3fa666663f800000, %rax # imm = 0x3FA666663F800000
leaq -0x68(%rbp), %rdx
movq %rax, (%rdx)
andl $0x0, 0x8(%rdx)
movabsq $0x3ecccccd00000000, %rax # imm = 0x3ECCCCCD00000000
leaq -0x74(%rbp), %rcx
movq %rax, (%rcx)
andl $0x0, 0x8(%rcx)
pushq $0x40
popq %rsi
movss 0x7b0a(%rip), %xmm1     # 0xb004
xorps %xmm0, %xmm0
movq %r12, %rdi
callq 0x70d6
pushq $0x38
popq %rdi
callq 0x31b0
movq %rax, %r13
leaq -0x68(%rbp), %rsi
andq $0x0, (%rsi)
andl $0x0, 0x8(%rsi)
movss 0x7ae4(%rip), %xmm0     # 0xb008
movq %rax, %rdi
callq 0x67a0
movl $0x98, %edi
callq 0x31b0
movq %rax, %r14
movq %rax, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x8b4a
movl $0x98, %edi
callq 0x31b0
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x90e0
pushq $0x38
popq %rdi
callq 0x31b0
movq %rax, %rbx
movss 0x7a9b(%rip), %xmm0     # 0xb00c
movq %rax, %rdi
xorl %esi, %esi
callq 0x7ca0
movq -0x38(%rbp), %rax
leaq 0x30(%rax), %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x664c
movq %r12, %rdi
movq %r13, %rsi
callq 0x664c
pushq $0x38
popq %rdi
callq 0x31b0
movq %rax, %rbx
pushq $0x4
popq %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x7ef8
movq %r12, %rdi
movq %rbx, %rsi
callq 0x664c
movq %r12, %rdi
movq %r14, %rsi
callq 0x664c
pushq $0x38
popq %rdi
callq 0x31b0
movq %rax, %rbx
pushq $0x4
popq %rsi
movq %rax, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x7b60
movq %r12, %rdi
movq %rbx, %rsi
callq 0x664c
movq %r12, %rdi
movq %r15, %rsi
callq 0x664c
pushq $0x38
popq %rdi
callq 0x31b0
movq %rax, %rbx
movq %rax, %rdi
movq -0x38(%rbp), %rsi
callq 0x804a
movq %r12, %rdi
movq %rbx, %rsi
callq 0x664c
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3631
jmp 0x3631
jmp 0x3631
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
jmp 0x3662
movq %rax, -0x30(%rbp)
movq %r15, %rdi
jmp 0x3662
jmp 0x366d
movq %rax, -0x30(%rbp)
movq %r14, %rdi
jmp 0x3662
jmp 0x366d
movq %rax, -0x30(%rbp)
movq %r13, %rdi
jmp 0x3662
jmp 0x366d
movq %rax, -0x30(%rbp)
movq %r12, %rdi
callq 0x3190
jmp 0x3671
jmp 0x366d
jmp 0x366d
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rdi
callq 0x53e4
movq -0x30(%rbp), %rdi
callq 0x3250
nop