// File: /workspace/github_cpp_makefile_star2_O2/thierry7100[P]CutOptim/src/SvgDoc.cpp
// Function: SvgDoc::WriteLargePolygonLayer(std::ostream&)
void SvgDoc::WriteLargePolygonLayer(ostream& Out)
{
    //  Then the data, begin with original layer
    Out << "  <g\n";
    Out << "     inkscape:label=\"Large_Polygon_Layer\"" << endl;
    Out << "     inkscape:groupmode=\"layer\"" << endl;
    Out << "     id=\"LargePolygon_Layer1\">" << endl;

    int nShape = 0;
    Out << std::fixed;
    Out << std::setprecision(6);
	for (NSVGshape *shape = SvgData->shapes; shape != NULL; shape = shape->next, nShape++)
	{
        //  Then for each path in the shape
        int iPath = 0;
        for (NSVGpath *path = shape->paths; path != NULL; path = path->next, iPath++)
        {
            Polygon *poly_path = path->LargePolygon;
            if ( poly_path == NULL ) continue;
            Out << "    <path" << endl;
            //  Line style : Blue
            Out << "       style=\"fill:none;stroke:#0000FF;stroke-width:" << shape->strokeWidth << "\"" << endl;
            // Then path itself
            Out << "       d=\"M " << poly_path->GetVertex(0)->x << "," << poly_path->GetVertex(0)->y;
			for (int i = 1; i < poly_path->nVertices; i++)
			{
                Out << " L " << poly_path->GetVertex(i)->x << "," << poly_path->GetVertex(i)->y;
			}
			if ( path->closed == 1 )
			{
                Out << " z";
			}
			Out << "\"" << endl;
            Out << "       id=\"Largepoly_" << shape->id << "_" << iPath << "\"" << endl;
            Out << "       inkscape:connector-curvature=\"0\" />" << endl;
        }
    }
    Out << "  </g>" << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xd25f(%rip), %rsi      # 0x36cd8
movq %rbx, %rdi
callq 0x8420
leaq 0xd062(%rip), %rsi      # 0x36aea
movq %rbx, %rdi
callq 0x8420
movq %rax, %rdi
callq 0x8200
leaq 0xcf86(%rip), %rsi      # 0x36a25
movq %rbx, %rdi
callq 0x8420
movq %rax, %rdi
callq 0x8200
leaq 0xd05e(%rip), %rsi      # 0x36b14
movq %rbx, %rdi
callq 0x8420
movq %rax, %rdi
callq 0x8200
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl $0xfffffefb, %edx       # imm = 0xFFFFFEFB
andl 0x18(%rbx,%rcx), %edx
orl $0x4, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq $0x6, 0x8(%rbx,%rax)
movq 0x8(%r14), %r12
addq $0x10, %r12
leaq 0xcec8(%rip), %rbp      # 0x369c1
leaq 0xadb8(%rip), %r15      # 0x348b8
movq (%r12), %r12
testq %r12, %r12
je 0x29cc5
leaq 0xf0(%r12), %r13
xorl %eax, %eax
movq %r12, 0x10(%rsp)
movq (%r13), %r13
testq %r13, %r13
je 0x29cb9
movq 0x68(%r13), %r14
testq %r14, %r14
je 0x29cae
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
leaq 0xce30(%rip), %rsi      # 0x36974
callq 0x8420
movq %rax, %rdi
callq 0x8200
movq %rbx, %rdi
leaq 0xcfd8(%rip), %rsi      # 0x36b33
callq 0x8420
movsd 0x68(%r12), %xmm0
movq %rax, %rdi
callq 0x86b0
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8420
movq %rax, %rdi
callq 0x8200
movq %rbx, %rdi
leaq 0xce13(%rip), %rsi      # 0x3699f
callq 0x8420
movq 0x10(%r14), %rcx
movsd (%rcx), %xmm0
movq %rax, %rdi
callq 0x86b0
movq %rax, %rdi
movq %r15, %rsi
callq 0x8420
movq 0x10(%r14), %rcx
movsd 0x8(%rcx), %xmm0
movq %rax, %rdi
callq 0x86b0
xorl %ebp, %ebp
pushq $0x1
popq %r12
movslq 0x8(%r14), %rax
cmpq %rax, %r12
jge 0x29c13
movq %rbx, %rdi
leaq 0xcdda(%rip), %rsi      # 0x369b0
callq 0x8420
movq 0x10(%r14), %rcx
movsd 0x10(%rcx,%rbp), %xmm0
movq %rax, %rdi
callq 0x86b0
movq %rax, %rdi
movq %r15, %rsi
callq 0x8420
movq 0x10(%r14), %rcx
movsd 0x18(%rcx,%rbp), %xmm0
movq %rax, %rdi
callq 0x86b0
incq %r12
addq $0x10, %rbp
jmp 0x29bc3
cmpl $0x1, 0x1c(%r13)
jne 0x29c29
movq %rbx, %rdi
leaq 0xcd90(%rip), %rsi      # 0x369b4
callq 0x8420
movq %rbx, %rdi
leaq 0xcd8e(%rip), %rbp      # 0x369c1
movq %rbp, %rsi
callq 0x8420
movq %rax, %rdi
callq 0x8200
movq %rbx, %rdi
leaq 0xcf1b(%rip), %rsi      # 0x36b68
callq 0x8420
movq %rax, %rdi
movq 0x10(%rsp), %r12
movq %r12, %rsi
callq 0x8420
movq %rax, %rdi
leaq 0xd02c(%rip), %rsi      # 0x36c98
callq 0x8420
movq %rax, %rdi
movl 0xc(%rsp), %r14d
movl %r14d, %esi
callq 0x8740
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8420
movq %rax, %rdi
callq 0x8200
movq %rbx, %rdi
leaq 0xcd25(%rip), %rsi      # 0x369c3
callq 0x8420
movq %rax, %rdi
callq 0x8200
movl %r14d, %eax
addq $0x48, %r13
incl %eax
jmp 0x29b1c
addq $0xf8, %r12
jmp 0x29b00
leaq 0xcd93(%rip), %rsi      # 0x36a5f
movq %rbx, %rdi
callq 0x8420
movq %rax, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8200