// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/SvgDoc.cpp
// Function: SvgDoc::OptimizeLevel(Polygon*, std::__cxx11::list<NSVGpath*, std::allocator<NSVGpath*>>, std::__cxx11::list<NSVGpath*, std::allocator<NSVGpath*>>, int, double, double, double&, double, int, int, int)
NSVGpath *SvgDoc::OptimizeLevel(Polygon *FixedPolyHull, std::list<NSVGpath *> FixedList, std::list<NSVGpath *> CurFloating, int num_rot, double StepAngle, double FixedArea,
                                double &Cost, double InBestCost, int FloatPolygon, int nbFixedPoly, int LevelOptimize)
{
Polygon *rot_p = NULL;
Polygon *trans_rot_p = NULL;
vector<Point> FixedHull;
vector<Point> tmpFixedHull;
double BestCost = 1e100;
int Best_i = -1, Best_j = -1;
int Best_Poly = -1;
double BestAngle;
Point BestTranslation;
Point OverAllCentroid;
Rectangle OverAll;
int Reason;
int FixedPolygon = 0;
Point RefPoint;

    if ( debug_level > 1 )
    {
        OutDebug << "Entering OptimizeLevel(" << LevelOptimize <<  "): FixedHullArea " <<  FixedPolyHull->area() << " Fixed area " << FixedArea;
        OutDebug << ", Cost is " << Cost << ", InBestCost=" << InBestCost << "\n";
        OutDebug << "Elements in list:" << CurFloating.size() << " first is " << CurFloating.front()->id << "\n";
    }
    FixedHull = FixedPolyHull->GetVertices();
    OverAllCentroid = FixedPolyHull->getCentroid();
    OverAll = FixedPolyHull->GetBoundingBox();

    NSVGpath *WorkingFloatingEntry = CurFloating.front();
    //  And remove element from temporary floating list
    CurFloating.pop_front();
    BestCost = 1e100;          //  Very large, each try should be better
    BestAngle = -1;            //   Impossible value

    double tmpPolygonArea = FixedArea + WorkingFloatingEntry->LargePolygon->area();
    int nPreviousVertices = getFixedNbVertex(FixedList);            //  Number of vertices of all polygons before this one
    if ( debug_level > 1 )
    {
        OutDebug << "Polygon to be placed : " << WorkingFloatingEntry->id << "  has " << WorkingFloatingEntry->LargePolygon->nVertices << " vertices.\n";
    }
    //  Build a cache object which will speed up computation if not yet present
    if (UseCache && WorkingFloatingEntry->CachePoly == NULL )
    {
        WorkingFloatingEntry->CachePoly = new CachePosition(WorkingFloatingEntry->LargePolygon->nVertices, num_rot, nPreviousVertices);
        if ( debug_level > 1 )
        {
            OutDebug << "Create cache object for polygon " << WorkingFloatingEntry->id << "  with " << WorkingFloatingEntry->LargePolygon->nVertices*num_rot*nPreviousVertices << " entries.\n";
        }
    }
    else if ( UseCache and debug_level > 1)
    {
        OutDebug << "Cache object for polygon " << WorkingFloatingEntry->id << "  is already present \n";
    }
#ifdef UNDEF
    if ( FloatPolygon == 2)
    {
        OutDebug << "Cache object for Polygon 2=" << WorkingFloatingEntry->CachePoly << " cache value for 0/3/2 = " << WorkingFloatingEntry->CachePoly->isOKPlaced(3, 0, 2, &trans_rot_p)<< "\n";
    }
#endif
    //  Try each possible angle
    int iRot = 0;
    for ( double angle = 0; angle < 2*M_PI - 0.001; angle += StepAngle, iRot++)
    {
        if ( debug_level > 1 )
            OutDebug << "L" << LevelOptimize << ": Rotation set to " << round(angle*180/M_PI) << "\n";
        if ( rot_p ) delete rot_p;
        rot_p = WorkingFloatingEntry->LargePolygon->Rotate(angle);
        nbRotation++;
        rot_p->ComputeAngles();     //  Compute angles to be more efficient later
        rot_p->CalcSegments();

        //  Then try all vertices of all placed polygons
        FixedPolygon = 0;
        int iFixedVertex = 0;
        for (std::list<NSVGpath *>::iterator it=FixedList.begin(); it != FixedList.end(); ++it, FixedPolygon++)
        {
            //  Get next placed polygon
            NSVGpath *path = *it;
            Polygon  *curFixed = path->PlacedPolygon;
            // For each vertex of this placed polygon
            for ( int i = 0; i < curFixed->nVertices-1; iFixedVertex++, i++)
            {
                if ( debug_level > 0 )
                    OutDebug << std::flush;
                //  Try all vertices of the floating polygon, and select the best
                for (int j = 0; j < rot_p->nVertices-1; j++)
                {
                    //  Use cache if available
                    trans_rot_p = NULL;
                    int Cached = 0;
                    //  If we use cache and only if the path is fixed, look for cache status
                    if ( UseCache && path->isFixed )
                    {
                        Cached = WorkingFloatingEntry->CachePoly->isOKPlaced(j, iRot, iFixedVertex, &trans_rot_p);
#if DEBUG_CACHE > 0
                        OutDebug << "isOKPlaced(idx=" << j << ", iRot=" << iRot << ", iFixedVertex=" << iFixedVertex << ") return " << Cached << '\n' << std::flush;
#endif // DEBUG_CACHE
                    }
#ifdef UNDEF
                    if ( FloatPolygon == 2 && iRot == 1 && FixedPolygon == 0 && i == 0 && j == 1)
                    {
                        OutDebug << "Breakpoint reached!\n";
                        OutDebug.flush();
                    }
#endif
                    if ( Cached < 0 )       //  Cache says impossible !
                    {
                        CacheHit_KO++;
                        if ( debug_level > 2 )
                            OutDebug << "Cache says placement polygon " << FloatPolygon << " vertex " << j << " on vertex " << i << " of Polygon " << FixedPolygon << "(" << iFixedVertex << ")" << "impossible " << *curFixed->GetVertex(i) << "\n";
                        continue;           //  Goto next vertex...
                    }
                    else if ( Cached == 0 )
                    {
                        CacheMiss++;        // Not yet in cache, check angles first
                        //  No need to check angles when cached, because we test against a fixed polygon, and this test is included in the cache result
                        nbCheckAngles++;
                        if ( rot_p->nVertices == 0 )
                        {
                            cerr << " rot_p (" << rot_p << ") invalid with 0 vertices, level =" << LevelOptimize << " Float poly = " << FloatPolygon << "\n";
                        }
                        if (CheckAngles(rot_p, j, curFixed, i) == 0)
                        {
                            //  Impossible, invalid cache entry if polygon is fixed
                            if ( UseCache && path->isFixed )
                            {
                                WorkingFloatingEntry->CachePoly->addOKPlaced(j, iRot, iFixedVertex, NULL);
#if DEBUG_CACHE > 0
                                OutDebug << "CheckAngle NOK, invalidate entry (idx=" << j << ", iRot=" << iRot << ", iFixedVertex=" << iFixedVertex << ")\n" << std::flush;
#endif // DEBUG_CACHE

                            }
                            if ( debug_level > 2 )
                                OutDebug << "Placement polygon " << FloatPolygon << " vertex " << j << " on vertex " << i << " of Polygon " << FixedPolygon << " impossible " << *curFixed->GetVertex(i) << ", reason angle mismatch\n";
                            continue;    //  Not possible go to next without further processing
                        }
                        //  Compute polygon translated and rotated...
                        trans_rot_p = rot_p->Translate(curFixed->GetVertex(i), j);
                        nbTranslation++;
                        trans_rot_p->CalcSegments();
                    }
                    else
                    {
                        CacheHit_OK++;
                    }

                    RefPoint = Point(WorkingFloatingEntry->StartX, WorkingFloatingEntry->StartY);
                    RefPoint.Transform(angle, WorkingFloatingEntry->LargePolygon->getCentroid(), trans_rot_p->getTranslation());
                    if ( (Reason = PlacementNotPossible(trans_rot_p, FixedList, &OverAll, &RefPoint, Cached)) )
                    {
                        if ( debug_level > 2 )
                            OutDebug << "Placement polygon " << FloatPolygon << " vertex " << j << " on vertex " << i << " of Polygon " << FixedPolygon << " impossible " << *curFixed->GetVertex(i) << ", reason " << Reason << "\n";
                        //  If impossible due to conflict with fixed polygon, invalidate cache entry
                        if ( path->isFixed && (Reason & FIXED_BIT) != 0 )
                        {
                            if ( UseCache )
                            {
                                WorkingFloatingEntry->CachePoly->addOKPlaced(j, iRot, iFixedVertex, NULL);
#if DEBUG_CACHE > 0
                                OutDebug << "PlacementNotPossible NOK, invalidate entry (idx=" << j << ", iRot=" << iRot << ", iFixedVertex=" << iFixedVertex << ")\n" << std::flush;
#endif // DEBUG_CACHE
                            }
                            //  And free memory of polygon translated / rotated
                            delete trans_rot_p;
                            trans_rot_p = NULL;
                        }
                        //  Free memory associated with polygon only if not cached
                        if ( Cached == 0 && trans_rot_p != NULL )
                        {
                            delete trans_rot_p;
                            trans_rot_p = NULL;
                        }

                        nbPlacementImpossible++;
                        if ( rot_p->nVertices == 0 )
                        {
                            cerr << " rot_p (" << rot_p << ") invalid with 0 vertices, level =" << LevelOptimize << " Float poly = " << FloatPolygon << "\n";
                        }
                        continue;
                    }
                    if ( path->isFixed && Cached == 0)        //  If current vertex belongs to a fixed path, cache value
                    {
                        if ( UseCache )
                        {
                            WorkingFloatingEntry->CachePoly->addOKPlaced(j, iRot, iFixedVertex, trans_rot_p);
#if DEBUG_CACHE > 0
                            OutDebug << "PlacementNotPossible OK, validate entry (idx=" << j << ", iRot=" << iRot << ", iFixedVertex=" << iFixedVertex << ")\n" << std::flush;
#endif // DEBUG_CACHE
                            Cached = 1;
                        }
#ifdef UNDEF
                        if ( LevelOptimize == 1 && FloatPolygon == 2 && iRot == 0 && iFixedVertex == 2 && j == 3 )
                        {
                            OutDebug << "iRot=0, Vertex 3 of Polygon 2 placed on vertex 2 of polygon 0, add cache entry "  << trans_rot_p << "\n";
                            Polygon *TestPoly = NULL;
                            int TestCache = WorkingFloatingEntry->CachePoly->isOKPlaced(j, iRot, iFixedVertex, &TestPoly);
                            OutDebug << "Check Cached=" << TestCache << " Value Cached=" << TestPoly << "\n";
                        }
#endif
                    }
                    //  Compute cost function
                    //  We will use the Hull area and a factor of the bounding box.
                    //  As the Hull and bounding box will only grow with subsequent calls, if a temp value is greater than the best one, no need to process further polygons
                    vector<Point> tmpHull = CombineHull(FixedHull, trans_rot_p->GetVertices());
                    double tmpHullArea = HullArea(tmpHull);
                    Rectangle tmpOverall = Hull2BoundingBox(FixedHull);
                    double CurrentCost = tmpHullArea + RectCostFactor*tmpOverall.get_area();
                    if ( debug_level > 1)
                        OutDebug << "  Vertex " << j << " on " << i << " of polygon " << FixedPolygon << " Hull area " << tmpHullArea << " Cost " << CurrentCost << "--> DiffArea=" << CurrentCost - tmpPolygonArea << "\n";
                    //  In this case, call again this function but with a list without the first element
                    //  First copy the list, the first element has already been removed
                    std::list<NSVGpath *> tmpFloatList = CurFloating;
                    //  Then add this element, as placed to the fixed list.
                    std::list<NSVGpath *> tmpFixedList = FixedList;
                    tmpFixedList.push_back(WorkingFloatingEntry);
                    //  Move Polygon at its place, but before delete existing polygon to save memory
                    if ( WorkingFloatingEntry->PlacedPolygon ) delete WorkingFloatingEntry->PlacedPolygon;
                    if ( WorkingFloatingEntry->LargeConvexHull ) delete WorkingFloatingEntry->LargeConvexHull;
                    Point temp_pT = trans_rot_p->getTranslation();
                    WorkingFloatingEntry->PlacedPolygon = WorkingFloatingEntry->LargePolygon->Transform(angle, &temp_pT);
                    WorkingFloatingEntry->PlacedPolygon->ComputeAngles();
                    WorkingFloatingEntry->PlacedPolygon->CalcSegments();
                    //  Update variables for Fixed polygons lists
                    double tmpFixedArea = FixedArea + WorkingFloatingEntry->LargePolygon->area();
                    tmpFixedHull = CombineHull(FixedHull, WorkingFloatingEntry->PlacedPolygon->GetVertices());
                    WorkingFloatingEntry->LargeConvexHull = new Polygon(tmpFixedHull);
                    WorkingFloatingEntry->LargeConvexHull->ReCalcArea();
                    if ( debug_level > 1 && !tmpFloatList.empty() && CurrentCost >= InBestCost )
                    {
                        OutDebug << "L" << LevelOptimize << ", CurrentCost (" << CurrentCost << ") larger than input best values (" << InBestCost << ") no need to process other polygons in list\n";
                    }
                    if ( debug_level > 1 && !tmpFloatList.empty() && CurrentCost >= BestCost )
                    {
                        OutDebug << "L" << LevelOptimize << ", CurrentCost (" << CurrentCost << ") larger than current best values (" << BestCost << ") no need to process other polygons in list\n";
                    }
                    if ( !tmpFloatList.empty() && (CurrentCost <= InBestCost && CurrentCost <= BestCost) ) //  To go deeper, we need something in list and cost lower than previous min
                    {
                        if ( debug_level > 1 )
                        {
                            OutDebug << "  Applying current translation : " << temp_pT << " to polygon " << FloatPolygon << "\n";
                            OutDebug << "  new hull with " << FixedHull.size() << " vertices, area " << HullArea(FixedHull) << " Fixed polygon area " << tmpFixedArea <<"\n";
                            OutDebug << "  LargeConvexHull area :" << WorkingFloatingEntry->LargeConvexHull->area() << "\n";
                            OutDebug << "  Then call Optimize level again...\n";
                        }
                        OverAll = Hull2BoundingBox(FixedHull);
                        //  Then call Optimize level if the floating list is non empty
                        NSVGpath *Res = OptimizeLevel(WorkingFloatingEntry->LargeConvexHull, tmpFixedList, tmpFloatList, num_rot, StepAngle, tmpFixedArea, CurrentCost, BestCost, FloatPolygon+1, nbFixedPoly, LevelOptimize - 1);
                        if ( Res == NULL )
                        {
                            //  Placement impossible, make sure that CurrentCost will be greater than BestCost
                            CurrentCost = BestCost + 10;
                        }
                        //  After return, the CurrentCost is updated
                        if ( debug_level > 1 )
                        {
                            OutDebug << "-----   Returning at level " << LevelOptimize << ",  Cost is " << CurrentCost << "\n";
                        }
                    }

                    if ( CurrentCost < BestCost  )
                    {   //  Yes record new best value and corresponding position
                        if ( CurrentCost < tmpPolygonArea )
                        {
                            cerr << "Internal error, hull area is lower than polygon area!\n";
                        }
                        //else
                        {
                            BestCost = CurrentCost;
                            BestAngle = angle;
                            BestTranslation = trans_rot_p->getTranslation();
                            Best_i = i;
                            Best_j = j;
                            Best_Poly = FixedPolygon;
                            if ( debug_level > 1 )
                            {
                                OutDebug << "L" << LevelOptimize << ", new best found placing polygon " << FloatPolygon << "\n";
                                OutDebug << "      Vertex " << j << " on vertex " << i << " of polygon " <<  FixedPolygon << "\n";
                                OutDebug << "      Rotation=" << round(angle*180/M_PI) << " Translation " << BestTranslation << " from " << *(rot_p->GetVertex(j)) << " to " <<  *(curFixed->GetVertex(i)) << "\n";
                                OutDebug << "      Hull area:" << tmpHullArea << "  Cost:" << CurrentCost << " Polygon area:" << tmpPolygonArea << "\n";

                            }
                        }
                    }
                    if ( Cached == 0 )
                    {
                        delete trans_rot_p;     //  No need to keep, free memory
                        if ( rot_p->nVertices == 0 )
                        {
                            cerr << " rot_p (" << rot_p << ") invalid with 0 vertices, level =" << LevelOptimize << " Float poly = " << FloatPolygon << "\n";
                        }
                    }
                }
             }
        }
    }
    //  Do some cleaning...
    if ( rot_p->nVertices == 0 )
    {
        cerr << " rot_p (" << rot_p << ") invalid with 0 vertices, level =" << LevelOptimize << " Float poly = " << FloatPolygon << "\n";
    }
    if ( rot_p != NULL ) delete rot_p;
    rot_p = NULL;
    //  Place polygon at BestAngle and Best Translation
    if ( BestAngle < 0 )
    {
        Cost = 1.0e50;        //      Return a large cost, all possible solutions will be better than this one
        return NULL;
    }
    if ( BestCost > InBestCost )    //  Not better at this level
    {
        Cost = BestCost;
        if ( debug_level > 1 )
        {
            OutDebug << "Level " << LevelOptimize << " No better move than " <<  InBestCost << " found, return at upper level\n";
        }
        return WorkingFloatingEntry;
    }
    if ( WorkingFloatingEntry->PlacedPolygon ) delete WorkingFloatingEntry->PlacedPolygon;
    if ( WorkingFloatingEntry->LargeConvexHull ) delete WorkingFloatingEntry->LargeConvexHull;
    WorkingFloatingEntry->PlacedPolygon = WorkingFloatingEntry->LargePolygon->Transform(BestAngle, &BestTranslation);
    WorkingFloatingEntry->PlacedPolygon->ComputeAngles();
    WorkingFloatingEntry->PlacedPolygon->CalcSegments();
    FixedArea += WorkingFloatingEntry->PlacedPolygon->area();
    FixedHull = CombineHull(FixedHull, WorkingFloatingEntry->PlacedPolygon->GetVertices());
    WorkingFloatingEntry->LargeConvexHull = new Polygon(FixedHull);
    WorkingFloatingEntry->LargeConvexHull->ReCalcArea();
    WorkingFloatingEntry->LargeConvexHull->getCentroid();
    Cost = BestCost;
    if ( debug_level > 0 )
    {
        OutDebug << "Level " << LevelOptimize << ": Applying best move : " << BestTranslation << "/" << round(BestAngle*180/M_PI) << "° to polygon " << FloatPolygon  << "(" << WorkingFloatingEntry->id << ") will place vertex " << Best_j << " on vertex " << Best_i << " of polygon " << Best_Poly << "\n";
        OutDebug << "  new hull with " << FixedHull.size() << " vertices, area " << HullArea(FixedHull) << " Fixed polygon area " << FixedArea <<"\n";
        OutDebug << "  LargeConvexHull area :" << WorkingFloatingEntry->LargeConvexHull->area() << " Cost= " << Cost << "\n";
        OutDebug << "  CurFloating.Size=" << CurFloating.size() << "\n";
        int idx_list = 1;
        for (std::list<NSVGpath *>::iterator it=CurFloating.begin(); it != CurFloating.end() ; ++it, idx_list++)
        {
            NSVGpath  *lPath = *it;
            OutDebug << " Element " << idx_list << ": Translation=" << lPath->PlacedPolygon->getTranslation() << " rot=" << round(lPath->PlacedPolygon->getRotation()*180/M_PI) ;
            OutDebug << " Hull area=" << lPath->LargeConvexHull->area() << "\n";
        }
    }
    return WorkingFloatingEntry;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2d8, %rsp            # imm = 0x2D8
movsd %xmm2, 0xc0(%rsp)
movq %r9, 0xc8(%rsp)
movsd %xmm1, 0xe8(%rsp)
movsd %xmm0, 0x198(%rsp)
movl %r8d, 0x90(%rsp)
movq %rcx, 0x88(%rsp)
movq %rdx, 0xe0(%rsp)
movq %rsi, %rbx
movq %rdi, %rbp
xorl %eax, %eax
movq %rax, 0x20(%rsp)
movq %rax, 0x80(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x70(%rsp)
movq %rax, 0x160(%rsp)
movapd %xmm0, 0x150(%rsp)
movapd %xmm0, 0x1d0(%rsp)
movapd %xmm0, 0x230(%rsp)
movapd %xmm0, 0x220(%rsp)
movapd %xmm0, 0x180(%rsp)
cmpl $0x2, 0x60(%rdi)
jl 0x323f4
leaq 0x68(%rbp), %r14
leaq 0xd348(%rip), %rsi      # 0x3f5ef
movl $0x17, %edx
movq %r14, %rdi
callq 0x74e0
movq %r14, %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %r15
leaq 0xd33a(%rip), %rsi      # 0x3f607
movl $0x11, %edx
movq %rax, %rdi
callq 0x74e0
movq %rbx, %rdi
callq 0x266bc
movq %r15, %rdi
callq 0x7690
movq %rax, %r15
leaq 0xd325(%rip), %rsi      # 0x3f619
movl $0xc, %edx
movq %rax, %rdi
callq 0x74e0
movq %r15, %rdi
movsd 0xe8(%rsp), %xmm0
callq 0x7690
leaq 0xd30d(%rip), %rsi      # 0x3f626
movl $0xa, %edx
movq %r14, %rdi
callq 0x74e0
movq 0xc8(%rsp), %rax
movsd (%rax), %xmm0
movq %r14, %rdi
callq 0x7690
movq %rax, %r15
leaq 0xd2ed(%rip), %rsi      # 0x3f631
movl $0xd, %edx
movq %rax, %rdi
callq 0x74e0
movq %r15, %rdi
movsd 0xc0(%rsp), %xmm0
callq 0x7690
leaq 0xcf63(%rip), %rsi      # 0x3f2cc
movl $0x1, %edx
movq %rax, %rdi
callq 0x74e0
leaq 0xd2c2(%rip), %rsi      # 0x3f63f
movl $0x11, %edx
movq %r14, %rdi
callq 0x74e0
movq 0x88(%rsp), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x7300
movq %rax, %r14
leaq 0xd2a9(%rip), %rsi      # 0x3f651
movl $0xa, %edx
movq %rax, %rdi
callq 0x74e0
movq 0x88(%rsp), %rax
movq (%rax), %rax
movl $0x90, %r15d
addq 0x10(%rax), %r15
movq %r15, %rdi
callq 0x71d0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x74e0
leaq 0xcee5(%rip), %rsi      # 0x3f2cc
movl $0x1, %edx
movq %r14, %rdi
callq 0x74e0
leaq 0x10(%rbx), %rsi
leaq 0xa0(%rsp), %rdi
callq 0x259ac
movq 0x70(%rsp), %rdi
movq 0x80(%rsp), %rsi
movapd 0xa0(%rsp), %xmm0
movapd %xmm0, 0x70(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x80(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xa0(%rsp)
movq $0x0, 0xb0(%rsp)
testq %rdi, %rdi
je 0x32474
subq %rdi, %rsi
callq 0x7450
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x32474
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq %rbx, %rdi
callq 0x27d5c
leaq 0xa0(%rsp), %rdi
movq %rbx, %rsi
callq 0x27c1a
movupd 0xa0(%rsp), %xmm0
movupd 0xb0(%rsp), %xmm1
movapd %xmm1, 0x230(%rsp)
movapd %xmm0, 0x220(%rsp)
movq 0x88(%rsp), %rax
movq (%rax), %rbx
movq 0x10(%rbx), %r14
decq 0x10(%rax)
movq %rbx, %rdi
callq 0x76b0
movl $0x18, %esi
movq %rbx, %rdi
callq 0x7450
movq %r14, 0x10(%rsp)
movq 0x68(%r14), %rdi
callq 0x266bc
movsd %xmm0, 0xd8(%rsp)
leaq 0x2c0(%rsp), %r14
movq %r14, %rdi
movq 0xe0(%rsp), %rsi
callq 0x3b844
movq 0x2c0(%rsp), %rdi
xorl %ebx, %ebx
cmpq %r14, %rdi
je 0x32544
movq %rdi, %rax
movq 0x10(%rax), %rcx
movq (%rax), %rdx
movq 0x68(%rcx), %rax
addl 0x8(%rax), %ebx
movq %rdx, %rax
cmpq %r14, %rdx
jne 0x32519
movq (%rdi), %r15
movl $0x18, %esi
callq 0x7450
movq %r15, %rdi
cmpq %r14, %r15
jne 0x3252f
cmpl $0x2, 0x60(%rbp)
jl 0x325c0
leaq 0x68(%rbp), %r14
leaq 0xd107(%rip), %rsi      # 0x3f65c
movl $0x17, %edx
movq %r14, %rdi
callq 0x74e0
movq 0x10(%rsp), %rax
leaq 0x90(%rax), %r15
movq %r15, %rdi
callq 0x71d0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x74e0
leaq 0xd0e9(%rip), %rsi      # 0x3f674
movl $0x6, %edx
movq %r14, %rdi
callq 0x74e0
movq 0x10(%rsp), %rax
movq 0x68(%rax), %rax
movl 0x8(%rax), %esi
movq %r14, %rdi
callq 0x7720
leaq 0xd0c8(%rip), %rsi      # 0x3f67b
movl $0xb, %edx
movq %rax, %rdi
callq 0x74e0
cmpl $0x0, 0x64(%rbp)
je 0x326ed
movq 0x10(%rsp), %rax
cmpq $0x0, 0x88(%rax)
je 0x3262e
cmpl $0x2, 0x60(%rbp)
jl 0x326ed
leaq 0x68(%rbp), %rbx
leaq 0xd0cd(%rip), %rsi      # 0x3f6bb
movl $0x19, %edx
movq %rbx, %rdi
callq 0x74e0
movq 0x10(%rsp), %rax
leaq 0x90(%rax), %r14
movq %r14, %rdi
callq 0x71d0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x74e0
movl $0x16, %edx
leaq 0xd0ac(%rip), %rsi      # 0x3f6d5
jmp 0x326e5
movl $0x38, %edi
callq 0x7440
movq %rax, %r14
movq 0x10(%rsp), %r15
movq 0x68(%r15), %rax
movl 0x8(%rax), %esi
movq %r14, %rdi
movl 0x90(%rsp), %edx
movl %ebx, %ecx
callq 0x2524c
movq %r14, 0x88(%r15)
cmpl $0x2, 0x60(%rbp)
jl 0x326ed
leaq 0x68(%rbp), %r14
leaq 0xd013(%rip), %rsi      # 0x3f687
movl $0x20, %edx
movq %r14, %rdi
callq 0x74e0
movq 0x10(%rsp), %rax
leaq 0x90(%rax), %r15
movq %r15, %rdi
callq 0x71d0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x74e0
leaq 0xcffe(%rip), %rsi      # 0x3f6a8
movl $0x7, %edx
movq %r14, %rdi
callq 0x74e0
movq 0x10(%rsp), %rax
movq 0x68(%rax), %rax
imull 0x90(%rsp), %ebx
imull 0x8(%rax), %ebx
movq %r14, %rdi
movl %ebx, %esi
callq 0x7720
movq %rax, %rbx
movl $0xa, %edx
leaq 0xcfcb(%rip), %rsi      # 0x3f6b0
movq %rbx, %rdi
callq 0x74e0
movl 0x310(%rsp), %ecx
movsd 0xd8(%rsp), %xmm0
addsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0xd8(%rsp)
leaq 0x68(%rbp), %rax
movq %rax, 0x8(%rsp)
leal 0x1(%rcx), %eax
movq %rax, 0x1f8(%rsp)
movl 0x320(%rsp), %eax
decl %eax
movq %rax, 0x1f0(%rsp)
xorl %r14d, %r14d
movsd 0xbaa1(%rip), %xmm0     # 0x3e1e0
movsd %xmm0, 0xd0(%rsp)
movl $0xffffffff, 0x9c(%rsp) # imm = 0xFFFFFFFF
movsd 0xbb1d(%rip), %xmm0     # 0x3e278
movsd %xmm0, 0x40(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x48(%rsp)
movl $0xffffffff, 0x94(%rsp) # imm = 0xFFFFFFFF
movl $0xffffffff, 0x98(%rsp) # imm = 0xFFFFFFFF
movl $0x0, 0x3c(%rsp)
cmpl $0x2, 0x60(%rbp)
jl 0x32804
movl $0x1, %edx
movq 0x8(%rsp), %rdi
leaq 0xa854(%rip), %rsi      # 0x3cff4
callq 0x74e0
movq 0x8(%rsp), %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %rbx
movl $0x12, %edx
movq %rax, %rdi
leaq 0xcf24(%rip), %rsi      # 0x3f6ec
callq 0x74e0
movsd 0x48(%rsp), %xmm0
mulsd 0xba35(%rip), %xmm0     # 0x3e210
divsd 0x983d(%rip), %xmm0     # 0x3c020
callq 0x71c0
movq %rbx, %rdi
callq 0x7690
movl $0x1, %edx
movq %rax, %rdi
leaq 0xcacd(%rip), %rsi      # 0x3f2cc
callq 0x74e0
testq %r14, %r14
je 0x32812
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
movq 0x10(%rsp), %rax
movq 0x68(%rax), %rdi
movsd 0x48(%rsp), %xmm0
callq 0x28190
movq %rax, %r14
incq 0x278(%rbp)
movq %rax, %rdi
callq 0x2870c
movq %r14, %rdi
callq 0x28f40
movq 0xe0(%rsp), %rax
movq (%rax), %rbx
cmpq %rax, %rbx
je 0x33ed1
movsd 0x48(%rsp), %xmm0
mulsd 0xb9ae(%rip), %xmm0     # 0x3e210
divsd 0x97b6(%rip), %xmm0     # 0x3c020
callq 0x71c0
movsd %xmm0, 0x1e8(%rsp)
movl $0x0, 0x1c(%rsp)
movl $0x0, 0x28(%rsp)
movq %r14, 0xf0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xf8(%rsp)
movq 0x78(%rax), %rax
movq %rax, 0x68(%rsp)
cmpl $0x2, 0x8(%rax)
jl 0x33ebc
xorl %r15d, %r15d
movq %rbx, 0x200(%rsp)
cmpl $0x0, 0x60(%rbp)
jle 0x328ca
movq 0x8(%rsp), %rdi
callq 0x7310
movl 0x8(%r14), %eax
cmpl $0x2, %eax
jl 0x33e98
xorl %ebx, %ebx
movq %r15, 0x30(%rsp)
movq $0x0, 0x20(%rsp)
cmpl $0x0, 0x64(%rbp)
je 0x32a57
movq 0xf8(%rsp), %rcx
cmpl $0x0, 0x80(%rcx)
je 0x32a57
movq 0x10(%rsp), %rax
movq 0x88(%rax), %rdi
movl %ebx, %esi
movl 0x3c(%rsp), %edx
movl 0x28(%rsp), %ecx
leaq 0x20(%rsp), %r8
callq 0x25376
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
js 0x32946
je 0x32a53
incq 0x2a8(%rbp)
xorl %r12d, %r12d
jmp 0x32cc8
incq 0x2b0(%rbp)
cmpl $0x3, 0x60(%rbp)
jl 0x331df
movl $0x1d, %edx
movq 0x8(%rsp), %rdi
leaq 0xcd97(%rip), %rsi      # 0x3f6ff
callq 0x74e0
movq 0x8(%rsp), %rdi
movl 0x310(%rsp), %esi
callq 0x7720
movq %rax, %r15
movl $0x8, %edx
movq %rax, %rdi
leaq 0xd09f(%rip), %rsi      # 0x3fa2f
callq 0x74e0
movq %r15, %rdi
movl %ebx, %esi
callq 0x7720
movq %rax, %r15
movl $0xb, %edx
movq %rax, %rdi
leaq 0xd200(%rip), %rsi      # 0x3fbb1
callq 0x74e0
movq %r15, %rdi
movq 0x30(%rsp), %rsi
callq 0x7720
movq %rax, %r15
movl $0xc, %edx
movq %rax, %rdi
leaq 0xcd48(%rip), %rsi      # 0x3f71d
callq 0x74e0
movq %r15, %rdi
movl 0x1c(%rsp), %esi
callq 0x7720
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0xbbda(%rip), %rsi      # 0x3e5d2
callq 0x74e0
movq %r15, %rdi
movl 0x28(%rsp), %esi
callq 0x7720
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0xa6dd(%rip), %rsi      # 0x3d0f8
callq 0x74e0
movl $0xb, %edx
movq %r15, %rdi
leaq 0xcd37(%rip), %rsi      # 0x3f766
callq 0x74e0
movq 0x30(%rsp), %rsi
shlq $0x4, %rsi
movq 0x68(%rsp), %rax
addq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x3b894
jmp 0x331cb
movl 0x8(%r14), %eax
incq 0x2a0(%rbp)
incq 0x280(%rbp)
testl %eax, %eax
jne 0x32af4
movl $0x8, %edx
movq 0x1e567(%rip), %rdi     # 0x50fe0
leaq 0xccaa(%rip), %rsi      # 0x3f72a
callq 0x74e0
movq 0x1e554(%rip), %rdi     # 0x50fe0
movq %r14, %rsi
callq 0x7360
movq %rax, %r15
movl $0x22, %edx
movq %rax, %rdi
leaq 0xcc8d(%rip), %rsi      # 0x3f733
callq 0x74e0
movq %r15, %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %r15
movl $0xe, %edx
movq %rax, %rdi
leaq 0xcc8a(%rip), %rsi      # 0x3f756
callq 0x74e0
movq %r15, %rdi
movl 0x310(%rsp), %esi
callq 0x7720
movl $0x1, %edx
movq %rax, %rdi
leaq 0xc7dd(%rip), %rsi      # 0x3f2cc
callq 0x74e0
testq %rbx, %rbx
je 0x32b0b
movq 0x40(%r14), %rcx
leaq (%rcx,%rbx,8), %rax
leaq (%rcx,%rbx,8), %rcx
addq $-0x8, %rcx
jmp 0x32b1b
movslq 0x8(%r14), %rcx
movq 0x40(%r14), %rax
leaq (%rax,%rcx,8), %rcx
addq $-0x10, %rcx
movq 0x30(%rsp), %rsi
movsd (%rcx), %xmm0
addsd 0x94f4(%rip), %xmm0     # 0x3c020
movapd %xmm0, %xmm1
addsd 0xb730(%rip), %xmm1     # 0x3e268
testq %rsi, %rsi
je 0x32b54
movq 0x68(%rsp), %rcx
movq 0x40(%rcx), %rdx
leaq (%rdx,%rsi,8), %rcx
leaq (%rdx,%rsi,8), %rdx
addq $-0x8, %rdx
jmp 0x32b69
movq 0x68(%rsp), %rcx
movslq 0x8(%rcx), %rdx
movq 0x40(%rcx), %rcx
leaq (%rcx,%rdx,8), %rdx
addq $-0x10, %rdx
movsd 0x94af(%rip), %xmm5     # 0x3c020
movapd %xmm5, %xmm2
cmpltsd %xmm0, %xmm2
andpd %xmm2, %xmm1
andnpd %xmm0, %xmm2
orpd %xmm1, %xmm2
movsd (%rax), %xmm3
movsd (%rdx), %xmm0
addsd %xmm5, %xmm0
movapd %xmm0, %xmm4
addsd 0xb6ca(%rip), %xmm4     # 0x3e268
movapd %xmm5, %xmm1
cmpltsd %xmm0, %xmm1
andpd %xmm1, %xmm4
andnpd %xmm0, %xmm1
orpd %xmm4, %xmm1
movsd (%rcx), %xmm0
xorpd %xmm4, %xmm4
ucomisd %xmm1, %xmm4
movapd %xmm1, %xmm4
addsd 0xb695(%rip), %xmm4     # 0x3e260
movapd %xmm0, %xmm5
addsd 0xb631(%rip), %xmm5     # 0x3e208
jbe 0x32bfe
ucomisd %xmm0, %xmm1
ja 0x32c04
ucomisd %xmm2, %xmm5
jb 0x32fbd
ucomisd %xmm4, %xmm2
jb 0x32fbd
ucomisd %xmm3, %xmm5
jae 0x32c1a
jmp 0x32fbd
ucomisd %xmm1, %xmm0
jae 0x32bdf
ucomisd %xmm2, %xmm5
jae 0x32c14
ucomisd %xmm4, %xmm2
jb 0x32fbd
ucomisd %xmm3, %xmm5
jae 0x32c24
ucomisd %xmm4, %xmm3
jb 0x32fbd
xorpd %xmm4, %xmm4
ucomisd %xmm2, %xmm4
movapd %xmm2, %xmm5
addsd 0xb628(%rip), %xmm5     # 0x3e260
movapd %xmm3, %xmm4
addsd 0xb5c4(%rip), %xmm4     # 0x3e208
jbe 0x32c64
ucomisd %xmm3, %xmm2
jbe 0x32c6a
ucomisd %xmm5, %xmm1
jae 0x32c5c
ucomisd %xmm1, %xmm4
jb 0x32fbd
ucomisd %xmm5, %xmm0
jb 0x32c88
jmp 0x32c92
ucomisd %xmm2, %xmm3
jb 0x32c4c
ucomisd %xmm5, %xmm1
jb 0x32fbd
ucomisd %xmm1, %xmm4
jb 0x32fbd
ucomisd %xmm5, %xmm0
jb 0x32fbd
ucomisd %xmm0, %xmm4
jb 0x32fbd
shlq $0x4, %rsi
movq 0x68(%rsp), %rax
addq 0x10(%rax), %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x27fb4
movq %rax, 0x20(%rsp)
incq 0x270(%rbp)
movq %rax, %rdi
callq 0x28f40
movl $0x0, 0x2c(%rsp)
movb $0x1, %r12b
movq 0x10(%rsp), %rax
movupd (%rax), %xmm0
movapd %xmm0, 0x180(%rsp)
movq 0x68(%rax), %rdi
callq 0x27d5c
movq 0x20(%rsp), %rax
movups 0xb0(%rax), %xmm2
movaps %xmm2, 0x120(%rsp)
movapd %xmm0, 0x50(%rsp)
movsd 0x48(%rsp), %xmm0
movapd %xmm1, 0x290(%rsp)
callq 0x77a0
movaps %xmm0, 0x170(%rsp)
movsd 0x48(%rsp), %xmm0
callq 0x70f0
movsd 0x180(%rsp), %xmm1
movsd 0x188(%rsp), %xmm2
movapd 0x50(%rsp), %xmm5
subsd %xmm5, %xmm1
movapd 0x290(%rsp), %xmm6
subsd %xmm6, %xmm2
movapd %xmm2, %xmm3
xorpd 0xb367(%rip), %xmm3     # 0x3e0c0
movapd %xmm0, %xmm4
movapd 0x170(%rsp), %xmm7
unpcklpd %xmm7, %xmm4            # xmm4 = xmm4[0],xmm7[0]
unpcklpd %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0]
mulpd %xmm4, %xmm3
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
movapd %xmm7, %xmm2
unpcklpd %xmm0, %xmm2            # xmm2 = xmm2[0],xmm0[0]
mulpd %xmm1, %xmm2
addpd %xmm3, %xmm2
movapd %xmm5, %xmm1
unpcklpd %xmm6, %xmm1            # xmm1 = xmm1[0],xmm6[0]
addpd %xmm2, %xmm1
addpd 0x120(%rsp), %xmm1
movapd 0xb32d(%rip), %xmm0     # 0x3e0d0
divpd %xmm0, %xmm1
movapd %xmm1, 0x50(%rsp)
movapd %xmm1, %xmm0
callq 0x71c0
movapd %xmm0, 0x120(%rsp)
movapd 0x50(%rsp), %xmm0
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
callq 0x71c0
movapd 0x120(%rsp), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
mulpd 0xb2ed(%rip), %xmm1     # 0x3e0d0
movapd %xmm1, 0x180(%rsp)
movq 0x20(%rsp), %r13
leaq 0x278(%rsp), %rdi
movq 0xe0(%rsp), %rsi
callq 0x3b844
movq %rbp, %rdi
movq %r13, %rsi
leaq 0x278(%rsp), %r15
movq %r15, %rdx
leaq 0x220(%rsp), %rcx
leaq 0x180(%rsp), %r8
movl 0x2c(%rsp), %r9d
callq 0x34868
movl %eax, %r13d
movq 0x278(%rsp), %rdi
cmpq %r15, %rdi
je 0x32e56
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r15, %r14
jne 0x32e41
testl %r13d, %r13d
je 0x330cd
cmpl $0x3, 0x60(%rbp)
movq 0xf0(%rsp), %r14
jl 0x32f67
movl $0x12, %edx
movq 0x8(%rsp), %rdi
leaq 0xcda3(%rip), %rsi      # 0x3fc25
callq 0x74e0
movq 0x8(%rsp), %rdi
movl 0x310(%rsp), %esi
callq 0x7720
movq %rax, %r15
movl $0x8, %edx
movq %rax, %rdi
leaq 0xcb85(%rip), %rsi      # 0x3fa2f
callq 0x74e0
movq %r15, %rdi
movl %ebx, %esi
callq 0x7720
movq %rax, %r15
movl $0xb, %edx
movq %rax, %rdi
leaq 0xcce6(%rip), %rsi      # 0x3fbb1
callq 0x74e0
movq %r15, %rdi
movq 0x30(%rsp), %rsi
callq 0x7720
movq %rax, %r15
movl $0xc, %edx
movq %rax, %rdi
leaq 0xc82e(%rip), %rsi      # 0x3f71d
callq 0x74e0
movq %r15, %rdi
movl 0x1c(%rsp), %esi
callq 0x7720
movq %rax, %r15
movl $0xc, %edx
movq %rax, %rdi
leaq 0xc853(%rip), %rsi      # 0x3f765
callq 0x74e0
movq 0x30(%rsp), %rsi
shlq $0x4, %rsi
movq 0x68(%rsp), %rax
addq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x3b894
movq %rax, %r15
movl $0x9, %edx
movq %rax, %rdi
leaq 0xc848(%rip), %rsi      # 0x3f78b
callq 0x74e0
movq %r15, %rdi
movl %r13d, %esi
callq 0x7720
movl $0x1, %edx
movq %rax, %rdi
leaq 0xc36a(%rip), %rsi      # 0x3f2cc
callq 0x74e0
testb $0x10, %r13b
je 0x33123
movq 0xf8(%rsp), %rax
cmpl $0x0, 0x80(%rax)
je 0x33123
cmpl $0x0, 0x64(%rbp)
je 0x32faa
movq 0x10(%rsp), %rax
movq 0x88(%rax), %rdi
movl %ebx, %esi
movl 0x3c(%rsp), %edx
movl 0x28(%rsp), %ecx
xorl %r8d, %r8d
callq 0x253d0
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
jne 0x33137
jmp 0x3313d
cmpl $0x0, 0x64(%rbp)
je 0x32ff2
movq 0xf8(%rsp), %rax
cmpl $0x0, 0x80(%rax)
je 0x32ff2
movq 0x10(%rsp), %rax
movq 0x88(%rax), %rdi
movl %ebx, %esi
movl 0x3c(%rsp), %edx
movl 0x28(%rsp), %ecx
xorl %r8d, %r8d
callq 0x253d0
cmpl $0x3, 0x60(%rbp)
jl 0x331df
movl $0x12, %edx
movq 0x8(%rsp), %rdi
leaq 0xcc18(%rip), %rsi      # 0x3fc25
callq 0x74e0
movq 0x8(%rsp), %rdi
movl 0x310(%rsp), %esi
callq 0x7720
movq %rax, %r15
movl $0x8, %edx
movq %rax, %rdi
leaq 0xc9fa(%rip), %rsi      # 0x3fa2f
callq 0x74e0
movq %r15, %rdi
movl %ebx, %esi
callq 0x7720
movq %rax, %r15
movl $0xb, %edx
movq %rax, %rdi
leaq 0xcb5b(%rip), %rsi      # 0x3fbb1
callq 0x74e0
movq %r15, %rdi
movq 0x30(%rsp), %rsi
callq 0x7720
movq %rax, %r15
movl $0xc, %edx
movq %rax, %rdi
leaq 0xc6a3(%rip), %rsi      # 0x3f71d
callq 0x74e0
movq %r15, %rdi
movl 0x1c(%rsp), %esi
callq 0x7720
movq %rax, %r15
movl $0xc, %edx
movq %rax, %rdi
leaq 0xc6c8(%rip), %rsi      # 0x3f765
callq 0x74e0
movq 0x30(%rsp), %rsi
shlq $0x4, %rsi
movq 0x68(%rsp), %rax
addq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x3b894
movl $0x18, %edx
leaq 0xc6aa(%rip), %rsi      # 0x3f772
jmp 0x331d7
movq 0xf8(%rsp), %rax
cmpl $0x0, 0x80(%rax)
sete %al
xorb $0x1, %r12b
orb %al, %r12b
jne 0x33207
cmpl $0x0, 0x64(%rbp)
je 0x331ff
movq 0x10(%rsp), %rax
movq 0x88(%rax), %rdi
movq 0x20(%rsp), %r8
movl $0x1, 0x2c(%rsp)
movl %ebx, %esi
movl 0x3c(%rsp), %edx
movl 0x28(%rsp), %ecx
callq 0x253d0
jmp 0x33207
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
setne %al
andb %al, %r12b
cmpb $0x1, %r12b
jne 0x33146
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x20(%rsp)
incq 0x298(%rbp)
cmpl $0x0, 0x8(%r14)
jne 0x331df
movl $0x8, %edx
movq 0x1de7c(%rip), %rdi     # 0x50fe0
leaq 0xc5bf(%rip), %rsi      # 0x3f72a
callq 0x74e0
movq 0x1de69(%rip), %rdi     # 0x50fe0
movq %r14, %rsi
callq 0x7360
movq %rax, %r15
movl $0x22, %edx
movq %rax, %rdi
leaq 0xc5a2(%rip), %rsi      # 0x3f733
callq 0x74e0
movq %r15, %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %r15
movl $0xe, %edx
movq %rax, %rdi
leaq 0xc59f(%rip), %rsi      # 0x3f756
callq 0x74e0
movq %r15, %rdi
movl 0x310(%rsp), %esi
callq 0x7720
movl $0x1, %edx
leaq 0xc0f5(%rip), %rsi      # 0x3f2cc
movq %rax, %rdi
callq 0x74e0
incq %rbx
movslq 0x8(%r14), %rax
movq %rax, %rcx
decq %rcx
cmpq %rcx, %rbx
movq 0x30(%rsp), %r15
jl 0x328de
jmp 0x33e98
movl $0x0, 0x2c(%rsp)
movq 0x20(%rsp), %rsi
addq $0x10, %rsi
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
callq 0x259ac
leaq 0x208(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movq %r14, %rdx
callq 0x257db
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x33252
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
leaq 0x208(%rsp), %rdi
callq 0x2589b
movsd %xmm0, 0x120(%rsp)
movq 0x30(%rsp), %r12
leaq 0xa0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x2591e
movsd 0xb0(%rsp), %xmm0
movsd 0xb8(%rsp), %xmm1
subsd 0xa0(%rsp), %xmm0
subsd 0xa8(%rsp), %xmm1
mulsd %xmm0, %xmm1
andpd 0xad81(%rip), %xmm1     # 0x3e030
mulsd 0x38(%rbp), %xmm1
addsd 0x120(%rsp), %xmm1
movapd %xmm1, 0x50(%rsp)
movsd %xmm1, 0x100(%rsp)
cmpl $0x2, 0x60(%rbp)
jl 0x333cc
movl $0x9, %edx
movq 0x8(%rsp), %rdi
leaq 0xc680(%rip), %rsi      # 0x3f967
callq 0x74e0
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x7720
movq %rax, %r13
movl $0x4, %edx
movq %rax, %rdi
leaq 0xc48b(%rip), %rsi      # 0x3f795
callq 0x74e0
movq %r13, %rdi
movl %r12d, %esi
callq 0x7720
movq %rax, %r13
movl $0xc, %edx
movq %rax, %rdi
leaq 0xc46e(%rip), %rsi      # 0x3f79a
callq 0x74e0
movq %r13, %rdi
movl 0x1c(%rsp), %esi
callq 0x7720
movq %rax, %r13
movl $0xb, %edx
movq %rax, %rdi
leaq 0xc458(%rip), %rsi      # 0x3f7a7
callq 0x74e0
movq %r13, %rdi
movsd 0x120(%rsp), %xmm0
callq 0x7690
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
leaq 0xc43c(%rip), %rsi      # 0x3f7b3
callq 0x74e0
movq %r13, %rdi
movapd 0x50(%rsp), %xmm0
callq 0x7690
movq %rax, %r13
movl $0xd, %edx
movq %rax, %rdi
leaq 0xc41e(%rip), %rsi      # 0x3f7ba
callq 0x74e0
movapd 0x50(%rsp), %xmm0
subsd 0xd8(%rsp), %xmm0
movq %r13, %rdi
callq 0x7690
movl $0x1, %edx
movq %rax, %rdi
leaq 0xbf05(%rip), %rsi      # 0x3f2cc
callq 0x74e0
leaq 0x108(%rsp), %rdi
movq 0x88(%rsp), %rsi
callq 0x3b844
leaq 0x1a0(%rsp), %rdi
movq 0xe0(%rsp), %rsi
callq 0x3b844
movl $0x18, %edi
callq 0x7440
movq 0x10(%rsp), %r14
movq %r14, 0x10(%rax)
movq %rax, %rdi
leaq 0x1a0(%rsp), %rsi
callq 0x7080
incq 0x1b0(%rsp)
movq 0x78(%r14), %rdi
testq %rdi, %rdi
je 0x33430
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x10(%rsp), %rax
movq 0x70(%rax), %rdi
testq %rdi, %rdi
je 0x33444
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rsp), %rax
movups 0xb0(%rax), %xmm0
movaps %xmm0, 0x260(%rsp)
movq 0x10(%rsp), %r14
movq 0x68(%r14), %rdi
movsd 0x48(%rsp), %xmm0
leaq 0x260(%rsp), %rsi
callq 0x2844e
movq %rax, 0x78(%r14)
movq %rax, %rdi
callq 0x2870c
movq 0x78(%r14), %rdi
callq 0x28f40
movq 0x68(%r14), %rdi
callq 0x266bc
movsd %xmm0, 0x170(%rsp)
movq 0xf0(%rsp), %r14
movq 0x10(%rsp), %rax
movq 0x78(%rax), %rsi
addq $0x10, %rsi
leaq 0x248(%rsp), %r15
movq %r15, %rdi
callq 0x259ac
leaq 0x130(%rsp), %rdi
leaq 0x70(%rsp), %rsi
movq %r15, %rdx
callq 0x257db
movq 0x150(%rsp), %rdi
movq 0x160(%rsp), %rsi
movapd 0x130(%rsp), %xmm0
movapd %xmm0, 0x150(%rsp)
movq 0x140(%rsp), %rax
movq %rax, 0x160(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x130(%rsp)
movq $0x0, 0x140(%rsp)
testq %rdi, %rdi
je 0x3354a
subq %rdi, %rsi
callq 0x7450
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x3354a
movq 0x140(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq 0x248(%rsp), %rdi
testq %rdi, %rdi
je 0x33567
movq 0x258(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movl $0xc0, %edi
callq 0x7440
movq %rax, %r13
movq %rax, %rdi
leaq 0x150(%rsp), %rsi
callq 0x26340
movq 0x10(%rsp), %rax
movq %r13, 0x70(%rax)
movq %r13, %rdi
callq 0x27c0a
cmpl $0x2, 0x60(%rbp)
movq 0x108(%rsp), %rax
jl 0x33717
leaq 0x108(%rsp), %rcx
cmpq %rcx, %rax
je 0x33667
movapd 0x50(%rsp), %xmm0
ucomisd 0xc0(%rsp), %xmm0
jb 0x33667
movl $0x1, %edx
movq 0x8(%rsp), %rdi
leaq 0x9a16(%rip), %rsi      # 0x3cff4
callq 0x74e0
movq 0x8(%rsp), %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %r13
movl $0xf, %edx
movq %rax, %rdi
leaq 0xc1c2(%rip), %rsi      # 0x3f7c8
callq 0x74e0
movq %r13, %rdi
movapd 0x50(%rsp), %xmm0
callq 0x7690
movq %rax, %r13
movl $0x21, %edx
movq %rax, %rdi
leaq 0xc1ad(%rip), %rsi      # 0x3f7d8
callq 0x74e0
movq %r13, %rdi
movsd 0xc0(%rsp), %xmm0
callq 0x7690
movl $0x2c, %edx
movq %rax, %rdi
leaq 0xc1aa(%rip), %rsi      # 0x3f7fa
callq 0x74e0
movq 0x108(%rsp), %rax
cmpl $0x2, 0x60(%rbp)
jl 0x33717
leaq 0x108(%rsp), %rcx
cmpq %rcx, %rax
je 0x33717
movapd 0x50(%rsp), %xmm0
ucomisd 0x40(%rsp), %xmm0
jb 0x33717
movl $0x1, %edx
movq 0x8(%rsp), %rdi
leaq 0x9959(%rip), %rsi      # 0x3cff4
callq 0x74e0
movq 0x8(%rsp), %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %r13
movl $0xf, %edx
movq %rax, %rdi
leaq 0xc105(%rip), %rsi      # 0x3f7c8
callq 0x74e0
movq %r13, %rdi
movapd 0x50(%rsp), %xmm0
callq 0x7690
movq %rax, %r13
movl $0x23, %edx
movq %rax, %rdi
leaq 0xc13f(%rip), %rsi      # 0x3f827
callq 0x74e0
movq %r13, %rdi
movsd 0x40(%rsp), %xmm0
callq 0x7690
movl $0x2c, %edx
movq %rax, %rdi
leaq 0xc0f0(%rip), %rsi      # 0x3f7fa
callq 0x74e0
movq 0x108(%rsp), %rax
leaq 0x108(%rsp), %rcx
cmpq %rcx, %rax
je 0x33a7c
movsd 0xc0(%rsp), %xmm0
ucomisd 0x50(%rsp), %xmm0
jb 0x33a7c
movsd 0x40(%rsp), %xmm0
ucomisd 0x50(%rsp), %xmm0
jb 0x33a7c
movsd 0x170(%rsp), %xmm0
addsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0x170(%rsp)
cmpl $0x2, 0x60(%rbp)
jl 0x338c1
movl $0x21, %edx
movq 0x8(%rsp), %rdi
leaq 0xc0c6(%rip), %rsi      # 0x3f84b
callq 0x74e0
movq 0x8(%rsp), %rdi
leaq 0x260(%rsp), %rsi
callq 0x3b894
movq %rax, %r13
movl $0xc, %edx
movq %rax, %rdi
leaq 0xc268(%rip), %rsi      # 0x3fa16
callq 0x74e0
movq %r13, %rdi
movl 0x310(%rsp), %esi
callq 0x7720
movl $0x1, %edx
movq %rax, %rdi
leaq 0xbafb(%rip), %rsi      # 0x3f2cc
callq 0x74e0
movl $0x10, %edx
movq 0x8(%rsp), %rdi
leaq 0xc086(%rip), %rsi      # 0x3f86d
callq 0x74e0
movq 0x78(%rsp), %rsi
subq 0x70(%rsp), %rsi
sarq $0x4, %rsi
movq 0x8(%rsp), %rdi
callq 0x7300
movq %rax, %r13
movl $0x10, %edx
movq %rax, %rdi
leaq 0xc068(%rip), %rsi      # 0x3f87e
callq 0x74e0
leaq 0x70(%rsp), %rdi
callq 0x2589b
movq %r13, %rdi
callq 0x7690
movq %rax, %r13
movl $0x14, %edx
movq %rax, %rdi
leaq 0xc050(%rip), %rsi      # 0x3f88f
callq 0x74e0
movq %r13, %rdi
movsd 0x170(%rsp), %xmm0
callq 0x7690
movl $0x1, %edx
movq %rax, %rdi
leaq 0xba68(%rip), %rsi      # 0x3f2cc
callq 0x74e0
movl $0x18, %edx
movq 0x8(%rsp), %rdi
leaq 0xc02a(%rip), %rsi      # 0x3f8a4
callq 0x74e0
movq 0x10(%rsp), %rax
movq 0x70(%rax), %rdi
callq 0x266bc
movq 0x8(%rsp), %rdi
callq 0x7690
movl $0x1, %edx
movq %rax, %rdi
leaq 0xba26(%rip), %rsi      # 0x3f2cc
callq 0x74e0
movl $0x24, %edx
movq 0x8(%rsp), %rdi
leaq 0xc001(%rip), %rsi      # 0x3f8bd
callq 0x74e0
leaq 0x130(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x2591e
movupd 0x130(%rsp), %xmm0
movupd 0x140(%rsp), %xmm1
movapd %xmm1, 0x230(%rsp)
movapd %xmm0, 0x220(%rsp)
movq 0x10(%rsp), %rax
movq 0x70(%rax), %r13
leaq 0x1b8(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0x3b844
leaq 0x2a8(%rsp), %r15
movq %r15, %rdi
leaq 0x108(%rsp), %rsi
callq 0x3b844
subq $0x8, %rsp
movq %rbp, %rdi
movq %r13, %rsi
leaq 0x1c0(%rsp), %rdx
movq %r15, %rcx
movl 0x98(%rsp), %r8d
movsd 0x1a0(%rsp), %xmm0
movsd 0x178(%rsp), %xmm1
leaq 0x108(%rsp), %r9
movsd 0x48(%rsp), %xmm2
pushq 0x1f8(%rsp)
movl 0x328(%rsp), %eax
pushq %rax
pushq 0x210(%rsp)
callq 0x321f2
addq $0x20, %rsp
movq %rax, %r13
movq 0x2a8(%rsp), %rdi
cmpq %r15, %rdi
je 0x339ae
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r15, %r14
jne 0x33999
movq 0x1b8(%rsp), %rdi
leaq 0x1b8(%rsp), %r15
cmpq %r15, %rdi
je 0x339d8
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r15, %r14
jne 0x339c3
testq %r13, %r13
jne 0x339f4
movsd 0x40(%rsp), %xmm0
addsd 0x862d(%rip), %xmm0     # 0x3c018
movsd %xmm0, 0x100(%rsp)
cmpl $0x1, 0x60(%rbp)
movq 0xf0(%rsp), %r14
jle 0x33a6d
movl $0x1b, %edx
movq 0x8(%rsp), %rdi
leaq 0xbecf(%rip), %rsi      # 0x3f8e2
callq 0x74e0
movq 0x8(%rsp), %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %r13
movl $0xb, %edx
movq %rax, %rdi
leaq 0xbec3(%rip), %rsi      # 0x3f8fe
callq 0x74e0
movsd 0x100(%rsp), %xmm0
movq %r13, %rdi
movapd %xmm0, 0x50(%rsp)
callq 0x7690
movl $0x1, %edx
movq %rax, %rdi
leaq 0xb866(%rip), %rsi      # 0x3f2cc
callq 0x74e0
jmp 0x33a7c
movsd 0x100(%rsp), %xmm0
movapd %xmm0, 0x50(%rsp)
movsd 0x40(%rsp), %xmm0
ucomisd 0x50(%rsp), %xmm0
jbe 0x33d69
movsd 0xd8(%rsp), %xmm0
ucomisd 0x50(%rsp), %xmm0
jbe 0x33ab7
movl $0x36, %edx
movq 0x1d535(%rip), %rdi     # 0x50fe0
leaq 0xbe58(%rip), %rsi      # 0x3f90a
callq 0x74e0
movq 0x20(%rsp), %rax
movupd 0xb0(%rax), %xmm0
movapd %xmm0, 0x1d0(%rsp)
cmpl $0x2, 0x60(%rbp)
jl 0x33d34
movl $0x1, %edx
movq 0x8(%rsp), %rdi
leaq 0x950c(%rip), %rsi      # 0x3cff4
callq 0x74e0
movq 0x8(%rsp), %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %r13
movl $0x21, %edx
movq %rax, %rdi
leaq 0xbe31(%rip), %rsi      # 0x3f941
callq 0x74e0
movq %r13, %rdi
movl 0x310(%rsp), %esi
callq 0x7720
movl $0x1, %edx
movq %rax, %rdi
leaq 0xb799(%rip), %rsi      # 0x3f2cc
callq 0x74e0
movl $0xd, %edx
movq 0x8(%rsp), %rdi
leaq 0xbe1a(%rip), %rsi      # 0x3f963
callq 0x74e0
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x7720
movq %rax, %r13
movl $0xb, %edx
movq %rax, %rdi
leaq 0xc045(%rip), %rsi      # 0x3fbb1
callq 0x74e0
movq %r13, %rdi
movl %r12d, %esi
callq 0x7720
movq %rax, %r13
movl $0xc, %edx
movq %rax, %rdi
leaq 0xbc0c(%rip), %rsi      # 0x3f79a
callq 0x74e0
movq %r13, %rdi
movl 0x1c(%rsp), %esi
callq 0x7720
movl $0x1, %edx
movq %rax, %rdi
leaq 0xb71e(%rip), %rsi      # 0x3f2cc
callq 0x74e0
movl $0xf, %edx
movq 0x8(%rsp), %rdi
leaq 0xbdad(%rip), %rsi      # 0x3f971
callq 0x74e0
movq 0x8(%rsp), %rdi
movsd 0x1e8(%rsp), %xmm0
callq 0x7690
movq %rax, %r13
movl $0xd, %edx
movq %rax, %rdi
leaq 0xbd93(%rip), %rsi      # 0x3f981
callq 0x74e0
movq %r13, %rdi
leaq 0x1d0(%rsp), %rsi
callq 0x3b894
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
leaq 0xbd7a(%rip), %rsi      # 0x3f98f
callq 0x74e0
movq %rbx, %rsi
shlq $0x4, %rsi
addq 0x10(%r14), %rsi
movq %r13, %rdi
callq 0x3b894
movq %rax, %r13
movl $0x4, %edx
movq %rax, %rdi
leaq 0xb6c1(%rip), %rsi      # 0x3f300
callq 0x74e0
movq %r12, %rsi
shlq $0x4, %rsi
movq 0x68(%rsp), %rax
addq 0x10(%rax), %rsi
movq %r13, %rdi
callq 0x3b894
movl $0x1, %edx
movq %rax, %rdi
leaq 0xb661(%rip), %rsi      # 0x3f2cc
callq 0x74e0
movl $0x10, %edx
movq 0x8(%rsp), %rdi
leaq 0xbd15(%rip), %rsi      # 0x3f996
callq 0x74e0
movq 0x8(%rsp), %rdi
movsd 0x120(%rsp), %xmm0
callq 0x7690
movq %rax, %r13
movl $0x7, %edx
movq %rax, %rdi
leaq 0xbcfc(%rip), %rsi      # 0x3f9a7
callq 0x74e0
movq %r13, %rdi
movapd 0x50(%rsp), %xmm0
callq 0x7690
movq %rax, %r13
movl $0xe, %edx
movq %rax, %rdi
leaq 0xbcdf(%rip), %rsi      # 0x3f9af
callq 0x74e0
movq %r13, %rdi
movsd 0xd8(%rsp), %xmm0
callq 0x7690
movl $0x1, %edx
movq %rax, %rdi
leaq 0xb5d7(%rip), %rsi      # 0x3f2cc
callq 0x74e0
movsd 0x48(%rsp), %xmm0
movsd %xmm0, 0xd0(%rsp)
movl 0x1c(%rsp), %eax
movl %eax, 0x98(%rsp)
movl %ebx, 0x94(%rsp)
movl %r12d, %eax
movl %r12d, 0x9c(%rsp)
movapd 0x50(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x33d69
movsd 0x48(%rsp), %xmm0
movsd %xmm0, 0xd0(%rsp)
movl 0x1c(%rsp), %eax
movl %eax, 0x98(%rsp)
movl %ebx, 0x94(%rsp)
movl %r12d, 0x9c(%rsp)
movapd 0x50(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
cmpl $0x0, 0x2c(%rsp)
jne 0x33e16
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x33d84
movq (%rdi), %rax
callq *0x8(%rax)
cmpl $0x0, 0x8(%r14)
jne 0x33e16
movl $0x8, %edx
movq 0x1d245(%rip), %rdi     # 0x50fe0
leaq 0xb988(%rip), %rsi      # 0x3f72a
callq 0x74e0
movq 0x1d232(%rip), %rdi     # 0x50fe0
movq %r14, %rsi
callq 0x7360
movq %rax, %r15
movl $0x22, %edx
movq %rax, %rdi
leaq 0xb96b(%rip), %rsi      # 0x3f733
callq 0x74e0
movq %r15, %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %r15
movl $0xe, %edx
movq %rax, %rdi
leaq 0xb968(%rip), %rsi      # 0x3f756
callq 0x74e0
movq %r15, %rdi
movl 0x310(%rsp), %esi
callq 0x7720
movl $0x1, %edx
movq %rax, %rdi
leaq 0xb4bb(%rip), %rsi      # 0x3f2cc
callq 0x74e0
movq 0x1a0(%rsp), %rdi
leaq 0x1a0(%rsp), %r15
cmpq %r15, %rdi
je 0x33e40
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r15, %r14
jne 0x33e2b
movq 0x108(%rsp), %rdi
leaq 0x108(%rsp), %r15
cmpq %r15, %rdi
je 0x33e6a
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r15, %r14
jne 0x33e55
movq 0x208(%rsp), %rdi
testq %rdi, %rdi
movq 0xf0(%rsp), %r14
je 0x331df
movq 0x218(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
jmp 0x331df
incl 0x28(%rsp)
incq %r15
movq 0x68(%rsp), %rax
movslq 0x8(%rax), %rax
decq %rax
cmpq %rax, %r15
movq 0x200(%rsp), %rbx
jl 0x328ba
incl 0x1c(%rsp)
movq (%rbx), %rbx
cmpq 0xe0(%rsp), %rbx
jne 0x32890
movsd 0x48(%rsp), %xmm1
addsd 0x198(%rsp), %xmm1
incl 0x3c(%rsp)
movsd 0xa384(%rip), %xmm0     # 0x3e270
movsd %xmm1, 0x48(%rsp)
ucomisd %xmm1, %xmm0
ja 0x32789
cmpl $0x0, 0x8(%r14)
jne 0x33f8e
movq 0x1d0d2(%rip), %rdi     # 0x50fe0
leaq 0xb815(%rip), %rsi      # 0x3f72a
movl $0x8, %edx
callq 0x74e0
movq 0x1d0ba(%rip), %rdi     # 0x50fe0
movq %r14, %rsi
callq 0x7360
movq %rax, %rbx
leaq 0xb7fb(%rip), %rsi      # 0x3f733
movl $0x22, %edx
movq %rax, %rdi
callq 0x74e0
movq %rbx, %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %rbx
leaq 0xb7f8(%rip), %rsi      # 0x3f756
movl $0xe, %edx
movq %rax, %rdi
callq 0x74e0
movq %rbx, %rdi
movl 0x310(%rsp), %esi
callq 0x7720
leaq 0xb34b(%rip), %rsi      # 0x3f2cc
movl $0x1, %edx
movq %rax, %rdi
callq 0x74e0
movq (%r14), %rax
movq %r14, %rdi
callq *0x8(%rax)
xorpd %xmm0, %xmm0
ucomisd 0xd0(%rsp), %xmm0
jbe 0x34015
movabsq $0x4a511b0ec57e649a, %rax # imm = 0x4A511B0EC57E649A
movq 0xc8(%rsp), %rcx
movq %rax, (%rcx)
movq $0x0, 0x10(%rsp)
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0x33fe1
movq 0x160(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
movq 0x10(%rsp), %rbx
je 0x34000
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq %rbx, %rax
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsd 0x40(%rsp), %xmm0
ucomisd 0xc0(%rsp), %xmm0
jbe 0x340a0
movq 0xc8(%rsp), %rax
movsd %xmm0, (%rax)
cmpl $0x2, 0x60(%rbp)
jl 0x33fc4
leaq 0xb97f(%rip), %rsi      # 0x3f9be
movl $0x6, %edx
movq 0x8(%rsp), %rdi
callq 0x74e0
movq 0x8(%rsp), %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %rbx
leaq 0xb95c(%rip), %rsi      # 0x3f9c5
movl $0x15, %edx
movq %rax, %rdi
callq 0x74e0
movq %rbx, %rdi
movsd 0xc0(%rsp), %xmm0
callq 0x7690
leaq 0xb94d(%rip), %rsi      # 0x3f9db
movl $0x1e, %edx
movq %rax, %rdi
callq 0x74e0
jmp 0x33fc4
movq 0x10(%rsp), %rax
movq 0x78(%rax), %rdi
testq %rdi, %rdi
je 0x340b4
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x10(%rsp), %rax
movq 0x70(%rax), %rdi
testq %rdi, %rdi
je 0x340c8
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x10(%rsp), %rax
movq 0x68(%rax), %rdi
leaq 0x1d0(%rsp), %rsi
movsd 0xd0(%rsp), %xmm0
callq 0x2844e
movq 0x10(%rsp), %rcx
movq %rax, 0x78(%rcx)
movq %rax, %rdi
callq 0x2870c
movq 0x10(%rsp), %rax
movq 0x78(%rax), %rdi
callq 0x28f40
movq 0x10(%rsp), %rax
movq 0x78(%rax), %rdi
callq 0x266bc
movsd %xmm0, 0x30(%rsp)
movq 0x10(%rsp), %rax
movq 0x78(%rax), %rsi
addq $0x10, %rsi
leaq 0x130(%rsp), %rdi
callq 0x259ac
leaq 0xa0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0x130(%rsp), %rdx
callq 0x257db
movq 0x70(%rsp), %rdi
movq 0x80(%rsp), %rsi
movapd 0xa0(%rsp), %xmm0
movapd %xmm0, 0x70(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x80(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0xa0(%rsp)
movq $0x0, 0xb0(%rsp)
testq %rdi, %rdi
je 0x341bd
subq %rdi, %rsi
callq 0x7450
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x341bd
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x341da
movq 0x140(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movl $0xc0, %edi
callq 0x7440
movq %rax, %r14
leaq 0x70(%rsp), %rsi
movq %rax, %rdi
callq 0x26340
movq 0x10(%rsp), %rax
movq %r14, 0x70(%rax)
movq %r14, %rdi
callq 0x27c0a
movq 0x10(%rsp), %rax
movq 0x70(%rax), %rdi
callq 0x27d5c
movq 0xc8(%rsp), %rax
movsd 0x40(%rsp), %xmm0
movsd %xmm0, (%rax)
cmpl $0x0, 0x60(%rbp)
jle 0x33fc4
leaq 0xb788(%rip), %rsi      # 0x3f9be
movl $0x6, %edx
movq 0x8(%rsp), %rdi
callq 0x74e0
movq 0x8(%rsp), %rdi
movl 0x320(%rsp), %esi
callq 0x7720
movq %rax, %rbx
leaq 0xb79a(%rip), %rsi      # 0x3f9fa
movl $0x17, %edx
movq %rax, %rdi
callq 0x74e0
leaq 0x1d0(%rsp), %rsi
movq %rbx, %rdi
callq 0x3b894
movq %rax, %rbx
leaq 0xb78b(%rip), %rsi      # 0x3fa12
movl $0x1, %edx
movq %rax, %rdi
callq 0x74e0
movsd 0xd0(%rsp), %xmm0
mulsd 0x9f6b(%rip), %xmm0     # 0x3e210
divsd 0x7d73(%rip), %xmm0     # 0x3c020
callq 0x71c0
movq %rbx, %rdi
callq 0x7690
movq %rax, %rbx
leaq 0xb750(%rip), %rsi      # 0x3fa14
movl $0xe, %edx
movq %rax, %rdi
callq 0x74e0
movq %rbx, %rdi
movl 0x310(%rsp), %esi
callq 0x7720
movq %rax, %rbx
leaq 0xa2e8(%rip), %rsi      # 0x3e5d2
movl $0x1, %edx
movq %rax, %rdi
callq 0x74e0
movq 0x10(%rsp), %rax
leaq 0x90(%rax), %r14
movq %r14, %rdi
callq 0x71d0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x74e0
leaq 0xb703(%rip), %rsi      # 0x3fa23
movl $0x14, %edx
movq %rbx, %rdi
callq 0x74e0
movq %rbx, %rdi
movl 0x94(%rsp), %esi
callq 0x7720
movq %rax, %rbx
leaq 0xb86b(%rip), %rsi      # 0x3fbb1
movl $0xb, %edx
movq %rax, %rdi
callq 0x74e0
movq %rbx, %rdi
movl 0x9c(%rsp), %esi
callq 0x7720
movq %rax, %rbx
leaq 0xb42e(%rip), %rsi      # 0x3f79a
movl $0xc, %edx
movq %rax, %rdi
callq 0x74e0
movq %rbx, %rdi
movl 0x98(%rsp), %esi
callq 0x7720
leaq 0xaf3d(%rip), %rsi      # 0x3f2cc
movl $0x1, %edx
movq %rax, %rdi
callq 0x74e0
leaq 0xb4ca(%rip), %rsi      # 0x3f86d
movl $0x10, %edx
movq 0x8(%rsp), %rdi
callq 0x74e0
movq 0x78(%rsp), %rsi
subq 0x70(%rsp), %rsi
sarq $0x4, %rsi
movq 0x8(%rsp), %rdi
callq 0x7300
movq %rax, %rbx
leaq 0xb4aa(%rip), %rsi      # 0x3f87e
movl $0x10, %edx
movq %rax, %rdi
callq 0x74e0
leaq 0x70(%rsp), %rdi
callq 0x2589b
movq %rbx, %rdi
callq 0x7690
movq %rax, %rbx
leaq 0xb492(%rip), %rsi      # 0x3f88f
movl $0x14, %edx
movq %rax, %rdi
callq 0x74e0
movsd 0x30(%rsp), %xmm0
addsd 0xe8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x7690
leaq 0xaea4(%rip), %rsi      # 0x3f2cc
movl $0x1, %edx
movq %rax, %rdi
callq 0x74e0
leaq 0xb468(%rip), %rsi      # 0x3f8a4
movl $0x18, %edx
movq 0x8(%rsp), %rdi
callq 0x74e0
movq 0x10(%rsp), %rax
movq 0x70(%rax), %rdi
callq 0x266bc
movq 0x8(%rsp), %rdi
callq 0x7690
movq %rax, %rbx
leaq 0xb5cb(%rip), %rsi      # 0x3fa38
movl $0x7, %edx
movq %rax, %rdi
callq 0x74e0
movq 0xc8(%rsp), %rax
movsd (%rax), %xmm0
movq %rbx, %rdi
callq 0x7690
leaq 0xae37(%rip), %rsi      # 0x3f2cc
movl $0x1, %edx
movq %rax, %rdi
callq 0x74e0
leaq 0xb597(%rip), %rsi      # 0x3fa40
movl $0x13, %edx
movq 0x8(%rsp), %rdi
callq 0x74e0
movq 0x88(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x8(%rsp), %rdi
callq 0x7300
leaq 0xadf7(%rip), %rsi      # 0x3f2cc
movl $0x1, %edx
movq %rax, %rdi
callq 0x74e0
movq 0x88(%rsp), %rax
movq (%rax), %r12
cmpq %rax, %r12
je 0x33fc4
movl $0x1, %ebx
leaq 0xb571(%rip), %rbp      # 0x3fa73
leaq 0xadc3(%rip), %r14      # 0x3f2cc
movq 0x10(%r12), %r13
movl $0x9, %edx
movq 0x8(%rsp), %rdi
leaq 0xb535(%rip), %rsi      # 0x3fa54
callq 0x74e0
movq 0x8(%rsp), %rdi
movl %ebx, %esi
callq 0x7720
movq %rax, %r15
movl $0xe, %edx
movq %rax, %rdi
leaq 0xb51c(%rip), %rsi      # 0x3fa5e
callq 0x74e0
movq 0x78(%r13), %rax
movupd 0xb0(%rax), %xmm0
movapd %xmm0, 0xa0(%rsp)
movq %r15, %rdi
leaq 0xa0(%rsp), %rsi
callq 0x3b894
movq %rax, %r15
movl $0x5, %edx
movq %rax, %rdi
leaq 0xb4ef(%rip), %rsi      # 0x3fa6d
callq 0x74e0
movq 0x78(%r13), %rax
movsd 0xa8(%rax), %xmm0
mulsd 0x9c79(%rip), %xmm0     # 0x3e210
divsd 0x7a81(%rip), %xmm0     # 0x3c020
callq 0x71c0
movq %r15, %rdi
callq 0x7690
movl $0xb, %edx
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x74e0
movq 0x70(%r13), %rdi
callq 0x266bc
movq 0x8(%rsp), %rdi
callq 0x7690
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x74e0
incl %ebx
movq (%r12), %r12
cmpq 0x88(%rsp), %r12
jne 0x34509
jmp 0x33fc4
movq %rax, %rbx
movl $0xc0, %esi
jmp 0x34632
movq %rax, %rbx
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0x34806
movq 0x140(%rsp), %rsi
jmp 0x347f9
jmp 0x34803
movq %rax, %rbx
movl $0x38, %esi
movq %r14, %rdi
jmp 0x347fc
jmp 0x34803
jmp 0x34803
jmp 0x34803
jmp 0x34803
jmp 0x34803
jmp 0x34803
jmp 0x34803
jmp 0x34803
jmp 0x34803
jmp 0x34803
movq %rax, %rbx
movq 0x2a8(%rsp), %rdi
cmpq %r15, %rdi
je 0x346a1
movq %r15, %r12
leaq 0x1b8(%rsp), %r15
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r12, %r14
jne 0x34687
jmp 0x346a9
movq %rax, %rbx
leaq 0x1b8(%rsp), %r15
movq 0x1b8(%rsp), %rdi
cmpq %r15, %rdi
je 0x34780
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r15, %r14
jne 0x346ba
jmp 0x34780
jmp 0x3477d
jmp 0x34803
movq %rax, %rbx
movl $0xc0, %esi
movq %r13, %rdi
jmp 0x3470a
movq %rax, %rbx
movq 0x248(%rsp), %rdi
testq %rdi, %rdi
je 0x34780
movq 0x258(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
jmp 0x34780
jmp 0x34778
jmp 0x3477d
jmp 0x34778
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x34806
movq 0xb0(%rsp), %rsi
jmp 0x347f9
jmp 0x3477d
jmp 0x34778
jmp 0x34803
movq %rax, %rbx
jmp 0x347b2
jmp 0x3477d
movq %rax, %rbx
movq 0x278(%rsp), %rdi
cmpq %r15, %rdi
je 0x34806
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r15, %r14
jne 0x3475c
jmp 0x34806
jmp 0x3477d
movq %rax, %rbx
jmp 0x347e4
movq %rax, %rbx
movq 0x1a0(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x347b2
leaq 0x1a0(%rsp), %r15
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r15, %r14
jne 0x3479d
movq 0x108(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x347e4
leaq 0x108(%rsp), %r15
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r15, %r14
jne 0x347cf
movq 0x208(%rsp), %rdi
testq %rdi, %rdi
je 0x34806
movq 0x218(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
jmp 0x34806
movq %rax, %rbx
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0x34823
movq 0x160(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x3483d
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq %rbx, %rdi
callq 0x7740
nop