// File: /workspace/github_cpp_makefile_star2_O1/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 $0xd8, %rsp
movl %ecx, 0x24(%rsp)
movl %edx, %ebp
movl %esi, %r13d
movsd %xmm0, 0x68(%rsp)
movq %rdi, %rbx
leaq 0x20(%rdi), %rsi
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x3c91c
leaq 0x90(%rsp), %rcx
movq %rcx, 0x8(%rcx)
movq %rcx, (%rcx)
xorl %eax, %eax
movq %rax, 0x10(%rcx)
leaq 0x28(%rsp), %rcx
movq %rcx, 0x8(%rcx)
movq %rcx, (%rcx)
movq %rax, 0x10(%rcx)
movabsq $0x54b249ad2594c37d, %rax # imm = 0x54B249AD2594C37D
movq %rax, 0x78(%rsp)
callq 0x72e0
movq %rax, 0x40(%rsp)
movq %rbx, (%rsp)
cmpl $0x0, 0x60(%rbx)
jle 0x31f17
movq (%rsp), %rax
leaq 0x68(%rax), %rbx
leaq 0xe3bf(%rip), %rsi      # 0x40232
movl $0x6, %edx
movq %rbx, %rdi
callq 0x74d0
movq (%rsp), %rdx
movq 0x68(%rdx), %rax
movq -0x18(%rax), %rax
movl $0xfffffefb, %ecx       # imm = 0xFFFFFEFB
andl 0x80(%rdx,%rax), %ecx
orl $0x4, %ecx
movl %ecx, 0x80(%rdx,%rax)
movq 0x40(%rsp), %rax
subq 0x268(%rdx), %rax
cvtsi2sd %rax, %xmm0
mulsd 0xb155(%rip), %xmm0     # 0x3d010
divsd 0xd2e5(%rip), %xmm0     # 0x3f1a8
movq %rbx, %rdi
callq 0x7680
movq %rax, %rbx
leaq 0xe364(%rip), %rsi      # 0x40239
movl $0x2f, %edx
movq %rax, %rdi
callq 0x74d0
movq %rbx, %rdi
movl %r13d, %esi
callq 0x7710
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x73f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7300
movq 0x48(%rsp), %rbx
movq 0x10(%rbx), %r14
decq 0x58(%rsp)
movq %rbx, %rdi
callq 0x76a0
movl $0x18, %esi
movq %rbx, %rdi
callq 0x7440
movq (%rsp), %rax
cmpl $0x0, 0x60(%rax)
jle 0x31f91
movq (%rsp), %rax
leaq 0x68(%rax), %rbx
leaq 0xe316(%rip), %rsi      # 0x40269
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x74d0
leaq 0x90(%r14), %r15
movq %r15, %rdi
callq 0x71d0
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x74d0
leaq 0xe305(%rip), %rsi      # 0x40289
movl $0xe, %edx
movq %rbx, %rdi
callq 0x74d0
movq 0x68(%r14), %rsi
movq (%rsp), %rdi
movl %ebp, %edx
movsd 0x68(%rsp), %xmm0
callq 0x32c50
movq %rax, 0x78(%r14)
testq %rax, %rax
je 0x324c9
movq %rax, %rdi
callq 0x28f26
movq 0x78(%r14), %rdi
callq 0x297a6
movl $0x1, 0x80(%r14)
movq 0x78(%r14), %rdi
callq 0x26926
movsd %xmm0, 0x70(%rsp)
movq 0x78(%r14), %rdi
callq 0x2827e
movq %rax, %r15
movq %rax, 0x70(%r14)
movl $0x18, %edi
callq 0x7430
movq %r14, 0x10(%rax)
leaq 0x90(%rsp), %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x7080
incq 0x10(%rbx)
cmpq %r12, 0x48(%rsp)
je 0x32536
movq %r15, 0x88(%rsp)
movsd 0xd1aa(%rip), %xmm0     # 0x3f1d8
divsd 0x68(%rsp), %xmm0
cvttsd2si %xmm0, %eax
incl %eax
movl %eax, 0x84(%rsp)
movq (%rsp), %rax
addq $0x68, %rax
movq %rax, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
movl $0x1, %eax
movq %rax, 0x8(%rsp)
leaq 0xc0(%rsp), %r12
leaq 0xa8(%rsp), %rbp
movq 0x40(%rsp), %r14
callq 0x72e0
movq %rax, 0x60(%rsp)
movq (%rsp), %rax
cmpl $0x0, 0x60(%rax)
jle 0x32197
movl $0x27, %edx
movq 0x18(%rsp), %rdi
leaq 0xe28e(%rip), %rsi      # 0x4032c
callq 0x74d0
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x7710
movq %rax, %rbx
movl $0x2, %edx
movq %rax, %rdi
leaq 0xe511(%rip), %rsi      # 0x405d5
callq 0x74d0
movq 0x48(%rsp), %rax
movq 0x10(%rax), %r15
movl $0x90, %eax
addq %rax, %r15
movq %r15, %rdi
callq 0x71d0
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x74d0
movl $0x21, %edx
movq %rbx, %rdi
leaq 0xe255(%rip), %rsi      # 0x40354
callq 0x74d0
movl $0xd, %edx
movq 0x18(%rsp), %rdi
leaq 0xe2a9(%rip), %rsi      # 0x403be
callq 0x74d0
movq 0x60(%rsp), %rax
subq 0x40(%rsp), %rax
cvtsi2sd %rax, %xmm0
mulsd 0xaedf(%rip), %xmm0     # 0x3d010
divsd 0xd06f(%rip), %xmm0     # 0x3f1a8
movq 0x18(%rsp), %rdi
callq 0x7680
movl $0x15, %edx
movq 0x18(%rsp), %rdi
leaq 0xe222(%rip), %rsi      # 0x40376
callq 0x74d0
movq 0x60(%rsp), %rax
subq %r14, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0xae9f(%rip), %xmm0     # 0x3d010
divsd 0xd02f(%rip), %xmm0     # 0x3f1a8
movq 0x18(%rsp), %rdi
callq 0x7680
movl $0x3, %edx
movq %rax, %rdi
leaq 0xd5ec(%rip), %rsi      # 0x3f77e
callq 0x74d0
movq 0x48(%rsp), %r14
xorl %ebx, %ebx
leaq 0x48(%rsp), %rax
cmpq %rax, %r14
je 0x321e7
testl %r13d, %r13d
jle 0x321e7
xorl %ebx, %ebx
movl $0x18, %edi
callq 0x7430
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rax)
movq %rax, %rdi
leaq 0x28(%rsp), %rsi
callq 0x7080
incq 0x38(%rsp)
incl %ebx
movq (%r14), %r14
leaq 0x48(%rsp), %rax
cmpq %rax, %r14
je 0x321e7
cmpl %r13d, %ebx
jl 0x321af
cmpl %r13d, %ebx
cmovll %ebx, %r13d
movq %r12, %rdi
leaq 0x90(%rsp), %rsi
callq 0x3c91c
movq %rbp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x3c91c
movq 0x8(%rsp), %r10
leal -0x1(%r10), %eax
subq $0x8, %rsp
movq 0x8(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq %r12, %rdx
movq %rbp, %rcx
movl 0x8c(%rsp), %r8d
movsd 0x70(%rsp), %xmm0
movsd 0x78(%rsp), %xmm1
leaq 0x80(%rsp), %r9
movsd 0xcf91(%rip), %xmm2     # 0x3f1e0
pushq %r13
pushq %rax
pushq %r10
callq 0x32ece
addq $0x20, %rsp
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x32282
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7440
movq %r14, %rdi
cmpq %rbp, %r14
jne 0x3226d
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x322a4
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7440
movq %r14, %rdi
cmpq %r12, %r14
jne 0x3228f
testq %rbx, %rbx
je 0x32320
movl $0x1, 0x80(%rbx)
movl $0x18, %edi
callq 0x7430
movq %rbx, 0x10(%rax)
movq %rax, %rdi
leaq 0x90(%rsp), %rsi
callq 0x7080
incq 0xa0(%rsp)
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
je 0x322eb
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x88(%rbx)
movq 0x68(%rbx), %rdi
callq 0x26926
movsd 0x70(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x70(%rsp)
movq 0x70(%rbx), %rax
movq %rax, 0x88(%rsp)
jmp 0x323a4
movl $0x18, %edx
movq 0x1fcb4(%rip), %rdi     # 0x51fe0
leaq 0xe062(%rip), %rsi      # 0x40395
callq 0x74d0
movq 0x1fca1(%rip), %rdi     # 0x51fe0
movq 0x8(%rsp), %rsi
callq 0x7710
movl $0x1, %edx
movq %rax, %rdi
leaq 0xded8(%rip), %rsi      # 0x40230
callq 0x74d0
incl 0x14(%rsp)
movq (%rsp), %rax
cmpl $0x0, 0x60(%rax)
jle 0x323a4
movl $0x21, %edx
movq 0x18(%rsp), %rdi
leaq 0xe010(%rip), %rsi      # 0x4038c
callq 0x74d0
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x7710
movl $0xb, %edx
movq %rax, %rdi
leaq 0xd0fe(%rip), %rsi      # 0x3f49d
callq 0x74d0
movq 0x48(%rsp), %rbx
decq 0x58(%rsp)
movq %rbx, %rdi
callq 0x76a0
movl $0x18, %esi
movq %rbx, %rdi
callq 0x7440
movq 0x28(%rsp), %rdi
leaq 0x28(%rsp), %r14
cmpq %r14, %rdi
je 0x323e7
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x7440
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x323d2
movq 0x8(%rsp), %rax
incl %eax
movq %rax, 0x8(%rsp)
movq %r14, 0x30(%rsp)
movq %r14, 0x28(%rsp)
movq $0x0, 0x38(%rsp)
cmpl $0x0, 0x24(%rsp)
je 0x324b2
callq 0x72e0
movq %rax, %rbx
movl $0x8, %edx
movq 0x1fb6b(%rip), %rdi     # 0x51f90
leaq 0xe6a4(%rip), %rsi      # 0x40ad0
callq 0x74d0
movq 0x1fb58(%rip), %rdi     # 0x51f90
movq 0x8(%rsp), %rsi
callq 0x7710
movq %rax, %r15
movl $0xd, %edx
movq %rax, %rdi
leaq 0xdf5a(%rip), %rsi      # 0x403ae
callq 0x74d0
movq %r15, %rdi
movl 0x14(%rsp), %esi
callq 0x7710
movq %rax, %r15
movl $0xf, %edx
movq %rax, %rdi
leaq 0xdf45(%rip), %rsi      # 0x403bc
callq 0x74d0
subq 0x60(%rsp), %rbx
cvtsi2sd %rbx, %xmm0
mulsd 0xab82(%rip), %xmm0     # 0x3d010
divsd 0xcd12(%rip), %xmm0     # 0x3f1a8
movq %r15, %rdi
callq 0x7680
movl $0x1, %edx
movq %rax, %rdi
leaq 0xdd83(%rip), %rsi      # 0x40230
callq 0x74d0
movq 0x60(%rsp), %r14
leaq 0x48(%rsp), %rax
cmpq %rax, 0x48(%rsp)
jne 0x32075
jmp 0x3253e
movq 0x1fb10(%rip), %rdi     # 0x51fe0
leaq 0xde21(%rip), %rsi      # 0x402f8
movl $0x33, %edx
callq 0x74d0
movq (%rsp), %rax
cmpl $0x0, 0x60(%rax)
jle 0x32504
movq (%rsp), %rdi
addq $0x68, %rdi
leaq 0xdd9e(%rip), %rsi      # 0x40298
movl $0x3e, %edx
callq 0x74d0
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
cmpl $0x0, 0x24(%rsp)
je 0x32af3
movq 0x1fa70(%rip), %rdi     # 0x51f90
leaq 0xddb0(%rip), %rsi      # 0x402d7
movl $0x54, %edx
callq 0x74d0
jmp 0x32af3
movl $0x0, 0x14(%rsp)
movq (%rsp), %rax
cmpl $0x0, 0x60(%rax)
leaq 0x48(%rsp), %r12
jle 0x327b6
movq (%rsp), %rax
leaq 0x68(%rax), %r15
leaq 0xde6c(%rip), %rsi      # 0x403cc
movl $0x24, %edx
movq %r15, %rdi
callq 0x74d0
callq 0x72e0
subq 0x40(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0xcc21(%rip), %xmm0     # 0x3f1a8
movq %r15, %rdi
callq 0x7680
leaq 0xd0ed(%rip), %rsi      # 0x3f683
movl $0x2, %edx
movq %rax, %rdi
callq 0x74d0
leaq 0xde47(%rip), %rsi      # 0x403f1
movl $0xc, %edx
movq %r15, %rdi
callq 0x74d0
movq (%rsp), %rax
movq 0x278(%rax), %rsi
movq %r15, %rdi
callq 0x73d0
leaq 0xdc5f(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
leaq 0xde19(%rip), %rsi      # 0x403fe
movl $0xf, %edx
movq %r15, %rdi
callq 0x74d0
movq (%rsp), %rax
movq 0x270(%rax), %rsi
movq %r15, %rdi
callq 0x73d0
leaq 0xdc24(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
leaq 0xddee(%rip), %rsi      # 0x4040e
movl $0xf, %edx
movq %r15, %rdi
callq 0x74d0
movq (%rsp), %rax
movq 0x288(%rax), %rsi
movq %r15, %rdi
callq 0x73d0
leaq 0xdbe9(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
leaq 0xddc3(%rip), %rsi      # 0x4041e
movl $0x11, %edx
movq %r15, %rdi
callq 0x74d0
movq (%rsp), %rax
movq 0x290(%rax), %rsi
movq %r15, %rdi
callq 0x73d0
leaq 0xdbae(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
leaq 0xdd9a(%rip), %rsi      # 0x40430
movl $0x17, %edx
movq %r15, %rdi
callq 0x74d0
movq (%rsp), %rax
movq 0x298(%rax), %rsi
movq %r15, %rdi
callq 0x73d0
leaq 0xdb73(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
leaq 0xdd77(%rip), %rsi      # 0x40448
movl $0xe, %edx
movq %r15, %rdi
callq 0x74d0
movq (%rsp), %rax
movq 0x280(%rax), %rsi
movq %r15, %rdi
callq 0x73d0
leaq 0xdb38(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
leaq 0xdd4b(%rip), %rsi      # 0x40457
movl $0xa, %edx
movq %r15, %rdi
callq 0x74d0
movq (%rsp), %rax
movq 0x2a0(%rax), %rsi
movq %r15, %rdi
callq 0x73d0
leaq 0xdafd(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
leaq 0xdd1b(%rip), %rsi      # 0x40462
movl $0xc, %edx
movq %r15, %rdi
callq 0x74d0
movq (%rsp), %rax
movq 0x2a8(%rax), %rsi
movq %r15, %rdi
callq 0x73d0
leaq 0xdac2(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
leaq 0xdced(%rip), %rsi      # 0x4046f
movl $0xc, %edx
movq %r15, %rdi
callq 0x74d0
movq (%rsp), %rax
movq 0x2b0(%rax), %rsi
movq %r15, %rdi
callq 0x73d0
leaq 0xda87(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
cmpl $0x0, 0x24(%rsp)
je 0x32ae7
movq 0x1f7c8(%rip), %rdi     # 0x51f90
leaq 0xdcad(%rip), %rsi      # 0x4047c
movl $0x1c, %edx
callq 0x74d0
movsd 0x78(%rsp), %xmm0
movq 0x1f7aa(%rip), %rdi     # 0x51f90
callq 0x7680
movq %rax, %rbx
leaq 0xdbed(%rip), %rsi      # 0x403e2
movl $0xe, %edx
movq %rax, %rdi
callq 0x74d0
callq 0x72e0
subq 0x40(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0xc98c(%rip), %xmm0     # 0x3f1a8
movq %rbx, %rdi
callq 0x7680
leaq 0xda05(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
movq 0x1f751(%rip), %rdi     # 0x51f90
leaq 0xdc53(%rip), %rsi      # 0x40499
movl $0x14, %edx
callq 0x74d0
movq 0x1f739(%rip), %rdi     # 0x51f90
leaq 0xdc50(%rip), %rsi      # 0x404ae
movl $0xe, %edx
callq 0x74d0
movq (%rsp), %rax
movq 0x270(%rax), %rsi
movq 0x1f716(%rip), %rdi     # 0x51f90
callq 0x73d0
leaq 0xd9aa(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
movq 0x1f6f6(%rip), %rdi     # 0x51f90
leaq 0xdc1c(%rip), %rsi      # 0x404bd
movl $0xb, %edx
callq 0x74d0
movq (%rsp), %rax
movq 0x278(%rax), %rsi
movq 0x1f6d3(%rip), %rdi     # 0x51f90
callq 0x73d0
leaq 0xd967(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
movq 0x1f6b3(%rip), %rdi     # 0x51f90
leaq 0xdb64(%rip), %rsi      # 0x40448
movl $0xe, %edx
callq 0x74d0
movq (%rsp), %rax
movq 0x280(%rax), %rsi
movq 0x1f690(%rip), %rdi     # 0x51f90
callq 0x73d0
leaq 0xd924(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
movq 0x1f670(%rip), %rdi     # 0x51f90
leaq 0xdba2(%rip), %rsi      # 0x404c9
movl $0xe, %edx
callq 0x74d0
movq (%rsp), %rax
movq 0x288(%rax), %rsi
movq 0x1f64d(%rip), %rdi     # 0x51f90
callq 0x73d0
leaq 0xd8e1(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
movq 0x1f62d(%rip), %rdi     # 0x51f90
leaq 0xdb6e(%rip), %rsi      # 0x404d8
movl $0x10, %edx
callq 0x74d0
movq (%rsp), %rax
movq 0x290(%rax), %rsi
movq 0x1f60a(%rip), %rdi     # 0x51f90
callq 0x73d0
leaq 0xd89e(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
movq 0x1f5ea(%rip), %rdi     # 0x51f90
leaq 0xdb3c(%rip), %rsi      # 0x404e9
movl $0x16, %edx
callq 0x74d0
movq (%rsp), %rax
movq 0x298(%rax), %rsi
movq 0x1f5c7(%rip), %rdi     # 0x51f90
callq 0x73d0
leaq 0xd85b(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
movq 0x1f5a7(%rip), %rdi     # 0x51f90
leaq 0xda67(%rip), %rsi      # 0x40457
movl $0xa, %edx
callq 0x74d0
movq (%rsp), %rax
movq 0x2a0(%rax), %rsi
movq 0x1f584(%rip), %rdi     # 0x51f90
callq 0x73d0
leaq 0xd818(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
movq 0x1f564(%rip), %rdi     # 0x51f90
leaq 0xda2f(%rip), %rsi      # 0x40462
movl $0xc, %edx
callq 0x74d0
movq (%rsp), %rax
movq 0x2a8(%rax), %rsi
movq 0x1f541(%rip), %rdi     # 0x51f90
callq 0x73d0
leaq 0xd7d5(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
movq 0x1f521(%rip), %rdi     # 0x51f90
leaq 0xd9f9(%rip), %rsi      # 0x4046f
movl $0xc, %edx
callq 0x74d0
movq (%rsp), %rax
movq 0x2b0(%rax), %rsi
movq 0x1f4fe(%rip), %rbx     # 0x51f90
movq %rbx, %rdi
callq 0x73d0
leaq 0xd78f(%rip), %rsi      # 0x40230
movl $0x1, %edx
movq %rax, %rdi
callq 0x74d0
movl 0x14(%rsp), %esi
testl %esi, %esi
je 0x32ad3
movq 0x1f4d3(%rip), %rdi     # 0x51f90
callq 0x7710
movq %rax, %rbx
movl $0x25, %edx
leaq 0xda5c(%rip), %rsi      # 0x4052d
jmp 0x32adf
movl $0x2c, %edx
leaq 0xda21(%rip), %rsi      # 0x40500
movq %rbx, %rdi
callq 0x74d0
movsd 0x78(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x28(%rsp), %r14
cmpq %r14, %rdi
je 0x32b17
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x7440
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x32b02
movq 0x90(%rsp), %rdi
leaq 0x90(%rsp), %r14
cmpq %r14, %rdi
je 0x32b41
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x7440
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x32b2c
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x32b60
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x7440
movq %rbx, %rdi
cmpq %r12, %rbx
jne 0x32b4b
movsd 0x8(%rsp), %xmm0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x32bd2
jmp 0x32bd2
jmp 0x32bd2
movq %rax, %r15
jmp 0x32ba8
movq %rax, %r15
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x32ba8
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x7440
movq %rbx, %rdi
cmpq %rbp, %rbx
jne 0x32b93
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x32bd5
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x7440
movq %rbx, %rdi
cmpq %r12, %rbx
jne 0x32bb5
jmp 0x32bd5
jmp 0x32bd2
jmp 0x32bd2
jmp 0x32bd2
movq %rax, %r15
leaq 0x28(%rsp), %r12
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
leaq 0x48(%rsp), %r14
je 0x32bfe
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x7440
movq %rbx, %rdi
cmpq %r12, %rbx
jne 0x32be9
movq 0x90(%rsp), %rdi
leaq 0x90(%rsp), %r12
cmpq %r12, %rdi
je 0x32c28
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x7440
movq %rbx, %rdi
cmpq %r12, %rbx
jne 0x32c13
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x32c47
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x7440
movq %rbx, %rdi
cmpq %r14, %rbx
jne 0x32c32
movq %r15, %rdi
callq 0x7730
nop