// File: /workspace/github_cpp_makefile_star2_O2/thierry7100[P]CutOptim/src/SvgDoc.cpp
// Function: SvgDoc::WriteHullLargePolygonLayer(std::ostream&)
void SvgDoc::WriteHullLargePolygonLayer(ostream& Out)
{
    //  Then the data, begin with original layer
    Out << "  <g\n";
    Out << "     inkscape:label=\"Hull_Placed_Layer\"" << endl;
    Out << "     inkscape:groupmode=\"layer\"" << endl;
    Out << "     id=\"Hull_Placed_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->LargeConvexHull;
            if ( poly_path == NULL ) continue;
            Out << "    <path" << endl;
            //  Line style : Green
            Out << "       style=\"fill:none;stroke:#00FF00;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=\"Hull_" << 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 0xcfd3(%rip), %rsi      # 0x36cd8
movq %rbx, %rdi
callq 0x8420
leaq 0xce6a(%rip), %rsi      # 0x36b7e
movq %rbx, %rdi
callq 0x8420
movq %rax, %rdi
callq 0x8200
leaq 0xccfa(%rip), %rsi      # 0x36a25
movq %rbx, %rdi
callq 0x8420
movq %rax, %rdi
callq 0x8200
leaq 0xce64(%rip), %rsi      # 0x36ba6
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 0xcc3c(%rip), %rbp      # 0x369c1
leaq 0xab2c(%rip), %r15      # 0x348b8
movq (%r12), %r12
testq %r12, %r12
je 0x29f51
leaq 0xf0(%r12), %r13
xorl %eax, %eax
movq %r12, 0x10(%rsp)
movq (%r13), %r13
testq %r13, %r13
je 0x29f45
movq 0x70(%r13), %r14
testq %r14, %r14
je 0x29f3a
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
leaq 0xcba4(%rip), %rsi      # 0x36974
callq 0x8420
movq %rax, %rdi
callq 0x8200
movq %rbx, %rdi
leaq 0xcddd(%rip), %rsi      # 0x36bc4
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 0xcb87(%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 0x29e9f
movq %rbx, %rdi
leaq 0xcb4e(%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 0x29e4f
cmpl $0x1, 0x1c(%r13)
jne 0x29eb5
movq %rbx, %rdi
leaq 0xcb04(%rip), %rsi      # 0x369b4
callq 0x8420
movq %rbx, %rdi
leaq 0xcb02(%rip), %rbp      # 0x369c1
movq %rbp, %rsi
callq 0x8420
movq %rax, %rdi
callq 0x8200
movq %rbx, %rdi
leaq 0xcd20(%rip), %rsi      # 0x36bf9
callq 0x8420
movq %rax, %rdi
movq 0x10(%rsp), %r12
movq %r12, %rsi
callq 0x8420
movq %rax, %rdi
leaq 0xcda0(%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 0xca99(%rip), %rsi      # 0x369c3
callq 0x8420
movq %rax, %rdi
callq 0x8200
movl %r14d, %eax
addq $0x48, %r13
incl %eax
jmp 0x29da8
addq $0xf8, %r12
jmp 0x29d8c
leaq 0xcb07(%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