LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Cont.cpp
// Function: gaps::R3Contains(gaps::R3Cylinder const&, gaps::R3Point const&)
RNBoolean R3Contains(const R3Cylinder& cylinder, const R3Point& point) 
{
    // Get cylinder axis
    const R3Span& axis = cylinder.Axis();
  
    // Check if outside top or bottom
    RNScalar t = axis.T(point);
    if (RNIsNegative(t) || RNIsGreater(t, axis.Length())) 
        return FALSE;

    // Check if inside radius
    RNLength d = R3Distance(point, axis.Point(t));
    return (RNIsLessOrEqual(d, cylinder.Radius()));
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x58(%rsp), %rdi
callq 0x81e10
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x6d920
movsd %xmm0, 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
leaq 0xf2251(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
jne 0x862d1
movsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x48(%rsp), %rdi
callq 0x37a50
movaps %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
leaq 0xf221d(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x3c090
cmpl $0x0, %eax
je 0x862db
movl $0x0, 0x64(%rsp)
jmp 0x86342
movq 0x50(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rsi
movsd 0x40(%rsp), %xmm0
leaq 0x20(%rsp), %rdi
callq 0x6d710
movq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x86c40
movsd %xmm0, 0x38(%rsp)
movsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x58(%rsp), %rdi
callq 0x39fd0
movaps %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
leaq 0xf21ab(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x81b50
movl %eax, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq
nopl (%rax,%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Cont.cpp
// Function: gaps::R3Contains(gaps::R3Cone const&, gaps::R3Point const&)
RNBoolean R3Contains(const R3Cone& cone, const R3Point& point) 
{
    // Get cone axis
    const R3Span& axis = cone.Axis();
  
    // Check if outside top or bottom
    RNScalar t = axis.T(point);
    if (RNIsNegative(t) || RNIsGreater(t, axis.Length())) 
        return FALSE;

    // Check if inside radius
    RNLength r = (1.0 - t / axis.Length()) * cone.Radius();
    RNLength d = R3Distance(axis.Point(t), point);
    return RNIsGreaterOrEqual(r, d);
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x58(%rsp), %rdi
callq 0x81e60
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x6d920
movsd %xmm0, 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
leaq 0xf2151(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
jne 0x863d1
movsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movq 0x48(%rsp), %rdi
callq 0x37a50
movaps %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
leaq 0xf211d(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x3c090
cmpl $0x0, %eax
je 0x863de
movl $0x0, 0x64(%rsp)
jmp 0x86475
movsd 0x40(%rsp), %xmm0
movsd %xmm0, (%rsp)
movq 0x48(%rsp), %rdi
callq 0x37a50
movsd (%rsp), %xmm1
divsd %xmm0, %xmm1
movsd 0xacc04(%rip), %xmm0    # 0x133008
subsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x58(%rsp), %rdi
callq 0x78cd0
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
movq 0x48(%rsp), %rsi
movsd 0x40(%rsp), %xmm0
leaq 0x18(%rsp), %rdi
callq 0x6d710
movq 0x50(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x86c40
movsd %xmm0, 0x30(%rsp)
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
leaq 0xf2078(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x81b80
movl %eax, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq
nop
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Cont.cpp
// Function: gaps::R3Contains(gaps::R3Frustum const&, gaps::R3Point const&)
RNBoolean R3Contains(const R3Frustum& frustum, const R3Point& point)
{
  // Check each halfspace
  for (int dir = 0; dir < 2; dir++) {
    for (int dim = 0; dim < 3; dim++) {
      if (!R3Contains(frustum.Halfspace(dir, dim), point)) {
        return FALSE;
      }
    }
  }

  // Passed all tests
  return TRUE;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpl $0x2, 0xc(%rsp)
jge 0x864f8
movl $0x0, 0x8(%rsp)
cmpl $0x3, 0x8(%rsp)
jge 0x864e9
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %esi
movl 0x8(%rsp), %edx
callq 0x81f10
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x844d0
cmpl $0x0, %eax
jne 0x864da
movl $0x0, 0x24(%rsp)
jmp 0x86500
jmp 0x864dc
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x864a5
jmp 0x864eb
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x86496
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Cont.cpp
// Function: gaps::R3Contains(gaps::R3Frustum const&, gaps::R3Span const&)
RNBoolean R3Contains(const R3Frustum& frustum, const R3Span& span) 
{
  // Check each halfspace
  for (int dir = 0; dir < 2; dir++) {
    for (int dim = 0; dim < 3; dim++) {
      if (!R3Contains(frustum.Halfspace(dir, dim), span)) {
        return FALSE;
      }
    }
  }

  // Passed all tests
  return TRUE;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpl $0x2, 0xc(%rsp)
jge 0x865a8
movl $0x0, 0x8(%rsp)
cmpl $0x3, 0x8(%rsp)
jge 0x86599
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %esi
movl 0x8(%rsp), %edx
callq 0x81f10
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x84610
cmpl $0x0, %eax
jne 0x8658a
movl $0x0, 0x24(%rsp)
jmp 0x865b0
jmp 0x8658c
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x86555
jmp 0x8659b
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x86546
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Cont.cpp
// Function: gaps::R3Contains(gaps::R3Frustum const&, gaps::R3Box const&)
RNBoolean R3Contains(const R3Frustum& frustum, const R3Box& box) 
{
  // Check each halfspace
  for (int dir = 0; dir < 2; dir++) {
    for (int dim = 0; dim < 3; dim++) {
      if (!R3Contains(frustum.Halfspace(dir, dim), box)) {
        return FALSE;
      }
    }
  }

  // Passed all tests
  return TRUE;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpl $0x2, 0xc(%rsp)
jge 0x86658
movl $0x0, 0x8(%rsp)
cmpl $0x3, 0x8(%rsp)
jge 0x86649
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %esi
movl 0x8(%rsp), %edx
callq 0x81f10
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x84830
cmpl $0x0, %eax
jne 0x8663a
movl $0x0, 0x24(%rsp)
jmp 0x86660
jmp 0x8663c
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x86605
jmp 0x8664b
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x865f6
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Cont.cpp
// Function: gaps::R3Contains(gaps::R3Frustum const&, gaps::R3OrientedBox const&)
RNBoolean R3Contains(const R3Frustum& frustum, const R3OrientedBox& box) 
{
  // Check each halfspace
  for (int dir = 0; dir < 2; dir++) {
    for (int dim = 0; dim < 3; dim++) {
      if (!R3Contains(frustum.Halfspace(dir, dim), box)) {
        return FALSE;
      }
    }
  }

  // Passed all tests
  return TRUE;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpl $0x2, 0xc(%rsp)
jge 0x866e8
movl $0x0, 0x8(%rsp)
cmpl $0x3, 0x8(%rsp)
jge 0x866d9
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %esi
movl 0x8(%rsp), %edx
callq 0x81f10
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x84b00
cmpl $0x0, %eax
jne 0x866ca
movl $0x0, 0x24(%rsp)
jmp 0x866f0
jmp 0x866cc
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x86695
jmp 0x866db
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x86686
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Cont.cpp
// Function: gaps::R3Contains(gaps::R3Frustum const&, gaps::R3Sphere const&)
RNBoolean R3Contains(const R3Frustum& frustum, const R3Sphere& sphere) 
{
  // Check each halfspace
  for (int dir = 0; dir < 2; dir++) {
    for (int dim = 0; dim < 3; dim++) {
      if (!R3Contains(frustum.Halfspace(dir, dim), sphere)) {
        return FALSE;
      }
    }
  }

  // Passed all tests
  return TRUE;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpl $0x2, 0xc(%rsp)
jge 0x86778
movl $0x0, 0x8(%rsp)
cmpl $0x3, 0x8(%rsp)
jge 0x86769
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %esi
movl 0x8(%rsp), %edx
callq 0x81f10
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x84bc0
cmpl $0x0, %eax
jne 0x8675a
movl $0x0, 0x24(%rsp)
jmp 0x86780
jmp 0x8675c
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x86725
jmp 0x8676b
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x86716
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Cont.cpp
// Function: gaps::R3Contains(gaps::R3Frustum const&, gaps::R3Shape const&)
RNBoolean R3Contains(const R3Frustum& frustum, const R3Shape& shape) 
{
  // Check each halfspace
  for (int dir = 0; dir < 2; dir++) {
    for (int dim = 0; dim < 3; dim++) {
      if (!R3Contains(frustum.Halfspace(dir, dim), shape)) {
        return FALSE;
      }
    }
  }

  // Passed all tests
  return TRUE;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpl $0x2, 0xc(%rsp)
jge 0x86808
movl $0x0, 0x8(%rsp)
cmpl $0x3, 0x8(%rsp)
jge 0x867f9
movq 0x18(%rsp), %rdi
movl 0xc(%rsp), %esi
movl 0x8(%rsp), %edx
callq 0x81f10
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x84d30
cmpl $0x0, %eax
jne 0x867ea
movl $0x0, 0x24(%rsp)
jmp 0x86810
jmp 0x867ec
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x867b5
jmp 0x867fb
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x867a6
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Point const&, gaps::R3Ray const&)
RNLength R3Distance(const R3Point& point, const R3Ray& ray)
{
    // Check if start point is closest
    R3Vector v = point - ray.Start();
    RNScalar dir = v.Dot(ray.Vector());
    if (RNIsNegative(dir)) return v.Length();

    // Return distance from point to ray line
    return R3Distance(point, ray.Line());
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
callq 0x3c0c0
movq 0x8(%rsp), %rsi
movq %rax, %rdx
leaq 0x18(%rsp), %rdi
callq 0x6eeb0
movq 0x30(%rsp), %rdi
callq 0x3c0e0
movq %rax, %rsi
leaq 0x18(%rsp), %rdi
callq 0x702c0
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
leaq 0xf17b2(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x86d4e
leaq 0x18(%rsp), %rdi
callq 0x6fe90
movsd %xmm0, 0x40(%rsp)
jmp 0x86d73
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq 0x30(%rsp), %rdi
callq 0x81c00
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x86c70
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::R3Point const&, gaps::R3Span const&)
RNLength R3Distance(const R3Point& point, const R3Span& span)
{
    // Check if span has zero length
    if (RNIsZero(span.Length())) return R3Distance(point, span.Start());

    // Check if start point is closest
    R3Vector v1 = point - span.Start();
    RNScalar dir1 = v1.Dot(span.Vector());
    if (RNIsNegative(dir1)) return v1.Length();

    // Check if end point is closest
    R3Vector v2 = point - span.End();
    RNScalar dir2 = v2.Dot(span.Vector());
    if (RNIsPositive(dir2)) return v2.Length();

    // Return distance from point to span line
    return R3Distance(point, span.Line());
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq 0x60(%rsp), %rdi
callq 0x37a50
leaq 0xf1741(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36b80
cmpl $0x0, %eax
je 0x86dd9
movq 0x68(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x60(%rsp), %rdi
callq 0x39250
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x86c40
movsd %xmm0, 0x70(%rsp)
jmp 0x86ee1
movq 0x68(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x60(%rsp), %rdi
callq 0x39250
movq 0x10(%rsp), %rsi
movq %rax, %rdx
leaq 0x48(%rsp), %rdi
callq 0x6eeb0
movq 0x60(%rsp), %rdi
callq 0x392b0
movq %rax, %rsi
leaq 0x48(%rsp), %rdi
callq 0x702c0
movsd %xmm0, 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
leaq 0xf16b7(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x86e4c
leaq 0x48(%rsp), %rdi
callq 0x6fe90
movsd %xmm0, 0x70(%rsp)
jmp 0x86ee1
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rdi
callq 0x39260
movq 0x8(%rsp), %rsi
movq %rax, %rdx
leaq 0x28(%rsp), %rdi
callq 0x6eeb0
movq 0x60(%rsp), %rdi
callq 0x392b0
movq %rax, %rsi
leaq 0x28(%rsp), %rdi
callq 0x702c0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
leaq 0xf1644(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x86ebc
leaq 0x28(%rsp), %rdi
callq 0x6fe90
movsd %xmm0, 0x70(%rsp)
jmp 0x86ee1
movq 0x68(%rsp), %rax
movq %rax, (%rsp)
movq 0x60(%rsp), %rdi
callq 0x81e20
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x86c70
movsd %xmm0, 0x70(%rsp)
movsd 0x70(%rsp), %xmm0
addq $0x78, %rsp
retq
nopl (%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Point const&, gaps::R3Plane const&)
RNLength R3Distance(const R3Point& point, const R3Plane& plane)
{
    // Return distance from point to plane
    RNScalar d = R3SignedDistance(plane, point);
    if (RNIsPositive(d)) return d;
    else if (RNIsNegative(d)) return -d;
    else return 0.0;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x86f90
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
leaq 0xf15c0(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x86f3c
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x86f85
movsd 0x8(%rsp), %xmm0
leaq 0xf1597(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x86f7c
movsd 0x8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x86f85
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
addq $0x28, %rsp
retq
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Point const&, gaps::R3OrientedBox const&)
RNLength R3Distance(const R3Point& point, const R3OrientedBox& box)
{
    // Check if box is empty
    if (box.IsEmpty()) return FLT_MAX;

    // Transform point into std coordinate system
    R3Point transformed_point = point;
    R3Affine cs_to_std_xform(box.CoordSystem().InverseMatrix());
    transformed_point.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_point, axis_aligned_box);
}

// Assembly:
subq $0x278, %rsp            # imm = 0x278
movq %rdi, 0x268(%rsp)
movq %rsi, 0x260(%rsp)
movq 0x260(%rsp), %rdi
callq 0x3c180
cmpl $0x0, %eax
je 0x8752f
movsd 0xabaff(%rip), %xmm0    # 0x133020
movsd %xmm0, 0x270(%rsp)
jmp 0x87725
movq 0x268(%rsp), %rsi
leaq 0x248(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x6eb90
movq 0x260(%rsp), %rdi
callq 0x81bb0
movq %rax, %rsi
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x4e590
movq 0x58(%rsp), %rsi
leaq 0x138(%rsp), %rdi
movq %rdi, 0x68(%rsp)
xorl %edx, %edx
callq 0x4d390
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
callq 0x6f7c0
jmp 0x87595
movq 0x260(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x50(%rsp)
jmp 0x875ac
movsd 0x50(%rsp), %xmm0
movaps 0xaba77(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
movq 0x260(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x48(%rsp)
jmp 0x875dd
movsd 0x48(%rsp), %xmm0
movaps 0xaba46(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x30(%rsp)
movq 0x260(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x38(%rsp)
jmp 0x8760e
movsd 0x38(%rsp), %xmm0
movaps 0xaba15(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x260(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x28(%rsp)
jmp 0x8763c
movq 0x260(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x18(%rsp)
jmp 0x87656
movq 0x260(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x10(%rsp)
jmp 0x87670
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 0x70(%rsp), %rdi
callq 0x429c0
jmp 0x876a0
leaq 0x248(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x870e0
movsd %xmm0, 0x8(%rsp)
jmp 0x876ba
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x270(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x36a80
leaq 0x138(%rsp), %rdi
callq 0x4d430
jmp 0x87725
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
jmp 0x87716
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x36a80
leaq 0x138(%rsp), %rdi
callq 0x4d430
jmp 0x87736
movsd 0x270(%rsp), %xmm0
addq $0x278, %rsp            # imm = 0x278
retq
movq 0xb0(%rsp), %rdi
callq 0xf890
nopw %cs:(%rax,%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Point const&, gaps::R3Cone const&)
RNLength R3Distance(const R3Point& point, const R3Cone& cone)
{
    // Return distance from point to sphere
    RNScalar t = cone.Axis().T(point);
    if (RNIsNegativeOrZero(t)) {
        RNAbort("Not implemented");
        return 0.0;
    }
    else if (RNIsGreater(t, cone.Axis().Length())) {
        return R3Distance(point, cone.Apex());
    }
    else {
        // Get distance between axis and point
        R3Point p = cone.Axis().Point(t);
	RNLength r = (1.0 - t / cone.Axis().Length()) * cone.Radius();
	RNLength d = R3Distance(p, point) - r;
	if (RNIsNegativeOrZero(d)) return 0.0;
	else return d;
    }
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x50(%rsp), %rdi
callq 0x81e60
movq %rax, %rdi
movq 0x58(%rsp), %rsi
callq 0x6d920
movsd %xmm0, 0x48(%rsp)
movsd 0x48(%rsp), %xmm0
leaq 0xf0cc8(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x382c0
cmpl $0x0, %eax
je 0x87842
leaq 0xaba91(%rip), %rdi     # 0x1332be
movb $0x0, %al
callq 0xd4e20
xorps %xmm0, %xmm0
movsd %xmm0, 0x60(%rsp)
jmp 0x87969
movsd 0x48(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x50(%rsp), %rdi
callq 0x81e60
movq %rax, %rdi
callq 0x37a50
movaps %xmm0, %xmm1
movsd 0x18(%rsp), %xmm0
leaq 0xf0c70(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
callq 0x3c090
cmpl $0x0, %eax
je 0x878aa
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rdi
callq 0x82030
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x86c40
movsd %xmm0, 0x60(%rsp)
jmp 0x87969
movq 0x50(%rsp), %rdi
callq 0x81e60
movq %rax, %rsi
movsd 0x48(%rsp), %xmm0
leaq 0x30(%rsp), %rdi
callq 0x6d710
movsd 0x48(%rsp), %xmm0
movsd %xmm0, (%rsp)
movq 0x50(%rsp), %rdi
callq 0x81e60
movq %rax, %rdi
callq 0x37a50
movsd (%rsp), %xmm1
divsd %xmm0, %xmm1
movsd 0xab713(%rip), %xmm0    # 0x133008
subsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x50(%rsp), %rdi
callq 0x78cd0
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x58(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x86c40
subsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
leaq 0xf0b9c(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x382c0
cmpl $0x0, %eax
je 0x8795d
xorps %xmm0, %xmm0
movsd %xmm0, 0x60(%rsp)
jmp 0x87969
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x60(%rsp)
movsd 0x60(%rsp), %xmm0
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Line const&, gaps::R3Line const&)
RNLength R3Distance(const R3Line& line1, const R3Line& line2)
{
    // Return distance from line to line (Riddle p. 905)
    R3Vector v = line1.Vector();
    v.Cross(line2.Vector());
    RNLength vlength = v.Length();
    if (vlength == 0.0) return R3Distance(line1.Point(), line2);
    else v /= vlength;
    return fabs(v.Dot(line1.Point() - line2.Point()));
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq 0x48(%rsp), %rdi
callq 0x3c0f0
movq %rax, %rsi
leaq 0x28(%rsp), %rdi
callq 0x6fcf0
movq 0x40(%rsp), %rdi
callq 0x3c0f0
movq %rax, %rsi
leaq 0x28(%rsp), %rdi
callq 0x70500
leaq 0x28(%rsp), %rdi
callq 0x6fe90
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x87a6c
jp 0x87a6c
movq 0x48(%rsp), %rdi
callq 0x3c0d0
movq %rax, %rdi
movq 0x40(%rsp), %rsi
callq 0x86c70
movsd %xmm0, 0x50(%rsp)
jmp 0x87ac5
movsd 0x20(%rsp), %xmm0
leaq 0x28(%rsp), %rdi
callq 0x70ec0
movq 0x48(%rsp), %rdi
callq 0x3c0d0
movq %rax, (%rsp)
movq 0x40(%rsp), %rdi
callq 0x3c0d0
movq (%rsp), %rsi
movq %rax, %rdx
leaq 0x8(%rsp), %rdi
callq 0x6eeb0
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x702c0
movaps 0xab7b5(%rip), %xmm1    # 0x133270
pand %xmm1, %xmm0
movsd %xmm0, 0x50(%rsp)
movsd 0x50(%rsp), %xmm0
addq $0x58, %rsp
retq
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Line const&, gaps::R3Plane const&)
RNLength R3Distance(const R3Line& line, const R3Plane& plane)
{
    // Return distance from line to plane
    RNScalar d = R3SignedDistance(plane, line);
    if (RNIsPositive(d)) return d;
    else if (RNIsNegative(d)) return -d;
    else return 0.0;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x88390
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
leaq 0xf01c0(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x8833c
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x88385
movsd 0x8(%rsp), %xmm0
leaq 0xf0197(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x8837c
movsd 0x8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x88385
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
addq $0x28, %rsp
retq
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Line const&, gaps::R3OrientedBox const&)
RNLength R3Distance(const R3Line& line, const R3OrientedBox& box)
{
    // Check if box is empty
    if (box.IsEmpty()) return FLT_MAX;

    // Transform line into std coordinate system
    R3Line transformed_line = line;
    R3Affine cs_to_std_xform(box.CoordSystem().InverseMatrix());
    transformed_line.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_line, axis_aligned_box);
}

// Assembly:
subq $0x288, %rsp            # imm = 0x288
movq %rdi, 0x278(%rsp)
movq %rsi, 0x270(%rsp)
movq 0x270(%rsp), %rdi
callq 0x3c180
cmpl $0x0, %eax
je 0x884df
movsd 0xaab4f(%rip), %xmm0    # 0x133020
movsd %xmm0, 0x280(%rsp)
jmp 0x886d3
movq 0x278(%rsp), %rsi
leaq 0x240(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x6e6e0
movq 0x270(%rsp), %rdi
callq 0x81bb0
movq %rax, %rsi
leaq 0xb0(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x4e590
movq 0x50(%rsp), %rsi
leaq 0x130(%rsp), %rdi
movq %rdi, 0x60(%rsp)
xorl %edx, %edx
callq 0x4d390
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x6e9f0
jmp 0x88545
movq 0x270(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x48(%rsp)
jmp 0x8855c
movsd 0x48(%rsp), %xmm0
movaps 0xaaac7(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
movq 0x270(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x40(%rsp)
jmp 0x8858d
movsd 0x40(%rsp), %xmm0
movaps 0xaaa96(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x270(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x30(%rsp)
jmp 0x885be
movsd 0x30(%rsp), %xmm0
movaps 0xaaa65(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x270(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x20(%rsp)
jmp 0x885ec
movq 0x270(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x10(%rsp)
jmp 0x88606
movq 0x270(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x8(%rsp)
jmp 0x88620
movsd 0x8(%rsp), %xmm5
movsd 0x10(%rsp), %xmm4
movsd 0x20(%rsp), %xmm3
movsd 0x18(%rsp), %xmm2
movsd 0x28(%rsp), %xmm1
movsd 0x38(%rsp), %xmm0
leaq 0x68(%rsp), %rdi
callq 0x429c0
jmp 0x88650
leaq 0x240(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x88470
movsd %xmm0, (%rsp)
jmp 0x88669
movsd (%rsp), %xmm0
movsd %xmm0, 0x280(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x36a80
leaq 0x130(%rsp), %rdi
callq 0x4d430
jmp 0x886d3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
jmp 0x886c4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x36a80
leaq 0x130(%rsp), %rdi
callq 0x4d430
jmp 0x886e4
movsd 0x280(%rsp), %xmm0
addq $0x288, %rsp            # imm = 0x288
retq
movq 0xa8(%rsp), %rdi
callq 0xf890
nopw %cs:(%rax,%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Ray const&, gaps::R3Plane const&)
RNLength R3Distance(const R3Ray& ray, const R3Plane& plane)
{
    // Return distance from ray to plane
    RNScalar d = R3SignedDistance(plane, ray);
    if (RNIsPositive(d)) return d;
    else if (RNIsNegative(d)) return -d;
    else return 0.0;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x88de0
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
leaq 0xef770(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x88d8c
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x88dd5
movsd 0x8(%rsp), %xmm0
leaq 0xef747(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x88dcc
movsd 0x8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x88dd5
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
addq $0x28, %rsp
retq
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3SignedDistance(gaps::R3Plane const&, gaps::R3Ray const&)
RNLength R3SignedDistance(const R3Plane& plane, const R3Ray& ray)
{
    // Return signed distance from plane to ray
    RNLength d1 = R3SignedDistance(plane, ray.Start());
    if (RNIsPositive(d1)) {
	// Start point is above plane
	RNScalar dot = ray.Vector().Dot(plane.Normal());
	if (RNIsNegative(dot)) return 0.0;
	else return d1;
    }
    else if (RNIsNegative(d1)) {
	// Start point is below plane
	RNScalar dot = ray.Vector().Dot(plane.Normal());
	if (RNIsPositive(dot)) return 0.0;
	else return d1;
    }
    else {
	// Start point is on plane
	return 0.0;
    }
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
callq 0x3c0c0
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x86f90
movsd %xmm0, 0x28(%rsp)
movsd 0x28(%rsp), %xmm0
leaq 0xef6be(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x88e96
movq 0x30(%rsp), %rdi
callq 0x3c0e0
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
callq 0x13e60
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x702c0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
leaq 0xef677(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x88e85
xorps %xmm0, %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x88f18
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x88f18
movsd 0x28(%rsp), %xmm0
leaq 0xef63d(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x88f0f
movq 0x30(%rsp), %rdi
callq 0x3c0e0
movq %rax, (%rsp)
movq 0x38(%rsp), %rdi
callq 0x13e60
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x702c0
movsd %xmm0, 0x18(%rsp)
movsd 0x18(%rsp), %xmm0
leaq 0xef5f8(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x88f01
xorps %xmm0, %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x88f18
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x88f18
xorps %xmm0, %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::R3Ray const&, gaps::R3OrientedBox const&)
RNLength R3Distance(const R3Ray& ray, const R3OrientedBox& box)
{
    // Check if box is empty
    if (box.IsEmpty()) return FLT_MAX;

    // Transform ray into std coordinate system
    R3Ray transformed_ray = ray;
    R3Affine cs_to_std_xform(box.CoordSystem().InverseMatrix());
    transformed_ray.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_ray, axis_aligned_box);
}

// Assembly:
subq $0x288, %rsp            # imm = 0x288
movq %rdi, 0x278(%rsp)
movq %rsi, 0x270(%rsp)
movq 0x270(%rsp), %rdi
callq 0x3c180
cmpl $0x0, %eax
je 0x8901f
movsd 0xaa00f(%rip), %xmm0    # 0x133020
movsd %xmm0, 0x280(%rsp)
jmp 0x89213
movq 0x278(%rsp), %rsi
leaq 0x240(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x6e3e0
movq 0x270(%rsp), %rdi
callq 0x81bb0
movq %rax, %rsi
leaq 0xb0(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x4e590
movq 0x50(%rsp), %rsi
leaq 0x130(%rsp), %rdi
movq %rdi, 0x60(%rsp)
xorl %edx, %edx
callq 0x4d390
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x6e600
jmp 0x89085
movq 0x270(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x48(%rsp)
jmp 0x8909c
movsd 0x48(%rsp), %xmm0
movaps 0xa9f87(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
movq 0x270(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x40(%rsp)
jmp 0x890cd
movsd 0x40(%rsp), %xmm0
movaps 0xa9f56(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x270(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x30(%rsp)
jmp 0x890fe
movsd 0x30(%rsp), %xmm0
movaps 0xa9f25(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x270(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x20(%rsp)
jmp 0x8912c
movq 0x270(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x10(%rsp)
jmp 0x89146
movq 0x270(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x8(%rsp)
jmp 0x89160
movsd 0x8(%rsp), %xmm5
movsd 0x10(%rsp), %xmm4
movsd 0x20(%rsp), %xmm3
movsd 0x18(%rsp), %xmm2
movsd 0x28(%rsp), %xmm1
movsd 0x38(%rsp), %xmm0
leaq 0x68(%rsp), %rdi
callq 0x429c0
jmp 0x89190
leaq 0x240(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x88fb0
movsd %xmm0, (%rsp)
jmp 0x891a9
movsd (%rsp), %xmm0
movsd %xmm0, 0x280(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x36a80
leaq 0x130(%rsp), %rdi
callq 0x4d430
jmp 0x89213
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
jmp 0x89204
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x36a80
leaq 0x130(%rsp), %rdi
callq 0x4d430
jmp 0x89224
movsd 0x280(%rsp), %xmm0
addq $0x288, %rsp            # imm = 0x288
retq
movq 0xa8(%rsp), %rdi
callq 0xf890
nopw %cs:(%rax,%rax)
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3Distance(gaps::R3Span const&, gaps::R3Plane const&)
RNLength R3Distance(const R3Span& span, const R3Plane& plane)
{
    // Return distance from span to plane
    RNScalar d = R3SignedDistance(plane, span);
    if (RNIsPositive(d)) return d;
    else if (RNIsNegative(d)) return -d;
    else return 0.0;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x89b20
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
leaq 0xeea30(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x89acc
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x89b15
movsd 0x8(%rsp), %xmm0
leaq 0xeea07(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x89b0c
movsd 0x8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x89b15
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
addq $0x28, %rsp
retq
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3SignedDistance(gaps::R3Plane const&, gaps::R3Span const&)
RNLength R3SignedDistance(const R3Plane& plane, const R3Span& span)
{
    // Return signed distance from plane to span
    RNLength d1 = R3SignedDistance(plane, span.Start());
    if (RNIsPositive(d1)) {
	// Start point is above plane
	RNLength d2 = R3SignedDistance(plane, span.End());
	if (RNIsPositive(d2)) return ((d1 > d2) ? d2 : d1);
	else return 0.0;
    }
    else if (RNIsNegative(d1)) {
	// Start point is below plane
	RNLength d2 = R3SignedDistance(plane, span.End());
	if (RNIsNegative(d2)) return ((d1 > d2) ? d1 : d2);
	else return 0.0;
    }
    else {
	// Start point is on plane
	return 0.0;
    }
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rdi
callq 0x39250
movq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x86f90
movsd %xmm0, 0x38(%rsp)
movsd 0x38(%rsp), %xmm0
leaq 0xee97e(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x89bfd
movq 0x48(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x40(%rsp), %rdi
callq 0x39260
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x86f90
movsd %xmm0, 0x30(%rsp)
movsd 0x30(%rsp), %xmm0
leaq 0xee938(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x89bef
movsd 0x38(%rsp), %xmm0
ucomisd 0x30(%rsp), %xmm0
jbe 0x89bd2
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
jmp 0x89bde
movsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
jmp 0x89ca5
xorps %xmm0, %xmm0
movsd %xmm0, 0x50(%rsp)
jmp 0x89ca5
movsd 0x38(%rsp), %xmm0
leaq 0xee8d6(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x89c9c
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rdi
callq 0x39260
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x86f90
movsd %xmm0, 0x28(%rsp)
movsd 0x28(%rsp), %xmm0
leaq 0xee890(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x89c91
movsd 0x38(%rsp), %xmm0
ucomisd 0x28(%rsp), %xmm0
jbe 0x89c79
movsd 0x38(%rsp), %xmm0
movsd %xmm0, (%rsp)
jmp 0x89c84
movsd 0x28(%rsp), %xmm0
movsd %xmm0, (%rsp)
movsd (%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
jmp 0x89ca5
xorps %xmm0, %xmm0
movsd %xmm0, 0x50(%rsp)
jmp 0x89ca5
xorps %xmm0, %xmm0
movsd %xmm0, 0x50(%rsp)
movsd 0x50(%rsp), %xmm0
addq $0x58, %rsp
retq
// File: 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:
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rdi, 0x298(%rsp)
movq %rsi, 0x290(%rsp)
movq 0x290(%rsp), %rdi
callq 0x3c180
cmpl $0x0, %eax
je 0x89d9f
movsd 0xa928f(%rip), %xmm0    # 0x133020
movsd %xmm0, 0x2a0(%rsp)
jmp 0x89f93
movq 0x298(%rsp), %rsi
leaq 0x240(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x6d450
movq 0x290(%rsp), %rdi
callq 0x81bb0
movq %rax, %rsi
leaq 0xb0(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x4e590
movq 0x50(%rsp), %rsi
leaq 0x130(%rsp), %rdi
movq %rdi, 0x60(%rsp)
xorl %edx, %edx
callq 0x4d390
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x6db30
jmp 0x89e05
movq 0x290(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x48(%rsp)
jmp 0x89e1c
movsd 0x48(%rsp), %xmm0
movaps 0xa9207(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
movq 0x290(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x40(%rsp)
jmp 0x89e4d
movsd 0x40(%rsp), %xmm0
movaps 0xa91d6(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x290(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x30(%rsp)
jmp 0x89e7e
movsd 0x30(%rsp), %xmm0
movaps 0xa91a5(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x290(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x20(%rsp)
jmp 0x89eac
movq 0x290(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x10(%rsp)
jmp 0x89ec6
movq 0x290(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x8(%rsp)
jmp 0x89ee0
movsd 0x8(%rsp), %xmm5
movsd 0x10(%rsp), %xmm4
movsd 0x20(%rsp), %xmm3
movsd 0x18(%rsp), %xmm2
movsd 0x28(%rsp), %xmm1
movsd 0x38(%rsp), %xmm0
leaq 0x68(%rsp), %rdi
callq 0x429c0
jmp 0x89f10
leaq 0x240(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x89d30
movsd %xmm0, (%rsp)
jmp 0x89f29
movsd (%rsp), %xmm0
movsd %xmm0, 0x2a0(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x36a80
leaq 0x130(%rsp), %rdi
callq 0x4d430
jmp 0x89f93
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
jmp 0x89f84
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x36a80
leaq 0x130(%rsp), %rdi
callq 0x4d430
jmp 0x89fa4
movsd 0x2a0(%rsp), %xmm0
addq $0x2a8, %rsp            # imm = 0x2A8
retq
movq 0xa8(%rsp), %rdi
callq 0xf890
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x8a120
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
leaq 0xee430(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x8a0cc
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a115
movsd 0x8(%rsp), %xmm0
leaq 0xee407(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x8a10c
movsd 0x8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a115
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
addq $0x28, %rsp
retq
// File: 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:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rdi
callq 0x13e60
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
callq 0x13e60
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x702c0
movsd %xmm0, 0x18(%rsp)
movsd 0x18(%rsp), %xmm0
leaq 0xee379(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
movsd 0xa8e95(%rip), %xmm1    # 0x133008
callq 0x37170
cmpl $0x0, %eax
je 0x8a1ac
movq 0x28(%rsp), %rdi
callq 0x4e330
movsd %xmm0, 0x8(%rsp)
movq 0x20(%rsp), %rdi
callq 0x4e330
movaps %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, 0x30(%rsp)
jmp 0x8a205
movsd 0x18(%rsp), %xmm0
leaq 0xee327(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm2
movsd 0xa8e53(%rip), %xmm1    # 0x133018
callq 0x37170
cmpl $0x0, %eax
je 0x8a1fc
movq 0x28(%rsp), %rdi
callq 0x4e330
movsd %xmm0, (%rsp)
movq 0x20(%rsp), %rdi
callq 0x4e330
movaps %xmm0, %xmm1
movsd (%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x30(%rsp)
jmp 0x8a205
xorps %xmm0, %xmm0
movsd %xmm0, 0x30(%rsp)
movsd 0x30(%rsp), %xmm0
addq $0x38, %rsp
retq
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x8a330
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
leaq 0xee220(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x8a2dc
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a325
movsd 0x8(%rsp), %xmm0
leaq 0xee1f7(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x8a31c
movsd 0x8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a325
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
addq $0x28, %rsp
retq
// File: tomfunkhouser[P]gaps/pkgs/R3Shapes/R3Dist.cpp
// Function: gaps::R3SignedDistance(gaps::R3Plane const&, gaps::R3Box const&)
RNLength R3SignedDistance(const R3Plane& plane, const R3Box& box)
{
    // Check if box is empty
    if (box.IsEmpty()) return FLT_MAX;

    // Return signed distance from plane to box
    RNOctant octant = plane.Normal().Octant();
    RNScalar d1 = R3SignedDistance(plane, box.Corner(~octant & 0x7));
    if (RNIsPositiveOrZero(d1)) return d1;
    RNScalar d2 = R3SignedDistance(plane, box.Corner(octant));
    if (RNIsNegative(d2)) return d2;
    else return 0.0;
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq 0x60(%rsp), %rdi
callq 0x44d80
cmpl $0x0, %eax
je 0x8a360
movsd 0xa8ccb(%rip), %xmm0    # 0x133020
movsd %xmm0, 0x70(%rsp)
jmp 0x8a43b
movq 0x68(%rsp), %rdi
callq 0x13e60
movq %rax, %rdi
callq 0x701d0
movl %eax, 0x5c(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x60(%rsp), %rsi
movl 0x5c(%rsp), %edx
xorl $-0x1, %edx
andl $0x7, %edx
leaq 0x38(%rsp), %rdi
callq 0x42e40
movq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x86f90
movsd %xmm0, 0x50(%rsp)
movsd 0x50(%rsp), %xmm0
leaq 0xee125(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x3a5d0
cmpl $0x0, %eax
je 0x8a3d7
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
jmp 0x8a43b
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rsi
movl 0x5c(%rsp), %edx
leaq 0x18(%rsp), %rdi
callq 0x42e40
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x86f90
movsd %xmm0, 0x30(%rsp)
movsd 0x30(%rsp), %xmm0
leaq 0xee0ca(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x8a432
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
jmp 0x8a43b
xorps %xmm0, %xmm0
movsd %xmm0, 0x70(%rsp)
movsd 0x70(%rsp), %xmm0
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x8a4f0
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
leaq 0xee060(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x8a49c
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a4e5
movsd 0x8(%rsp), %xmm0
leaq 0xee037(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x8a4dc
movsd 0x8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a4e5
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
addq $0x28, %rsp
retq
// File: 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:
subq $0x278, %rsp            # imm = 0x278
movq %rdi, 0x268(%rsp)
movq %rsi, 0x260(%rsp)
movq 0x260(%rsp), %rdi
callq 0x3c180
cmpl $0x0, %eax
je 0x8a52f
movsd 0xa8aff(%rip), %xmm0    # 0x133020
movsd %xmm0, 0x270(%rsp)
jmp 0x8a723
movq 0x268(%rsp), %rsi
leaq 0x240(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x6c140
movq 0x260(%rsp), %rdi
callq 0x81bb0
movq %rax, %rsi
leaq 0xb0(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x4e590
movq 0x50(%rsp), %rsi
leaq 0x130(%rsp), %rdi
movq %rdi, 0x60(%rsp)
xorl %edx, %edx
callq 0x4d390
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x6d210
jmp 0x8a595
movq 0x260(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x48(%rsp)
jmp 0x8a5ac
movsd 0x48(%rsp), %xmm0
movaps 0xa8a77(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
movq 0x260(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x40(%rsp)
jmp 0x8a5dd
movsd 0x40(%rsp), %xmm0
movaps 0xa8a46(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x260(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x30(%rsp)
jmp 0x8a60e
movsd 0x30(%rsp), %xmm0
movaps 0xa8a15(%rip), %xmm1    # 0x133030
pxor %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movq 0x260(%rsp), %rdi
xorl %esi, %esi
callq 0x3c1d0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a63c
movq 0x260(%rsp), %rdi
movl $0x1, %esi
callq 0x3c1d0
movsd %xmm0, 0x10(%rsp)
jmp 0x8a656
movq 0x260(%rsp), %rdi
movl $0x2, %esi
callq 0x3c1d0
movsd %xmm0, 0x8(%rsp)
jmp 0x8a670
movsd 0x8(%rsp), %xmm5
movsd 0x10(%rsp), %xmm4
movsd 0x20(%rsp), %xmm3
movsd 0x18(%rsp), %xmm2
movsd 0x28(%rsp), %xmm1
movsd 0x38(%rsp), %xmm0
leaq 0x68(%rsp), %rdi
callq 0x429c0
jmp 0x8a6a0
leaq 0x240(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x8a330
movsd %xmm0, (%rsp)
jmp 0x8a6b9
movsd (%rsp), %xmm0
movsd %xmm0, 0x270(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x36a80
leaq 0x130(%rsp), %rdi
callq 0x4d430
jmp 0x8a723
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
jmp 0x8a714
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xa8(%rsp)
movl %eax, 0xa4(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x36a80
leaq 0x130(%rsp), %rdi
callq 0x4d430
jmp 0x8a734
movsd 0x270(%rsp), %xmm0
addq $0x278, %rsp            # imm = 0x278
retq
movq 0xa8(%rsp), %rdi
callq 0xf890
nopw %cs:(%rax,%rax)
// File: 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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x8a7f0
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
leaq 0xedd60(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x36d50
cmpl $0x0, %eax
je 0x8a79c
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a7e5
movsd 0x8(%rsp), %xmm0
leaq 0xedd37(%rip), %rax     # 0x1784e0
movsd (%rax), %xmm1
callq 0x38fd0
cmpl $0x0, %eax
je 0x8a7dc
movsd 0x8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x8a7e5
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
addq $0x28, %rsp
retq