void binlensd3(double x1, double x2, double d, double m1, double *y1111,
               double *y1112, double *y1122, double *y1222, double *y2222) {
  double m2;
  double del11, del12, x2sq, n1, n2, n1sq, n2sq;
  double n1cb, n2cb, n1qt, n2qt;
  double sum, sum11, sum12, sum22, sum1111, sum1112, sum1122, sum1222, sum2222;
  double del11sq, del12sq;
  double del11cb, del11qt, del12cb, del12qt;
  double x2cb, x2qt;
  m2 = 1.0 - m1;
  if (m2 < 0.0) {
    m2 = 0.0;
    m1 = 1.0;
  }
  del11 = x1 + m2 * d;
  del12 = x1 - m1 * d;
  del11sq = del11 * del11;
  del12sq = del12 * del12;
  del11cb = del11sq * del11;
  del12cb = del12sq * del12;
  del11qt = del11sq * del11sq;
  del12qt = del12sq * del12sq;
  x2sq = x2 * x2;
  x2cb = x2sq * x2;
  x2qt = x2sq * x2sq;
  n1 = del11 * del11 + x2sq;
  n2 = del12 * del12 + x2sq;
  n1sq = n1 * n1;
  n2sq = n2 * n2;
  n1cb = n1sq * n1;
  n2cb = n2sq * n2;
  n1qt = n1sq * n1sq;
  n2qt = n2sq * n2sq;
  sum = m1 / n1sq + m2 / n2sq;
  sum11 = m1 / n1cb * del11sq + m2 / n2cb * del12sq;
  sum12 = m1 / n1cb * del11 * x2 + m2 / n2cb * del12 * x2;
  sum22 = m1 / n1cb * x2sq + m2 / n2cb * x2sq;
  sum1111 = m1 / n1qt * del11qt + m2 / n2qt * del12qt;
  sum1112 = m1 / n1qt * del11cb * x2 + m2 / n2qt * del12cb * x2;
  sum1122 = m1 / n1qt * del11sq * x2sq + m2 / n2qt * del12sq * x2sq;
  sum1222 = m1 / n1qt * del11 * x2cb + m2 / n2qt * del12 * x2cb;
  sum2222 = m1 / n1qt * x2qt + m2 / n2qt * x2qt;
  *y1111 = 6.0 * sum - 48.0 * sum11 + 48.0 * sum1111;
  *y1112 = -24.0 * sum12 + 48.0 * sum1112;
  *y1122 = 2.0 * sum - 8.0 * sum11 - 8.0 * sum22 + 48.0 * sum1122;
  *y1222 = -24.0 * sum12 + 48.0 * sum1222;
  *y2222 = 6.0 * sum - 48.0 * sum22 + 48.0 * sum2222;
}


