// File: /workspace/github_cpp_makefile_star2_O3/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 0x74a3
movq %rdi, %r14
movq 0x70(%rdi), %rax
movq 0x68(%rdi), %rcx
subq %rcx, %rax
je 0x7453
cmpb $0x0, 0x8(%r14)
je 0x74c2
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 0x74e1
movq %rsi, %r15
leaq 0x63fb(%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 0x63c4(%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 0x6cf8
leaq 0x63ae(%rip), %rsi      # 0xd73e
movl $0x9, %edx
movq %rbx, %rdi
callq 0x31e0
movq 0x80(%r14), %rsi
movq %rbx, %rdi
callq 0x65e0
movq 0x88(%r14), %rax
subq 0x80(%r14), %rax
cmpq $0x9, %rax
jb 0x742a
movl $0x1, %r13d
movl $0x2, %r15d
leaq 0x606f(%rip), %r12      # 0xd442
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x6366(%rip), %rsi      # 0xd748
callq 0x31e0
shlq $0x3, %r13
addq 0x80(%r14), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x65e0
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 0x73d3
cmpb $0x0, 0x39(%r14)
je 0x7445
leaq 0x6314(%rip), %rsi      # 0xd74c
movl $0x2, %edx
movq %rbx, %rdi
callq 0x31e0
leaq 0x6303(%rip), %rsi      # 0xd74f
movl $0x3, %edx
jmp 0x7466
movq 0xab76(%rip), %rbx      # 0x11fd0
leaq 0x624d(%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 0x61ac(%rip), %rdi      # 0xd656
leaq 0x5fff(%rip), %rsi      # 0xd4b0
leaq 0x61ca(%rip), %rcx      # 0xd682
movl $0x141, %edx            # imm = 0x141
callq 0x3120
leaq 0x66d0(%rip), %rdi      # 0xdb99
leaq 0x5fe0(%rip), %rsi      # 0xd4b0
leaq 0x61ab(%rip), %rcx      # 0xd682
movl $0x14a, %edx            # imm = 0x14A
callq 0x3120
leaq 0x61fa(%rip), %rdi      # 0xd6e2
leaq 0x5fc1(%rip), %rsi      # 0xd4b0
leaq 0x618c(%rip), %rcx      # 0xd682
movl $0x14b, %edx            # imm = 0x14B
callq 0x3120