LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3SignedDistance(gaps::R3Plane const&, gaps::R3Sphere const&)
RNLength R3SignedDistance(const R3Plane& plane, const R3Sphere& sphere)
{
    RNLength d = R3SignedDistance(plane, sphere.Center());
    if (d < 0.0) {
	d += sphere.Radius();
	if (d > 0.0) return 0.0;
    }
    else if (d > 0.0) {
	d -= sphere.Radius();
	if (d < 0.0) return 0.0;
    }
    return d;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
callq 0x42710
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x86f90
movsd %xmm0, 0x8(%rsp)
xorps %xmm0, %xmm0
ucomisd 0x8(%rsp), %xmm0
jbe 0x8a860
movq 0x10(%rsp), %rdi
callq 0x39f50
addsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8a85e
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a8b2
jmp 0x8a8a6
movsd 0x8(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8a8a4
movq 0x10(%rsp), %rdi
callq 0x39f50
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
xorps %xmm0, %xmm0
ucomisd 0x8(%rsp), %xmm0
jbe 0x8a8a2
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a8b2
jmp 0x8a8a4
jmp 0x8a8a6
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
addq $0x28, %rsp
retq
nopl (%rax)
// File: 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:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movsd 0xa93ba(%rip), %xmm0    # 0x133cc0
movsd %xmm0, 0x28(%rsp)
movsd 0xa870c(%rip), %xmm0    # 0x133020
movsd %xmm0, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
cmpl $0x3, 0x1c(%rsp)
jge 0x8a9cf
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0x81eb0
movq %rax, %rdi
callq 0x78950
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x86f90
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rsp), %xmm1
movsd 0x20(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x8a97e
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x10(%rsp), %xmm0
ucomisd 0x28(%rsp), %xmm0
jbe 0x8a998
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
xorps %xmm0, %xmm0
ucomisd 0x20(%rsp), %xmm0
jbe 0x8a9bd
movsd 0x28(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8a9bd
xorps %xmm0, %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x8aa0e
jmp 0x8a9bf
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x8a922
movsd 0x20(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8a9ec
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x8aa0e
xorps %xmm0, %xmm0
ucomisd 0x28(%rsp), %xmm0
jbe 0x8aa05
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x8aa0e
xorps %xmm0, %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
addq $0x48, %rsp
retq
nopl (%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Halfspace const&, gaps::R3Box const&)
RNLength R3Distance(const R3Halfspace& halfspace, const R3Box& box)
{
    // Return distance between halfspace and box
    if (box.IsEmpty()) return RN_INFINITY;
    RNOctant octant = -(halfspace.Normal()).Octant();
    R3Point corner = box.Corner(~octant & 0x7);
    RNScalar d = R3SignedDistance(halfspace.Plane(), corner);
    if (d < 0) return 0.0;
    return d;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq 0x30(%rsp), %rdi
callq 0x44d80
cmpl $0x0, %eax
je 0x8abd0
leaq 0xed92c(%rip), %rax     # 0x1784f0
movsd (%rax), %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x8ac44
movq 0x38(%rsp), %rdi
callq 0x81c10
movq %rax, %rdi
callq 0x701d0
movl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movl %eax, 0x2c(%rsp)
movq 0x30(%rsp), %rsi
movl 0x2c(%rsp), %edx
xorl $-0x1, %edx
andl $0x7, %edx
leaq 0x10(%rsp), %rdi
callq 0x42e40
movq 0x38(%rsp), %rdi
callq 0x78920
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x86f90
movsd %xmm0, 0x8(%rsp)
xorps %xmm0, %xmm0
ucomisd 0x8(%rsp), %xmm0
jbe 0x8ac38
xorps %xmm0, %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x8ac44
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
addq $0x48, %rsp
retq
nop
// File: 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:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
leaq 0xed88b(%rip), %rax     # 0x1784f0
movsd (%rax), %xmm0
movsd %xmm0, 0x28(%rsp)
movl $0x0, 0x24(%rsp)
cmpl $0x8, 0x24(%rsp)
jge 0x8aced
movq 0x30(%rsp), %rsi
movl 0x24(%rsp), %edx
leaq 0x8(%rsp), %rdi
callq 0x39cf0
movq 0x38(%rsp), %rdi
callq 0x78920
movq %rax, %rdi
leaq 0x8(%rsp), %rsi
callq 0x86f90
movsd %xmm0, (%rsp)
xorps %xmm0, %xmm0
ucomisd (%rsp), %xmm0
jb 0x8acc2
xorps %xmm0, %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x8acf9
movsd (%rsp), %xmm1
movsd 0x28(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x8acde
movsd (%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
jmp 0x8ace0
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x8ac77
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3OrientedBox const&, gaps::R3Sphere const&)
RNLength R3Distance(const R3OrientedBox& box, const R3Sphere& sphere)
{
    // Check if box is empty
    if (box.IsEmpty()) return FLT_MAX;

    // Transform sphere into std coordinate system
    R3Sphere transformed_sphere = sphere;
    R3Affine cs_to_std_xform(box.CoordSystem().InverseMatrix());
    transformed_sphere.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_sphere, axis_aligned_box);
}

// Assembly:
subq $0x278, %rsp            # imm = 0x278
movq %rdi, 0x268(%rsp)
movq %rsi, 0x260(%rsp)
movq 0x268(%rsp), %rdi
callq 0x3c180
cmpl $0x0, %eax
je 0x8b35f
movsd 0xa7ccf(%rip), %xmm0    # 0x133020
movsd %xmm0, 0x270(%rsp)
jmp 0x8b58c
movq 0x260(%rsp), %rsi
leaq 0x238(%rsp), %rdi
callq 0x41ff0
movq 0x268(%rsp), %rdi
callq 0x81bb0
movq %rax, 0x58(%rsp)
jmp 0x8b388
movq 0x58(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x4e590
jmp 0x8b39c
leaq 0x128(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
xorl %edx, %edx
callq 0x4d390
jmp 0x8b3b5
leaq 0x238(%rsp), %rdi
leaq 0x128(%rsp), %rsi
callq 0x42680
jmp 0x8b3cc
movq 0x268(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x50(%rsp)
jmp 0x8b3e3
movsd 0x50(%rsp), %xmm0
movaps 0xa7c40(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
movq 0x268(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x48(%rsp)
jmp 0x8b414
movsd 0x48(%rsp), %xmm0
movaps 0xa7c0f(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x30(%rsp)
movq 0x268(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x38(%rsp)
jmp 0x8b445
movsd 0x38(%rsp), %xmm0
movaps 0xa7bde(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x268(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x28(%rsp)
jmp 0x8b473
movq 0x268(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x18(%rsp)
jmp 0x8b48d
movq 0x268(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x10(%rsp)
jmp 0x8b4a7
movsd 0x10(%rsp), %xmm5
movsd 0x18(%rsp), %xmm4
movsd 0x28(%rsp), %xmm3
movsd 0x20(%rsp), %xmm2
movsd 0x30(%rsp), %xmm1
movsd 0x40(%rsp), %xmm0
leaq 0x60(%rsp), %rdi
callq 0x429c0
jmp 0x8b4d7
leaq 0x238(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x4cd20
movsd %xmm0, 0x8(%rsp)
jmp 0x8b4f1
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x270(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x36a80
leaq 0x128(%rsp), %rdi
callq 0x4d430
leaq 0x238(%rsp), %rdi
callq 0x38e60
jmp 0x8b58c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
jmp 0x8b57d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
jmp 0x8b570
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa0(%rsp)
movl %eax, 0x9c(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x36a80
leaq 0x128(%rsp), %rdi
callq 0x4d430
leaq 0x238(%rsp), %rdi
callq 0x38e60
jmp 0x8b59d
movsd 0x270(%rsp), %xmm0
addq $0x278, %rsp            # imm = 0x278
retq
movq 0xa0(%rsp), %rdi
callq 0xf890
nopw (%rax,%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Parall.cpp
// Function: gaps::R3Parallel(gaps::R3Vector const&, gaps::R3Vector const&)
RNBoolean R3Parallel(const R3Vector& vector1, const R3Vector& vector2)
{
    // Return whether two vectors are coincident (or anti-coincident)
    if ((RNIsEqual(vector1.X(), vector2.X())) &&
        (RNIsEqual(vector1.Y(), vector2.Y())) && 
        (RNIsEqual(vector1.Z(), vector2.Z()))) return TRUE;
    if ((RNIsEqual(vector1.X(), -vector2.X())) &&
        (RNIsEqual(vector1.Y(), -vector2.Y())) && 
        (RNIsEqual(vector1.Z(), -vector2.Z()))) return TRUE;
    return FALSE;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq 0x38(%rsp), %rdi
callq 0x38c20
movsd %xmm0, 0x28(%rsp)
movq 0x30(%rsp), %rdi
callq 0x38c20
movaps %xmm0, %xmm1
movsd 0x28(%rsp), %xmm0
leaq 0xecce8(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8b883
movq 0x38(%rsp), %rdi
callq 0x38c30
movsd %xmm0, 0x20(%rsp)
movq 0x30(%rsp), %rdi
callq 0x38c30
movaps %xmm0, %xmm1
movsd 0x20(%rsp), %xmm0
leaq 0xeccb0(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8b883
movq 0x38(%rsp), %rdi
callq 0x38c40
movsd %xmm0, 0x18(%rsp)
movq 0x30(%rsp), %rdi
callq 0x38c40
movaps %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
leaq 0xecc78(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8b883
movl $0x1, 0x44(%rsp)
jmp 0x8b984
movq 0x38(%rsp), %rdi
callq 0x38c20
movsd %xmm0, 0x10(%rsp)
movq 0x30(%rsp), %rdi
callq 0x38c20
movaps %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
leaq 0xecc1c(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8b97c
movq 0x38(%rsp), %rdi
callq 0x38c30
movsd %xmm0, 0x8(%rsp)
movq 0x30(%rsp), %rdi
callq 0x38c30
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
leaq 0xecbc9(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8b97c
movq 0x38(%rsp), %rdi
callq 0x38c40
movsd %xmm0, (%rsp)
movq 0x30(%rsp), %rdi
callq 0x38c40
movaps %xmm0, %xmm1
movsd (%rsp), %xmm0
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
leaq 0xecb7c(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8b97c
movl $0x1, 0x44(%rsp)
jmp 0x8b984
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopl (%rax)
// File: 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:
subq $0x88, %rsp
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movsd %xmm0, 0x68(%rsp)
movsd %xmm1, 0x60(%rsp)
movsd %xmm2, 0x58(%rsp)
movsd 0x58(%rsp), %xmm0
movsd 0x68(%rsp), %xmm1
leaq 0xec3c5(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8c13d
movq 0x8(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0x6eb90
jmp 0x8c217
movsd 0x58(%rsp), %xmm0
movsd 0x60(%rsp), %xmm1
leaq 0xec390(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8c172
movq 0x8(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x6eb90
jmp 0x8c217
movsd 0x68(%rsp), %xmm0
subsd 0x60(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movsd 0x50(%rsp), %xmm0
leaq 0xec34f(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36b80
cmpl $0x0, %eax
je 0x8c1b0
movq 0x8(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0x6eb90
jmp 0x8c217
movsd 0x58(%rsp), %xmm0
subsd 0x68(%rsp), %xmm0
movsd 0x60(%rsp), %xmm1
subsd 0x68(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x6eeb0
movq 0x78(%rsp), %rax
movq %rax, (%rsp)
movsd 0x48(%rsp), %xmm0
leaq 0x18(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x13800
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x6f110
movq 0x10(%rsp), %rax
addq $0x88, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rdi
callq 0x6fe90
movsd %xmm0, 0x18(%rsp)
movsd 0x18(%rsp), %xmm0
leaq 0xec285(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36b80
cmpl $0x0, %eax
je 0x8c277
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
jmp 0x8c325
movq 0x20(%rsp), %rdi
callq 0x6fe90
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
leaq 0xec24c(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36b80
cmpl $0x0, %eax
je 0x8c2ad
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
jmp 0x8c325
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x702c0
movsd 0x18(%rsp), %xmm1
mulsd 0x10(%rsp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
movsd 0xa6d28(%rip), %xmm1    # 0x133008
ucomisd %xmm1, %xmm0
jb 0x8c2f1
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
jmp 0x8c325
movsd 0xa6d1f(%rip), %xmm0    # 0x133018
ucomisd 0x8(%rsp), %xmm0
jb 0x8c314
leaq 0xaa5d0(%rip), %rax     # 0x1368d8
movsd (%rax), %xmm0
movsd %xmm0, 0x30(%rsp)
jmp 0x8c325
movsd 0x8(%rsp), %xmm0
callq 0xf470
movsd %xmm0, 0x30(%rsp)
movsd 0x30(%rsp), %xmm0
addq $0x38, %rsp
retq
// File: 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:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x80e10
cmpl $0x0, %eax
jne 0x8c483
movl $0x0, 0x44(%rsp)
jmp 0x8c621
movq 0x38(%rsp), %rdi
callq 0x37830
movsd %xmm0, 0x28(%rsp)
movq 0x30(%rsp), %rdi
callq 0x44f80
movaps %xmm0, %xmm1
movsd 0x28(%rsp), %xmm0
leaq 0xec033(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8c4c8
movl $0x1, 0x44(%rsp)
jmp 0x8c621
movq 0x38(%rsp), %rdi
callq 0x44f80
movsd %xmm0, 0x20(%rsp)
movq 0x30(%rsp), %rdi
callq 0x37830
movaps %xmm0, %xmm1
movsd 0x20(%rsp), %xmm0
leaq 0xebfee(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8c50d
movl $0x1, 0x44(%rsp)
jmp 0x8c621
movq 0x38(%rsp), %rdi
callq 0x37880
movsd %xmm0, 0x18(%rsp)
movq 0x30(%rsp), %rdi
callq 0x44fa0
movaps %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
leaq 0xebfa9(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8c552
movl $0x1, 0x44(%rsp)
jmp 0x8c621
movq 0x38(%rsp), %rdi
callq 0x44fa0
movsd %xmm0, 0x10(%rsp)
movq 0x30(%rsp), %rdi
callq 0x37880
movaps %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
leaq 0xebf64(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8c597
movl $0x1, 0x44(%rsp)
jmp 0x8c621
movq 0x38(%rsp), %rdi
callq 0x378d0
movsd %xmm0, 0x8(%rsp)
movq 0x30(%rsp), %rdi
callq 0x44fc0
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
leaq 0xebf1f(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8c5d9
movl $0x1, 0x44(%rsp)
jmp 0x8c621
movq 0x38(%rsp), %rdi
callq 0x44fc0
movsd %xmm0, (%rsp)
movq 0x30(%rsp), %rdi
callq 0x378d0
movaps %xmm0, %xmm1
movsd (%rsp), %xmm0
leaq 0xebedf(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x37170
cmpl $0x0, %eax
je 0x8c619
movl $0x1, 0x44(%rsp)
jmp 0x8c621
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: 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:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movl $0x0, 0x24(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rdi
callq 0x39250
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x86f90
movsd %xmm0, 0x18(%rsp)
movsd 0x18(%rsp), %xmm0
leaq 0xebe66(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x8c693
movl 0x24(%rsp), %eax
orl $0x1, %eax
movl %eax, 0x24(%rsp)
movsd 0x18(%rsp), %xmm0
leaq 0xebe40(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x8c6b9
movl 0x24(%rsp), %eax
orl $0x2, %eax
movl %eax, 0x24(%rsp)
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq 0x28(%rsp), %rdi
callq 0x39260
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x86f90
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
leaq 0xebdf5(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x8c704
movl 0x24(%rsp), %eax
orl $0x1, %eax
movl %eax, 0x24(%rsp)
movsd 0x10(%rsp), %xmm0
leaq 0xebdcf(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x8c72a
movl 0x24(%rsp), %eax
orl $0x2, %eax
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
movl $0x0, 0x10(%rsp)
cmpl $0x3, 0x10(%rsp)
jge 0x8cc49
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %rdi
movl 0x10(%rsp), %esi
callq 0x81eb0
movq %rax, %rdi
callq 0x78950
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x86f90
movsd %xmm0, 0x8(%rsp)
movl 0x14(%rsp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x8cbfc
movsd 0x8(%rsp), %xmm0
leaq 0xeb8fd(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x8cbfc
movl 0x14(%rsp), %eax
orl $0x1, %eax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x8cc2e
movsd 0x8(%rsp), %xmm0
leaq 0xeb8cb(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x8cc2e
movl 0x14(%rsp), %eax
orl $0x2, %eax
movl %eax, 0x14(%rsp)
cmpl $0x3, 0x14(%rsp)
jne 0x8cc37
jmp 0x8cc49
jmp 0x8cc39
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x8cb8e
movl 0x14(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: 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:
subq $0x48, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movb $0x0, 0x37(%rsp)
leaq 0xebb61(%rip), %rsi     # 0x1787e8
callq 0x428c0
movl $0x0, 0x30(%rsp)
movl 0x30(%rsp), %eax
movl %eax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
callq 0x13600
movl %eax, 0xc(%rsp)
jmp 0x8ccac
movl 0x8(%rsp), %eax
movl 0xc(%rsp), %ecx
cmpl %ecx, %eax
jge 0x8cd05
movq 0x38(%rsp), %rdi
movl 0x30(%rsp), %esi
callq 0x6d3e0
movq %rax, (%rsp)
jmp 0x8cccc
movq (%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x444b0
jmp 0x8ccdc
jmp 0x8ccde
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x8cc94
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
callq 0x36a80
jmp 0x8cd25
movb $0x1, 0x37(%rsp)
testb $0x1, 0x37(%rsp)
jne 0x8cd1b
movq 0x10(%rsp), %rdi
callq 0x36a80
movq 0x18(%rsp), %rax
addq $0x48, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0xf890
nop
// File: 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:
subq $0x78, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
xorps %xmm2, %xmm2
movaps %xmm2, %xmm0
movaps %xmm2, %xmm1
callq 0x6eb50
xorps %xmm0, %xmm0
movsd %xmm0, 0x58(%rsp)
movl $0x0, 0x54(%rsp)
movl 0x54(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0x68(%rsp), %rdi
callq 0x13600
movl %eax, %ecx
movl 0x14(%rsp), %eax
cmpl %ecx, %eax
jge 0x8ce23
cmpq $0x0, 0x60(%rsp)
je 0x8cdae
movq 0x60(%rsp), %rax
movslq 0x54(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x8(%rsp)
jmp 0x8cdbe
movsd 0xa6252(%rip), %xmm0    # 0x133008
movsd %xmm0, 0x8(%rsp)
jmp 0x8cdbe
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0x68(%rsp), %rdi
movl 0x54(%rsp), %esi
callq 0x6d3e0
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rsi
movsd 0x48(%rsp), %xmm0
leaq 0x28(%rsp), %rdi
callq 0x6fb80
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x6f820
movsd 0x48(%rsp), %xmm0
addsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
movl 0x54(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x54(%rsp)
jmp 0x8cd6f
movsd 0x58(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8ce42
movq 0x18(%rsp), %rdi
movsd 0x58(%rsp), %xmm0
callq 0x6f960
movq 0x20(%rsp), %rax
addq $0x78, %rsp
retq
nopl (%rax)
// File: 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:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x38(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0x48(%rsp), %rdi
callq 0x13600
movl %eax, %ecx
movl 0x14(%rsp), %eax
cmpl %ecx, %eax
jge 0x8d7f3
cmpq $0x0, 0x40(%rsp)
je 0x8d76c
movq 0x40(%rsp), %rax
movslq 0x2c(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x8(%rsp)
jmp 0x8d77c
movsd 0xa5894(%rip), %xmm0    # 0x133008
movsd %xmm0, 0x8(%rsp)
jmp 0x8d77c
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x48(%rsp), %rdi
movl 0x2c(%rsp), %esi
callq 0x6d3e0
movq %rax, 0x18(%rsp)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rsp)
movq 0x18(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x86c40
movaps %xmm0, %xmm2
movsd (%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
movsd 0x20(%rsp), %xmm0
addsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x8d72d
movsd 0x30(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8d818
movsd 0x30(%rsp), %xmm1
movsd 0x38(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
movsd 0x38(%rsp), %xmm0
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0xb8, %rsp
movq %rdi, 0xa8(%rsp)
movq %rsi, 0xa0(%rsp)
movq %rdx, 0x98(%rsp)
movq %rcx, 0x90(%rsp)
movq 0xa8(%rsp), %rdi
callq 0x13600
movl %eax, 0x8c(%rsp)
movq 0xa0(%rsp), %rdi
callq 0x13600
cmpl 0x8c(%rsp), %eax
jge 0x8df25
movq 0xa0(%rsp), %rdi
callq 0x13600
movl %eax, 0x8c(%rsp)
cmpl $0x0, 0x8c(%rsp)
jne 0x8df45
movsd 0xa50e1(%rip), %xmm0    # 0x133018
movsd %xmm0, 0xb0(%rsp)
jmp 0x8e0c1
xorps %xmm0, %xmm0
movsd %xmm0, 0x80(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x78(%rsp)
movl $0x0, 0x74(%rsp)
movl 0x74(%rsp), %eax
cmpl 0x8c(%rsp), %eax
jge 0x8e080
cmpq $0x0, 0x90(%rsp)
je 0x8df98
movq 0x90(%rsp), %rax
movslq 0x74(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x10(%rsp)
jmp 0x8dfa8
movsd 0xa5068(%rip), %xmm0    # 0x133008
movsd %xmm0, 0x10(%rsp)
jmp 0x8dfa8
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x68(%rsp)
movq 0xa8(%rsp), %rdi
movl 0x74(%rsp), %esi
callq 0x6d3e0
movq %rax, 0x60(%rsp)
movq 0xa0(%rsp), %rdi
movl 0x74(%rsp), %esi
callq 0x6d3e0
movq %rax, %rsi
leaq 0x48(%rsp), %rdi
callq 0x6eb90
movq 0x98(%rsp), %rsi
leaq 0x30(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x55250
leaq 0x48(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x6f1e0
movq 0x60(%rsp), %rsi
leaq 0x18(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x6eeb0
movsd 0x68(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x18(%rsp), %rsi
movq %rsi, %rdi
callq 0x702c0
movaps %xmm0, %xmm2
movsd 0x8(%rsp), %xmm0
movsd 0x80(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x80(%rsp)
movsd 0x68(%rsp), %xmm0
addsd 0x78(%rsp), %xmm0
movsd %xmm0, 0x78(%rsp)
movl 0x74(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x74(%rsp)
jmp 0x8df62
movsd 0x78(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x8e0a4
jp 0x8e0a4
movsd 0xa4f7f(%rip), %xmm0    # 0x133018
movsd %xmm0, 0xb0(%rsp)
jmp 0x8e0c1
movsd 0x80(%rsp), %xmm0
divsd 0x78(%rsp), %xmm0
callq 0xf390
movsd %xmm0, 0xb0(%rsp)
movsd 0xb0(%rsp), %xmm0
addq $0xb8, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0xa8, %rsp
movq %rdi, (%rsp)
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq %rdx, 0x90(%rsp)
movq 0x98(%rsp), %rsi
leaq 0x58(%rsp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0x8cd30
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rcx
leaq 0x70(%rsp), %r8
leaq 0x10(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x8ce50
movsd 0x78(%rsp), %xmm0
leaq 0xe90ae(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36b80
cmpl $0x0, %eax
je 0x8f452
movq (%rsp), %rdi
leaq 0x4e9c95(%rip), %rsi    # 0x5790e0
callq 0x6c140
jmp 0x8f472
leaq 0x10(%rsp), %rdi
movl $0x2, %esi
callq 0x39fb0
movq (%rsp), %rdi
movq %rax, %rdx
leaq 0x58(%rsp), %rsi
callq 0x6c260
movq 0x8(%rsp), %rax
addq $0xa8, %rsp
retq
nop
// File: 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:
subq $0x58, %rsp
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0x50(%rsp)
movl %esi, 0x4c(%rsp)
movq %rdx, 0x40(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x90640
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jge 0x8fe62
movq 0x40(%rsp), %rax
movslq 0x2c(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x30(%rsp), %rdi
callq 0x90650
jmp 0x8fe39
jmp 0x8fe3b
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x8fe11
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x906e0
jmp 0x8fe87
movq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x8cc60
jmp 0x8fe73
leaq 0x30(%rsp), %rdi
callq 0x906e0
movq 0x10(%rsp), %rax
addq $0x58, %rsp
retq
movq 0x20(%rsp), %rdi
callq 0xf890
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x58, %rsp
movq %rdi, (%rsp)
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0x50(%rsp)
movl %esi, 0x4c(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x90640
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jge 0x8ff26
movq 0x40(%rsp), %rax
movslq 0x24(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x28(%rsp), %rdi
callq 0x90650
jmp 0x8fefd
jmp 0x8feff
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x8fed5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x906e0
jmp 0x8ff4f
movq (%rsp), %rdi
movq 0x38(%rsp), %rdx
leaq 0x28(%rsp), %rsi
callq 0x8cd30
jmp 0x8ff3b
leaq 0x28(%rsp), %rdi
callq 0x906e0
movq 0x8(%rsp), %rax
addq $0x58, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0xf890
nopl (%rax)
// File: 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:
subq $0x68, %rsp
movq %rdi, (%rsp)
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x38(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x90640
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x54(%rsp), %eax
jge 0x8fff0
movq 0x48(%rsp), %rax
movslq 0x24(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x28(%rsp), %rdi
callq 0x90650
jmp 0x8ffc7
jmp 0x8ffc9
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x8ff9f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x906e0
jmp 0x90023
movq (%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x40(%rsp), %rcx
movq 0x38(%rsp), %r8
leaq 0x28(%rsp), %rdx
callq 0x8ce50
jmp 0x9000f
leaq 0x28(%rsp), %rdi
callq 0x906e0
movq 0x8(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0xf890
nopl (%rax)
// File: 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:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movl %esi, 0x4c(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x90640
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jge 0x900aa
movq 0x40(%rsp), %rax
movslq 0x24(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x28(%rsp), %rdi
callq 0x90650
jmp 0x90081
jmp 0x90083
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x90059
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x906e0
jmp 0x900db
movq 0x50(%rsp), %rdi
movq 0x38(%rsp), %rdx
leaq 0x28(%rsp), %rsi
callq 0x8d700
movsd %xmm0, 0x8(%rsp)
jmp 0x900c6
leaq 0x28(%rsp), %rdi
callq 0x906e0
movsd 0x8(%rsp), %xmm0
addq $0x58, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0xf890
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x68, %rsp
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq %rdi, 0x60(%rsp)
movl %esi, 0x5c(%rsp)
movq %rdx, 0x50(%rsp)
movl %ecx, 0x4c(%rsp)
movl %r8d, 0x48(%rsp)
movl %r9d, 0x44(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x90640
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
cmpl 0x5c(%rsp), %eax
jge 0x90180
movq 0x50(%rsp), %rax
movslq 0x2c(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x30(%rsp), %rdi
callq 0x90650
jmp 0x90157
jmp 0x90159
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x9012f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x906e0
jmp 0x901b2
movq 0x8(%rsp), %rdi
movl 0x4c(%rsp), %edx
movl 0x48(%rsp), %ecx
movl 0x44(%rsp), %r8d
leaq 0x30(%rsp), %rsi
callq 0x8d830
jmp 0x9019e
leaq 0x30(%rsp), %rdi
callq 0x906e0
movq 0x10(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x20(%rsp), %rdi
callq 0xf890
nopl (%rax)
// File: 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:
subq $0x68, %rsp
movl %edi, 0x64(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x90640
leaq 0x20(%rsp), %rdi
callq 0x90640
jmp 0x901f2
movl $0x0, 0x10(%rsp)
movl 0x10(%rsp), %eax
cmpl 0x64(%rsp), %eax
jge 0x90279
movq 0x58(%rsp), %rax
movslq 0x10(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x30(%rsp), %rdi
callq 0x90650
jmp 0x90222
movq 0x50(%rsp), %rax
movslq 0x10(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x20(%rsp), %rdi
callq 0x90650
jmp 0x90240
jmp 0x90242
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x901fa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0x902b9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x906e0
jmp 0x902b9
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rcx
leaq 0x30(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x8dec0
movsd %xmm0, 0x8(%rsp)
jmp 0x9029a
leaq 0x20(%rsp), %rdi
callq 0x906e0
leaq 0x30(%rsp), %rdi
callq 0x906e0
movsd 0x8(%rsp), %xmm0
addq $0x68, %rsp
retq
leaq 0x30(%rsp), %rdi
callq 0x906e0
movq 0x18(%rsp), %rdi
callq 0xf890
nopl (%rax)
// File: 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:
subq $0x78, %rsp
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movl 0x88(%rsp), %eax
movl 0x80(%rsp), %eax
movq %rdi, 0x70(%rsp)
movl %esi, 0x6c(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movl %r9d, 0x4c(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x90640
leaq 0x28(%rsp), %rdi
callq 0x90640
jmp 0x90322
movl $0x0, 0x18(%rsp)
movl 0x18(%rsp), %eax
cmpl 0x6c(%rsp), %eax
jge 0x903a9
movq 0x60(%rsp), %rax
movslq 0x18(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x38(%rsp), %rdi
callq 0x90650
jmp 0x90352
movq 0x58(%rsp), %rax
movslq 0x18(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x28(%rsp), %rdi
callq 0x90650
jmp 0x90370
jmp 0x90372
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0x9032a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
jmp 0x903fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x906e0
jmp 0x903fb
movq 0x8(%rsp), %rdi
movq 0x50(%rsp), %rcx
movl 0x4c(%rsp), %r8d
movl 0x80(%rsp), %r9d
movl 0x88(%rsp), %edx
movq %rsp, %rax
movl %edx, (%rax)
leaq 0x38(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x8e0e0
jmp 0x903dd
leaq 0x28(%rsp), %rdi
callq 0x906e0
leaq 0x38(%rsp), %rdi
callq 0x906e0
movq 0x10(%rsp), %rax
addq $0x78, %rsp
retq
leaq 0x38(%rsp), %rdi
callq 0x906e0
movq 0x20(%rsp), %rdi
callq 0xf890
nop
// File: 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:
subq $0x58, %rsp
movq %rdi, (%rsp)
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0x50(%rsp)
movl %esi, 0x4c(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x90640
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jge 0x90496
movq 0x40(%rsp), %rax
movslq 0x24(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x28(%rsp), %rdi
callq 0x90650
jmp 0x9046d
jmp 0x9046f
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x90445
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x906e0
jmp 0x904bf
movq (%rsp), %rdi
movq 0x38(%rsp), %rdx
leaq 0x28(%rsp), %rsi
callq 0x8f3c0
jmp 0x904ab
leaq 0x28(%rsp), %rdi
callq 0x906e0
movq 0x8(%rsp), %rax
addq $0x58, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0xf890
nopl (%rax)
// File: 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:
subq $0x78, %rsp
movq %rdi, 0x8(%rsp)
movq %rdi, %rax
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rax
movq %rdi, 0x70(%rsp)
movl %esi, 0x6c(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movsd %xmm0, 0x50(%rsp)
movl %r8d, 0x4c(%rsp)
movq %r9, 0x40(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x90640
movl $0x0, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
cmpl 0x6c(%rsp), %eax
jge 0x9056f
movq 0x60(%rsp), %rax
movslq 0x2c(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rsi
leaq 0x30(%rsp), %rdi
callq 0x90650
jmp 0x90546
jmp 0x90548
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x9051e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x906e0
jmp 0x905b0
movq 0x8(%rsp), %rdi
movq 0x58(%rsp), %rdx
movsd 0x50(%rsp), %xmm0
movl 0x4c(%rsp), %ecx
movq 0x40(%rsp), %r8
movq 0x80(%rsp), %r9
leaq 0x30(%rsp), %rsi
callq 0x8f480
jmp 0x9059c
leaq 0x30(%rsp), %rdi
callq 0x906e0
movq 0x10(%rsp), %rax
addq $0x78, %rsp
retq
movq 0x20(%rsp), %rdi
callq 0xf890
nopw (%rax,%rax)
// File: 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:
subq $0xd8, %rsp
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
movl %edx, 0xc4(%rsp)
movq 0xc8(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x91990
cmpl $0x2, %eax
jge 0x90928
movq 0x18(%rsp), %rdi
leaq 0x4e8c82(%rip), %rsi    # 0x5795a0
callq 0x6fcf0
jmp 0x90a43
movq 0x28(%rsp), %rdi
movl 0xc4(%rsp), %eax
movl %eax, 0x14(%rsp)
callq 0x91990
movl %eax, %ecx
movl 0x14(%rsp), %eax
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x909da
movq 0x28(%rsp), %rdi
callq 0x919a0
movq 0x28(%rsp), %rdi
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x91990
movq 0x28(%rsp), %rsi
movl %eax, %edx
subl $0x1, %edx
leaq 0x90(%rsp), %rdi
callq 0x919b0
movq 0x28(%rsp), %rdi
callq 0x91990
movq 0x28(%rsp), %rsi
movl %eax, %edx
subl $0x2, %edx
leaq 0x78(%rsp), %rdi
movl $0x1, %ecx
callq 0x90a50
leaq 0xa8(%rsp), %rdi
leaq 0x90(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x6eeb0
movq 0x18(%rsp), %rdi
movsd 0x8(%rsp), %xmm0
leaq 0xa8(%rsp), %rsi
callq 0x13800
jmp 0x90a43
movq 0x28(%rsp), %rdi
callq 0x919a0
movq 0x28(%rsp), %rsi
cvtsi2sd %eax, %xmm0
movsd %xmm0, (%rsp)
movl 0xc4(%rsp), %edx
leaq 0x48(%rsp), %rdi
xorl %ecx, %ecx
callq 0x90a50
movq 0x28(%rsp), %rsi
movl 0xc4(%rsp), %edx
leaq 0x30(%rsp), %rdi
callq 0x919b0
leaq 0x60(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x6eeb0
movq 0x18(%rsp), %rdi
movsd (%rsp), %xmm0
leaq 0x60(%rsp), %rsi
callq 0x13800
movq 0x20(%rsp), %rax
addq $0xd8, %rsp
retq