x86 assembly (clang, -O0):
<binlensd3>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
movsd  0xec5(%rip),%xmm0
subsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x50(%rbp),%xmm0
jbe    1168 <binlensd3+0x68>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe9d(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
mulsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
mulsd  -0x100(%rbp),%xmm0
ff
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x70(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mulsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
mulsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0x80(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
divsd  -0x88(%rbp),%xmm1
ff
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0x90(%rbp),%xmm0
ff
movsd  -0xf8(%rbp),%xmm2
ff
movsd  -0x50(%rbp),%xmm1
divsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x100(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0x90(%rbp),%xmm0
ff
mulsd  -0x58(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
divsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x60(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0x90(%rbp),%xmm0
ff
movsd  -0x68(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
divsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0xa0(%rbp),%xmm0
ff
movsd  -0x110(%rbp),%xmm2
ff
movsd  -0x50(%rbp),%xmm1
divsd  -0xa8(%rbp),%xmm1
ff
mulsd  -0x120(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0xa0(%rbp),%xmm0
ff
mulsd  -0x108(%rbp),%xmm0
ff
movsd  -0x10(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
divsd  -0xa8(%rbp),%xmm1
ff
mulsd  -0x118(%rbp),%xmm1
ff
mulsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0xa0(%rbp),%xmm0
ff
mulsd  -0xf8(%rbp),%xmm0
ff
movsd  -0x68(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
divsd  -0xa8(%rbp),%xmm1
ff
mulsd  -0x100(%rbp),%xmm1
ff
mulsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0xa0(%rbp),%xmm0
ff
mulsd  -0x58(%rbp),%xmm0
movsd  -0x128(%rbp),%xmm2
ff
movsd  -0x50(%rbp),%xmm1
divsd  -0xa8(%rbp),%xmm1
ff
mulsd  -0x60(%rbp),%xmm1
mulsd  -0x128(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0xa0(%rbp),%xmm0
ff
movsd  -0x130(%rbp),%xmm2
ff
movsd  -0x50(%rbp),%xmm1
divsd  -0xa8(%rbp),%xmm1
ff
mulsd  -0x130(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm1
ff
movsd  0xad7(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xab8(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xd0(%rbp),%xmm0
ff
movsd  0xa98(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xc0(%rbp),%xmm0
ff
movsd  0xa78(%rip),%xmm1
mulsd  -0xd8(%rbp),%xmm1
ff
movsd  0xa78(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xb0(%rbp),%xmm0
ff
movsd  0xa68(%rip),%xmm1
mulsd  -0xb8(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  -0xc8(%rbp),%xmm1
ff
movsd  0xa29(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xe0(%rbp),%xmm0
ff
movsd  0x9f9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xc0(%rbp),%xmm0
ff
movsd  0x9d9(%rip),%xmm1
mulsd  -0xe8(%rbp),%xmm1
ff
movsd  0x9d9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xb0(%rbp),%xmm1
ff
movsd  0x9a9(%rip),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0x98a(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  -0xf0(%rbp),%xmm0
ff
movsd  0x96a(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x48(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<binlensd3>:
movapd %xmm1,%xmm12
movsd  %xmm1,-0x8(%rsp)
movapd %xmm0,%xmm1
movsd  0xee9(%rip),%xmm5
movapd %xmm5,%xmm4
subsd  %xmm3,%xmm4
xorpd  %xmm6,%xmm6
xorpd  %xmm8,%xmm8
maxsd  %xmm4,%xmm8
cmpltsd %xmm6,%xmm4
andpd  %xmm4,%xmm5
andnpd %xmm3,%xmm4
orpd   %xmm5,%xmm4
movapd %xmm8,%xmm14
mulsd  %xmm2,%xmm14
addsd  %xmm0,%xmm14
mulsd  %xmm4,%xmm2
subsd  %xmm2,%xmm1
movapd %xmm14,%xmm5
mulsd  %xmm14,%xmm5
movapd %xmm1,%xmm13
movsd  %xmm1,-0x10(%rsp)
mulsd  %xmm1,%xmm13
mulsd  %xmm12,%xmm12
movapd %xmm5,%xmm3
addsd  %xmm12,%xmm3
movapd %xmm13,%xmm7
addsd  %xmm12,%xmm7
movapd %xmm3,%xmm2
mulsd  %xmm3,%xmm2
movapd %xmm7,%xmm6
mulsd  %xmm7,%xmm6
mulsd  %xmm2,%xmm3
mulsd  %xmm6,%xmm7
movapd %xmm4,%xmm9
divsd  %xmm2,%xmm9
movapd %xmm8,%xmm0
divsd  %xmm6,%xmm0
addsd  %xmm9,%xmm0
movapd %xmm4,%xmm15
divsd  %xmm3,%xmm15
movapd %xmm8,%xmm11
divsd  %xmm7,%xmm11
movapd %xmm13,%xmm3
mulsd  %xmm11,%xmm3
movapd %xmm15,%xmm9
mulsd  %xmm5,%xmm9
addsd  %xmm3,%xmm9
movapd %xmm14,%xmm10
mulsd  %xmm15,%xmm10
movapd %xmm1,%xmm3
mulsd  %xmm11,%xmm3
movsd  -0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm3
mulsd  %xmm1,%xmm10
addsd  %xmm3,%xmm10
movapd %xmm14,%xmm3
mulsd  %xmm5,%xmm3
mulsd  %xmm12,%xmm11
mulsd  %xmm12,%xmm15
addsd  %xmm11,%xmm15
movsd  -0x10(%rsp),%xmm11
movapd %xmm11,%xmm7
mulsd  %xmm13,%xmm7
mulsd  %xmm2,%xmm2
divsd  %xmm2,%xmm4
movapd %xmm5,%xmm2
mulsd  %xmm5,%xmm2
mulsd  %xmm6,%xmm6
divsd  %xmm6,%xmm8
movapd %xmm13,%xmm6
mulsd  %xmm13,%xmm6
mulsd  %xmm8,%xmm6
mulsd  %xmm4,%xmm2
addsd  %xmm6,%xmm2
movapd %xmm12,%xmm6
mulsd  %xmm1,%xmm6
mulsd  %xmm4,%xmm3
mulsd  %xmm8,%xmm7
mulsd  %xmm1,%xmm7
mulsd  %xmm1,%xmm3
addsd  %xmm7,%xmm3
mulsd  %xmm8,%xmm13
mulsd  %xmm12,%xmm13
mulsd  %xmm4,%xmm5
mulsd  %xmm12,%xmm5
addsd  %xmm13,%xmm5
mulsd  %xmm12,%xmm12
mulsd  %xmm4,%xmm14
movapd %xmm11,%xmm1
mulsd  %xmm8,%xmm1
mulsd  %xmm6,%xmm1
mulsd  %xmm6,%xmm14
addsd  %xmm1,%xmm14
mulsd  %xmm12,%xmm8
mulsd  %xmm12,%xmm4
addsd  %xmm8,%xmm4
movsd  0xd34(%rip),%xmm8
movapd %xmm9,%xmm6
mulsd  %xmm8,%xmm6
movsd  0xd2a(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  %xmm1,%xmm6
movsd  0xd22(%rip),%xmm7
mulsd  %xmm7,%xmm2
addsd  %xmm6,%xmm2
movsd  %xmm2,(%rdi)
mulsd  0xd15(%rip),%xmm10
mulsd  %xmm7,%xmm3
addsd  %xmm10,%xmm3
movsd  %xmm3,(%rsi)
movsd  0xd08(%rip),%xmm2
mulsd  %xmm2,%xmm9
addsd  %xmm0,%xmm0
addsd  %xmm9,%xmm0
mulsd  %xmm15,%xmm2
addsd  %xmm0,%xmm2
mulsd  %xmm7,%xmm5
addsd  %xmm2,%xmm5
movsd  %xmm5,(%rdx)
mulsd  %xmm7,%xmm14
addsd  %xmm10,%xmm14
movsd  %xmm14,(%rcx)
mulsd  %xmm8,%xmm15
addsd  %xmm1,%xmm15
mulsd  %xmm7,%xmm4
addsd  %xmm15,%xmm4
movsd  %xmm4,(%r8)
ret

LLVM IR (-O0):
define void @binlensd3(double %0, double %1, double %2, double %3, double* %4, double* %5, double* %6, double* %7, double* %8) {
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca double
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = alloca double
%43 = alloca double
%44 = alloca double
%45 = alloca double
%46 = alloca double
%47 = alloca double
store double %0, double* %10
store double %1, double* %11
store double %2, double* %12
store double %3, double* %13
store double* %4, double** %14
store double* %5, double** %15
store double* %6, double** %16
store double* %7, double** %17
store double* %8, double** %18
%48 = load double, double* %13
%49 = fsub double 1.000000e+00, %48
store double %49, double* %19
%50 = load double, double* %19
%51 = fcmp olt double %50, 0.000000e+00
br i1 %51, label %52, label %53
52: ; preds = %9
store double 0.000000e+00, double* %19
store double 1.000000e+00, double* %13
br label %53
53: ; preds = %52, %9
%54 = load double, double* %10
%55 = load double, double* %19
%56 = load double, double* %12
%57 = call double @llvm.fmuladd.f64(double %55, double %56, double %54)
store double %57, double* %20
%58 = load double, double* %10
%59 = load double, double* %13
%60 = load double, double* %12
%61 = fneg double %59
%62 = call double @llvm.fmuladd.f64(double %61, double %60, double %58)
store double %62, double* %21
%63 = load double, double* %20
%64 = load double, double* %20
%65 = fmul double %63, %64
store double %65, double* %40
%66 = load double, double* %21
%67 = load double, double* %21
%68 = fmul double %66, %67
store double %68, double* %41
%69 = load double, double* %40
%70 = load double, double* %20
%71 = fmul double %69, %70
store double %71, double* %42
%72 = load double, double* %41
%73 = load double, double* %21
%74 = fmul double %72, %73
store double %74, double* %44
%75 = load double, double* %40
%76 = load double, double* %40
%77 = fmul double %75, %76
store double %77, double* %43
%78 = load double, double* %41
%79 = load double, double* %41
%80 = fmul double %78, %79
store double %80, double* %45
%81 = load double, double* %11
%82 = load double, double* %11
%83 = fmul double %81, %82
store double %83, double* %22
%84 = load double, double* %22
%85 = load double, double* %11
%86 = fmul double %84, %85
store double %86, double* %46
%87 = load double, double* %22
%88 = load double, double* %22
%89 = fmul double %87, %88
store double %89, double* %47
%90 = load double, double* %20
%91 = load double, double* %20
%92 = load double, double* %22
%93 = call double @llvm.fmuladd.f64(double %90, double %91, double %92)
store double %93, double* %23
%94 = load double, double* %21
%95 = load double, double* %21
%96 = load double, double* %22
%97 = call double @llvm.fmuladd.f64(double %94, double %95, double %96)
store double %97, double* %24
%98 = load double, double* %23
%99 = load double, double* %23
%100 = fmul double %98, %99
store double %100, double* %25
%101 = load double, double* %24
%102 = load double, double* %24
%103 = fmul double %101, %102
store double %103, double* %26
%104 = load double, double* %25
%105 = load double, double* %23
%106 = fmul double %104, %105
store double %106, double* %27
%107 = load double, double* %26
%108 = load double, double* %24
%109 = fmul double %107, %108
store double %109, double* %28
%110 = load double, double* %25
%111 = load double, double* %25
%112 = fmul double %110, %111
store double %112, double* %29
%113 = load double, double* %26
%114 = load double, double* %26
%115 = fmul double %113, %114
store double %115, double* %30
%116 = load double, double* %13
%117 = load double, double* %25
%118 = fdiv double %116, %117
%119 = load double, double* %19
%120 = load double, double* %26
%121 = fdiv double %119, %120
%122 = fadd double %118, %121
store double %122, double* %31
%123 = load double, double* %13
%124 = load double, double* %27
%125 = fdiv double %123, %124
%126 = load double, double* %40
%127 = load double, double* %19
%128 = load double, double* %28
%129 = fdiv double %127, %128
%130 = load double, double* %41
%131 = fmul double %129, %130
%132 = call double @llvm.fmuladd.f64(double %125, double %126, double %131)
store double %132, double* %32
%133 = load double, double* %13
%134 = load double, double* %27
%135 = fdiv double %133, %134
%136 = load double, double* %20
%137 = fmul double %135, %136
%138 = load double, double* %11
%139 = load double, double* %19
%140 = load double, double* %28
%141 = fdiv double %139, %140
%142 = load double, double* %21
%143 = fmul double %141, %142
%144 = load double, double* %11
%145 = fmul double %143, %144
%146 = call double @llvm.fmuladd.f64(double %137, double %138, double %145)
store double %146, double* %33
%147 = load double, double* %13
%148 = load double, double* %27
%149 = fdiv double %147, %148
%150 = load double, double* %22
%151 = load double, double* %19
%152 = load double, double* %28
%153 = fdiv double %151, %152
%154 = load double, double* %22
%155 = fmul double %153, %154
%156 = call double @llvm.fmuladd.f64(double %149, double %150, double %155)
store double %156, double* %34
%157 = load double, double* %13
%158 = load double, double* %29
%159 = fdiv double %157, %158
%160 = load double, double* %43
%161 = load double, double* %19
%162 = load double, double* %30
%163 = fdiv double %161, %162
%164 = load double, double* %45
%165 = fmul double %163, %164
%166 = call double @llvm.fmuladd.f64(double %159, double %160, double %165)
store double %166, double* %35
%167 = load double, double* %13
%168 = load double, double* %29
%169 = fdiv double %167, %168
%170 = load double, double* %42
%171 = fmul double %169, %170
%172 = load double, double* %11
%173 = load double, double* %19
%174 = load double, double* %30
%175 = fdiv double %173, %174
%176 = load double, double* %44
%177 = fmul double %175, %176
%178 = load double, double* %11
%179 = fmul double %177, %178
%180 = call double @llvm.fmuladd.f64(double %171, double %172, double %179)
store double %180, double* %36
%181 = load double, double* %13
%182 = load double, double* %29
%183 = fdiv double %181, %182
%184 = load double, double* %40
%185 = fmul double %183, %184
%186 = load double, double* %22
%187 = load double, double* %19
%188 = load double, double* %30
%189 = fdiv double %187, %188
%190 = load double, double* %41
%191 = fmul double %189, %190
%192 = load double, double* %22
%193 = fmul double %191, %192
%194 = call double @llvm.fmuladd.f64(double %185, double %186, double %193)
store double %194, double* %37
%195 = load double, double* %13
%196 = load double, double* %29
%197 = fdiv double %195, %196
%198 = load double, double* %20
%199 = fmul double %197, %198
%200 = load double, double* %46
%201 = load double, double* %19
%202 = load double, double* %30
%203 = fdiv double %201, %202
%204 = load double, double* %21
%205 = fmul double %203, %204
%206 = load double, double* %46
%207 = fmul double %205, %206
%208 = call double @llvm.fmuladd.f64(double %199, double %200, double %207)
store double %208, double* %38
%209 = load double, double* %13
%210 = load double, double* %29
%211 = fdiv double %209, %210
%212 = load double, double* %47
%213 = load double, double* %19
%214 = load double, double* %30
%215 = fdiv double %213, %214
%216 = load double, double* %47
%217 = fmul double %215, %216
%218 = call double @llvm.fmuladd.f64(double %211, double %212, double %217)
store double %218, double* %39
%219 = load double, double* %31
%220 = load double, double* %32
%221 = fmul double 4.800000e+01, %220
%222 = fneg double %221
%223 = call double @llvm.fmuladd.f64(double 6.000000e+00, double %219, double %222)
%224 = load double, double* %35
%225 = call double @llvm.fmuladd.f64(double 4.800000e+01, double %224, double %223)
%226 = load double*, double** %14
store double %225, double* %226
%227 = load double, double* %33
%228 = load double, double* %36
%229 = fmul double 4.800000e+01, %228
%230 = call double @llvm.fmuladd.f64(double -2.400000e+01, double %227, double %229)
%231 = load double*, double** %15
store double %230, double* %231
%232 = load double, double* %31
%233 = load double, double* %32
%234 = fmul double 8.000000e+00, %233
%235 = fneg double %234
%236 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %232, double %235)
%237 = load double, double* %34
%238 = call double @llvm.fmuladd.f64(double -8.000000e+00, double %237, double %236)
%239 = load double, double* %37
%240 = call double @llvm.fmuladd.f64(double 4.800000e+01, double %239, double %238)
%241 = load double*, double** %16
store double %240, double* %241
%242 = load double, double* %33
%243 = load double, double* %38
%244 = fmul double 4.800000e+01, %243
%245 = call double @llvm.fmuladd.f64(double -2.400000e+01, double %242, double %244)
%246 = load double*, double** %17
store double %245, double* %246
%247 = load double, double* %31
%248 = load double, double* %34
%249 = fmul double 4.800000e+01, %248
%250 = fneg double %249
%251 = call double @llvm.fmuladd.f64(double 6.000000e+00, double %247, double %250)
%252 = load double, double* %39
%253 = call double @llvm.fmuladd.f64(double 4.800000e+01, double %252, double %251)
%254 = load double*, double** %18
store double %253, double* %254
ret void
}

LLVM IR (-O2):
define void @binlensd3(double %0, double %1, double %2, double %3, double* nocapture writeonly %4, double* nocapture writeonly %5, double* nocapture writeonly %6, double* nocapture writeonly %7, double* nocapture writeonly %8) {
%10 = fsub double 1.000000e+00, %3
%11 = fcmp olt double %10, 0.000000e+00
%12 = select i1 %11, double 0.000000e+00, double %10
%13 = select i1 %11, double 1.000000e+00, double %3
%14 = tail call double @llvm.fmuladd.f64(double %12, double %2, double %0)
%15 = fneg double %13
%16 = tail call double @llvm.fmuladd.f64(double %15, double %2, double %0)
%17 = fmul double %14, %14
%18 = fmul double %16, %16
%19 = fmul double %14, %17
%20 = fmul double %16, %18
%21 = fmul double %17, %17
%22 = fmul double %18, %18
%23 = fmul double %1, %1
%24 = fmul double %23, %1
%25 = fmul double %23, %23
%26 = tail call double @llvm.fmuladd.f64(double %14, double %14, double %23)
%27 = tail call double @llvm.fmuladd.f64(double %16, double %16, double %23)
%28 = fmul double %26, %26
%29 = fmul double %27, %27
%30 = fmul double %26, %28
%31 = fmul double %27, %29
%32 = fmul double %28, %28
%33 = fmul double %29, %29
%34 = fdiv double %13, %28
%35 = fdiv double %12, %29
%36 = fadd double %34, %35
%37 = fdiv double %13, %30
%38 = fdiv double %12, %31
%39 = fmul double %18, %38
%40 = tail call double @llvm.fmuladd.f64(double %37, double %17, double %39)
%41 = fmul double %14, %37
%42 = fmul double %16, %38
%43 = fmul double %42, %1
%44 = tail call double @llvm.fmuladd.f64(double %41, double %1, double %43)
%45 = fmul double %23, %38
%46 = tail call double @llvm.fmuladd.f64(double %37, double %23, double %45)
%47 = fdiv double %13, %32
%48 = fdiv double %12, %33
%49 = fmul double %22, %48
%50 = tail call double @llvm.fmuladd.f64(double %47, double %21, double %49)
%51 = fmul double %19, %47
%52 = fmul double %20, %48
%53 = fmul double %52, %1
%54 = tail call double @llvm.fmuladd.f64(double %51, double %1, double %53)
%55 = fmul double %17, %47
%56 = fmul double %18, %48
%57 = fmul double %23, %56
%58 = tail call double @llvm.fmuladd.f64(double %55, double %23, double %57)
%59 = fmul double %14, %47
%60 = fmul double %16, %48
%61 = fmul double %24, %60
%62 = tail call double @llvm.fmuladd.f64(double %59, double %24, double %61)
%63 = fmul double %25, %48
%64 = tail call double @llvm.fmuladd.f64(double %47, double %25, double %63)
%65 = fmul double %40, -4.800000e+01
%66 = tail call double @llvm.fmuladd.f64(double %36, double 6.000000e+00, double %65)
%67 = tail call double @llvm.fmuladd.f64(double %50, double 4.800000e+01, double %66)
store double %67, double* %4
%68 = fmul double %54, 4.800000e+01
%69 = tail call double @llvm.fmuladd.f64(double %44, double -2.400000e+01, double %68)
store double %69, double* %5
%70 = fmul double %40, -8.000000e+00
%71 = tail call double @llvm.fmuladd.f64(double %36, double 2.000000e+00, double %70)
%72 = tail call double @llvm.fmuladd.f64(double %46, double -8.000000e+00, double %71)
%73 = tail call double @llvm.fmuladd.f64(double %58, double 4.800000e+01, double %72)
store double %73, double* %6
%74 = fmul double %62, 4.800000e+01
%75 = tail call double @llvm.fmuladd.f64(double %44, double -2.400000e+01, double %74)
store double %75, double* %7
%76 = fmul double %46, -4.800000e+01
%77 = tail call double @llvm.fmuladd.f64(double %36, double 6.000000e+00, double %76)
%78 = tail call double @llvm.fmuladd.f64(double %64, double 4.800000e+01, double %77)
store double %78, double* %8
ret void
}