LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/include/cxxopts.hpp
// Function: void cxxopts::values::stringstream_parser<double>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, double&)
void stringstream_parser(const std::string& text, T& value)
    {
      std::stringstream in(text);
      in >> value;
      if (!in) {
        throw argument_incorrect_type(text);
      }
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movl $0x18, %edx
callq 0x7670
movq %r15, %rdi
movq %r14, %rsi
callq 0x72d0
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x28(%rsp,%rax)
jne 0x24881
movq 0x2c6db(%rip), %rsi     # 0x50f38
leaq 0x8(%rsp), %rdi
callq 0x7350
leaq 0x88(%rsp), %rdi
callq 0x7160
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
movl $0x28, %edi
callq 0x7210
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x21fbc
leaq 0x2c000(%rip), %rsi     # 0x508a0
leaq -0x26a9(%rip), %rdx     # 0x221fe
movq %r14, %rdi
callq 0x7710
movq %rax, %rbx
movq %r14, %rdi
callq 0x7340
jmp 0x248bf
movq %rax, %rbx
movq 0x2c672(%rip), %rsi     # 0x50f38
leaq 0x8(%rsp), %rdi
callq 0x7350
leaq 0x88(%rsp), %rdi
callq 0x7160
movq %rbx, %rdi
callq 0x7740
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/include/cxxopts.hpp
// Function: void cxxopts::values::detail::SignedCheck<int, true>::operator()<unsigned int>(bool, unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void
        operator()(bool negative, U u, const std::string& text)
        {
          if (negative)
          {
            if (u > static_cast<U>(-(std::numeric_limits<T>::min)()))
            {
              throw argument_incorrect_type(text);
            }
          }
          else
          {
            if (u > static_cast<U>((std::numeric_limits<T>::max)()))
            {
              throw argument_incorrect_type(text);
            }
          }
        }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
testl %esi, %esi
je 0x251fd
cmpl $0x80000001, %edx       # imm = 0x80000001
jb 0x25201
movl $0x28, %edi
callq 0x7210
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x21fbc
jmp 0x25221
testl %edx, %edx
js 0x25209
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl $0x28, %edi
callq 0x7210
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0x21fbc
leaq 0x2b678(%rip), %rsi     # 0x508a0
leaq -0x3031(%rip), %rdx     # 0x221fe
movq %rbx, %rdi
callq 0x7710
jmp 0x25239
movq %rax, %r14
movq %rbx, %rdi
callq 0x7340
movq %r14, %rdi
callq 0x7740
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::~CachePosition()
CachePosition::~CachePosition()
{
    for ( int i = 0; i < currentIdxCache; i++ )
    {
        uint64_t val = (uint64_t )CachePlaced[i];       //  default value, skip, DO NOT try to free this fake memory pointer
        if ( val == 0xCACACACACACACACA )
            continue;
        if ( CachePlaced[i] != NULL) delete CachePlaced[i];
    }
    delete [] CachePlaced;
    delete [] FixedPerRot;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x2b977(%rip), %rax     # 0x50c70
movq %rax, (%rdi)
movl 0x20(%rdi), %eax
testl %eax, %eax
jle 0x25336
xorl %r14d, %r14d
movabsq $-0x3535353535353536, %r15 # imm = 0xCACACACACACACACA
movq 0x28(%rbx), %rcx
movq (%rcx,%r14,8), %rdi
cmpq %r15, %rdi
je 0x2532b
testq %rdi, %rdi
je 0x2532b
movq (%rdi), %rax
callq *0x8(%rax)
movl 0x20(%rbx), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0x25310
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x25344
callq 0x7570
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x25357
popq %rbx
popq %r14
popq %r15
jmp 0x7570
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::isOKPlaced(int, int, int, Polygon**)
int CachePosition::isOKPlaced(int iVertex, int iRot, int iPlacedVertex, Polygon **PlacedPoly)
{
int idx = iRot * sizeCacheEntry2 + iPlacedVertex * sizeCacheEntry1 + iVertex;

    if ( idx > currentIdxCache )
        return 0;       //  Not yet computed, return don't know
    if ( iPlacedVertex > FixedPerRot[iRot])
        return 0;       //  Not yet computed
    uint64_t val = (uint64_t )CachePlaced[idx];
    if ( val == 0xCACACACACACACACA )            //  Check if default value (not yet processed) ?
    {
        return 0;           //  If so, return don't know
    }
    if ( CachePlaced[idx] != NULL )             //  Value not null, cache is OK
    {
        *PlacedPoly = CachePlaced[idx];         //  Update pointer to polygon to avoid recompute
        return FixedPerRot[iRot] + 1;           //  Return positive value
    }
    return -1;
}

// Assembly:
movl 0x10(%rdi), %eax
imull %edx, %eax
movl 0x8(%rdi), %r9d
imull %ecx, %r9d
addl %eax, %r9d
addl %esi, %r9d
xorl %eax, %eax
cmpl 0x20(%rdi), %r9d
jg 0x253c2
movslq %edx, %rdx
movq 0x30(%rdi), %rsi
cmpl %ecx, (%rsi,%rdx,4)
jl 0x253c2
movq 0x28(%rdi), %rcx
movslq %r9d, %rsi
movq (%rcx,%rsi,8), %rcx
movabsq $-0x3535353535353536, %rsi # imm = 0xCACACACACACACACA
cmpq %rsi, %rcx
je 0x253c2
testq %rcx, %rcx
jne 0x253c3
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
movq %rcx, (%r8)
movq 0x30(%rdi), %rax
movl (%rax,%rdx,4), %eax
incl %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::addOKPlaced(int, int, int, Polygon*)
void CachePosition::addOKPlaced(int iVertex, int iRot, int iPlacedVertex, Polygon *Poly)
{
    if ( iPlacedVertex > FixedPerRot[iRot] )
        FixedPerRot[iRot] = iPlacedVertex;
    int idx = iRot * sizeCacheEntry2 + iPlacedVertex * sizeCacheEntry1 + iVertex;
    if ( currentIdxCache < idx)
        currentIdxCache = idx;
    CachePlaced[idx] = Poly;
    if ( Poly != NULL )
    {
        Poly->TypePoly = CachedPoly;
        nbCreatedCachedPoly++;
        nbCachedPoly++;
        nbTranslatedPoly--;
    }
}

// Assembly:
movq 0x30(%rdi), %rax
movslq %edx, %r9
cmpl %ecx, (%rax,%r9,4)
jge 0x253e1
movl %ecx, (%rax,%r9,4)
imull 0x10(%rdi), %edx
imull 0x8(%rdi), %ecx
addl %edx, %ecx
addl %esi, %ecx
cmpl %ecx, 0x20(%rdi)
jge 0x253f5
movl %ecx, 0x20(%rdi)
movq 0x28(%rdi), %rax
movslq %ecx, %rcx
movq %r8, (%rax,%rcx,8)
testq %r8, %r8
je 0x2542b
movl $0x5, 0xc(%r8)
leaq 0x2c644(%rip), %rax     # 0x51a58
incq (%rax)
leaq 0x2c60a(%rip), %rax     # 0x51a28
incq (%rax)
leaq 0x2c5f0(%rip), %rax     # 0x51a18
decq (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::isOKPlacedFreeRot(int, int, int, Polygon**)
int CachePosition::isOKPlacedFreeRot(int iVertex, int iRot, int iPlacedVertex, Polygon **PlacedPoly)
{
int idx = (iPlacedVertex * sizeCacheEntry1 + iVertex)*4 + iRot;

    if ( idx > currentIdxCache )
        return 0;       //  Not yet computed
    if ( CachePlaced[idx] != NULL )
    {
        *PlacedPoly = CachePlaced[idx];
        return 1;
    }
    return -1;
}

// Assembly:
imull 0x8(%rdi), %ecx
addl %esi, %ecx
leal (%rdx,%rcx,4), %ecx
xorl %eax, %eax
cmpl 0x20(%rdi), %ecx
jg 0x25454
movq 0x28(%rdi), %rax
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x25455
movq %rax, (%r8)
movl $0x1, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/CachePosition.cpp
// Function: CachePosition::addOKPlacedFreeRot(int, int, int, Polygon*)
void CachePosition::addOKPlacedFreeRot(int iVertex, int iRot, int iPlacedVertex, Polygon *Poly)
{
int idx = ( iPlacedVertex * sizeCacheEntry1 + iVertex) * 4 + iRot;
    if ( currentIdxCache < idx)
        currentIdxCache = idx;
    CachePlaced[idx] = Poly;
    if ( Poly != NULL )
    {
        Poly->TypePoly = CachedPoly;
        nbCreatedCachedPoly++;
        nbCachedPoly++;
        nbTranslatedPoly--;
    }
}

// Assembly:
imull 0x8(%rdi), %ecx
addl %esi, %ecx
leal (%rdx,%rcx,4), %eax
cmpl %eax, 0x20(%rdi)
jge 0x2546d
movl %eax, 0x20(%rdi)
movq 0x28(%rdi), %rcx
cltq
movq %r8, (%rcx,%rax,8)
testq %r8, %r8
je 0x254a2
movl $0x5, 0xc(%r8)
leaq 0x2c5cd(%rip), %rax     # 0x51a58
incq (%rax)
leaq 0x2c593(%rip), %rax     # 0x51a28
incq (%rax)
leaq 0x2c579(%rip), %rax     # 0x51a18
decq (%rax)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/ConvexHull.cpp
// Function: CombineHull(std::vector<Point, std::allocator<Point>> const&, std::vector<Point, std::allocator<Point>> const&)
vector<Point> CombineHull(const vector<Point> &points_1, const vector<Point> &points_2)
{
	vector<Point> newPoints = points_1;
	newPoints.insert (newPoints.end(), points_2.begin(), points_2.end());
	std::sort(newPoints.begin(), newPoints.end());
	return makeConvexHullPresorted(newPoints);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x259ac
movq 0x8(%r15), %rsi
movq (%r14), %rdx
movq 0x8(%r14), %rcx
movq %r15, %rdi
callq 0x25b64
movq 0x8(%rsp), %r14
movq 0x10(%rsp), %r15
cmpq %r15, %r14
je 0x25846
movq %r15, %rax
subq %r14, %rax
sarq $0x4, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x25d30
movq %r14, %rdi
movq %r15, %rsi
callq 0x25de3
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x254a4
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2586a
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x25879
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x25893
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq %rbx, %rdi
callq 0x7740
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/ConvexHull.cpp
// Function: Hull2BoundingBox(std::vector<Point, std::allocator<Point>> const&)
Rectangle Hull2BoundingBox(const vector<Point> &points)
{
double xmin, xmax, ymin, ymax;
int n = points.size();
Rectangle BBox;

    xmax = xmin = points[0].x;
    ymax = ymin = points[0].y;
    for (int i = 1; i < n - 1; i++)
    {
        xmin = fmin(xmin, points[i].x);
        ymin = fmin(ymin, points[i].y);
        xmax = fmax(xmax, points[i].x);
        ymax = fmax(ymax, points[i].y);
    }
    BBox.A = Point(xmin, ymin);
    BBox.B = Point(xmax, ymax);
	return BBox;
}

// Assembly:
movq %rdi, %rax
movq (%rsi), %rcx
movq 0x8(%rsi), %rdx
subq %rcx, %rdx
shrq $0x4, %rdx
movupd (%rcx), %xmm2
cmpl $0x3, %edx
jl 0x2599a
decl %edx
addq $0x10, %rcx
decq %rdx
movapd %xmm2, %xmm3
movapd %xmm2, %xmm0
movapd %xmm2, %xmm1
movupd (%rcx), %xmm4
cmpunordpd %xmm0, %xmm0
movapd %xmm4, %xmm5
andpd %xmm0, %xmm5
movapd %xmm4, %xmm6
minpd %xmm2, %xmm6
andnpd %xmm6, %xmm0
orpd %xmm5, %xmm0
cmpunordpd %xmm1, %xmm1
movapd %xmm4, %xmm2
andpd %xmm1, %xmm2
maxpd %xmm3, %xmm4
andnpd %xmm4, %xmm1
orpd %xmm2, %xmm1
addq $0x10, %rcx
movapd %xmm0, %xmm2
movapd %xmm1, %xmm3
decq %rdx
jne 0x2594d
jmp 0x259a2
movapd %xmm2, %xmm0
movapd %xmm2, %xmm1
movupd %xmm0, (%rax)
movupd %xmm1, 0x10(%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::Polygon()
Polygon::Polygon()
{
    //constructor, build an empty vector
    //  Bounding box is also empty
    BoundingBox.A = Point(0,0);
    BoundingBox.B = Point(0,0);
    nVertices = 0;
    poly_centroid_ok = 0;           //  Not yet computed;
    poly_area = 0.0;
    poly_clockwise = 0;
    poly_closed = 0;
    poly_changed = 1;
    angle_rotation = 0;
    precision = my_Default_Precision;
    TypePoly = EmptyPoly;
    nbEmptyPoly++;
    nbCreatedEmptyPoly++;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2a9b3(%rip), %rax     # 0x50ca0
movq %rax, (%rdi)
addq $0x10, %rdi
xorl %ebp, %ebp
movl %ebp, 0x8(%rbx)
movl $0x8c, %edx
xorl %esi, %esi
callq 0x7270
xorps %xmm0, %xmm0
movups %xmm0, 0xb0(%rbx)
movl $0x1, 0x9c(%rbx)
movsd 0x17d3f(%rip), %xmm0    # 0x3e060
movups %xmm0, 0xa0(%rbx)
movl %ebp, 0xc(%rbx)
incq 0x2b6ce(%rip)           # 0x51a00
incq 0x2b6f7(%rip)           # 0x51a30
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::Polygon(std::vector<Point, std::allocator<Point>>&)
Polygon::Polygon(vector<Point> &points)
{
int n = points.size();

    BoundingBox.A = Point(0,0);
    BoundingBox.B = Point(0,0);
    nVertices = 0;
    poly_centroid_ok = 0;           //  Not yet computed;
    poly_area = 0.0;
    poly_clockwise = 0;
    poly_closed = 0;
    poly_changed = 1;
    precision = my_Default_Precision;
    for (int i = 0; i < n; i++ )
    {
        addVertice(points[i]);      //  Add this point, but with the desired precision
    }
    //  Add last point which is first
    addVertice(points[0]);
    TypePoly = VectorPoly;
    nbVectorPoly++;
    nbCreatedVectorPoly++;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2a94b(%rip), %rax     # 0x50ca0
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
xorl %eax, %eax
movq %rax, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movups %xmm0, 0xb0(%rdi)
movq (%rsi), %rsi
movq 0x8(%r14), %r15
subq %rsi, %r15
shrq $0x4, %r15
movl $0x0, 0x8(%rdi)
movups %xmm0, 0x58(%rdi)
movups %xmm0, 0x68(%rdi)
movq %rax, 0x78(%rdi)
movaps 0x17cf1(%rip), %xmm0    # 0x3e0a0
movups %xmm0, 0x90(%rdi)
movabsq $0x3f1a36e2eb1c432d, %rax # imm = 0x3F1A36E2EB1C432D
movq %rax, 0xa0(%rdi)
testl %r15d, %r15d
jle 0x263f0
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r12d, %r12d
movq (%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
callq 0x26468
addq $0x10, %r12
decq %r15
jne 0x263d6
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x26468
movl $0x1, 0xc(%rbx)
incq 0x2b602(%rip)           # 0x51a08
incq 0x2b62b(%rip)           # 0x51a38
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x2641b
movq %rax, %r14
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x26433
movq 0x50(%rbx), %rsi
subq %rdi, %rsi
callq 0x7450
leaq 0x10(%rbx), %r15
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x2644c
movq 0x38(%rbx), %rsi
subq %rdi, %rsi
callq 0x7450
movq (%r15), %rdi
testq %rdi, %rdi
je 0x26460
movq 0x20(%rbx), %rsi
subq %rdi, %rsi
callq 0x7450
movq %r14, %rdi
callq 0x7740
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::addVertice(Point&)
void Polygon::addVertice(Point &p)
{
    Point lP = Point(round(p.x/precision)*precision, round(p.y/precision)*precision);
    if ( nVertices > 0 && lP == _Vertices[nVertices-1] ) return;     //  Do NOT Add point if this is the same as the previous one.
    _Vertices.push_back(lP);
    nVertices = _Vertices.size();
    if ( nVertices == 1 )
    {
        BoundingBox.A = lP;
        BoundingBox.B = lP;
    }
    else
    {
        if ( lP.x < BoundingBox.A.x ) BoundingBox.A.x = lP.x;       //  To avoid rounding errors
        if ( lP.y < BoundingBox.A.y ) BoundingBox.A.y = lP.y;       //  To avoid rounding errors
        if ( lP.x > BoundingBox.B.x ) BoundingBox.B.x = lP.x;       //  To avoid rounding errors
        if ( lP.y > BoundingBox.B.y ) BoundingBox.B.y = lP.y;       //  To avoid rounding errors
    }
    if ( nVertices > 2)
        poly_closed = _Vertices[0] == _Vertices[nVertices-1];
    else
        poly_closed = 0;
    poly_changed = 1;
    poly_area = area();
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movupd 0xa0(%rdi), %xmm1
movupd (%rsi), %xmm0
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
movapd %xmm1, 0x30(%rsp)
divpd %xmm1, %xmm0
movapd %xmm0, 0x10(%rsp)
callq 0x71c0
movapd %xmm0, 0x20(%rsp)
movapd 0x10(%rsp), %xmm0
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
callq 0x71c0
movapd 0x20(%rsp), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
mulpd 0x30(%rsp), %xmm1
movapd %xmm1, (%rsp)
movslq 0x8(%rbx), %rax
testq %rax, %rax
jle 0x264e8
movq 0x10(%rbx), %rcx
shlq $0x4, %rax
movupd -0x10(%rcx,%rax), %xmm0
cmpeqpd %xmm0, %xmm1
movmskpd %xmm1, %eax
cmpl $0x3, %eax
je 0x265d8
movq 0x18(%rbx), %rsi
cmpq 0x20(%rbx), %rsi
je 0x26509
movapd (%rsp), %xmm0
movupd %xmm0, (%rsi)
movq 0x18(%rbx), %rax
addq $0x10, %rax
movq %rax, 0x18(%rbx)
jmp 0x26519
leaq 0x10(%rbx), %rdi
movq %rsp, %rdx
callq 0x25a40
movq 0x18(%rbx), %rax
movq 0x10(%rbx), %rcx
subq %rcx, %rax
shrq $0x4, %rax
movl %eax, 0x8(%rbx)
cmpl $0x1, %eax
jne 0x26542
movaps (%rsp), %xmm0
movups %xmm0, 0x58(%rbx)
movapd (%rsp), %xmm0
movupd %xmm0, 0x68(%rbx)
xorl %edx, %edx
jmp 0x265bb
movsd (%rsp), %xmm0
movsd 0x58(%rbx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x26557
movsd %xmm0, 0x58(%rbx)
movsd 0x8(%rsp), %xmm1
movsd 0x60(%rbx), %xmm2
ucomisd %xmm1, %xmm2
jbe 0x2656d
movsd %xmm1, 0x60(%rbx)
ucomisd 0x68(%rbx), %xmm0
jbe 0x26579
movsd %xmm0, 0x68(%rbx)
ucomisd 0x70(%rbx), %xmm1
jbe 0x26585
movsd %xmm1, 0x70(%rbx)
xorl %edx, %edx
cmpl $0x3, %eax
jl 0x265bb
decl %eax
shlq $0x4, %rax
movsd 0x8(%rcx), %xmm0
movsd 0x8(%rcx,%rax), %xmm1
movsd (%rcx,%rax), %xmm2
movsd (%rcx), %xmm3
cmpeqpd %xmm2, %xmm3
cmpeqpd %xmm0, %xmm1
andpd %xmm3, %xmm1
movd %xmm1, %edx
andl $0x1, %edx
movl %edx, 0x98(%rbx)
movl $0x1, 0x9c(%rbx)
movq %rbx, %rdi
callq 0x266bc
movsd %xmm0, 0x78(%rbx)
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::~Polygon()
Polygon::~Polygon()
{
    if ( TypePoly == EmptyPoly )
    {
        nbEmptyPoly--;
    }
    else if (TypePoly == RotatedPoly )
    {
        nbEmptyPoly--;
        nbRotatedPoly--;
    }
    else if (TypePoly == TranslatedPoly )
    {
        nbEmptyPoly--;
        nbTranslatedPoly--;
    }
    else if (TypePoly == TransformedPoly )
    {
        nbEmptyPoly--;
        nbTransformedPoly--;
    }
    else if (TypePoly == CachedPoly )
    {
        nbEmptyPoly--;
        nbCachedPoly--;
    }
    else
    {
        nbVectorPoly--;
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x2a6b7(%rip), %rax     # 0x50ca0
movq %rax, (%rdi)
movl 0xc(%rdi), %eax
cmpq $0x5, %rax
ja 0x2660e
leaq 0x17b24(%rip), %rcx     # 0x3e120
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2b3f4(%rip), %rax     # 0x51a00
jmp 0x26655
leaq 0x2b3f3(%rip), %rax     # 0x51a08
jmp 0x26655
decq 0x2b3e2(%rip)           # 0x51a00
leaq 0x2b3f3(%rip), %rax     # 0x51a18
jmp 0x26655
decq 0x2b3d2(%rip)           # 0x51a00
leaq 0x2b3db(%rip), %rax     # 0x51a10
jmp 0x26655
decq 0x2b3c2(%rip)           # 0x51a00
leaq 0x2b3db(%rip), %rax     # 0x51a20
jmp 0x26655
decq 0x2b3b2(%rip)           # 0x51a00
leaq 0x2b3d3(%rip), %rax     # 0x51a28
decq (%rax)
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x2666d
movq 0x50(%rbx), %rsi
subq %rdi, %rsi
callq 0x7450
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x26682
movq 0x38(%rbx), %rsi
subq %rdi, %rsi
callq 0x7450
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x26698
movq 0x20(%rbx), %rsi
subq %rdi, %rsi
popq %rbx
jmp 0x7450
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::area()
double Polygon::area()
{
double A = 0.0;

    if ( nVertices < 3) return 0.0;
    if ( poly_closed == 0 ) return(0.0);
    if ( poly_changed == 0 && poly_area > 0 ) return(poly_area);
    for (int i = 0; i < nVertices - 1; i++)
    {
        A += _Vertices[i].x*_Vertices[i+1].y - _Vertices[i+1].x*_Vertices[i].y;
    }
    if ( A < 0 )
    {
        poly_clockwise = 1;
        A /= -2.0;
    }
    else
    {
        poly_clockwise = -1;
        A /= 2.0;
    }
    poly_area = A;
    poly_changed = 0;
	return poly_area;
}

// Assembly:
movl 0x8(%rdi), %eax
xorpd %xmm0, %xmm0
cmpl $0x3, %eax
jl 0x266e9
cmpl $0x0, 0x98(%rdi)
je 0x266e9
cmpl $0x0, 0x9c(%rdi)
jne 0x266ea
movsd 0x78(%rdi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x266ea
retq
decl %eax
movq 0x10(%rdi), %rcx
movsd (%rcx), %xmm1
movsd 0x8(%rcx), %xmm2
shlq $0x4, %rax
xorpd %xmm0, %xmm0
xorl %edx, %edx
movsd 0x10(%rcx,%rdx), %xmm3
movsd 0x18(%rcx,%rdx), %xmm4
mulsd %xmm3, %xmm2
mulsd %xmm4, %xmm1
subsd %xmm2, %xmm1
addsd %xmm1, %xmm0
addq $0x10, %rdx
movapd %xmm4, %xmm2
movapd %xmm3, %xmm1
cmpq %rdx, %rax
jne 0x26703
xorpd %xmm1, %xmm1
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
leaq 0x1796c(%rip), %rcx     # 0x3e0b0
mulsd (%rcx,%rax,8), %xmm0
leal -0x1(%rax,%rax), %eax
movl %eax, 0x94(%rdi)
movsd %xmm0, 0x78(%rdi)
movl $0x0, 0x9c(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::Reverse()
void Polygon::Reverse(void)
{
    if ( poly_clockwise < 0) return;    //  Oups OK before entering
    if ( poly_clockwise == 0 ) return;  //  Oups not known, unable to change
    for ( int i = 0, j = nVertices-1; i < j ; i++, j--)
    {
        Point p = _Vertices[i];
        _Vertices[i] = _Vertices[j];
        _Vertices[j] = p;
    }
    poly_clockwise = -1;
}

// Assembly:
cmpl $0x0, 0x94(%rdi)
jle 0x269c5
movslq 0x8(%rdi), %rax
cmpq $0x2, %rax
jl 0x269bb
movq %rax, %rcx
shlq $0x4, %rcx
addq $-0x10, %rcx
addq $-0x2, %rax
xorl %edx, %edx
xorl %esi, %esi
movq 0x10(%rdi), %r8
movups (%r8,%rdx), %xmm0
movaps %xmm0, -0x18(%rsp)
movups (%r8,%rcx), %xmm0
movups %xmm0, (%r8,%rdx)
movq 0x10(%rdi), %r8
movaps -0x18(%rsp), %xmm0
movups %xmm0, (%r8,%rcx)
incq %rsi
addq $0x10, %rdx
addq $-0x10, %rcx
leaq -0x1(%rax), %r8
cmpq %rax, %rsi
movq %r8, %rax
jl 0x2697e
movl $0xffffffff, 0x94(%rdi) # imm = 0xFFFFFFFF
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::setStartPointMinY()
void Polygon::setStartPointMinY()
{
    double ymin = 1e30;
    int idxmin = 0;
    for ( int i = 0; i < nVertices-1; i++)
    {
        if ( _Vertices[i].y < ymin )
        {
            ymin = _Vertices[i].y;
            idxmin = i;
        }
    }
    if ( idxmin == 0 ) return;      //  Already ordered, return;
    //  Create a new vector
    std::vector<Point>  tmp_vertices;
    for ( int i = 0; i < nVertices - 1; i++)
    {
        tmp_vertices.push_back(_Vertices[(i + idxmin)%(nVertices-1)]);
    }
    tmp_vertices[nVertices-1] = tmp_vertices[0];
    for ( int i = 0; i < nVertices; i++)
    {
        _Vertices[i] = tmp_vertices[i];
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl 0x8(%rdi), %ecx
cmpl $0x2, %ecx
jl 0x26ad1
movq %rdi, %rbx
decl %ecx
movq 0x10(%rdi), %rax
movl %ecx, %edx
addq $0x8, %rax
xorl %esi, %esi
movsd 0x1767a(%rip), %xmm0    # 0x3e070
xorl %r15d, %r15d
movsd (%rax), %xmm1
ucomisd %xmm1, %xmm0
cmoval %esi, %r15d
minsd %xmm0, %xmm1
incq %rsi
addq $0x10, %rax
movapd %xmm1, %xmm0
cmpq %rsi, %rdx
jne 0x269f9
testl %r15d, %r15d
je 0x26ad1
xorpd %xmm0, %xmm0
movq %rsp, %r14
movapd %xmm0, (%r14)
movq $0x0, 0x10(%r14)
xorl %r12d, %r12d
leal (%r15,%r12), %eax
cltd
idivl %ecx
movslq %edx, %rdx
shlq $0x4, %rdx
addq 0x10(%rbx), %rdx
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x26a67
movupd (%rdx), %xmm0
movupd %xmm0, (%rsi)
addq $0x10, 0x8(%rsp)
jmp 0x26a6f
movq %r14, %rdi
callq 0x25a40
incl %r12d
movslq 0x8(%rbx), %rcx
decq %rcx
cmpl %ecx, %r12d
jl 0x26a39
movq (%rsp), %rax
shlq $0x4, %rcx
movupd (%rax), %xmm0
movupd %xmm0, (%rax,%rcx)
cmpl $0x0, 0x8(%rbx)
jle 0x26abb
xorl %eax, %eax
xorl %ecx, %ecx
movq (%rsp), %rdx
movq 0x10(%rbx), %rsi
movupd (%rdx,%rax), %xmm0
movupd %xmm0, (%rsi,%rax)
incq %rcx
movslq 0x8(%rbx), %rdx
addq $0x10, %rax
cmpq %rdx, %rcx
jl 0x26a99
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x26ad1
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x26af6
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x7450
movq %rbx, %rdi
callq 0x7740
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::delVertex(int)
void Polygon::delVertex(int index)
{
    if ( nVertices > 3 )
    {
        _Vertices.erase(_Vertices.begin()+index);
        nVertices = _Vertices.size();
        poly_changed = 1;
        poly_centroid_ok = 0;
    }
}

// Assembly:
cmpl $0x4, 0x8(%rdi)
jl 0x27c08
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x18(%rbx), %rdx
movslq %esi, %rax
shlq $0x4, %rax
leaq (%rdi,%rax), %rsi
addq $0x10, %rsi
cmpq %rdx, %rsi
je 0x27be1
addq %rax, %rdi
subq %rsi, %rdx
callq 0x76a0
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rdx
addq $-0x10, %rdx
movq %rdx, 0x18(%rbx)
subq %rdi, %rdx
shrq $0x4, %rdx
movl %edx, 0x8(%rbx)
movl $0x1, 0x9c(%rbx)
movl $0x0, 0x90(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::ConvexHull()
Polygon * Polygon::ConvexHull()
{
Polygon *Hull = new Polygon;

    Hull->_Vertices = makeConvexHull(_Vertices);
    Hull->nVertices = Hull->_Vertices.size();
    Hull->CheckClosed();
    if ( Hull->poly_closed == 0 )
    {
        //  Not closed, close it
        Hull->addVertice(Hull->_Vertices[0]);
    }
    Hull->ReCalcBoundingBox();
    Hull->ReCalcArea();
    return Hull;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0xc0, %edi
callq 0x7440
movq %rax, %rbx
leaq 0x29031(%rip), %rax     # 0x50ca0
movq %rax, (%rbx)
leaq 0x10(%rbx), %rdi
xorl %ebp, %ebp
movl %ebp, 0x8(%rbx)
movl $0x8c, %edx
xorl %esi, %esi
callq 0x7270
xorps %xmm0, %xmm0
movups %xmm0, 0xb0(%rbx)
movl $0x1, 0x9c(%rbx)
movsd 0x163bd(%rip), %xmm0    # 0x3e060
movups %xmm0, 0xa0(%rbx)
movl %ebp, 0xc(%rbx)
incq 0x29d4c(%rip)           # 0x51a00
incq 0x29d75(%rip)           # 0x51a30
addq $0x10, %r14
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x25736
movq (%r15), %rsi
movq %rsi, 0x10(%rbx)
movq 0x8(%r15), %rax
movq %rax, 0x18(%rbx)
movq 0x10(%r15), %rcx
movq %rcx, 0x20(%rbx)
subq %rsi, %rax
shrq $0x4, %rax
movl %eax, 0x8(%rbx)
cltq
shlq $0x4, %rax
movsd 0x8(%rsi), %xmm0
movsd -0x8(%rsi,%rax), %xmm1
movsd -0x10(%rsi,%rax), %xmm2
movsd (%rsi), %xmm3
cmpeqpd %xmm2, %xmm3
cmpeqpd %xmm0, %xmm1
andpd %xmm3, %xmm1
movq %xmm1, %rax
movl %eax, %ecx
andl $0x1, %ecx
movl %ecx, 0x98(%rbx)
testb $0x1, %al
jne 0x27d33
movq %rbx, %rdi
callq 0x26468
movq %rbx, %rdi
callq 0x276c8
movl $0x1, 0x9c(%rbx)
movq %rbx, %rdi
callq 0x266bc
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::getCentroid()
Point Polygon::getCentroid()
{
double p_area;
double cx = 0, cy = 0;

    if ( poly_changed ) poly_centroid_ok = 0;
    if ( poly_centroid_ok == 0 )    //  Not yet computed, do it
    {
        p_area = area();
        for ( int i = 0; i < nVertices - 1; i++)
        {
            double d = _Vertices[i].x*_Vertices[i+1].y - _Vertices[i+1].x*_Vertices[i].y;
            cx += (_Vertices[i].x + _Vertices[i+1].x)*d;
            cy += (_Vertices[i].y + _Vertices[i+1].y)*d;
        }
        cx /= 6*p_area;
        cy /= 6*p_area;
        poly_centroid = Point(cx, cy);
        poly_centroid_ok = 1;
    }
    return poly_centroid;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x9c(%rdi)
je 0x27e02
movl $0x0, 0x90(%rbx)
movq %rbx, %rdi
callq 0x266bc
movapd %xmm0, %xmm1
movl 0x8(%rbx), %eax
xorpd %xmm0, %xmm0
cmpl $0x2, %eax
jl 0x27dde
decl %eax
movq 0x10(%rbx), %rcx
movupd (%rcx), %xmm2
shlq $0x4, %rax
xorl %edx, %edx
movupd 0x10(%rcx,%rdx), %xmm3
movapd %xmm2, %xmm4
unpckhpd %xmm2, %xmm4            # xmm4 = xmm4[1],xmm2[1]
mulsd %xmm3, %xmm4
movapd %xmm3, %xmm5
unpckhpd %xmm3, %xmm5            # xmm5 = xmm5[1],xmm3[1]
mulsd %xmm2, %xmm5
subsd %xmm4, %xmm5
addpd %xmm3, %xmm2
unpcklpd %xmm5, %xmm5            # xmm5 = xmm5[0,0]
mulpd %xmm2, %xmm5
addpd %xmm5, %xmm0
addq $0x10, %rdx
movapd %xmm3, %xmm2
cmpq %rdx, %rax
jne 0x27d9f
mulsd 0x162aa(%rip), %xmm1    # 0x3e090
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
divpd %xmm1, %xmm0
movupd %xmm0, 0x80(%rbx)
movl $0x1, 0x90(%rbx)
jmp 0x27e17
cmpl $0x0, 0x90(%rbx)
je 0x27d77
movupd 0x80(%rbx), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::Translate(Point const*)
Polygon *Polygon::Translate(const Point *pT)
{
Polygon *Translated = new Polygon;

    nbTranslatedPoly++;
    nbCreatedTranslatedPoly++;
    Translated->TypePoly = TranslatedPoly;
    if ( poly_centroid_ok == 0 ) getCentroid();
    Translated->pt_Translation = *pT - poly_centroid;
    Translated->_Vertices = _Vertices;          //      Copy vertice vector
    Translated->nVertices = Translated->_Vertices.size();
    for ( int i = 0; i < nVertices; i++)
    {
        Translated->_Vertices[i].x += Translated->pt_Translation.x;
        Translated->_Vertices[i].y += Translated->pt_Translation.y;
    }
    Translated->_Angles = _Angles;
    Translated->poly_area = poly_area;
    Translated->poly_centroid = poly_centroid + Translated->pt_Translation;
    Translated->angle_rotation = angle_rotation;
    Translated->poly_centroid_ok = 1;
    Translated->poly_changed = 0;
    Translated->poly_closed = poly_closed;
    Translated->poly_clockwise = poly_clockwise;
    Translated->BoundingBox.A = BoundingBox.A + Translated->pt_Translation;
    Translated->BoundingBox.B = BoundingBox.B + Translated->pt_Translation;
    Translated->precision = precision;
    return Translated;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movl $0xc0, %edi
callq 0x7440
movq %rax, %r14
leaq 0x28e5c(%rip), %rax     # 0x50ca0
movq %rax, (%r14)
leaq 0x10(%r14), %r12
movl $0x0, 0x8(%r14)
movl $0x8c, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x7270
incq 0x29b97(%rip)           # 0x51a00
incq 0x29bc0(%rip)           # 0x51a30
movl $0x1, 0x9c(%r14)
incq 0x29b96(%rip)           # 0x51a18
movsd 0x161d6(%rip), %xmm0    # 0x3e060
incq 0x29bb7(%rip)           # 0x51a48
movups %xmm0, 0xa0(%r14)
movl $0x3, 0xc(%r14)
cmpl $0x0, 0x90(%rbx)
jne 0x27eb2
movq %rbx, %rdi
callq 0x27d5c
movupd (%r15), %xmm0
movupd 0x80(%rbx), %xmm1
subpd %xmm1, %xmm0
movupd %xmm0, 0xb0(%r14)
leaq 0x10(%rbx), %rsi
movq %r12, %rdi
callq 0x293ae
movq 0x10(%r14), %rax
movq 0x18(%r14), %rcx
subq %rax, %rcx
shrq $0x4, %rcx
movl %ecx, 0x8(%r14)
movslq 0x8(%rbx), %rcx
testq %rcx, %rcx
jle 0x27f1a
shlq $0x4, %rcx
xorl %edx, %edx
movupd 0xb0(%r14), %xmm0
movupd (%rax,%rdx), %xmm1
addpd %xmm0, %xmm1
movupd %xmm1, (%rax,%rdx)
addq $0x10, %rdx
cmpq %rdx, %rcx
jne 0x27efa
leaq 0x40(%rbx), %rsi
movq %r14, %rdi
addq $0x40, %rdi
callq 0x2949e
movsd 0x78(%rbx), %xmm0
movsd %xmm0, 0x78(%r14)
movl $0x1, 0x90(%r14)
movl $0x0, 0x9c(%r14)
movq 0x94(%rbx), %rax
movq %rax, 0x94(%r14)
movupd 0xb0(%r14), %xmm0
movupd 0x80(%rbx), %xmm1
addpd %xmm0, %xmm1
movupd %xmm1, 0x80(%r14)
movupd 0x58(%rbx), %xmm1
addpd %xmm0, %xmm1
movupd %xmm1, 0x58(%r14)
movupd 0x68(%rbx), %xmm1
addpd %xmm0, %xmm1
movupd %xmm1, 0x68(%r14)
movups 0xa0(%rbx), %xmm0
movups %xmm0, 0xa0(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::ComputeAngles()
void Polygon::ComputeAngles()
{
    _Angles.resize(nVertices, 0.0);
    for ( int i = 0; i < nVertices-1; i++)
    {
        double a = atan2(_Vertices[i+1].y - _Vertices[i].y, _Vertices[i+1].x - _Vertices[i].x );
        //  Beware of rounding errors
//        _Angles[i] = round(a/angle_precision)*angle_precision;
        _Angles[i] = a;
    }
    //  Last value is not defined as Pt n-1 = Pt 0
    _Angles[nVertices-1] = 0.0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x40(%rdi), %r14
movslq 0x8(%rdi), %rsi
movq %rsp, %rdx
movq $0x0, (%rdx)
movq %r14, %rdi
callq 0x29582
movslq 0x8(%rbx), %rax
cmpq $0x1, %rax
jle 0x2878b
movl $0x18, %r14d
xorl %r15d, %r15d
leaq 0x1(%r15), %r12
movq 0x10(%rbx), %rax
movsd -0x8(%rax,%r14), %xmm1
movsd (%rax,%r14), %xmm0
subsd -0x10(%rax,%r14), %xmm0
subsd -0x18(%rax,%r14), %xmm1
callq 0x7090
movq 0x40(%rbx), %rcx
movsd %xmm0, (%rcx,%r15,8)
movslq 0x8(%rbx), %rax
decq %rax
addq $0x10, %r14
movq %r12, %r15
cmpq %rax, %r12
jl 0x28744
jmp 0x28791
decq %rax
movq (%r14), %rcx
movq $0x0, (%rcx,%rax,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/Geometry.cpp
// Function: Polygon::Poly_in_Poly(Polygon*)
int Polygon::Poly_in_Poly(Polygon *Big)
{
    //  First check bounding box, this will save time in most cases.
    if ( BoundingBox.A.x < Big->BoundingBox.A.x ) return false;     //  Impossible, bounding box not included
    if ( BoundingBox.A.y < Big->BoundingBox.A.y ) return false;     //  Impossible, bounding box not included
    if ( BoundingBox.B.x > Big->BoundingBox.B.x ) return false;     //  Impossible, bounding box not included
    if ( BoundingBox.B.y > Big->BoundingBox.B.y ) return false;     //  Impossible, bounding box not included
    //  True algoritm, check all vertices
    for ( int i = 0; i < nVertices; i++)
    {
        if ( ! (Big->isInPoly(&_Vertices[i]) > 0) )
            return false;           //  Vertex i is not in Big, not included !
    }
    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movsd 0x58(%rsi), %xmm0
xorl %r14d, %r14d
ucomisd 0x58(%rdi), %xmm0
ja 0x28f32
movq %rsi, %rbx
movsd 0x60(%rsi), %xmm0
ucomisd 0x60(%rdi), %xmm0
ja 0x28f32
movsd 0x68(%rdi), %xmm0
ucomisd 0x68(%rbx), %xmm0
ja 0x28f32
movsd 0x70(%rdi), %xmm0
ucomisd 0x70(%rbx), %xmm0
ja 0x28f32
movslq 0x8(%rdi), %r12
testq %r12, %r12
jle 0x28f2c
movq 0x10(%rdi), %r15
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x27772
testl %eax, %eax
jle 0x28f32
addq $0x10, %r15
movl $0x1, %ecx
movq %rcx, %r13
cmpq %rcx, %r12
je 0x28f20
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x27772
leaq 0x1(%r13), %rcx
addq $0x10, %r15
testl %eax, %eax
jg 0x28eff
xorl %r14d, %r14d
cmpq %r12, %r13
setae %r14b
jmp 0x28f32
movl $0x1, %r14d
movl %r14d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/include/nanosvg.h
// Function: nsvgParse
NSVGimage* nsvgParse(char* input, const char* units, double dpi)
{
	NSVGparser* p;
	NSVGimage* ret = 0;

	p = nsvg__createParser();
	if (p == NULL) {
		return NULL;
	}
	p->dpi = dpi;

	nsvg__parseXML(input, nsvg__startElement, nsvg__endElement, nsvg__content, p);

	ret = p->image;
	p->image = NULL;

	nsvg__deleteParser(p);

	return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movsd %xmm0, (%rsp)
movq %rdi, %r14
movl $0x1, %edi
movl $0xd090, %esi           # imm = 0xD090
callq 0x72e0
testq %rax, %rax
je 0x2a30d
movq %rax, %rbx
movl $0x1, %edi
movl $0x18, %esi
callq 0x72e0
movq %rax, 0xd038(%rbx)
testq %rax, %rax
je 0x2a305
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x40(%rbx)
movq %rax, 0x58(%rbx)
movaps 0x13f60(%rip), %xmm0    # 0x3e180
movups %xmm0, 0x78(%rbx)
movq %rax, 0x88(%rbx)
movq %rax, 0x188(%rbx)
movq %rax, 0x110(%rbx)
movabsq $0x4010000000000000, %rax # imm = 0x4010000000000000
movq %rax, 0x168(%rbx)
movb $0x1, %al
movb %al, 0x198(%rbx)
movb %al, 0x19a(%rbx)
movsd (%rsp), %xmm0
movsd %xmm0, 0xd080(%rbx)
leaq 0xb3(%rip), %rsi        # 0x2a31f
leaq 0x217c(%rip), %rdx      # 0x2c3ef
leaq 0x21dd(%rip), %rcx      # 0x2c457
movq %r14, %rdi
movq %rbx, %r8
callq 0x29e7c
movq 0xd030(%rbx), %rdi
movq 0xd038(%rbx), %r14
movq $0x0, 0xd038(%rbx)
callq 0x2c58c
movq 0xd040(%rbx), %r15
testq %r15, %r15
je 0x2a2d2
movq 0x118(%r15), %rdi
movq 0x120(%r15), %r12
callq 0x7530
movq %r15, %rdi
callq 0x7530
movq %r12, %r15
testq %r12, %r12
jne 0x2a2af
movq 0xd038(%rbx), %rdi
callq 0x2c51f
movq 0xd008(%rbx), %rdi
testq %rdi, %rdi
je 0x2a2fb
movq 0x38(%rdi), %r15
callq 0x7530
movq %r15, %rdi
testq %r15, %r15
jne 0x2a2ea
movq %rbx, %rdi
callq 0x7530
jmp 0x2a310
movq %rbx, %rdi
callq 0x7530
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/include/nanosvg.h
// Function: nsvg__endElement(void*, char const*)
static void nsvg__endElement(void* ud, const char* el)
{
	NSVGparser* p = (NSVGparser*)ud;

	if (strcmp(el, "g") == 0) {
		nsvg__popAttr(p);
	} else if (strcmp(el, "path") == 0) {
		p->pathFlag = 0;
	} else if (strcmp(el, "defs") == 0) {
		p->defsFlag = 0;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x67, (%rsi)
jne 0x2c405
cmpb $0x0, 0x1(%r14)
je 0x2c43d
leaq 0x125ad(%rip), %rsi     # 0x3e9b9
movq %r14, %rdi
callq 0x75a0
testl %eax, %eax
je 0x2c434
leaq 0x138a3(%rip), %rsi     # 0x3fcc2
movq %r14, %rdi
callq 0x75a0
testl %eax, %eax
jne 0x2c44f
movb $0x0, 0xd089(%rbx)
jmp 0x2c44f
movb $0x0, 0xd088(%rbx)
jmp 0x2c44f
movl 0xd000(%rbx), %eax
testl %eax, %eax
jle 0x2c44f
decl %eax
movl %eax, 0xd000(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/include/nanosvg.h
// Function: nsvgParseFromFile
NSVGimage* nsvgParseFromFile(const char* filename, const char* units, double dpi)
{
	FILE* fp = NULL;
	size_t size;
	char* data = NULL;
	NSVGimage* image = NULL;

	fp = fopen(filename, "rb");
	if (!fp) goto error;
	fseek(fp, 0, SEEK_END);
	size = ftell(fp);
	fseek(fp, 0, SEEK_SET);
	data = (char*)malloc(size+1);
	if (data == NULL) goto error;
	if (fread(data, 1, size, fp) != size) goto error;
	data[size] = '\0';	// Must be null terminated.
	fclose(fp);
	image = nsvgParse(data, units, dpi);
	free(data);

	return image;

error:
	if (fp) fclose(fp);
	if (data) free(data);
	if (image) nsvgDelete(image);
	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, 0x8(%rsp)
leaq 0x1206b(%rip), %rsi     # 0x3e4d9
callq 0x7520
testq %rax, %rax
je 0x2c513
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x74a0
movq %rbx, %rdi
callq 0x7030
movq %rax, %r15
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x74a0
leaq 0x1(%r15), %rdi
callq 0x7590
testq %rax, %rax
je 0x2c4f9
movq %rax, %r14
movl $0x1, %esi
movq %rax, %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x7620
cmpq %r15, %rax
jne 0x2c503
movb $0x0, (%r14,%r15)
movq %rbx, %rdi
callq 0x7430
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x2a1bd
movq %rax, %rbx
movq %r14, %rdi
callq 0x7530
movq %rbx, %rax
jmp 0x2c515
movq %rbx, %rdi
callq 0x7430
jmp 0x2c513
movq %rbx, %rdi
callq 0x7430
movq %r14, %rdi
callq 0x7530
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/include/nanosvg.h
// Function: nsvgDelete
void nsvgDelete(NSVGimage* image)
{
	NSVGshape *snext, *shape;
	if (image == NULL) return;
	shape = image->shapes;
	while (shape != NULL) {
		snext = shape->next;
		nsvg__deletePaths(shape->paths);
		nsvg__deletePaint(&shape->fill);
		nsvg__deletePaint(&shape->stroke);
		free(shape);
		shape = snext;
	}
	free(image);
}

// Assembly:
testq %rdi, %rdi
je 0x2c58b
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %r14
testq %r14, %r14
je 0x2c57e
movq 0xf0(%r14), %rdi
movq 0xf8(%r14), %r15
callq 0x2c58c
movb 0x40(%r14), %al
andb $-0x2, %al
cmpb $0x2, %al
jne 0x2c55b
movq 0x48(%r14), %rdi
callq 0x7530
movb 0x50(%r14), %al
andb $-0x2, %al
cmpb $0x2, %al
jne 0x2c56e
movq 0x58(%r14), %rdi
callq 0x7530
movq %r14, %rdi
callq 0x7530
movq %r15, %r14
testq %r15, %r15
jne 0x2c535
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x7530
retq
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/include/nanosvg.h
// Function: nsvg__deletePaths(NSVGpath*)
static void nsvg__deletePaths(NSVGpath* path)
{
	while (path) {
		NSVGpath *next = path->next;
		if (path->PathElts != NULL)
			nsvg__deletePathElts(path->PathElts);
		free(path);
		path = next;
	}
}

// Assembly:
testq %rdi, %rdi
je 0x2c5cc
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rbx), %rdi
movq 0x48(%rbx), %r14
testq %rdi, %rdi
je 0x2c5b7
movq 0x38(%rdi), %r15
callq 0x7530
movq %r15, %rdi
testq %r15, %r15
jne 0x2c5a6
movq %rbx, %rdi
callq 0x7530
movq %r14, %rbx
testq %r14, %r14
jne 0x2c599
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/SvgDoc.cpp
// Function: SvgDoc::SvgDoc(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
SvgDoc::SvgDoc(string &FileName)
{

    StartClock = clock();
    Name = FileName;
    RectCostFactor = 0.0;
	// Load SVG
	SvgData = nsvgParseFromFile(FileName.c_str(), "mm", 25.4);
	if (SvgData )
	{
        SheetSizeX = round(SvgData->width * 100) / 100.0;
        SheetSizeY = round(SvgData->height * 100) / 100.0;
	}
    nbTranslation = 0;
    nbRotation = 0;
    nbCheckAngles = 0;
    nbPointInPoly = 0;
    nbIntersectPoly = 0;
    nbPlacementImpossible = 0;
    CacheMiss = 0;
    CacheHit_OK = 0;
    CacheHit_KO = 0;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x229d9(%rip), %rax     # 0x50cd0
movq %rax, (%rdi)
leaq 0x20(%rdi), %r13
movq %r13, 0x28(%rdi)
movq %r13, 0x20(%rdi)
xorl %eax, %eax
movq %rax, 0x30(%rdi)
leaq 0x40(%rdi), %r14
leaq 0x50(%rdi), %rbp
movq %rbp, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movb $0x0, 0x50(%rdi)
leaq 0x68(%rdi), %r15
movq %r15, %rdi
callq 0x7700
callq 0x72f0
movq %rax, 0x268(%rbx)
movq %r14, %rdi
movq %r12, %rsi
callq 0x7260
movq $0x0, 0x38(%rbx)
movq (%r12), %rdi
movsd 0xff01(%rip), %xmm0     # 0x3e258
callq 0x2c458
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x2e3a6
movupd (%rax), %xmm0
mulpd 0xfe4f(%rip), %xmm0     # 0x3e1c0
movapd %xmm0, (%rsp)
callq 0x71c0
movapd %xmm0, 0x10(%rsp)
movapd (%rsp), %xmm0
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
callq 0x71c0
movapd 0x10(%rsp), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
divpd 0xfe1f(%rip), %xmm1     # 0x3e1c0
movupd %xmm1, 0x10(%rbx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x2a0(%rbx)
movupd %xmm0, 0x290(%rbx)
movupd %xmm0, 0x280(%rbx)
movupd %xmm0, 0x270(%rbx)
movq $0x0, 0x2b0(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2e3f4
movq %rax, %rbx
movq %r15, %rdi
callq 0x7610
movq (%r14), %rdi
cmpq %rbp, %rdi
je 0x2e408
movq (%rbp), %rsi
incq %rsi
callq 0x7450
movq (%r13), %rdi
cmpq %r13, %rdi
je 0x2e426
movq (%rdi), %r14
movl $0x18, %esi
callq 0x7450
movq %r14, %rdi
cmpq %r13, %r14
jne 0x2e411
movq %rbx, %rdi
callq 0x7740
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/SvgDoc.cpp
// Function: SvgDoc::WriteOrginalLayer(std::ostream&)
void SvgDoc::WriteOrginalLayer(ostream& Out)
{
    //  Then the data, begin with original layer
    Out << "  <g\n";
    Out << "     inkscape:label=\"Orginal_Layer\"" << endl;
    Out << "     inkscape:groupmode=\"layer\"" << endl;
    Out << "     id=\"Orginal_Layer1\">" << endl;

    int nShape = 0;
    Out << std::fixed;
    Out << std::setprecision(6);
	for (NSVGshape *shape = SvgData->shapes; shape != NULL; shape = shape->next, nShape++)
	{
        //  Then for each path in the shape
        int iPath = 0;
        for (NSVGpath *path = shape->paths; path != NULL; path = path->next, iPath++)
        {
            WritePath(Out, path, shape);       //  Write path itself.
            for ( NSVGpath *path_child = path->child; path_child != NULL; path_child = path_child->next)
            {
                WritePath(Out, path_child, shape);
            }

        }
    }
    Out << "  </g>" << endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xfb8b(%rip), %rsi      # 0x3ed18
movl $0x5, %edx
movq %rbx, %rdi
callq 0x74e0
leaq 0xf8a0(%rip), %rsi      # 0x3ea41
movl $0x23, %edx
movq %rbx, %rdi
callq 0x74e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7400
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7310
leaq 0xf889(%rip), %rsi      # 0x3ea65
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x74e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7400
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7310
leaq 0xf86e(%rip), %rsi      # 0x3ea85
movl $0x19, %edx
movq %rbx, %rdi
callq 0x74e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7400
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
callq 0x7310
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl $0xfffffefb, %edx       # imm = 0xFFFFFEFB
andl 0x18(%rbx,%rcx), %edx
orl $0x4, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rax
movq $0x6, 0x8(%rbx,%rax)
movq 0x8(%r14), %rax
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x2f2c3
movq 0xf0(%r14), %r15
testq %r15, %r15
je 0x2f2ba
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2e4ea
movq 0x58(%r15), %r12
testq %r12, %r12
je 0x2f2b4
movq %rbx, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x2e4ea
movq 0x48(%r12), %r12
jmp 0x2f29a
movq 0x48(%r15), %r15
jmp 0x2f283
movq 0xf8(%r14), %r14
jmp 0x2f277
leaq 0xf7d5(%rip), %rsi      # 0x3ea9f
movl $0x6, %edx
movq %rbx, %rdi
callq 0x74e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7400
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7310
nop
// File: /workspace/github_cpp_makefile_star2_O3/thierry7100[P]CutOptim/src/SvgDoc.cpp
// Function: SvgDoc::WriteFile(std::ostream&, int)
void SvgDoc::WriteFile(ostream &Out, int output_layers)
{
    WriteHeader(Out);
    if ( output_layers & 1 )        //  Original layer
        WriteOrginalLayer(Out);
    if ( output_layers & 2 )        //  Close Polygon layer
        WritePolygonLayer(Out);
    if ( output_layers & 4 )        //  Large Polygon layer
        WriteLargePolygonLayer(Out);
    if ( output_layers & 8 )        //  Hull Placed layer
        WriteHullLargePolygonLayer(Out);
    if ( output_layers & 16 )        //  Placed Polygon layer
        WritePlacedPolygonLayer(Out);
    WritePlacedLayer(Out);
    Out << "</svg>" << endl;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x305de
testb $0x1, %bpl
je 0x30aa4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2f178
testb $0x2, %bpl
je 0x30ab5
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2f30a
testb $0x4, %bpl
je 0x30ac6
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2f70c
testb $0x8, %bpl
je 0x30ad7
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2fb3c
testb $0x10, %bpl
je 0x30ae8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2ff6c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3039c
leaq 0xe731(%rip), %rsi      # 0x3f22b
movl $0x6, %edx
movq %rbx, %rdi
callq 0x74e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7400
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7050
movq %rax, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x7310