// File: thierry7100[P]CutOptim/src/SvgDoc.cpp
// Function: SvgDoc::WritePath(std::ostream&, NSVGpath*, NSVGshape*)
void SvgDoc::WritePath(ostream &Out, NSVGpath *path, NSVGshape *shape)
{
    Out << "    <path" << endl;
    //  Line style from SVG file
    Out << std::hex;
    Out << "       style=\"fill:none;stroke:#" << setw(6) << setfill('0') << std::hex << (shape->stroke.color&0xFFFFFF);
    Out << std::dec;
    Out << ";stroke-width:" << shape->strokeWidth << "\"" << endl;
    // Then path itself
    Out << "       d=\"M " << path->StartX << "," << path->StartY;
    NSVGPathElt *Elt = path->PathElts;
    for (int i = 0; i < path->nElts; i++)
    {
        if ( Elt->Type == NSVG_PATH_BEZIER_C )
            Out << " C " << Elt->BzCtrl1X << "," << Elt->BzCtrl1Y << "," << Elt->BzCtrl2X << "," << Elt->BzCtrl2Y << "," << Elt->EndX << "," << Elt->EndY;
        else
            Out << " L " << Elt->EndX << "," << Elt->EndY;
        Elt = Elt->next;
    }
    if ( path->closed == 1 )
    {
        Out << " z";
    }
    Out << "\"" << endl;
    Out << "       id=\"" << path->id << "\"" << endl;
    Out << "       inkscape:connector-curvature=\"0\" />" << endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x19310(%rip), %rsi     # 0x849a3
callq 0x9530
movq %rax, %rdi
movq 0x4c8a6(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x10(%rbp), %rdi
leaq -0x35b72(%rip), %rsi    # 0x35b40
callq 0x91a0
movq -0x10(%rbp), %rdi
leaq 0x192eb(%rip), %rsi     # 0x849ad
callq 0x9530
movq %rax, -0x48(%rbp)
movl $0x6, %edi
callq 0x7fc70
movq -0x48(%rbp), %rdi
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %esi
callq 0x9640
movq %rax, -0x40(%rbp)
movl $0x30, %edi
callq 0x7fc90
movq -0x40(%rbp), %rdi
movb %al, -0x25(%rbp)
movzbl -0x25(%rbp), %esi
callq 0x9830
movq %rax, %rdi
leaq -0x35bcc(%rip), %rsi    # 0x35b40
callq 0x91a0
movq %rax, %rdi
movq -0x20(%rbp), %rax
movl 0x58(%rax), %esi
andl $0xffffff, %esi         # imm = 0xFFFFFF
callq 0x9740
movq -0x10(%rbp), %rdi
leaq 0x1457f(%rip), %rsi     # 0x7fcb0
callq 0x91a0
movq -0x10(%rbp), %rdi
leaq 0x194d8(%rip), %rsi     # 0x84c19
callq 0x9530
movq %rax, %rdi
movq -0x20(%rbp), %rax
movsd 0x68(%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x1928f(%rip), %rsi     # 0x849f0
callq 0x9530
movq %rax, %rdi
movq 0x4c7d8(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x10(%rbp), %rdi
leaq 0x1924e(%rip), %rsi     # 0x849ce
callq 0x9530
movq %rax, %rdi
movq -0x18(%rbp), %rax
movsd (%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x17185(%rip), %rsi     # 0x82924
callq 0x9530
movq %rax, %rdi
movq -0x18(%rbp), %rax
movsd 0x8(%rax), %xmm0
callq 0x9a30
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jge 0x6b903
movq -0x30(%rbp), %rax
cmpl $0x1, (%rax)
jne 0x6b8a8
movq -0x10(%rbp), %rdi
leaq 0x191eb(%rip), %rsi     # 0x849db
callq 0x9530
movq %rax, %rdi
movq -0x30(%rbp), %rax
movsd 0x18(%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x17114(%rip), %rsi     # 0x82924
callq 0x9530
movq %rax, %rdi
movq -0x30(%rbp), %rax
movsd 0x20(%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x170f4(%rip), %rsi     # 0x82924
callq 0x9530
movq %rax, %rdi
movq -0x30(%rbp), %rax
movsd 0x28(%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x170d4(%rip), %rsi     # 0x82924
callq 0x9530
movq %rax, %rdi
movq -0x30(%rbp), %rax
movsd 0x30(%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x170b4(%rip), %rsi     # 0x82924
callq 0x9530
movq %rax, %rdi
movq -0x30(%rbp), %rax
movsd 0x8(%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x17094(%rip), %rsi     # 0x82924
callq 0x9530
movq %rax, %rdi
movq -0x30(%rbp), %rax
movsd 0x10(%rax), %xmm0
callq 0x9a30
jmp 0x6b8e9
movq -0x10(%rbp), %rdi
leaq 0x1912c(%rip), %rsi     # 0x849df
callq 0x9530
movq %rax, %rdi
movq -0x30(%rbp), %rax
movsd 0x8(%rax), %xmm0
callq 0x9a30
movq %rax, %rdi
leaq 0x17051(%rip), %rsi     # 0x82924
callq 0x9530
movq %rax, %rdi
movq -0x30(%rbp), %rax
movsd 0x10(%rax), %xmm0
callq 0x9a30
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x30(%rbp)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x6b7c8
movq -0x18(%rbp), %rax
cmpl $0x1, 0x1c(%rax)
jne 0x6b91d
movq -0x10(%rbp), %rdi
leaq 0x190cb(%rip), %rsi     # 0x849e3
callq 0x9530
movq -0x10(%rbp), %rdi
leaq 0x190c8(%rip), %rsi     # 0x849f0
callq 0x9530
movq %rax, %rdi
movq 0x4c611(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x10(%rbp), %rdi
leaq 0x1909f(%rip), %rsi     # 0x849e6
callq 0x9530
movq %rax, %rdi
movq -0x18(%rbp), %rsi
addq $0x90, %rsi
callq 0x9530
movq %rax, %rdi
leaq 0x19087(%rip), %rsi     # 0x849f0
callq 0x9530
movq %rax, %rdi
movq 0x4c5d0(%rip), %rsi     # 0xb7f48
callq 0x9590
movq -0x10(%rbp), %rdi
leaq 0x1906a(%rip), %rsi     # 0x849f2
callq 0x9530
movq %rax, %rdi
movq 0x4c5b1(%rip), %rsi     # 0xb7f48
callq 0x9590
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)