LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Span const&, gaps::R3OrientedBox const&)
RNLength R3Distance(const R3Span& span, const R3OrientedBox& box)
{
    // Check if box is empty
    if (box.IsEmpty()) return FLT_MAX;

    // Transform span into std coordinate system
    R3Span transformed_span = span;
    R3Affine cs_to_std_xform(box.CoordSystem().InverseMatrix());
    transformed_span.Transform(cs_to_std_xform);

    // Return distance in std coordinate system
    R3Box axis_aligned_box(-box.Radius(0), -box.Radius(1), -box.Radius(2), box.Radius(0), box.Radius(1), box.Radius(2));
    return R3Distance(transformed_span, axis_aligned_box);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, %rbx
movsd 0x70(%rsi), %xmm0
movsd 0x78(%rsi), %xmm1
minsd 0x68(%rsi), %xmm0
minsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
ja 0x4acc3
movq %rdi, %rsi
leaq 0x88(%rsp), %r14
movq %r14, %rdi
callq 0x3b8f6
leaq 0x8(%rbx), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x2a7d6
leaq 0xd8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x29fda
movq %r14, %rdi
movq %r12, %rsi
callq 0x3bdac
movsd 0x68(%rbx), %xmm3
movsd 0x70(%rbx), %xmm4
movapd 0x573ab(%rip), %xmm2    # 0xa2020
movapd %xmm3, %xmm0
xorpd %xmm2, %xmm0
movapd %xmm4, %xmm1
xorpd %xmm2, %xmm1
movsd 0x78(%rbx), %xmm5
xorpd %xmm5, %xmm2
leaq 0x8(%rsp), %rdi
callq 0x27374
leaq 0x57683(%rip), %rdi     # 0xa2322
xorl %eax, %eax
callq 0x718f6
leaq 0x8(%rsp), %rdi
callq 0x280f4
leaq 0xd8(%rsp), %rdi
callq 0x2a028
xorpd %xmm0, %xmm0
jmp 0x4accb
movsd 0x57375(%rip), %xmm0    # 0xa2040
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x280f4
jmp 0x4acee
jmp 0x4aceb
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x2a028
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Plane const&, gaps::R3Plane const&)
RNLength R3Distance(const R3Plane& plane1, const R3Plane& plane2)
{
    // Return distance from plane to plane
    RNScalar d = R3SignedDistance(plane1, plane2);
    if (RNIsPositive(d)) return d;
    else if (RNIsNegative(d)) return -d;
    else return 0.0;
}

