// File: /workspace/github_cpp_makefile_star2_O2/thierry7100[P]CutOptim/src/SvgDoc.cpp
// Function: SvgDoc::Optimize(double, int, int, int)
double SvgDoc::Optimize(double StepAngle, int OptimizingLevel, int FirstPos, int Flag_file)
{
std::list<NSVGpath *> FloatingPaths = listPath;          //  All path are floating
std::list<NSVGpath *> FixedPath;
std::list<NSVGpath *> CurFloating;
Polygon *FixedPolyHull;
double BestCost = 1e100;
clock_t StartOptimize;
clock_t StartLevel;
clock_t LastLevel;
int NotPlaced = 0;
int num_rot = int((2*M_PI-0.001) / StepAngle) + 1;

    LastLevel = StartOptimize = clock();
    if ( debug_level > 0 )
    {
        OutDebug << "Time: " << fixed <<  ((double) 1000.0*(StartOptimize - StartClock))/CLOCKS_PER_SEC << "ms Enter Optimize with Optimizing level set to " << OptimizingLevel << endl;
    }
    //  First remove largest polygon from floating list
    NSVGpath *First = FloatingPaths.front();
    FloatingPaths.pop_front();
    //  Place first polygon, specific algorithm
    if ( debug_level > 0 )
    {
        OutDebug << "-----   Placing first polygon (" << First->id << ") -----------\n";
    }
    First->PlacedPolygon = PlaceFirst(First->LargePolygon, FirstPos, StepAngle);
    //  Check placement OK ! Should stay in the sheet.
    if ( First->PlacedPolygon == NULL )
    {
        cerr << "Unable to place first polygon, too large for sheet\n";
        if ( debug_level > 0 )
        {
            OutDebug << "Optimize : Unable to place first polygon, too large for sheet\n";
        }
        if ( Flag_file )
        {
            cout << "Unable to complete optimization, Unable to place first polygon, too large for sheet\n";
        }
        return 0;
    }
    //  Compute slopes of all edges of first polygon
    //  Should be done after polygon is placed because rotation change angles
    First->PlacedPolygon->ComputeAngles();
    First->PlacedPolygon->CalcSegments();
    First->isFixed = true;                                  //  OK Now !
    double FixedArea = First->PlacedPolygon->area();

    FixedPolyHull = First->LargeConvexHull = First->PlacedPolygon->ConvexHull();
    FixedPath.push_back(First);
    int idxPoly = 1;
    while ( !FloatingPaths.empty() )
    {
        StartLevel = clock();
        if ( debug_level > 0 )
        {
            OutDebug << "--------------------   Placing Polygon " << idxPoly << ": " << FloatingPaths.front()->id << "  ------------------------------\n";
            OutDebug << "Elapsed time " << ((double)1000.0*(StartLevel - StartOptimize))/CLOCKS_PER_SEC;
            OutDebug << "ms, for last polygon " << ((double)1000.0*(StartLevel - LastLevel))/CLOCKS_PER_SEC << "ms\n";
        }
        LastLevel = StartLevel;
        //  Prepare a list with at most OptimizingLevel elements which is a copy of the OptimizingLevel first elements
        int index = 0;
        for (std::list<NSVGpath *>::iterator it=FloatingPaths.begin(); it != FloatingPaths.end() && index < OptimizingLevel; ++it, index++)
        {
            CurFloating.push_back(*it);         //  Put OptimizingLevel elements in working list
        }
        //  Limit optimizing level when number of ploygon is low
        if ( OptimizingLevel > index ) OptimizingLevel = index ;

        NSVGpath *NewFixed = OptimizeLevel(FixedPolyHull, FixedPath, CurFloating, num_rot, StepAngle, FixedArea, BestCost, 1e100, idxPoly, idxPoly-1, OptimizingLevel);
        if ( NewFixed != NULL )                 //  If NULL, couldn't be placed, continue with next one.
        {
            NewFixed->isFixed = true;
            FixedPath.push_back(NewFixed);    //    Put it in fixed list
            //  Could (and should) free cache memory for this one
            if ( NewFixed->CachePoly != NULL)
                delete NewFixed->CachePoly;
            NewFixed->CachePoly = NULL;
            FixedArea += NewFixed->LargePolygon->area();
            FixedPolyHull = NewFixed->LargeConvexHull;
        }
        else
        {
            NotPlaced++;                    //  COunt not placed elements
            cerr << "Unable to place polygon " << idxPoly << "\n";
            if ( debug_level > 0)
            {
                OutDebug << "######   Unable to place polygon " << idxPoly << ", aborting\n";
            }
        }

        FloatingPaths.pop_front();          //  Remove first in list
        CurFloating.clear();                //  Erase list before creating new one
        idxPoly++;
        if ( Flag_file )
        {
            StartLevel = clock();
            cout << "Polygon " << idxPoly << "  Not placed " << NotPlaced << "  Elapsed time " << ((double)1000.0*(StartLevel - LastLevel))/CLOCKS_PER_SEC << "\n";
#if CHECK_MEM > 0
            cout << " mem Poly_empty=" << nbEmptyPoly << "/" << nbCreatedEmptyPoly <<  " mem Poly_Vector=" << nbVectorPoly << "/" << nbCreatedVectorPoly;
            cout <<  " Rot_Poly=" << nbRotatedPoly << "/" << nbCreatedRotatedPoly;
            cout <<  " Trans_Poly=" << nbTranslatedPoly << "/" << nbCreatedTranslatedPoly;
//            cout <<  " Transformed_Poly=" << nbTransformedPoly << "/" << nbCreatedTransformedPoly;
            cout <<  " Cached_Poly=" << nbCachedPoly << "/" << nbCreatedCachedPoly;
            cout << "\n";
#endif
        }
    }
    if ( debug_level > 0 )
    {
        OutDebug << "Optimization finished, elapsed time " << ((double) (clock() - StartOptimize)) / CLOCKS_PER_SEC << "s\n";
        OutDebug << "nbRotation: " << nbRotation << "\n";
        OutDebug << "nbTranslation: " << nbTranslation << "\n";
        OutDebug << "nbPointInPoly: " << nbPointInPoly << "\n";
        OutDebug << "nbIntersectPoly: " << nbIntersectPoly << "\n";
        OutDebug << "nbPlacementImpossible: " << nbPlacementImpossible << "\n";
        OutDebug << "nbCheckAngles=" << nbCheckAngles << "\n";
        OutDebug << "CacheMiss=" << CacheMiss << "\n";
        OutDebug << "CacheHit OK=" << CacheHit_OK<< "\n";
        OutDebug << "CacheHit KO=" << CacheHit_KO<< "\n";
    }
    if ( Flag_file )
    {
        cout << "Optimization finished, cost " << BestCost << " elapsed time " << ((double) (clock() - StartOptimize)) / CLOCKS_PER_SEC << "\n";
        cout << "Performance stats :\n";
        cout << "nbTranslation=" << nbTranslation << "\n";
        cout << "nbRotation=" << nbRotation << "\n";
        cout << "nbCheckAngles=" << nbCheckAngles << "\n";
        cout << "nbPointInPoly=" << nbPointInPoly << "\n";
        cout << "nbIntersectPoly=" << nbIntersectPoly << "\n";
        cout << "nbPlacementImpossible=" << nbPlacementImpossible << "\n";
        cout << "CacheMiss=" << CacheMiss << "\n";
        cout << "CacheHit OK=" << CacheHit_OK<< "\n";
        cout << "CacheHit KO=" << CacheHit_KO<< "\n";
        if ( NotPlaced == 0 )
        {
            cout << "All elements have been successfully placed \n";
        }
        else
        {
            cout << NotPlaced << " elements couldn't have been placed \n";
        }
    }
    return BestCost;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %ecx, 0x24(%rsp)
movl %edx, %ebx
movl %esi, %r13d
movsd %xmm0, 0x40(%rsp)
movq %rdi, %r12
leaq 0x20(%rdi), %rsi
leaq 0x60(%rsp), %rdi
callq 0x333a4
leaq 0xa0(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
andq $0x0, 0x10(%rax)
leaq 0x88(%rsp), %rax
movq %rax, 0x8(%rax)
movq %rax, (%rax)
andq $0x0, 0x10(%rax)
movabsq $0x54b249ad2594c37d, %rax # imm = 0x54B249AD2594C37D
movq %rax, 0x50(%rsp)
callq 0x8300
movq %rax, 0x28(%rsp)
cmpl $0x0, 0x60(%r12)
jle 0x2ad32
leaq 0x68(%r12), %rdi
leaq 0xc5c4(%rip), %rsi      # 0x3728e
callq 0x8420
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl $0xfffffefb, %edx       # imm = 0xFFFFFEFB
andl 0x18(%rax,%rcx), %edx
orl $0x4, %edx
movl %edx, 0x18(%rax,%rcx)
movq 0x28(%rsp), %rcx
subq 0x268(%r12), %rcx
cvtsi2sd %rcx, %xmm0
mulsd 0x9310(%rip), %xmm0     # 0x34010
divsd 0xb500(%rip), %xmm0     # 0x36208
movq %rax, %rdi
callq 0x86b0
leaq 0xc57e(%rip), %rsi      # 0x37295
movq %rax, %rdi
callq 0x8420
movq %rax, %rdi
movl %r13d, %esi
callq 0x8740
movq %rax, %rdi
callq 0x8200
leaq 0x60(%rsp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
movq %rax, 0x18(%rsp)
callq 0x333de
cmpl $0x0, 0x60(%r12)
jle 0x2ad82
leaq 0x68(%r12), %rdi
leaq 0xc569(%rip), %rsi      # 0x372c5
callq 0x8420
movl $0x90, %esi
addq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x8420
leaq 0xc56b(%rip), %rsi      # 0x372e5
movq %rax, %rdi
callq 0x8420
movq 0x18(%rsp), %rax
movq 0x68(%rax), %rsi
movq %r12, %rdi
movl %ebx, %edx
movsd 0x40(%rsp), %xmm0
callq 0x2b72c
movq 0x18(%rsp), %rcx
movq %rax, 0x78(%rcx)
testq %rax, %rax
je 0x2b620
movq %rax, %rdi
callq 0x23c0c
movq 0x18(%rsp), %rax
movq 0x78(%rax), %rdi
callq 0x2404a
movq 0x18(%rsp), %rax
movl $0x1, 0x80(%rax)
movq 0x78(%rax), %rdi
callq 0x22296
movsd %xmm0, 0x48(%rsp)
movq 0x18(%rsp), %rax
movq 0x78(%rax), %rdi
callq 0x23318
movq %rax, %rbx
leaq 0x18(%rsp), %rsi
movq (%rsi), %rax
movq %rbx, 0x70(%rax)
leaq 0xa0(%rsp), %rdi
callq 0x3314c
movq %rbx, 0x78(%rsp)
movsd 0xb418(%rip), %xmm0     # 0x36230
divsd 0x40(%rsp), %xmm0
cvttsd2si %xmm0, %eax
incl %eax
movl %eax, 0x5c(%rsp)
leaq 0x68(%r12), %rax
movq %rax, 0x8(%rsp)
pushq $0x1
popq %rax
movq %rax, 0x10(%rsp)
movl $0x0, 0x20(%rsp)
leaq 0x88(%rsp), %r14
leaq 0xd0(%rsp), %rbp
movq 0x28(%rsp), %rbx
movq %r12, 0x80(%rsp)
leaq 0x60(%rsp), %rax
cmpq %rax, 0x60(%rsp)
je 0x2b1b6
callq 0x8300
movq %rax, 0x30(%rsp)
cmpl $0x0, 0x60(%r12)
jle 0x2af57
movq 0x8(%rsp), %rdi
leaq 0xc4f7(%rip), %rsi      # 0x37388
callq 0x8420
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x8740
movq %rax, %rdi
leaq 0xc784(%rip), %rsi      # 0x37631
callq 0x8420
movq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rsi
movl $0x90, %ecx
addq %rcx, %rsi
movq %rax, %rdi
callq 0x8420
movq %rax, %rdi
leaq 0xc4db(%rip), %rsi      # 0x373b0
callq 0x8420
movq 0x8(%rsp), %rdi
leaq 0xc534(%rip), %rsi      # 0x3741a
callq 0x8420
movq 0x30(%rsp), %rcx
subq 0x28(%rsp), %rcx
cvtsi2sd %rcx, %xmm0
mulsd 0x910e(%rip), %xmm0     # 0x34010
divsd 0xb2fe(%rip), %xmm0     # 0x36208
movq %rax, %rdi
callq 0x86b0
movq 0x8(%rsp), %rdi
leaq 0xc4b4(%rip), %rsi      # 0x373d2
callq 0x8420
movq 0x30(%rsp), %rcx
subq %rbx, %rcx
cvtsi2sd %rcx, %xmm0
mulsd 0x90d8(%rip), %xmm0     # 0x34010
divsd 0xb2c8(%rip), %xmm0     # 0x36208
movq %rax, %rdi
callq 0x86b0
movq %rax, %rdi
leaq 0xb888(%rip), %rsi      # 0x367da
callq 0x8420
xorl %ebx, %ebx
leaq 0x60(%rsp), %r15
movq %rbp, %rdi
movq (%r15), %r15
leaq 0x60(%rsp), %rax
cmpq %rax, %r15
je 0x2af83
cmpl %r13d, %ebx
jge 0x2af83
leaq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x3314c
incl %ebx
jmp 0x2af5e
cmpl %r13d, %ebx
cmovll %ebx, %r13d
leaq 0xa0(%rsp), %rsi
callq 0x333a4
movq 0x80(%rsp), %rbx
movq %r14, %rsi
leaq 0xb8(%rsp), %r14
movq %r14, %rdi
callq 0x333a4
movq 0x10(%rsp), %r10
leal -0x1(%r10), %eax
subq $0x8, %rsp
movq %rbx, %r12
movq %rbx, %rdi
movq 0x80(%rsp), %rsi
movq %rbp, %r15
movq %rbp, %rdx
movq %r14, %rcx
movl 0x64(%rsp), %r8d
movsd 0x48(%rsp), %xmm0
movsd 0x50(%rsp), %xmm1
leaq 0x58(%rsp), %r9
movsd 0xb244(%rip), %xmm2     # 0x36238
pushq %r13
pushq %rax
pushq %r10
callq 0x2b93e
addq $0x20, %rsp
movq %rax, %rbx
movq %r14, %rdi
callq 0x33458
movq %r15, %rdi
callq 0x33458
movq %rbx, 0x38(%rsp)
testq %rbx, %rbx
je 0x2b090
movl $0x1, 0x80(%rbx)
leaq 0xa0(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x3314c
leaq 0x88(%rsp), %r14
movq 0x38(%rsp), %rax
movq 0x88(%rax), %rdi
testq %rdi, %rdi
je 0x2b05f
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x38(%rsp), %rax
andq $0x0, 0x88(%rax)
movq 0x68(%rax), %rdi
callq 0x22296
movsd 0x48(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x48(%rsp)
movq 0x38(%rsp), %rax
movq 0x70(%rax), %rax
movq %rax, 0x78(%rsp)
jmp 0x2b100
movq 0x21f51(%rip), %rdi     # 0x4cfe8
leaq 0xc353(%rip), %rsi      # 0x373f1
callq 0x8420
leaq 0x88(%rsp), %r14
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x8740
movq %rax, %rdi
leaq 0xc1ca(%rip), %rsi      # 0x3728c
callq 0x8420
incl 0x20(%rsp)
cmpl $0x0, 0x60(%r12)
jle 0x2b100
movq 0x8(%rsp), %rdi
leaq 0xc309(%rip), %rsi      # 0x373e8
callq 0x8420
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x8740
movq %rax, %rdi
leaq 0xb3fe(%rip), %rsi      # 0x364f9
callq 0x8420
leaq 0x60(%rsp), %rdi
callq 0x333de
movq %r14, %rdi
callq 0x333e6
movq 0x10(%rsp), %rax
incl %eax
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x24(%rsp)
je 0x2b1ac
callq 0x8300
movq %rax, %rbx
movq 0x21e60(%rip), %rdi     # 0x4cf98
leaq 0xc9ed(%rip), %rsi      # 0x37b2c
callq 0x8420
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x8740
movq %rax, %rdi
leaq 0xc2af(%rip), %rsi      # 0x3740a
callq 0x8420
movq %rax, %rdi
movl 0x20(%rsp), %esi
callq 0x8740
movq %rax, %rdi
leaq 0xc2a2(%rip), %rsi      # 0x37418
callq 0x8420
subq 0x30(%rsp), %rbx
cvtsi2sd %rbx, %xmm0
mulsd 0x8e83(%rip), %xmm0     # 0x34010
divsd 0xb073(%rip), %xmm0     # 0x36208
movq %rax, %rdi
callq 0x86b0
movq %rax, %rdi
leaq 0xc0e5(%rip), %rsi      # 0x3728c
callq 0x8420
movq 0x30(%rsp), %rbx
jmp 0x2ae5f
cmpl $0x0, 0x60(%r12)
movl 0x20(%rsp), %ebp
jle 0x2b3b8
leaq 0xc25b(%rip), %rsi      # 0x37428
movq 0x8(%rsp), %rdi
callq 0x8420
movq %rax, %rbx
callq 0x8300
subq 0x28(%rsp), %rax
cvtsi2sd %rax, %xmm0
divsd 0xb017(%rip), %xmm0     # 0x36208
movq %rbx, %rdi
callq 0x86b0
leaq 0xb4df(%rip), %rsi      # 0x366df
movq %rax, %rdi
callq 0x8420
leaq 0xc23e(%rip), %rsi      # 0x3744d
movq 0x8(%rsp), %rdi
callq 0x8420
movq 0x278(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xc05c(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
leaq 0xc21b(%rip), %rsi      # 0x3745a
movq 0x8(%rsp), %rdi
callq 0x8420
movq 0x270(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xc02c(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
leaq 0xc1fb(%rip), %rsi      # 0x3746a
movq 0x8(%rsp), %rdi
callq 0x8420
movq 0x288(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbffc(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
leaq 0xc1db(%rip), %rsi      # 0x3747a
movq 0x8(%rsp), %rdi
callq 0x8420
movq 0x290(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbfcc(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
leaq 0xc1bd(%rip), %rsi      # 0x3748c
movq 0x8(%rsp), %rdi
callq 0x8420
movq 0x298(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbf9c(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
leaq 0xc1a5(%rip), %rsi      # 0x374a4
movq 0x8(%rsp), %rdi
callq 0x8420
movq 0x280(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbf6c(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
leaq 0xc184(%rip), %rsi      # 0x374b3
movq 0x8(%rsp), %rdi
callq 0x8420
movq 0x2a0(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbf3c(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
leaq 0xc15f(%rip), %rsi      # 0x374be
movq 0x8(%rsp), %rdi
callq 0x8420
movq 0x2a8(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbf0c(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
leaq 0xc13c(%rip), %rsi      # 0x374cb
movq 0x8(%rsp), %rdi
callq 0x8420
movq 0x2b0(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbedc(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
cmpl $0x0, 0x24(%rsp)
je 0x2b674
movq 0x21bce(%rip), %rdi     # 0x4cf98
leaq 0xc107(%rip), %rsi      # 0x374d8
callq 0x8420
movsd 0x50(%rsp), %xmm0
movq %rax, %rdi
movsd %xmm0, 0x10(%rsp)
callq 0x86b0
leaq 0xc04d(%rip), %rsi      # 0x3743e
movq %rax, %rdi
callq 0x8420
movq %rax, %rbx
callq 0x8300
subq 0x28(%rsp), %rax
cvtsi2sd %rax, %xmm0
divsd 0xadf5(%rip), %xmm0     # 0x36208
movq %rbx, %rdi
callq 0x86b0
leaq 0xbe6a(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
movq 0x21b67(%rip), %rdi     # 0x4cf98
leaq 0xc0bd(%rip), %rsi      # 0x374f5
callq 0x8420
movq 0x21b54(%rip), %rdi     # 0x4cf98
leaq 0xc0bf(%rip), %rsi      # 0x3750a
callq 0x8420
movq 0x270(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbe25(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
movq 0x21b22(%rip), %rdi     # 0x4cf98
leaq 0xc09c(%rip), %rsi      # 0x37519
callq 0x8420
movq 0x278(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbdf3(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
movq 0x21af0(%rip), %rdi     # 0x4cf98
leaq 0xbff5(%rip), %rsi      # 0x374a4
callq 0x8420
movq 0x280(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbdc1(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
movq 0x21abe(%rip), %rdi     # 0x4cf98
leaq 0xc044(%rip), %rsi      # 0x37525
callq 0x8420
movq 0x288(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbd8f(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
movq 0x21a8c(%rip), %rdi     # 0x4cf98
leaq 0xc021(%rip), %rsi      # 0x37534
callq 0x8420
movq 0x290(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbd5d(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
movq 0x21a5a(%rip), %rdi     # 0x4cf98
leaq 0xc000(%rip), %rsi      # 0x37545
callq 0x8420
movq 0x298(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbd2b(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
movq 0x21a28(%rip), %rdi     # 0x4cf98
leaq 0xbf3c(%rip), %rsi      # 0x374b3
callq 0x8420
movq 0x2a0(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbcf9(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
movq 0x219f6(%rip), %rdi     # 0x4cf98
leaq 0xbf15(%rip), %rsi      # 0x374be
callq 0x8420
movq 0x2a8(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbcc7(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
movq 0x219c4(%rip), %rbx     # 0x4cf98
leaq 0xbef0(%rip), %rsi      # 0x374cb
movq %rbx, %rdi
callq 0x8420
movq 0x2b0(%r12), %rsi
movq %rax, %rdi
callq 0x83f0
leaq 0xbc92(%rip), %rsi      # 0x3728c
movq %rax, %rdi
callq 0x8420
testl %ebp, %ebp
je 0x2b682
movq 0x2198b(%rip), %rdi     # 0x4cf98
movl %ebp, %esi
callq 0x8740
movq %rax, %rbx
leaq 0xbf6b(%rip), %rsi      # 0x37589
jmp 0x2b689
movq 0x219c1(%rip), %rdi     # 0x4cfe8
leaq 0xbd26(%rip), %rsi      # 0x37354
callq 0x8420
cmpl $0x0, 0x60(%r12)
jle 0x2b64e
addq $0x68, %r12
leaq 0xbcae(%rip), %rsi      # 0x372f4
movq %r12, %rdi
callq 0x8420
xorpd %xmm0, %xmm0
movsd %xmm0, 0x10(%rsp)
cmpl $0x0, 0x24(%rsp)
je 0x2b691
movq 0x21932(%rip), %rdi     # 0x4cf98
leaq 0xbcc6(%rip), %rsi      # 0x37333
callq 0x8420
jmp 0x2b691
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
jmp 0x2b691
leaq 0xbed3(%rip), %rsi      # 0x3755c
movq %rbx, %rdi
callq 0x8420
leaq 0x88(%rsp), %rdi
callq 0x33458
leaq 0xa0(%rsp), %rdi
callq 0x33458
leaq 0x60(%rsp), %rdi
callq 0x33458
movsd 0x10(%rsp), %xmm0
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b6fd
jmp 0x2b6fd
jmp 0x2b6fd
movq %rax, %rbx
jmp 0x2b6e8
movq %rax, %rbx
leaq 0xb8(%rsp), %rdi
callq 0x33458
leaq 0xd0(%rsp), %rdi
callq 0x33458
jmp 0x2b700
jmp 0x2b6fd
jmp 0x2b6fd
jmp 0x2b6fd
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x33458
leaq 0xa0(%rsp), %rdi
callq 0x33458
leaq 0x60(%rsp), %rdi
callq 0x33458
movq %rbx, %rdi
callq 0x8770