// File: /workspace/github_cpp_makefile_star2_O1/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 0xf843(%rip), %rsi      # 0x3fc7c
movl $0x5, %edx
movq %rbx, %rdi
callq 0x74d0
leaq 0xf641(%rip), %rsi      # 0x3fa8e
movl $0x29, %edx
movq %rbx, %rdi
callq 0x74d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7300
leaq 0xf541(%rip), %rsi      # 0x3f9c9
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x74d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7300
leaq 0xf5f5(%rip), %rsi      # 0x3fab8
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x74d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7300
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), %rax
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x30804
leaq 0xf432(%rip), %rbp      # 0x3f965
leaq 0xd37e(%rip), %r14      # 0x3d8b8
movq 0xf0(%r15), %rcx
testq %rcx, %rcx
je 0x307f4
xorl %edx, %edx
movq %r15, 0x10(%rsp)
movq 0x68(%rcx), %r12
testq %r12, %r12
je 0x307e5
movl %edx, 0x4(%rsp)
movq %rcx, 0x8(%rsp)
movl $0x9, %edx
movq %rbx, %rdi
leaq 0xf3a2(%rip), %rsi      # 0x3f918
callq 0x74d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7300
movl $0x34, %edx
movq %rbx, %rdi
leaq 0xf526(%rip), %rsi      # 0x3fad7
callq 0x74d0
movsd 0x68(%r15), %xmm0
movq %rbx, %rdi
callq 0x7680
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x74d0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %r13, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7300
movl $0xc, %edx
movq %rbx, %rdi
leaq 0xf335(%rip), %rsi      # 0x3f943
callq 0x74d0
movq 0x10(%r12), %rax
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x7680
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x74d0
movq 0x10(%r12), %rax
movsd 0x8(%rax), %xmm0
movq %r13, %rdi
callq 0x7680
cmpl $0x2, 0x8(%r12)
jl 0x306b7
movl $0x1, %r15d
xorl %ebp, %ebp
movl $0x3, %edx
movq %rbx, %rdi
leaq 0xf2ec(%rip), %rsi      # 0x3f954
callq 0x74d0
movq 0x10(%r12), %rax
movsd 0x10(%rax,%rbp), %xmm0
movq %rbx, %rdi
callq 0x7680
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x74d0
movq 0x10(%r12), %rax
movsd 0x18(%rax,%rbp), %xmm0
movq %r13, %rdi
callq 0x7680
incq %r15
movslq 0x8(%r12), %rax
addq $0x10, %rbp
cmpq %rax, %r15
jl 0x30659
movq 0x8(%rsp), %rax
cmpl $0x1, 0x1c(%rax)
jne 0x306d6
movl $0x2, %edx
movq %rbx, %rdi
leaq 0xf287(%rip), %rsi      # 0x3f958
callq 0x74d0
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xf280(%rip), %rbp      # 0x3f965
movq %rbp, %rsi
callq 0x74d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7300
movl $0x15, %edx
movq %rbx, %rdi
leaq 0xf3e9(%rip), %rsi      # 0x3fb0c
callq 0x74d0
movq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x71d0
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x74d0
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xf4ea(%rip), %rsi      # 0x3fc3c
callq 0x74d0
movq %rbx, %rdi
movl 0x4(%rsp), %r12d
movl %r12d, %esi
callq 0x7710
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x74d0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %r13, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7300
movl $0x2a, %edx
movq %rbx, %rdi
leaq 0xf1b6(%rip), %rsi      # 0x3f967
callq 0x74d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7300
movl %r12d, %edx
movq 0x8(%rsp), %rcx
incl %edx
movq 0x48(%rcx), %rcx
testq %rcx, %rcx
jne 0x30551
movq 0xf8(%r15), %r15
testq %r15, %r15
jne 0x3053a
leaq 0xf1f8(%rip), %rsi      # 0x3fa03
movl $0x6, %edx
movq %rbx, %rdi
callq 0x74d0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7300
nop