// Assembly:
pushq %rax
callq 0x4ad78
leaq 0x9ae54(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm2
ucomisd %xmm2, %xmm0
ja 0x4ad6e
xorpd 0x572ca(%rip), %xmm2    # 0xa2020
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm2
jbe 0x4ad72
movapd 0x572b8(%rip), %xmm1    # 0xa2020
xorpd %xmm0, %xmm1
jmp 0x4ad72
movapd %xmm0, %xmm1
movapd %xmm1, %xmm0
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3SignedDistance(gaps::R3Plane const&, gaps::R3Plane const&)
RNLength R3SignedDistance(const R3Plane& plane1, const R3Plane& plane2)
{
    // Return signed distance from plane to plane
    RNScalar dot = plane1.Normal().Dot(plane2.Normal());
    if (RNIsEqual(dot, 1.0)) return (plane1.D() - plane2.D());
    else if (RNIsEqual(dot, -1.0)) return (plane1.D() + plane2.D());
    else return 0.0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3d252
leaq 0x9ae0a(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm2
movsd 0x572ae(%rip), %xmm3    # 0xa2048
addsd %xmm0, %xmm3
movapd 0x5727a(%rip), %xmm1    # 0xa2020
xorpd %xmm2, %xmm1
ucomisd %xmm1, %xmm3
jb 0x4adc3
ucomisd %xmm3, %xmm2
jb 0x4adc3
movsd 0x18(%r14), %xmm1
subsd 0x18(%rbx), %xmm1
jmp 0x4ade6
addsd 0x5726d(%rip), %xmm0    # 0xa2038
ucomisd %xmm1, %xmm0
xorpd %xmm1, %xmm1
jb 0x4ade6
ucomisd %xmm0, %xmm2
jb 0x4ade6
movsd 0x18(%r14), %xmm1
addsd 0x18(%rbx), %xmm1
movapd %xmm1, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Plane const&, gaps::R3Halfspace const&)
RNLength R3Distance(const R3Plane& plane, const R3Halfspace& halfspace)
{
    // Return distance from plane to halfspace
    RNScalar d = R3SignedDistance(halfspace.Plane(), plane);
    if (RNIsNegative(d)) return -d;
    else return 0.0;
}

// Assembly:
pushq %rax
movq %rdi, %rax
movq %rsi, %rdi
movq %rax, %rsi
callq 0x4ad78
leaq 0x9ad90(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm1
movapd 0x5720c(%rip), %xmm2    # 0xa2020
xorpd %xmm2, %xmm1
xorpd %xmm0, %xmm2
cmpnltsd %xmm1, %xmm0
andnpd %xmm2, %xmm0
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Plane const&, gaps::R3Box const&)
RNLength R3Distance(const R3Plane& plane, const R3Box& box)
{
    // Return distance from plane to box
    RNScalar d = R3SignedDistance(plane, box);
    if (RNIsPositive(d)) return d;
    else if (RNIsNegative(d)) return -d;
    else return 0.0;
}

// Assembly:
pushq %rax
callq 0x4ae68
leaq 0x9ad64(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm2
ucomisd %xmm2, %xmm0
ja 0x4ae5e
xorpd 0x571da(%rip), %xmm2    # 0xa2020
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm2
jbe 0x4ae62
movapd 0x571c8(%rip), %xmm1    # 0xa2020
xorpd %xmm0, %xmm1
jmp 0x4ae62
movapd %xmm0, %xmm1
movapd %xmm1, %xmm0
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Plane const&, gaps::R3OrientedBox const&)
RNLength R3Distance(const R3Plane& plane, const R3OrientedBox& box)
{
    // Return distance from plane to box
    RNScalar d = R3SignedDistance(plane, box);
    if (RNIsPositive(d)) return d;
    else if (RNIsNegative(d)) return -d;
    else return 0.0;
}

// Assembly:
pushq %rax
callq 0x4afc0
leaq 0x9ac0c(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm2
ucomisd %xmm2, %xmm0
ja 0x4afb6
xorpd 0x57082(%rip), %xmm2    # 0xa2020
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm2
jbe 0x4afba
movapd 0x57070(%rip), %xmm1    # 0xa2020
xorpd %xmm0, %xmm1
jmp 0x4afba
movapd %xmm0, %xmm1
movapd %xmm1, %xmm0
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3SignedDistance(gaps::R3Plane const&, gaps::R3OrientedBox const&)
RNLength R3SignedDistance(const R3Plane& plane, const R3OrientedBox& box)
{
    // Check if box is empty
    if (box.IsEmpty()) return FLT_MAX;

    // Transform plane into std coordinate system
    R3Plane transformed_plane = plane;
    R3Affine cs_to_std_xform(box.CoordSystem().InverseMatrix());
    transformed_plane.Transform(cs_to_std_xform);

    // Return distance in std coordinate system
    R3Box axis_aligned_box(-box.Radius(0), -box.Radius(1), -box.Radius(2), box.Radius(0), box.Radius(1), box.Radius(2));
    return R3SignedDistance(transformed_plane, axis_aligned_box);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %rbx
movsd 0x70(%rsi), %xmm0
movsd 0x78(%rsi), %xmm1
minsd 0x68(%rsi), %xmm0
minsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
ja 0x4b09a
movq %rdi, %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3b026
leaq 0x8(%rbx), %rsi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x2a7d6
leaq 0xa8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x29fda
movq %r14, %rdi
movq %r12, %rsi
callq 0x3b73a
movsd 0x68(%rbx), %xmm3
movsd 0x70(%rbx), %xmm4
movapd 0x56fdb(%rip), %xmm2    # 0xa2020
movapd %xmm3, %xmm0
xorpd %xmm2, %xmm0
movapd %xmm4, %xmm1
xorpd %xmm2, %xmm1
movsd 0x78(%rbx), %xmm5
xorpd %xmm5, %xmm2
leaq 0x28(%rsp), %rdi
callq 0x27374
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x4ae68
movsd %xmm0, (%rsp)
leaq 0x28(%rsp), %rdi
callq 0x280f4
leaq 0xa8(%rsp), %rdi
callq 0x2a028
movsd (%rsp), %xmm0
jmp 0x4b0a2
movsd 0x56f9e(%rip), %xmm0    # 0xa2040
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x280f4
jmp 0x4b0c5
jmp 0x4b0c2
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x2a028
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Plane const&, gaps::R3Sphere const&)
RNLength R3Distance(const R3Plane& plane, const R3Sphere& sphere)
{
    // Return distance from plane to sphere
    RNScalar d = R3SignedDistance(plane, sphere);
    if (RNIsPositive(d)) return d;
    else if (RNIsNegative(d)) return -d;
    else return 0.0;
}

// Assembly:
pushq %rax
callq 0x4b11b
leaq 0x9aab1(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm2
ucomisd %xmm2, %xmm0
ja 0x4b111
xorpd 0x56f27(%rip), %xmm2    # 0xa2020
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm2
jbe 0x4b115
movapd 0x56f15(%rip), %xmm1    # 0xa2020
xorpd %xmm0, %xmm1
jmp 0x4b115
movapd %xmm0, %xmm1
movapd %xmm1, %xmm0
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3SignedDistance(gaps::R3Plane const&, gaps::R3Triangle const&)
RNLength R3SignedDistance(const R3Plane& plane, const R3Triangle& triangle)
{
    // Compute signed distance from plane to triangle
    RNLength max_distance = -FLT_MAX;
    RNLength min_distance = FLT_MAX;
    for (int i = 0; i < 3; i++) {
        RNLength distance = R3SignedDistance(plane, triangle.Vertex(i)->Position());
	if (distance < min_distance) min_distance = distance;
	if (distance > max_distance) max_distance = distance;
	if ((min_distance < 0.0) && (max_distance > 0.0)) return 0.0;
    }
    
    // Return signed distance
    if (min_distance > 0.0) return min_distance;
    else if (max_distance < 0.0) return max_distance;
    else return 0.0;
}

// Assembly:
movsd (%rdi), %xmm1
movsd 0x8(%rdi), %xmm2
movsd 0x10(%rdi), %xmm3
movsd 0x18(%rdi), %xmm4
movsd 0x57b17(%rip), %xmm5    # 0xa2cb8
movsd 0x56e97(%rip), %xmm0    # 0xa2040
movl $0x1, %eax
xorpd %xmm6, %xmm6
movapd %xmm5, %xmm7
movapd %xmm0, %xmm8
movq (%rsi,%rax,8), %rcx
movsd 0x8(%rcx), %xmm0
mulsd %xmm2, %xmm0
movsd (%rcx), %xmm9
mulsd %xmm1, %xmm9
addsd %xmm0, %xmm9
movsd 0x10(%rcx), %xmm5
mulsd %xmm3, %xmm5
addsd %xmm9, %xmm5
addsd %xmm4, %xmm5
movapd %xmm5, %xmm0
minsd %xmm8, %xmm0
maxsd %xmm7, %xmm5
ucomisd %xmm0, %xmm6
jbe 0x4b202
ucomisd %xmm6, %xmm5
ja 0x4b21e
incq %rax
cmpq $0x4, %rax
jne 0x4b1b2
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
ja 0x4b21d
minsd %xmm1, %xmm5
movapd %xmm5, %xmm0
retq
xorpd %xmm0, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Halfspace const&, gaps::R3OrientedBox const&)
RNLength R3Distance(const R3Halfspace& halfspace, const R3OrientedBox& box)
{
    // Check distance from halfspace to corners of oriented box
    RNScalar min_d = RN_INFINITY;
    for (int i = 0; i < 8; i++) {
        R3Point corner = box.Corner(i);
        RNScalar d = R3SignedDistance(halfspace.Plane(), corner);
        if (d <= 0.0) return 0;
        if (d < min_d) min_d = d;
    }

    // Return distance to closest corner
    return min_d;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x9a832(%rip), %rax     # 0xe5ba8
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %ebp, %ebp
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x24628
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm2
mulsd 0x8(%r14), %xmm2
mulsd (%r14), %xmm0
movsd 0x20(%rsp), %xmm1
mulsd 0x10(%r14), %xmm1
addsd %xmm2, %xmm0
addsd %xmm0, %xmm1
addsd 0x18(%r14), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jae 0x4b3e6
minsd 0x8(%rsp), %xmm1
incl %ebp
movsd %xmm1, 0x8(%rsp)
movapd %xmm1, %xmm0
cmpl $0x8, %ebp
jne 0x4b387
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Relate.cpp
// Function: gaps::R3Interpolate(gaps::R3Point const&, gaps::R3Point const&, double, double, double)
R3Point 
R3Interpolate(const R3Point& point1, const R3Point& point2, RNScalar t1, RNScalar t2, RNScalar t)
{
  // Check boundary cases
  if (RNIsEqual(t, t1)) return point1;
  if (RNIsEqual(t, t2)) return point2;
  RNScalar denom = t1 - t2;
  if (RNIsZero(denom)) return point1;

  // Interpolate points
  RNScalar mu = (t - t1) / (t2 - t1);
  R3Vector vector = point2 - point1;
  R3Point point = point1 + mu * vector;
  return point;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x99fe4(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm3
movapd %xmm2, %xmm5
subsd %xmm0, %xmm5
movapd 0x56458(%rip), %xmm4    # 0xa2020
xorpd %xmm3, %xmm4
ucomisd %xmm4, %xmm5
jb 0x4bbe0
ucomisd %xmm5, %xmm3
jb 0x4bbe0
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x4bbf6
subsd %xmm1, %xmm2
ucomisd %xmm4, %xmm2
jb 0x4bc0a
ucomisd %xmm2, %xmm3
jb 0x4bc0a
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x3c542
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
ucomisd %xmm4, %xmm2
jb 0x4bc1e
ucomisd %xmm2, %xmm3
jae 0x4bbd8
subsd %xmm0, %xmm1
divsd %xmm1, %xmm5
movsd %xmm5, (%rsp)
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %rdx, %rsi
movq %r14, %rdx
callq 0x3c78e
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movsd (%rsp), %xmm0
callq 0x3d962
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x3c877
jmp 0x4bbfb
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Relate.cpp
// Function: gaps::R3InteriorAngle(gaps::R3Vector const&, gaps::R3Vector const&)
RNAngle 
R3InteriorAngle(const R3Vector& vector1, const R3Vector& vector2)
{
    // Return angle between vectors
    RNScalar d1 = vector1.Length();
    if (RNIsZero(d1)) return 0.0;
    RNScalar d2 = vector2.Length();
    if (RNIsZero(d2)) return 0.0;
    RNScalar cosine = vector1.Dot(vector2) / (d1 * d2);
    if (cosine >= 1.0) return 0.0;
    else if (cosine <= -1.0) return RN_PI;
    else return acos(cosine); 
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3d0cc
leaq 0x99f1a(%rip), %r15     # 0xe5b98
movsd (%r15), %xmm2
movapd 0x56395(%rip), %xmm1    # 0xa2020
xorpd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
xorpd %xmm1, %xmm1
jb 0x4bca3
ucomisd %xmm0, %xmm2
jae 0x4bd28
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x3d0cc
movsd (%r15), %xmm2
movapd 0x56362(%rip), %xmm1    # 0xa2020
xorpd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jb 0x4bcd4
ucomisd %xmm0, %xmm2
jb 0x4bcd4
xorpd %xmm1, %xmm1
jmp 0x4bd28
movq %r14, %rdi
movq %rbx, %rsi
movsd %xmm0, (%rsp)
callq 0x3d252
movsd 0x8(%rsp), %xmm1
mulsd (%rsp), %xmm1
divsd %xmm1, %xmm0
ucomisd 0x5633d(%rip), %xmm0    # 0xa2038
xorpd %xmm1, %xmm1
jae 0x4bd28
movsd 0x5633f(%rip), %xmm1    # 0xa2048
ucomisd %xmm0, %xmm1
jae 0x4bd1d
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xe3f0
leaq 0x5e2a4(%rip), %rax     # 0xa9fc8
movsd (%rax), %xmm1
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Relate.cpp
// Function: gaps::R3Abuts(gaps::R3Box const&, gaps::R3Box const&)
RNBoolean 
R3Abuts(const R3Box& box1, const R3Box& box2) 
{
    // Return whether box1 abuts box2
    if (!R3Intersects(box1, box2)) return FALSE;
    if (RNIsEqual(box1.XMin(), box2.XMax())) return TRUE;
    if (RNIsEqual(box1.XMax(), box2.XMin())) return TRUE;
    if (RNIsEqual(box1.YMin(), box2.YMax())) return TRUE;
    if (RNIsEqual(box1.YMax(), box2.YMin())) return TRUE;
    if (RNIsEqual(box1.ZMin(), box2.ZMax())) return TRUE;
    if (RNIsEqual(box1.ZMax(), box2.ZMin())) return TRUE;
    return FALSE;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
xorl %ebx, %ebx
xorl %edx, %edx
callq 0x45cbc
testl %eax, %eax
je 0x4be4b
movsd 0x8(%r15), %xmm2
leaq 0x99df9(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm0
subsd 0x20(%r14), %xmm2
movapd 0x5626f(%rip), %xmm1    # 0xa2020
xorpd %xmm0, %xmm1
ucomisd %xmm1, %xmm2
movl $0x1, %ebx
jb 0x4bdca
ucomisd %xmm2, %xmm0
jae 0x4be4b
movsd 0x20(%r15), %xmm2
subsd 0x8(%r14), %xmm2
ucomisd %xmm1, %xmm2
jb 0x4bde2
ucomisd %xmm2, %xmm0
jae 0x4be4b
movsd 0x10(%r15), %xmm2
subsd 0x28(%r14), %xmm2
ucomisd %xmm1, %xmm2
jb 0x4bdfa
ucomisd %xmm2, %xmm0
jae 0x4be4b
movsd 0x28(%r15), %xmm2
subsd 0x10(%r14), %xmm2
ucomisd %xmm1, %xmm2
jb 0x4be12
ucomisd %xmm2, %xmm0
jae 0x4be4b
movsd 0x18(%r15), %xmm2
subsd 0x30(%r14), %xmm2
ucomisd %xmm1, %xmm2
jb 0x4be2a
ucomisd %xmm2, %xmm0
jae 0x4be4b
movsd 0x30(%r15), %xmm2
subsd 0x18(%r14), %xmm2
cmplepd %xmm2, %xmm1
cmplepd %xmm0, %xmm2
andpd %xmm1, %xmm2
movd %xmm2, %ebx
andl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Relate.cpp
// Function: gaps::R3Splits(gaps::R3Plane const&, gaps::R3Span const&)
int 
R3Splits(const R3Plane& plane, const R3Span& span)
{
    // Result values:
    // 0 = on, 1 = below, 2 = above, 3 = crossing
    int result = 0;

    // Classify start point with respect to plane
    RNScalar d1 = R3SignedDistance(plane, span.Start());
    if (RNIsNegative(d1)) result |= 0x1;
    if (RNIsPositive(d1)) result |= 0x2;

    // Classify end point with respect to plane
    RNScalar d2 = R3SignedDistance(plane, span.End());
    if (RNIsNegative(d2)) result |= 0x1;
    if (RNIsPositive(d2)) result |= 0x2;

    // Return result
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x49617
leaq 0x99d2c(%rip), %r15     # 0xe5b98
movsd (%r15), %xmm1
movapd %xmm1, %xmm2
xorpd 0x561a3(%rip), %xmm2    # 0xa2020
xorl %eax, %eax
ucomisd %xmm0, %xmm2
seta %al
leal 0x2(%rax), %ebp
ucomisd %xmm1, %xmm0
cmovbel %eax, %ebp
addq $0x30, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x49617
movsd (%r15), %xmm1
movapd 0x56174(%rip), %xmm2    # 0xa2020
xorpd %xmm1, %xmm2
xorl %ecx, %ecx
ucomisd %xmm0, %xmm2
seta %cl
orl %ebp, %ecx
movl %ecx, %eax
orl $0x2, %eax
ucomisd %xmm1, %xmm0
cmovbel %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Relate.cpp
// Function: gaps::R3Splits(gaps::R3Plane const&, gaps::R3Triangle const&)
int 
R3Splits(const R3Plane& plane, const R3Triangle& triangle)
{
    // Result values:
    // 0 = on, 1 = below, 2 = above, 3 = crossing
    int result = 0;

    // Classify triangle with respect to plane
    for (int i = 0; i < 3; i++) {
	RNScalar d = R3SignedDistance(plane, triangle.Vertex(i)->Position());
	if (!(result & 0x1) && RNIsNegative(d)) result |= 0x1;
	if (!(result & 0x2) && RNIsPositive(d)) result |= 0x2;
	if (result == 0x3) break;
    }

    // Return result
    return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r12d, %r12d
leaq 0x99a78(%rip), %r13     # 0xe5b98
xorl %r15d, %r15d
movq 0x8(%rbx,%r12,8), %rsi
movq %r14, %rdi
callq 0x49617
testb $0x1, %r15b
sete %al
movsd (%r13), %xmm1
movapd %xmm1, %xmm2
xorpd 0x55ed7(%rip), %xmm2    # 0xa2020
ucomisd %xmm0, %xmm2
seta %cl
andb %al, %cl
movzbl %cl, %eax
movl %r15d, %ecx
orl %eax, %ecx
ucomisd %xmm1, %xmm0
leal 0x2(%r15,%rax), %eax
cmovbel %ecx, %eax
testb $0x2, %r15b
movl %eax, %r15d
cmovnel %ecx, %r15d
cmpl $0x3, %r15d
je 0x4c185
leaq 0x1(%r12), %rax
cmpq $0x2, %r12
movq %rax, %r12
jne 0x4c123
movl %r15d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3BoundingBox(gaps::RNArray<gaps::R3Point*> const&)
R3Box
R3BoundingBox(const RNArray<R3Point *>& points)
{
  // Compute bounding box
  R3Box bbox = R3null_box;
  for (int i = 0; i < points.NEntries(); i++) {
    bbox.Union(*points[i]);
  }

  // Return bounding box
  return bbox;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x99cf2(%rip), %rsi     # 0xe5e98
callq 0x272d4
cmpl $0x0, 0xc(%r14)
jle 0x4c1d0
xorl %r15d, %r15d
movq (%r14), %rax
movq (%rax,%r15,8), %rsi
movq %rbx, %rdi
callq 0x27cc6
incq %r15
movslq 0xc(%r14), %rax
cmpq %rax, %r15
jl 0x4c1b5
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x280f4
movq %r14, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3Centroid(gaps::RNArray<gaps::R3Point*> const&, double const*)
R3Point 
R3Centroid(const RNArray<R3Point *>& points, const RNScalar *weights)
{
  // Compute center of mass
  R3Point centroid(0.0, 0.0, 0.0);
  RNScalar total_weight = 0;
  for (int i = 0; i < points.NEntries(); i++) {
    RNScalar weight = (weights) ? weights[i] : 1;
    R3Point *point = points[i];
    centroid += *point * weight;
    total_weight += weight;
  }

  // Compute average
  if (total_weight > 0) centroid /= total_weight;

  // Return center of mass
  return centroid;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x3c532
xorpd %xmm0, %xmm0
cmpl $0x0, 0xc(%r15)
jle 0x4c288
xorl %r13d, %r13d
leaq 0x18(%rsp), %r12
movsd %xmm0, 0x10(%rsp)
movsd 0x55e05(%rip), %xmm0    # 0xa2038
testq %r14, %r14
je 0x4c23e
movsd (%r14,%r13,8), %xmm0
movq (%r15), %rax
movq (%rax,%r13,8), %rsi
movq %r12, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x3cf76
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3ce6c
movsd 0x10(%rsp), %xmm0
addsd 0x8(%rsp), %xmm0
incq %r13
movslq 0xc(%r15), %rax
cmpq %rax, %r13
jl 0x4c225
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x4c288
movq %rbx, %rdi
callq 0x3ceea
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3AverageDistance(gaps::R3Point const&, gaps::RNArray<gaps::R3Point*> const&, double const*)
RNLength
R3AverageDistance(const R3Point& center, const RNArray<R3Point *>& points, const RNScalar *weights)
{
  // Compute sum of distances between a position on the surface and a center point
  RNScalar distance = 0.0;
  RNScalar total_weight = 0;
  for (int i = 0; i < points.NEntries(); i++) {
    RNScalar weight = (weights) ? weights[i] : 1;
    R3Point *point = points[i];
    distance += weight * R3Distance(*point, center);
    total_weight += weight;
  }

  // Compute average distance
  if (total_weight > 0) distance /= total_weight;

  // Return average distance
  return distance;
}

// Assembly:
cmpl $0x0, 0xc(%rsi)
xorpd %xmm3, %xmm3
xorpd %xmm2, %xmm2
jle 0x4c6f5
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorpd %xmm2, %xmm2
xorl %r12d, %r12d
xorpd %xmm3, %xmm3
movapd %xmm3, 0x10(%rsp)
movapd %xmm2, 0x20(%rsp)
movsd 0x55998(%rip), %xmm0    # 0xa2038
testq %rbx, %rbx
je 0x4c6ab
movsd (%rbx,%r12,8), %xmm0
movsd %xmm0, 0x8(%rsp)
movq (%r14), %rax
movq (%rax,%r12,8), %rdi
movq %r15, %rsi
callq 0x49404
movsd 0x8(%rsp), %xmm1
mulsd %xmm1, %xmm0
movapd 0x20(%rsp), %xmm2
addsd %xmm0, %xmm2
movapd 0x10(%rsp), %xmm3
addsd %xmm1, %xmm3
incq %r12
movslq 0xc(%r14), %rax
cmpq %rax, %r12
jl 0x4c68c
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
movapd %xmm2, %xmm1
divsd %xmm3, %xmm1
xorpd %xmm0, %xmm0
cmpltsd %xmm3, %xmm0
andpd %xmm0, %xmm1
andnpd %xmm2, %xmm0
orpd %xmm1, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3AlignError(gaps::RNArray<gaps::R3Point*> const&, gaps::RNArray<gaps::R3Point*> const&, gaps::R4Matrix const&, gaps::R3Point const&, gaps::R3Point const&, double, double, double const*)
RNScalar 
R3AlignError(const RNArray<R3Point *>& points1, const RNArray<R3Point *>& points2, 
  const R4Matrix& rotation, const R3Point& center1, const R3Point& center2, RNScalar s1, RNScalar s2, 
  const RNScalar* weights)
{
  // Get number of points
  int count = points1.NEntries();
  if (points2.NEntries() < count) count = points2.NEntries();
  if (count == 0) return -1;

  // Compute sum of squared distances
  RNScalar ssd = 0;
  RNScalar total_weight = 0;
  for(int i = 0; i < count; i++) {
    RNScalar weight = (weights) ? weights[i] : 1;
    R3Point *point1 = points1[i];
    R3Point *point2 = points2[i];
    R3Vector v1 = (*point1 - center1) / s1;
    R3Vector v2 = (*point2 - center2) / s2;
    R3Vector v = v1 - rotation * v2;
    ssd += weight * v.Dot(v);
    total_weight += weight;
  }

  // Return RMSD
  if (total_weight == 0) return -1;
  return sqrt(ssd / total_weight);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movsd %xmm1, 0x38(%rsp)
movsd %xmm0, 0x30(%rsp)
movq %r8, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rdi, 0x8(%rsp)
movl 0xc(%rdi), %eax
movq %rsi, 0x10(%rsp)
movl 0xc(%rsi), %ecx
cmpl %eax, %ecx
cmovll %ecx, %eax
movsd 0x555f0(%rip), %xmm0    # 0xa2048
testl %eax, %eax
jle 0x4cb8e
movq %r9, %rbx
movl %eax, %eax
movq %rax, (%rsp)
xorpd %xmm2, %xmm2
xorl %r15d, %r15d
leaq 0x88(%rsp), %r14
leaq 0x70(%rsp), %r12
xorpd %xmm3, %xmm3
movsd %xmm3, 0x48(%rsp)
movsd %xmm2, 0x50(%rsp)
movsd 0x555a3(%rip), %xmm0    # 0xa2038
testq %rbx, %rbx
je 0x4caa0
movsd (%rbx,%r15,8), %xmm0
movsd %xmm0, 0x40(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r15,8), %rsi
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r15,8), %rbp
movq %r14, %rdi
movq 0x20(%rsp), %rdx
callq 0x3c78e
leaq 0xa0(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movsd 0x30(%rsp), %xmm0
callq 0x3dcac
movq %r12, %rdi
movq %rbp, %rsi
movq 0x28(%rsp), %rdx
callq 0x3c78e
movq %r14, %rdi
movq %r12, %rsi
movsd 0x38(%rsp), %xmm0
callq 0x3dcac
leaq 0x58(%rsp), %rbp
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
movq %r14, %rdx
callq 0x2e342
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x3dc43
movq %r12, %rdi
movq %r12, %rsi
callq 0x3d252
movsd 0x40(%rsp), %xmm1
mulsd %xmm1, %xmm0
movsd 0x48(%rsp), %xmm3
addsd %xmm0, %xmm3
movsd 0x50(%rsp), %xmm2
addsd %xmm1, %xmm2
incq %r15
cmpq %r15, (%rsp)
jne 0x4ca81
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm2
movsd 0x554da(%rip), %xmm0    # 0xa2048
jne 0x4cb72
jnp 0x4cb8e
divsd %xmm2, %xmm3
ucomisd %xmm1, %xmm3
jb 0x4cb85
xorps %xmm0, %xmm0
sqrtsd %xmm3, %xmm0
jmp 0x4cb8e
movapd %xmm3, %xmm0
callq 0xe340
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3AlignError(gaps::RNArray<gaps::R3Point*> const&, gaps::RNArray<gaps::R3Point*> const&, gaps::R4Matrix const&, double const*)
RNScalar 
R3AlignError(const RNArray<R3Point *>& points1, const RNArray<R3Point *>& points2, 
  const R4Matrix& matrix, const RNScalar* weights)
{
  // Get number of points
  int count = points1.NEntries();
  if (points2.NEntries() < count) count = points2.NEntries();
  if (count == 0) return -1;

  // Compute sum of squared distances
  RNScalar ssd = 0;
  RNScalar total_weight = 0;
  for (int i = 0; i < count; i++) {
    RNScalar weight = (weights) ? weights[i] : 1;
    R3Point *point1 = points1[i];
    R3Point point2 = *(points2[i]);
    point2 = matrix * point2;
    R3Vector v = *point1 - point2;
    ssd += weight * v.Dot(v);
    total_weight += weight;
  }

  // Return RMSD
  if (total_weight == 0) return -1;
  return sqrt(ssd / total_weight);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %rbx
movq %rdx, 0x18(%rsp)
movq %rdi, 0x8(%rsp)
movl 0xc(%rdi), %eax
movq %rsi, 0x10(%rsp)
movl 0xc(%rsi), %ecx
cmpl %eax, %ecx
cmovll %ecx, %eax
movsd 0x55475(%rip), %xmm0    # 0xa2048
testl %eax, %eax
jle 0x4ccc6
movl %eax, %r15d
xorpd %xmm2, %xmm2
xorl %r12d, %r12d
leaq 0x50(%rsp), %r13
leaq 0x38(%rsp), %rbp
xorpd %xmm3, %xmm3
movsd %xmm3, 0x28(%rsp)
movsd %xmm2, 0x30(%rsp)
movsd 0x55431(%rip), %xmm0    # 0xa2038
testq %rbx, %rbx
je 0x4cc12
movsd (%rbx,%r12,8), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r12,8), %r14
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r12,8), %rsi
movq %r13, %rdi
callq 0x3c542
movq %rbp, %rdi
movq 0x18(%rsp), %rsi
movq %r13, %rdx
callq 0x2e3ba
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3c89a
movq %rbp, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x3c78e
movq %rbp, %rdi
movq %rbp, %rsi
callq 0x3d252
movsd 0x20(%rsp), %xmm1
mulsd %xmm1, %xmm0
movsd 0x28(%rsp), %xmm3
addsd %xmm0, %xmm3
movsd 0x30(%rsp), %xmm2
addsd %xmm1, %xmm2
incq %r12
cmpq %r12, %r15
jne 0x4cbf3
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm2
movsd 0x553a2(%rip), %xmm0    # 0xa2048
jne 0x4ccaa
jnp 0x4ccc6
divsd %xmm2, %xmm3
ucomisd %xmm1, %xmm3
jb 0x4ccbd
xorps %xmm0, %xmm0
sqrtsd %xmm3, %xmm0
jmp 0x4ccc6
movapd %xmm3, %xmm0
callq 0xe340
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3EstimatePlaneWithPCA(gaps::RNArray<gaps::R3Point*> const&, double const*)
R3Plane
R3EstimatePlaneWithPCA(const RNArray<R3Point *>& points, const RNScalar *weights)
{
  // Return best fitting plane
  RNScalar variances[3];
  R3Point centroid = R3Centroid(points);
  R3Triad axes = R3PrincipleAxes(centroid, points, weights, variances);
  if (RNIsZero(variances[1])) return R3null_plane;
  return R3Plane(centroid, axes[2]);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x4c1ec
leaq 0x38(%rsp), %rdi
leaq 0x20(%rsp), %r13
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %r13, %r8
callq 0x4c299
movsd 0x8(%r13), %xmm0
leaq 0x98629(%rip), %rax     # 0xe5b98
movsd (%rax), %xmm1
movapd 0x54aa5(%rip), %xmm2    # 0xa2020
xorpd %xmm1, %xmm2
ucomisd %xmm2, %xmm0
jb 0x4d59c
ucomisd %xmm0, %xmm1
jb 0x4d59c
leaq 0x4990fe(%rip), %rsi    # 0x4e6690
movq %rbx, %rdi
callq 0x3b026
jmp 0x4d5ae
leaq 0x68(%rsp), %rdx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x3b0b2
movq %rbx, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3BoundingBox(int, gaps::R3Point const*)
R3Box 
R3BoundingBox(int npoints, const R3Point *points)
{
  RNArray<R3Point *> array;
  for (int i = 0; i < npoints; i++)
    array.Insert((R3Point *) &points[i]);
  return R3BoundingBox(array);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movq %rsp, %rdi
callq 0x6f80c
testl %ebp, %ebp
jle 0x4da79
movl %ebp, %r12d
movq %rsp, %r15
movl 0xc(%rsp), %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x6f8a2
addq $0x18, %r14
decq %r12
jne 0x4da61
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x4c194
movq %rsp, %rdi
callq 0x6f876
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4da9e
movq %rax, %rbx
movq %rsp, %rdi
callq 0x6f876
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3Centroid(int, gaps::R3Point const*, double const*)
R3Point 
R3Centroid(int npoints, const R3Point *points, const RNScalar *weights)
{
  RNArray<R3Point *> array;
  for (int i = 0; i < npoints; i++)
    array.Insert((R3Point *) &points[i]);
  return R3Centroid(array, weights);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6f80c
testl %ebp, %ebp
jle 0x4daf8
movl %ebp, %r13d
leaq 0x8(%rsp), %r12
movl 0x14(%rsp), %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x6f8a2
addq $0x18, %r15
decq %r13
jne 0x4dae0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4c1ec
leaq 0x8(%rsp), %rdi
callq 0x6f876
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4db26
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6f876
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3PrincipleAxes(gaps::R3Point const&, int, gaps::R3Point const*, double const*, double*)
R3Triad 
R3PrincipleAxes(const R3Point& centroid, int npoints, const R3Point *points, const RNScalar *weights, RNScalar *variances)
{
  RNArray<R3Point *> array;
  for (int i = 0; i < npoints; i++)
    array.Insert((R3Point *) &points[i]);
  return R3PrincipleAxes(centroid, array, weights, variances);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movq %r8, %r15
movq %rcx, %r13
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %rbx
movq %rsp, %rdi
callq 0x6f80c
testl %ebp, %ebp
jle 0x4db86
movl %ebp, %r14d
movq %rsp, %rbp
movl 0xc(%rsp), %edx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x6f8a2
addq $0x18, %r13
decq %r14
jne 0x4db6e
movq %rsp, %rdx
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rcx
movq 0x10(%rsp), %r8
callq 0x4c299
movq %rsp, %rdi
callq 0x6f876
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4dbb8
movq %rax, %rbx
movq %rsp, %rdi
callq 0x6f876
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3AverageDistance(gaps::R3Point const&, int, gaps::R3Point const*, double const*)
RNLength
R3AverageDistance(const R3Point& center, int npoints, const R3Point *points, const RNScalar *weights)
{
  RNArray<R3Point *> array;
  for (int i = 0; i < npoints; i++)
    array.Insert((R3Point *) &points[i]);
  return R3AverageDistance(center, array, weights);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
movq %rsp, %rdi
callq 0x6f80c
testl %ebp, %ebp
jle 0x4dc0e
movl %ebp, %r13d
movq %rsp, %r12
movl 0xc(%rsp), %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x6f8a2
addq $0x18, %r15
decq %r13
jne 0x4dbf6
movq %rsp, %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x4c65b
movsd %xmm0, 0x10(%rsp)
movq %rsp, %rdi
callq 0x6f876
movsd 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4dc41
movq %rax, %rbx
movq %rsp, %rdi
callq 0x6f876
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3NormalizationTransformation(int, gaps::R3Point const*, int, int, int)
R3Affine 
R3NormalizationTransformation(int npoints, const R3Point *points,  RNBoolean translate, RNBoolean rotate, int scale) 
{
  RNArray<R3Point *> array;
  for (int i = 0; i < npoints; i++)
    array.Insert((R3Point *) &points[i]);
  return R3NormalizationTransformation(array, translate, rotate, scale);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, 0x4(%rsp)
movl %r8d, %r14d
movl %ecx, %r15d
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6f80c
testl %r13d, %r13d
jle 0x4dca5
movl %r13d, %ebp
leaq 0x8(%rsp), %r13
movl 0x14(%rsp), %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x6f8a2
addq $0x18, %r12
decq %rbp
jne 0x4dc8d
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movl %r15d, %edx
movl %r14d, %ecx
movl 0x4(%rsp), %r8d
callq 0x4c713
leaq 0x8(%rsp), %rdi
callq 0x6f876
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4dcdb
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6f876
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3AlignError(int, gaps::R3Point const*, gaps::R3Point const*, gaps::R4Matrix const&, double const*)
RNScalar
R3AlignError(int npoints, const R3Point *points1, const R3Point *points2, const R4Matrix& matrix, const RNScalar *weights)
{
  RNArray<R3Point *> array1, array2;
  for (int i = 0; i < npoints; i++) {
    array1.Insert((R3Point *) &points1[i]);
    array2.Insert((R3Point *) &points2[i]);
  }
  return R3AlignError(array1, array2, matrix, weights);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, (%rsp)
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movl %edi, %ebp
leaq 0x18(%rsp), %rdi
callq 0x6f80c
leaq 0x8(%rsp), %rdi
callq 0x6f80c
testl %ebp, %ebp
jle 0x4dd5c
movl %ebp, %ebx
leaq 0x18(%rsp), %r13
leaq 0x8(%rsp), %rbp
movl 0x24(%rsp), %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x6f8a2
movl 0x14(%rsp), %edx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x6f8a2
addq $0x18, %r15
addq $0x18, %r12
decq %rbx
jne 0x4dd31
leaq 0x18(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movq %r14, %rdx
movq (%rsp), %rcx
callq 0x4cba0
movsd %xmm0, (%rsp)
leaq 0x8(%rsp), %rdi
callq 0x6f876
leaq 0x18(%rsp), %rdi
callq 0x6f876
movsd (%rsp), %xmm0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4dda6
movq %rax, %rbx
jmp 0x4ddb3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6f876
leaq 0x18(%rsp), %rdi
callq 0x6f876
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3AlignPoints(int, gaps::R3Point const*, gaps::R3Point const*, double const*, int, int, int)
R4Matrix
R3AlignPoints(int npoints, const R3Point *points1, const R3Point *points2, const RNScalar *weights, RNBoolean align_center, RNBoolean align_rotation, int align_scale)
{
  RNArray<R3Point *> array1, array2;
  for (int i = 0; i < npoints; i++) {
    array1.Insert((R3Point *) &points1[i]);
    array2.Insert((R3Point *) &points2[i]);
  }
  return R3AlignPoints(array1, array2, weights, align_center, align_rotation, align_scale);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, 0xc(%rsp)
movq %r8, 0x30(%rsp)
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
callq 0x6f80c
leaq 0x10(%rsp), %rdi
callq 0x6f80c
testl %ebp, %ebp
jle 0x4de38
movl %ebp, %r14d
leaq 0x20(%rsp), %r13
leaq 0x10(%rsp), %rbp
movl 0x2c(%rsp), %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x6f8a2
movl 0x1c(%rsp), %edx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x6f8a2
addq $0x18, %r15
addq $0x18, %r12
decq %r14
jne 0x4de0d
movl 0x78(%rsp), %eax
movl 0x70(%rsp), %r9d
movl %eax, (%rsp)
leaq 0x20(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movq 0x30(%rsp), %rcx
movl 0xc(%rsp), %r8d
callq 0x4ccd5
leaq 0x10(%rsp), %rdi
callq 0x6f876
leaq 0x20(%rsp), %rdi
callq 0x6f876
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4de8d
movq %rax, %rbx
jmp 0x4de9a
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x6f876
leaq 0x20(%rsp), %rdi
callq 0x6f876
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3EstimatePlaneWithPCA(int, gaps::R3Point const*, double const*)
R3Plane
R3EstimatePlaneWithPCA(int npoints, const R3Point *points, const RNScalar *weights)
{
  RNArray<R3Point *> array;
  for (int i = 0; i < npoints; i++)
    array.Insert((R3Point *) &points[i]);
  return R3EstimatePlaneWithPCA(array, weights);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6f80c
testl %ebp, %ebp
jle 0x4def3
movl %ebp, %r13d
leaq 0x8(%rsp), %r12
movl 0x14(%rsp), %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x6f8a2
addq $0x18, %r15
decq %r13
jne 0x4dedb
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x4d51f
leaq 0x8(%rsp), %rdi
callq 0x6f876
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4df21
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6f876
movq %rbx, %rdi
callq 0xe7e0
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Align.cpp
// Function: gaps::R3EstimatePlaneWithRansac(int, gaps::R3Point const*, double const*, double, int, double*, double*)
R3Plane
R3EstimatePlaneWithRansac(int npoints, const R3Point *points, const RNScalar *weights,
  RNScalar tolerance, int max_iterations, RNScalar *max_inlier_fraction, RNScalar *avg_inlier_fraction)
{
  RNArray<R3Point *> array;
  for (int i = 0; i < npoints; i++)
    array.Insert((R3Point *) &points[i]);
  return R3EstimatePlaneWithRansac(array, weights, tolerance, max_iterations, max_inlier_fraction, avg_inlier_fraction);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x20(%rsp)
movl %r8d, %ebp
movsd %xmm0, 0x18(%rsp)
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %r13d
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6f80c
testl %r13d, %r13d
jle 0x4df8d
movl %r13d, %r14d
leaq 0x8(%rsp), %r13
movl 0x14(%rsp), %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x6f8a2
addq $0x18, %r12
decq %r14
jne 0x4df75
movq 0x60(%rsp), %r9
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movsd 0x18(%rsp), %xmm0
movl %ebp, %ecx
movq 0x20(%rsp), %r8
callq 0x4d5c2
leaq 0x8(%rsp), %rdi
callq 0x6f876
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4dfcd
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6f876
movq %rbx, %rdi
callq 0xe7e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3CatmullRomSpline.cpp
// Function: gaps::R3CatmullRomSpline::VertexDerivative(int) const
R3Vector R3CatmullRomSpline::
VertexDerivative(int i) const
{
  // Return derivative of curve at ith vertex
  if (NVertices() < 2) return R3zero_vector;
  if (i == NVertices()-1) return Order() * (VertexPosition(NVertices()-1) - PhantomVertexPosition(NVertices()-2, 1));
  else return Order() * (PhantomVertexPosition(i, 0) - VertexPosition(i));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
movl 0x20(%rsi), %eax
cmpl $0x1, %eax
jg 0x4e101
leaq 0x5a5ec(%rip), %rsi     # 0xa86e0
movq %rbx, %rdi
callq 0x3cfd6
jmp 0x4e1bc
movl %edx, %ebp
movq %rsi, %r14
decl %eax
cmpl %edx, %eax
jne 0x4e166
movl %ebp, %eax
leaq (%rax,%rax,2), %rsi
shlq $0x3, %rsi
addq 0x8(%r14), %rsi
leaq 0x20(%rsp), %r15
movq %r15, %rdi
callq 0x3c542
movl 0x20(%r14), %edx
addl $-0x2, %edx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x4e1cc
leaq 0x38(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x3c78e
movsd 0x5407a(%rip), %xmm0    # 0xa21d8
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x4e1b7
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x4e1cc
movslq %ebp, %rax
leaq (%rax,%rax,2), %rsi
shlq $0x3, %rsi
addq 0x8(%r14), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x3c542
leaq 0x38(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3c78e
movsd 0x54027(%rip), %xmm0    # 0xa21d8
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3d962
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3CatmullRomSpline.cpp
// Function: gaps::R3CatmullRomSpline::PhantomVertexPosition(int, int) const
R3Point R3CatmullRomSpline::
PhantomVertexPosition(int i, int j) const
{
  // Return position of phantom Bezier curve control point within ith segment
  // j=0 means first phantom point, and j=1 means second phantom point
  if ((i == 0) && (j == 0)) {
    // Return first phantom point on first curve segment
    return tao * (VertexPosition(0) + PhantomVertexPosition(0, 1));
  }
  else if ((i == NVertices()-1) && (j == 1)) {
    // Return last phantom point on last curve segment
    return tao * (VertexPosition(NVertices()-1) + PhantomVertexPosition(NVertices()-1, 0));
  }
  else {
    // Return phantom point near vertex in middle of spline
    int vertex_index = (j == 0) ? i : i+1;
    R3Point p = VertexPosition(vertex_index);
    R3Vector v = VertexPosition(vertex_index+1) - VertexPosition(vertex_index-1);
    if (j == 0) return p + tao * v;
    else return p - tao * v;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl %ecx, %eax
orl %edx, %eax
je 0x4e23a
movl %ecx, %ebp
cmpl $0x1, %ecx
jne 0x4e297
movl 0x20(%r14), %eax
decl %eax
cmpl %edx, %eax
jne 0x4e297
movsd 0x60(%r14), %xmm0
movsd %xmm0, 0x8(%rsp)
movslq %edx, %rax
leaq (%rax,%rax,2), %rsi
shlq $0x3, %rsi
addq 0x8(%r14), %rsi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x3c542
movl 0x20(%r14), %edx
decl %edx
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
jmp 0x4e269
movsd 0x60(%r14), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x8(%r14), %rsi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x3c542
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x4e1cc
leaq 0x40(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x3cf30
movq %rbx, %rdi
movq %r14, %rsi
movsd 0x8(%rsp), %xmm0
callq 0x3cf76
jmp 0x4e353
xorl %eax, %eax
testl %ebp, %ebp
setne %al
addl %edx, %eax
cltq
shlq $0x3, %rax
leaq (%rax,%rax,2), %r12
movq 0x8(%r14), %rsi
addq %r12, %rsi
leaq 0x40(%rsp), %rdi
callq 0x3c542
movq 0x8(%r14), %rax
leaq (%rax,%r12), %rsi
addq $0x18, %rsi
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x3c542
movq 0x8(%r14), %rax
leaq (%rax,%r12), %rsi
addq $-0x18, %rsi
leaq 0x58(%rsp), %r12
movq %r12, %rdi
callq 0x3c542
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x3c78e
testl %ebp, %ebp
je 0x4e32b
movsd 0x60(%r14), %xmm0
leaq 0x10(%rsp), %r14
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x3d962
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x3cf53
jmp 0x4e353
movsd 0x60(%r14), %xmm0
leaq 0x10(%rsp), %r14
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x3d962
leaq 0x40(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x3c877
movq %rbx, %rax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/pkgs/R3Shapes/R3CatmullRomSpline.cpp
// Function: gaps::R3CatmullRomSpline::BlendingWeight(double, int) const
RNScalar R3CatmullRomSpline::
BlendingWeight(RNScalar t, int k) const
{
  // In interval i through i+1, 
  // k=-1: V(i-1)
  // k=0: V(i)
  // k=1: V(i+1)
  // k=2: V(i+2)
  // t \in [0,1]

  // Compute powers of t
  double t2 = t * t;
  double t3 = t * t2;

  // Compute blending function
  switch (k) {
  case -1: return -tao*t + 2*tao*t2 -tao*t3;
  case 0: return 1 + (tao-3)*t2 + (2-tao)*t3;
  case 1: return tao*t + (3-2*tao)*t2 + (tao-2)*t3;
  case 2: return -tao*t2 + tao*t3;
  }

  // All other vertex_positions
  return 0;
}

// Assembly:
incl %esi
cmpl $0x3, %esi
ja 0x4e7ac
movapd %xmm0, %xmm2
movapd %xmm0, %xmm1
mulsd %xmm2, %xmm1
movapd %xmm1, %xmm0
mulsd %xmm2, %xmm0
leaq 0x5a926(%rip), %rax     # 0xa9028
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movsd 0x60(%rdi), %xmm3
mulsd %xmm3, %xmm2
mulsd %xmm3, %xmm0
addsd %xmm3, %xmm3
mulsd %xmm3, %xmm1
subsd %xmm2, %xmm1
subsd %xmm0, %xmm1
jmp 0x4e7a7
movsd 0x60(%rdi), %xmm3
movapd %xmm3, %xmm4
addsd %xmm3, %xmm4
movsd 0x53a99(%rip), %xmm5    # 0xa21d8
subsd %xmm4, %xmm5
mulsd %xmm5, %xmm1
mulsd %xmm3, %xmm2
addsd 0x53aad(%rip), %xmm3    # 0xa2200
addsd %xmm1, %xmm2
mulsd %xmm0, %xmm3
addsd %xmm2, %xmm3
movapd %xmm3, %xmm0
retq
movsd 0x60(%rdi), %xmm2
mulsd %xmm2, %xmm0
mulsd %xmm2, %xmm1
subsd %xmm1, %xmm0
retq
movsd 0x60(%rdi), %xmm2
movsd 0x5a895(%rip), %xmm3    # 0xa9018
addsd %xmm2, %xmm3
mulsd %xmm1, %xmm3
addsd 0x538a5(%rip), %xmm3    # 0xa2038
movsd 0x53a6d(%rip), %xmm1    # 0xa2208
subsd %xmm2, %xmm1
mulsd %xmm0, %xmm1
addsd %xmm3, %xmm1
movapd %xmm1, %xmm0
retq
xorps %xmm0, %xmm0
retq