// File: /workspace/github_cpp_makefile_star2_O1/carlos-urena[P]svg-gen/svgobjects.cpp
// Function: Polygon::drawSVG(SVGContext&)
void Polygon::drawSVG( SVGContext & ctx )
{
   using namespace std ;
   assert( ctx.os != nullptr );


   if ( points3D.size() == 0 )
   {
      cout << "WARNING: attempting to draw an empty Polygon object" << endl ;
      return ;
   }

  assert( projected );
  assert( points3D.size() == points2D.size() );

  using namespace std ;
  std::ostream & os = *(ctx.os) ;

  os << "<path " << endl
     << "   stroke-linecap='round' stroke-linejoin='round'" << endl ;

  style.writeSVG( ctx );

  os << "   d=' M " ;
  write_coord2( os, points2D[0] );
  for( unsigned i = 1 ; i < points2D.size() ; i++ )
  {
      os << " L " ;
      write_coord2( os, points2D[i] );
      os << " " ;
      //cout << points_proy[i] << endl ;
  }
  if ( style.close_lines )
    os << " Z" ;

  os << "'/>" << endl;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rsi), %rbx
testq %rbx, %rbx
je 0x74b7
movq %rdi, %r14
movq 0x70(%rdi), %rax
movq 0x68(%rdi), %rcx
subq %rcx, %rax
je 0x7467
cmpb $0x0, 0x8(%r14)
je 0x74d6
sarq $0x2, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
movq 0x88(%r14), %rax
subq 0x80(%r14), %rax
sarq $0x3, %rax
cmpq %rax, %rcx
jne 0x74f5
movq %rsi, %r15
leaq 0x63e7(%rip), %rsi      # 0xd705
movl $0x6, %edx
movq %rbx, %rdi
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
movq %rax, %r12
leaq 0x63b0(%rip), %rsi      # 0xd70c
movl $0x31, %edx
movq %rax, %rdi
callq 0x31e0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x31b0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3030
movq %rax, %rdi
callq 0x3130
leaq 0x20(%r14), %rdi
movq %r15, %rsi
callq 0x6cdc
leaq 0x639a(%rip), %rsi      # 0xd73e
movl $0x9, %edx
movq %rbx, %rdi
callq 0x31e0
movq 0x80(%r14), %rsi
movq %rbx, %rdi
callq 0x65c4
movq 0x88(%r14), %rax
subq 0x80(%r14), %rax
cmpq $0x9, %rax
jb 0x743e
movl $0x1, %r13d
movl $0x2, %r15d
leaq 0x605b(%rip), %r12      # 0xd442
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x6352(%rip), %rsi      # 0xd748
callq 0x31e0
shlq $0x3, %r13
addq 0x80(%r14), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x65c4
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x31e0
movq 0x88(%r14), %rax
subq 0x80(%r14), %rax
movl %r15d, %r13d
sarq $0x3, %rax
incl %r15d
cmpq %r13, %rax
ja 0x73e7
cmpb $0x0, 0x39(%r14)
je 0x7459
leaq 0x6300(%rip), %rsi      # 0xd74c
movl $0x2, %edx
movq %rbx, %rdi
callq 0x31e0
leaq 0x62ef(%rip), %rsi      # 0xd74f
movl $0x3, %edx
jmp 0x747a
movq 0xab62(%rip), %rbx      # 0x11fd0
leaq 0x6239(%rip), %rsi      # 0xd6ae
movl $0x33, %edx
movq %rbx, %rdi
callq 0x31e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3130
leaq 0x6198(%rip), %rdi      # 0xd656
leaq 0x5feb(%rip), %rsi      # 0xd4b0
leaq 0x61b6(%rip), %rcx      # 0xd682
movl $0x141, %edx            # imm = 0x141
callq 0x3120
leaq 0x66bc(%rip), %rdi      # 0xdb99
leaq 0x5fcc(%rip), %rsi      # 0xd4b0
leaq 0x6197(%rip), %rcx      # 0xd682
movl $0x14a, %edx            # imm = 0x14A
callq 0x3120
leaq 0x61e6(%rip), %rdi      # 0xd6e2
leaq 0x5fad(%rip), %rsi      # 0xd4b0
leaq 0x6178(%rip), %rcx      # 0xd682
movl $0x14b, %edx            # imm = 0x14B
callq 0x3120