// File: 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
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x10a70
movl $0x3ecccccd, -0x18(%rbp) # imm = 0x3ECCCCCD
movl $0x3f000000, -0x1c(%rbp) # imm = 0x3F000000
movl $0x3f800000, -0x20(%rbp) # imm = 0x3F800000
leaq -0x14(%rbp), %rdi
leaq -0x18(%rbp), %rsi
leaq -0x1c(%rbp), %rdx
leaq -0x20(%rbp), %rcx
callq 0x8c30
jmp 0x34eb
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x3c(%rbp), %rsi
leaq -0x40(%rbp), %rdx
leaq -0x44(%rbp), %rcx
callq 0x8c30
jmp 0x3517
movl $0x0, -0x54(%rbp)
movl $0x3f800000, -0x58(%rbp) # imm = 0x3F800000
movl $0x0, -0x5c(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x54(%rbp), %rsi
leaq -0x58(%rbp), %rdx
leaq -0x5c(%rbp), %rcx
callq 0x8c30
jmp 0x3543
leaq -0x8c(%rbp), %rdi
leaq -0x38(%rbp), %rsi
leaq -0x14(%rbp), %rdx
leaq -0x50(%rbp), %rcx
callq 0xa8f0
jmp 0x355d
movq -0x130(%rbp), %rax
movups -0x8c(%rbp), %xmm0
movups -0x7c(%rbp), %xmm1
movups -0x6c(%rbp), %xmm2
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
movl $0x98, %edi
callq 0x31b0
movq %rax, -0x138(%rbp)
jmp 0x3591
movl $0x3f800000, -0xa8(%rbp) # imm = 0x3F800000
movl $0x3fa66666, -0xac(%rbp) # imm = 0x3FA66666
movl $0x0, -0xb0(%rbp)
leaq -0xa4(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
leaq -0xac(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
callq 0x8c30
jmp 0x35d2
movl $0x0, -0xc0(%rbp)
movl $0x3ecccccd, -0xc4(%rbp) # imm = 0x3ECCCCCD
movl $0x0, -0xc8(%rbp)
leaq -0xbc(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
leaq -0xc4(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
callq 0x8c30
jmp 0x3613
movl $0x0, -0xd8(%rbp)
movl $0x0, -0xdc(%rbp)
movl $0x3e4ccccd, -0xe0(%rbp) # imm = 0x3E4CCCCD
leaq -0xd4(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
leaq -0xdc(%rbp), %rdx
leaq -0xe0(%rbp), %rcx
callq 0x8c30
jmp 0x3654
movq -0x138(%rbp), %rdi
movl -0xcc(%rbp), %eax
movl %eax, -0xe8(%rbp)
movq -0xd4(%rbp), %rax
movq %rax, -0xf0(%rbp)
movsd -0xf0(%rbp), %xmm0
movss -0xe8(%rbp), %xmm1
movl $0x40, %esi
leaq -0xa4(%rbp), %rdx
leaq -0xbc(%rbp), %rcx
callq 0xcd30
jmp 0x369f
movq -0x138(%rbp), %rax
movq %rax, -0x98(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x140(%rbp)
jmp 0x36c0
movl $0x0, -0x108(%rbp)
movl $0x0, -0x10c(%rbp)
movl $0x0, -0x110(%rbp)
leaq -0x104(%rbp), %rdi
leaq -0x108(%rbp), %rsi
leaq -0x10c(%rbp), %rdx
leaq -0x110(%rbp), %rcx
callq 0x8c30
jmp 0x3701
movq -0x140(%rbp), %rdi
leaq -0x104(%rbp), %rsi
movss 0x138ed(%rip), %xmm0    # 0x17004
callq 0xb960
jmp 0x371e
movq -0x140(%rbp), %rax
movq %rax, -0xf8(%rbp)
movl $0x98, %edi
callq 0x31b0
movq %rax, -0x148(%rbp)
jmp 0x373f
movq -0x148(%rbp), %rdi
movq -0x98(%rbp), %rsi
xorl %edx, %edx
callq 0x11400
jmp 0x3756
movq -0x148(%rbp), %rax
movq %rax, -0x118(%rbp)
movl $0x98, %edi
callq 0x31b0
movq %rax, -0x150(%rbp)
jmp 0x3777
movq -0x150(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0x12270
jmp 0x378c
movq -0x130(%rbp), %rax
movq -0x150(%rbp), %rcx
movq %rcx, -0x120(%rbp)
movl $0x4, -0x124(%rbp)
addq $0x30, %rax
movq %rax, -0x160(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x158(%rbp)
jmp 0x37c9
movq -0x158(%rbp), %rdi
movss 0x13830(%rip), %xmm0    # 0x17008
xorl %esi, %esi
callq 0xebb0
jmp 0x37e1
movq -0x158(%rbp), %rsi
movq -0x160(%rbp), %rdi
callq 0xb660
jmp 0x37f6
movq -0x130(%rbp), %rdi
addq $0x30, %rdi
movq -0xf8(%rbp), %rsi
callq 0xb660
jmp 0x380f
movq -0x130(%rbp), %rax
addq $0x30, %rax
movq %rax, -0x170(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x168(%rbp)
jmp 0x3834
movq -0x168(%rbp), %rdi
movq -0x118(%rbp), %rdx
movl $0x4, %esi
callq 0xf190
jmp 0x384e
movq -0x168(%rbp), %rsi
movq -0x170(%rbp), %rdi
callq 0xb660
jmp 0x3863
movq -0x130(%rbp), %rdi
addq $0x30, %rdi
movq -0x118(%rbp), %rsi
callq 0xb660
jmp 0x387c
movq -0x130(%rbp), %rax
addq $0x30, %rax
movq %rax, -0x180(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x178(%rbp)
jmp 0x38a1
movq -0x178(%rbp), %rdi
movq -0x118(%rbp), %rdx
movq -0x120(%rbp), %rcx
movl $0x4, %esi
callq 0xe980
jmp 0x38c2
movq -0x178(%rbp), %rsi
movq -0x180(%rbp), %rdi
callq 0xb660
jmp 0x38d7
movq -0x130(%rbp), %rdi
addq $0x30, %rdi
movq -0x120(%rbp), %rsi
callq 0xb660
jmp 0x38f0
movq -0x130(%rbp), %rax
addq $0x30, %rax
movq %rax, -0x190(%rbp)
movl $0x38, %edi
callq 0x31b0
movq %rax, -0x188(%rbp)
jmp 0x3915
movq -0x130(%rbp), %rsi
movq -0x188(%rbp), %rdi
callq 0xf3c0
jmp 0x392a
movq -0x188(%rbp), %rsi
movq -0x190(%rbp), %rdi
callq 0xb660
jmp 0x393f
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x3a30
movq -0x138(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3a30
movq -0x140(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3a30
movq -0x148(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3a30
movq -0x150(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3a30
movq -0x158(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3a30
movq -0x168(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3a30
movq -0x178(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
jmp 0x3a30
movq -0x188(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x3190
movq -0x130(%rbp), %rdi
callq 0x8cc0
movq -0x28(%rbp), %rdi
callq 0x3280
nopw %cs:(%rax,%rax)