// File: /workspace/github_cpp_makefile_star2_O2/thierry7100[P]CutOptim/src/SvgDoc.cpp
// Function: SvgDoc::BuilSingleListPath()
void SvgDoc::BuilSingleListPath()
{
    int nShape = 0;
	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++)
        {
            path->isFixed = 0;              //  Not yet fixed !
            path->CachePoly = NULL;         //  No cache associated yet
            if ( path->LargePolygon == NULL ) continue;     //  Do NOT Add to list if no large polygon
            listPath.push_back(path);
        }
    }
    if ( debug_level > 0 )
    {
        OutDebug << "--------  BuilSingleListPath : There are " << listPath.size() << " paths in the list" << endl;
    }
    listPath.sort(compare_area);
    if ( debug_level > 0 )
    {
        int idx = 0;
        for (std::list<NSVGpath *>::iterator it=listPath.begin(); it != listPath.end(); ++it)
        {
            OutDebug << "  Path " << idx << " id: " << (*it)->id << " area " <<  (*it)->LargePolygon->area() << "mm2 and " << NbChildren(*it) << " children\n";
            if ( debug_level > 1 )
                OutDebug << *((*it)->LargePolygon);
            idx++;
        }
        OutDebug << "-----------   End of BuilSingleListPath  ---------------------------\n\n\n";
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %r12
addq $0x10, %r12
leaq 0x20(%rdi), %r14
movq %rsp, %r15
movq (%r12), %r12
testq %r12, %r12
je 0x2a8bc
leaq 0xf0(%r12), %rax
movq (%rax), %rax
movq %rax, (%rsp)
testq %rax, %rax
je 0x2a8b3
andl $0x0, 0x80(%rax)
andq $0x0, 0x88(%rax)
cmpq $0x0, 0x68(%rax)
je 0x2a8ad
movq %r14, %rdi
movq %r15, %rsi
callq 0x3314c
movq (%rsp), %rax
addq $0x48, %rax
jmp 0x2a87c
addq $0xf8, %r12
jmp 0x2a86b
cmpl $0x0, 0x60(%rbx)
jle 0x2a8f5
leaq 0x68(%rbx), %rdi
leaq 0xc925(%rip), %rsi      # 0x371f2
callq 0x8420
movq 0x30(%rbx), %rsi
movq %rax, %rdi
callq 0x8310
leaq 0xc937(%rip), %rsi      # 0x3721c
movq %rax, %rdi
callq 0x8420
movq %rax, %rdi
callq 0x8200
leaq -0xe2(%rip), %rsi       # 0x2a81a
movq %r14, %rdi
callq 0x33158
cmpl $0x0, 0x60(%rbx)
jle 0x2a9eb
leaq 0x68(%rbx), %r15
xorl %ebp, %ebp
movq %r14, %r12
movq (%r12), %r12
cmpq %r14, %r12
je 0x2a9dc
movq %r15, %rdi
leaq 0xc901(%rip), %rsi      # 0x3722f
callq 0x8420
movq %rax, %rdi
movl %ebp, %esi
callq 0x8740
movq %rax, %rdi
leaq 0xc8f0(%rip), %rsi      # 0x37237
callq 0x8420
movq 0x10(%r12), %rsi
movl $0x90, %ecx
addq %rcx, %rsi
movq %rax, %rdi
callq 0x8420
movq %rax, %rdi
leaq 0xcedd(%rip), %rsi      # 0x37848
callq 0x8420
movq %rax, %r13
movq 0x10(%r12), %rax
movq 0x68(%rax), %rdi
callq 0x22296
movq %r13, %rdi
callq 0x86b0
movq %rax, %rdi
leaq 0xc8aa(%rip), %rsi      # 0x3723d
callq 0x8420
movq %rax, %r13
movq 0x10(%r12), %rsi
callq 0x288f4
movq %r13, %rdi
movl %eax, %esi
callq 0x8740
movq %rax, %rdi
leaq 0xbda1(%rip), %rsi      # 0x3675a
callq 0x8420
cmpl $0x2, 0x60(%rbx)
jl 0x2a9d5
movq 0x10(%r12), %rax
movq 0x68(%rax), %rsi
movq %r15, %rdi
callq 0x3330e
incl %ebp
jmp 0x2a917
leaq 0xc863(%rip), %rsi      # 0x37246
movq %r15, %rdi
callq 0x8420
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq