// File: /workspace/github_cpp_makefile_star2_O3/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), %rax
movq 0x10(%rax), %r15
testq %r15, %r15
je 0x30cb7
leaq 0x20(%rbx), %r14
movq 0xf0(%r15), %r12
testq %r12, %r12
je 0x30cab
movl $0x0, 0x80(%r12)
movq $0x0, 0x88(%r12)
cmpq $0x0, 0x68(%r12)
je 0x30ca4
movl $0x18, %edi
callq 0x7440
movq %r12, 0x10(%rax)
movq %rax, %rdi
movq %r14, %rsi
callq 0x7080
incq 0x30(%rbx)
movq 0x48(%r12), %r12
jmp 0x30c62
movq 0xf8(%r15), %r15
testq %r15, %r15
jne 0x30c5b
cmpl $0x0, 0x60(%rbx)
jle 0x30d1f
leaq 0x68(%rbx), %r14
leaq 0xe56a(%rip), %rsi      # 0x3f232
movl $0x29, %edx
movq %r14, %rdi
callq 0x74e0
movq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0x7300
movq %rax, %r14
leaq 0xe571(%rip), %rsi      # 0x3f25c
movl $0x12, %edx
movq %rax, %rdi
callq 0x74e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7400
movsbl %al, %esi
movq %r14, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7310
leaq 0x20(%rbx), %r15
leaq -0x122(%rip), %rsi      # 0x30c08
movq %r15, %rdi
callq 0x3b4ee
cmpl $0x0, 0x60(%rbx)
jle 0x30e73
movq (%r15), %r14
cmpq %r15, %r14
je 0x30e4d
leaq 0x68(%rbx), %rax
movq %rax, (%rsp)
xorl %ebp, %ebp
movl $0x7, %edx
movq (%rsp), %r12
movq %r12, %rdi
leaq 0xe50a(%rip), %rsi      # 0x3f26f
callq 0x74e0
movq %r12, %rdi
movl %ebp, %esi
callq 0x7720
movq %rax, %r13
movl $0x5, %edx
movq %rax, %rdi
leaq 0xe4f1(%rip), %rsi      # 0x3f277
callq 0x74e0
movq 0x10(%r14), %r12
movl $0x90, %eax
addq %rax, %r12
movq %r12, %rdi
callq 0x71d0
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x74e0
movl $0x6, %edx
movq %r13, %rdi
leaq 0xeacc(%rip), %rsi      # 0x3f888
callq 0x74e0
movq 0x10(%r14), %rax
movq 0x68(%rax), %rdi
callq 0x266bc
movq %r13, %rdi
callq 0x7690
movq %rax, %r13
movl $0x8, %edx
movq %rax, %rdi
leaq 0xe495(%rip), %rsi      # 0x3f27d
callq 0x74e0
movq 0x10(%r14), %rax
movq 0x58(%rax), %rax
movl $0x0, %esi
testq %rax, %rax
je 0x30e0c
xorl %esi, %esi
incl %esi
movq 0x48(%rax), %rax
testq %rax, %rax
jne 0x30e01
movq %r13, %rdi
callq 0x7720
movl $0xa, %edx
movq %rax, %rdi
leaq 0xd977(%rip), %rsi      # 0x3e79a
callq 0x74e0
cmpl $0x2, 0x60(%rbx)
jl 0x30e3f
movq 0x10(%r14), %rax
movq 0x68(%rax), %rsi
movq (%rsp), %rdi
callq 0x3b785
incl %ebp
movq (%r14), %r14
cmpq %r15, %r14
jne 0x30d52
addq $0x68, %rbx
leaq 0xe42e(%rip), %rsi      # 0x3f286
movl $0x47, %edx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x74e0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq