// File: 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
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x187b4(%rip), %rsi     # 0x84d07
callq 0x9530
movq -0x10(%rbp), %rdi
leaq 0x185b6(%rip), %rsi     # 0x84b19
callq 0x9530
movq %rax, %rdi
movq 0x4b9d6(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x10(%rbp), %rdi
leaq 0x184d2(%rip), %rsi     # 0x84a54
callq 0x9530
movq %rax, %rdi
movq 0x4b9b7(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x10(%rbp), %rdi
leaq 0x185a2(%rip), %rsi     # 0x84b43
callq 0x9530
movq %rax, %rdi
movq 0x4b998(%rip), %rsi     # 0xb7f48
callq 0x9590
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x13929(%rip), %rsi     # 0x7fef0
callq 0x91a0
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
movl $0x6, %edi
callq 0x7ff20
movq -0x50(%rbp), %rdi
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %esi
callq 0x9840
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x6c854
movl $0x0, -0x24(%rbp)
movq -0x20(%rbp), %rax
movq 0xf0(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x6c835
movq -0x30(%rbp), %rax
movq 0x68(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x6c641
jmp 0x6c81b
movq -0x10(%rbp), %rdi
leaq 0x18357(%rip), %rsi     # 0x849a3
callq 0x9530
movq %rax, %rdi
movq 0x4b8ed(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x10(%rbp), %rdi
leaq 0x184f7(%rip), %rsi     # 0x84b62
callq 0x9530
movq %rax, %rdi
movq -0x20(%rbp), %rax
movsd 0x68(%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x18365(%rip), %rsi     # 0x849f0
callq 0x9530
movq %rax, %rdi
movq 0x4b8ae(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x10(%rbp), %rdi
leaq 0x18324(%rip), %rsi     # 0x849ce
callq 0x9530
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x7ff40
movq -0x60(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x1624f(%rip), %rsi     # 0x82924
callq 0x9530
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x7ff40
movq -0x58(%rbp), %rdi
movsd 0x8(%rax), %xmm0
callq 0x9a30
movl $0x1, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x38(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x6c76f
movq -0x10(%rbp), %rdi
leaq 0x182ca(%rip), %rsi     # 0x849df
callq 0x9530
movq %rax, -0x70(%rbp)
movq -0x38(%rbp), %rdi
movl -0x3c(%rbp), %esi
callq 0x7ff40
movq -0x70(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x161e3(%rip), %rsi     # 0x82924
callq 0x9530
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rdi
movl -0x3c(%rbp), %esi
callq 0x7ff40
movq -0x68(%rbp), %rdi
movsd 0x8(%rax), %xmm0
callq 0x9a30
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x6c6fe
movq -0x30(%rbp), %rax
cmpl $0x1, 0x1c(%rax)
jne 0x6c789
movq -0x10(%rbp), %rdi
leaq 0x1825f(%rip), %rsi     # 0x849e3
callq 0x9530
movq -0x10(%rbp), %rdi
leaq 0x1825c(%rip), %rsi     # 0x849f0
callq 0x9530
movq %rax, %rdi
movq 0x4b7a5(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x10(%rbp), %rdi
leaq 0x183e4(%rip), %rsi     # 0x84b97
callq 0x9530
movq %rax, %rdi
movq -0x20(%rbp), %rsi
callq 0x9530
movq %rax, %rdi
leaq 0x184f9(%rip), %rsi     # 0x84cc7
callq 0x9530
movq %rax, %rdi
movl -0x24(%rbp), %esi
callq 0x9930
movq %rax, %rdi
leaq 0x18208(%rip), %rsi     # 0x849f0
callq 0x9530
movq %rax, %rdi
movq 0x4b751(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x10(%rbp), %rdi
leaq 0x181eb(%rip), %rsi     # 0x849f2
callq 0x9530
movq %rax, %rdi
movq 0x4b732(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
movq %rax, -0x30(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x6c61e
jmp 0x6c837
movq -0x20(%rbp), %rax
movq 0xf8(%rax), %rax
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x6c5fd
movq -0x10(%rbp), %rdi
leaq 0x1822f(%rip), %rsi     # 0x84a8e
callq 0x9530
movq %rax, %rdi
movq 0x4b6da(%rip), %rsi     # 0xb7f48
callq 0x9590
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax)