int spline(int n, int end1, int end2, double slope1, double slope2, double x[],
           double y[], double b[], double c[], double d[]) {
  int nm1, ib, i;
  double t;
  int ascend;
  nm1 = n - 1;
  if (n < 2) {
    goto LeaveSpline;
  }
  ascend = 1;
  for (i = 1; i < n; ++i)
    if (x[i] <= x[i - 1])
      ascend = 0;
  if (!ascend) {
    goto LeaveSpline;
  }
  if (n >= 3) {
    d[0] = x[1] - x[0];
    c[1] = (y[1] - y[0]) / d[0];
    for (i = 1; i < nm1; ++i) {
      d[i] = x[i + 1] - x[i];
      b[i] = 2.0 * (d[i - 1] + d[i]);
      c[i + 1] = (y[i + 1] - y[i]) / d[i];
      c[i] = c[i + 1] - c[i];
    }
    b[0] = -d[0];
    b[nm1] = -d[n - 2];
    c[0] = 0.0;
    c[nm1] = 0.0;
    if (n != 3) {
      c[0] = c[2] / (x[3] - x[1]) - c[1] / (x[2] - x[0]);
      c[nm1] =
          c[n - 2] / (x[nm1] - x[n - 3]) - c[n - 3] / (x[n - 2] - x[n - 4]);
      c[0] = c[0] * d[0] * d[0] / (x[3] - x[0]);
      c[nm1] = -c[nm1] * d[n - 2] * d[n - 2] / (x[nm1] - x[n - 4]);
    }
    if (end1 == 1) {
      b[0] = 2.0 * (x[1] - x[0]);
      c[0] = (y[1] - y[0]) / (x[1] - x[0]) - slope1;
    }
    if (end2 == 1) {
      b[nm1] = 2.0 * (x[nm1] - x[n - 2]);
      c[nm1] = slope2 - (y[nm1] - y[n - 2]) / (x[nm1] - x[n - 2]);
    }
    for (i = 1; i < n; ++i) {
      t = d[i - 1] / b[i - 1];
      b[i] = b[i] - t * d[i - 1];
      c[i] = c[i] - t * c[i - 1];
    }
    c[nm1] = c[nm1] / b[nm1];
    for (ib = 0; ib < nm1; ++ib) {
      i = n - ib - 2;
      c[i] = (c[i] - d[i] * c[i + 1]) / b[i];
    }
    b[nm1] =
        (y[nm1] - y[n - 2]) / d[n - 2] + d[n - 2] * (c[n - 2] + 2.0 * c[nm1]);
    for (i = 0; i < nm1; ++i) {
      b[i] = (y[i + 1] - y[i]) / d[i] - d[i] * (c[i + 1] + 2.0 * c[i]);
      d[i] = (c[i + 1] - c[i]) / d[i];
      c[i] = 3.0 * c[i];
    }
    c[nm1] = 3.0 * c[nm1];
    d[nm1] = d[n - 2];
  } else {
    b[0] = (y[1] - y[0]) / (x[1] - x[0]);
    c[0] = 0.0;
    d[0] = 0.0;
    b[1] = b[0];
    c[1] = 0.0;
    d[1] = 0.0;
  }
LeaveSpline:
  return 0;
}


x86 assembly (clang, -O0):
<spline>:
push   %rbp
mov    %rsp,%rbp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x3c(%rbp)
cmpl   $0x2,-0x4(%rbp)
jge    1143 <spline+0x43>
jmp    19b9 <spline+0x8b9>
movl   $0x1,-0x54(%rbp)
movl   $0x1,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    11a0 <spline+0xa0>
mov    -0x28(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jb     118d <spline+0x8d>
movl   $0x0,-0x54(%rbp)
jmp    1192 <spline+0x92>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1151 <spline+0x51>
cmpl   $0x0,-0x54(%rbp)
jne    11af <spline+0xaf>
jmp    19b9 <spline+0x8b9>
cmpl   $0x3,-0x4(%rbp)
jl     1947 <spline+0x847>
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x30(%rbp),%rax
subsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
divsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movl   $0x1,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    12e3 <spline+0x1e3>
mov    -0x28(%rbp),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x44(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x18(%rbp),%rax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  0xda6(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11fb <spline+0xfb>
mov    0x18(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
cmpl   $0x3,-0x4(%rbp)
je     14db <spline+0x3db>
mov    0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x28(%rbp),%rax
subsd  0x8(%rax),%xmm1
divsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x28(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x4,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
mulsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
mulsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm1
divsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x4,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
cmpl   $0x1,-0x8(%rbp)
jne    153d <spline+0x43d>
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm1
movsd  0xb02(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x30(%rbp),%rax
subsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm1
divsd  %xmm1,%xmm0
subsd  -0x18(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
cmpl   $0x1,-0xc(%rbp)
jne    15d7 <spline+0x4d7>
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
movsd  0xa92(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x20(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x28(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    16c1 <spline+0x5c1>
mov    0x18(%rbp),%rax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x50(%rbp),%xmm0
mov    0x18(%rbp),%rax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x50(%rbp),%xmm0
mov    0x10(%rbp),%rax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    15de <spline+0x4de>
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    177a <spline+0x67a>
mov    -0x4(%rbp),%eax
sub    -0x40(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x44(%rbp)
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    16ef <spline+0x5ef>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm1
mov    0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm1
mov    0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm3
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  %xmm2,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1901 <spline+0x801>
mov    -0x30(%rbp),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x44(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm1
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm1
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm3
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  %xmm2,%xmm2
addsd  %xmm3,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  0x727(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1800 <spline+0x700>
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0x6f7(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    19b4 <spline+0x8b4>
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x30(%rbp),%rax
subsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm1
divsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
jmp    19b9 <spline+0x8b9>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<spline>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
cmp    $0x2,%edi
jl     18c5 <spline+0x7c5>
mov    %edi,%r11d
movsd  (%rcx),%xmm2
lea    -0x1(%r11),%r13
cmp    $0x4,%r13
jae    1133 <spline+0x33>
mov    $0x1,%ebp
mov    $0x1,%eax
jmp    1282 <spline+0x182>
mov    %r13,%rax
and    $0xfffffffffffffffc,%rax
unpcklpd %xmm2,%xmm2
lea    -0x4(%rax),%rbx
mov    %rbx,%r10
shr    $0x2,%r10
add    $0x1,%r10
test   %rbx,%rbx
je     1471 <spline+0x371>
mov    %r10,%rbp
and    $0xfffffffffffffffe,%rbp
movdqa 0xe9a(%rip),%xmm8
xor    %ebx,%ebx
movapd %xmm2,%xmm5
movdqa %xmm8,%xmm9
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd 0x8(%rcx,%rbx,8),%xmm6
movupd 0x18(%rcx,%rbx,8),%xmm7
movupd 0x28(%rcx,%rbx,8),%xmm3
movupd 0x38(%rcx,%rbx,8),%xmm2
shufpd $0x1,%xmm6,%xmm5
movapd %xmm6,%xmm4
shufpd $0x1,%xmm7,%xmm4
cmpnlepd %xmm5,%xmm6
movapd %xmm7,%xmm5
cmpnlepd %xmm4,%xmm5
shufpd $0x1,%xmm3,%xmm7
movapd %xmm3,%xmm4
shufpd $0x1,%xmm2,%xmm4
cmpnlepd %xmm7,%xmm3
andpd  %xmm6,%xmm3
movapd %xmm2,%xmm6
cmpnlepd %xmm4,%xmm6
andpd  %xmm5,%xmm6
pshufd $0xe8,%xmm3,%xmm3
pand   %xmm3,%xmm8
pshufd $0xe8,%xmm6,%xmm3
pand   %xmm3,%xmm9
add    $0x8,%rbx
movapd %xmm2,%xmm5
add    $0xfffffffffffffffe,%rbp
jne    1180 <spline+0x80>
test   $0x1,%r10b
je     1241 <spline+0x141>
shl    $0x3,%rbx
or     $0x8,%rbx
movupd (%rcx,%rbx,1),%xmm3
movupd 0x10(%rcx,%rbx,1),%xmm4
shufpd $0x1,%xmm3,%xmm2
movapd %xmm3,%xmm5
shufpd $0x1,%xmm4,%xmm5
cmpnlepd %xmm2,%xmm3
shufps $0xe8,%xmm3,%xmm3
pand   %xmm3,%xmm8
movapd %xmm4,%xmm2
cmpnlepd %xmm5,%xmm4
shufps $0xe8,%xmm4,%xmm4
pand   %xmm4,%xmm9
movdqa 0xdb7(%rip),%xmm3
pcmpeqd %xmm8,%xmm3
pand   %xmm3,%xmm9
pandn  %xmm8,%xmm3
por    %xmm9,%xmm3
movq   %xmm3,%rbx
movabs $0x100000001,%r10
xor    %ebp,%ebp
cmp    %r10,%rbx
sete   %bpl
cmp    %rax,%r13
je     12a9 <spline+0x1a9>
or     $0x1,%rax
unpckhpd %xmm2,%xmm2
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rcx,%rax,8),%xmm3
ucomisd %xmm3,%xmm2
cmovae %ebx,%ebp
add    $0x1,%rax
movapd %xmm3,%xmm2
cmp    %rax,%r11
jne    1290 <spline+0x190>
test   %ebp,%ebp
je     18c5 <spline+0x7c5>
mov    0x40(%rsp),%r10
mov    0x38(%rsp),%rax
cmp    $0x3,%edi
jl     1425 <spline+0x325>
lea    -0x1(%rdi),%r15d
movsd  0x8(%rcx),%xmm2
subsd  (%rcx),%xmm2
movsd  %xmm2,(%r10)
movsd  0x8(%r8),%xmm3
subsd  (%r8),%xmm3
divsd  %xmm2,%xmm3
movsd  %xmm3,0x8(%rax)
mov    %r15d,%r14d
lea    -0x8(,%r14,8),%rbx
ff
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movsd  0x10(%rcx,%rbp,1),%xmm2
subsd  0x8(%rcx,%rbp,1),%xmm2
movsd  %xmm2,0x8(%r10,%rbp,1)
addsd  (%r10,%rbp,1),%xmm2
addsd  %xmm2,%xmm2
movsd  %xmm2,0x8(%r9,%rbp,1)
movsd  0x10(%r8,%rbp,1),%xmm2
subsd  0x8(%r8,%rbp,1),%xmm2
divsd  0x8(%r10,%rbp,1),%xmm2
movsd  %xmm2,0x10(%rax,%rbp,1)
subsd  0x8(%rax,%rbp,1),%xmm2
movsd  %xmm2,0x8(%rax,%rbp,1)
add    $0x8,%rbp
cmp    %rbp,%rbx
jne    1300 <spline+0x200>
movsd  (%r10),%xmm2
movapd 0xcaf(%rip),%xmm3
xorpd  %xmm3,%xmm2
movlpd %xmm2,(%r9)
lea    -0x2(%rdi),%r12d
movsd  (%r10,%r12,8),%xmm2
xorpd  %xmm3,%xmm2
mov    %r15d,-0x4(%rsp)
movslq %r15d,%r15
movlpd %xmm2,(%r9,%r15,8)
movq   $0x0,(%rax)
movq   $0x0,(%rax,%r15,8)
cmp    $0x3,%edi
jne    1490 <spline+0x390>
cmp    $0x1,%esi
je     1552 <spline+0x452>
cmp    $0x1,%edx
je     158d <spline+0x48d>
cmp    $0x1,%edi
jle    15d2 <spline+0x4d2>
lea    (%rax,%r11,8),%rcx
cmp    %r9,%rcx
jbe    15e9 <spline+0x4e9>
lea    (%r9,%r11,8),%rcx
cmp    %rax,%rcx
jbe    15e9 <spline+0x4e9>
xor    %ecx,%ecx
movapd 0xc33(%rip),%xmm0
nopl   (%rax)
movsd  (%r10,%rcx,8),%xmm1
movapd %xmm1,%xmm2
xorpd  %xmm0,%xmm2
divsd  (%r9,%rcx,8),%xmm2
mulsd  %xmm2,%xmm1
addsd  0x8(%r9,%rcx,8),%xmm1
movsd  %xmm1,0x8(%r9,%rcx,8)
mulsd  (%rax,%rcx,8),%xmm2
addsd  0x8(%rax,%rcx,8),%xmm2
movsd  %xmm2,0x8(%rax,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%r13
jne    13e0 <spline+0x2e0>
jmp    1645 <spline+0x545>
movsd  0x8(%r8),%xmm0
subsd  (%r8),%xmm0
movsd  0x8(%rcx),%xmm1
subsd  (%rcx),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,(%r9)
movq   $0x0,(%rax)
movq   $0x0,(%r10)
movsd  (%r9),%xmm0
movsd  %xmm0,0x8(%r9)
movq   $0x0,0x8(%rax)
xorps  %xmm0,%xmm0
mov    $0x1,%r15d
jmp    18bf <spline+0x7bf>
movdqa 0xb86(%rip),%xmm8
xor    %ebx,%ebx
movdqa %xmm8,%xmm9
test   $0x1,%r10b
jne    1200 <spline+0x100>
jmp    1241 <spline+0x141>
movsd  0x8(%rax),%xmm2
movsd  0x10(%rax),%xmm3
movsd  0x10(%rcx),%xmm4
movsd  0x18(%rcx),%xmm5
subsd  0x8(%rcx),%xmm5
divsd  %xmm5,%xmm3
subsd  (%rcx),%xmm4
divsd  %xmm4,%xmm2
subsd  %xmm2,%xmm3
movsd  %xmm3,(%rax)
movsd  (%rax,%r12,8),%xmm2
movsd  (%rcx,%r15,8),%xmm3
lea    -0x3(%rdi),%ebx
subsd  (%rcx,%rbx,8),%xmm3
movsd  (%rax,%rbx,8),%xmm4
movsd  (%rcx,%r12,8),%xmm5
lea    -0x4(%rdi),%ebx
subsd  (%rcx,%rbx,8),%xmm5
divsd  %xmm3,%xmm2
divsd  %xmm5,%xmm4
subsd  %xmm4,%xmm2
movsd  %xmm2,(%rax,%r15,8)
movsd  (%r10),%xmm2
movsd  (%rax),%xmm3
mulsd  %xmm2,%xmm3
mulsd  %xmm2,%xmm3
movsd  0x18(%rcx),%xmm2
subsd  (%rcx),%xmm2
divsd  %xmm2,%xmm3
movsd  %xmm3,(%rax)
movsd  (%rax,%r15,8),%xmm2
xorpd  0xaea(%rip),%xmm2
movsd  (%r10,%r12,8),%xmm3
mulsd  %xmm3,%xmm2
mulsd  %xmm3,%xmm2
movsd  (%rcx,%r15,8),%xmm3
subsd  (%rcx,%rbx,8),%xmm3
divsd  %xmm3,%xmm2
movsd  %xmm2,(%rax,%r15,8)
cmp    $0x1,%esi
jne    13a7 <spline+0x2a7>
movsd  0x8(%rcx),%xmm2
subsd  (%rcx),%xmm2
addsd  %xmm2,%xmm2
movsd  %xmm2,(%r9)
movsd  0x8(%r8),%xmm2
subsd  (%r8),%xmm2
movsd  0x8(%rcx),%xmm3
subsd  (%rcx),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm0,%xmm2
movsd  %xmm2,(%rax)
cmp    $0x1,%edx
jne    13b0 <spline+0x2b0>
movsd  (%rcx,%r15,8),%xmm0
subsd  (%rcx,%r12,8),%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,(%r9,%r15,8)
movsd  (%r8,%r15,8),%xmm0
subsd  (%r8,%r12,8),%xmm0
movsd  (%rcx,%r15,8),%xmm2
subsd  (%rcx,%r12,8),%xmm2
divsd  %xmm2,%xmm0
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%r15,8)
cmp    $0x1,%edi
jg     13b9 <spline+0x2b9>
movsd  (%rax,%r15,8),%xmm0
divsd  (%r9,%r15,8),%xmm0
movsd  %xmm0,(%rax,%r15,8)
jmp    16ad <spline+0x5ad>
movsd  (%r9),%xmm2
movsd  (%rax),%xmm1
xor    %ecx,%ecx
movapd 0xa14(%rip),%xmm0
nopl   0x0(%rax)
movsd  (%r10,%rcx,8),%xmm3
movapd %xmm3,%xmm4
xorpd  %xmm0,%xmm4
divsd  %xmm2,%xmm4
mulsd  %xmm4,%xmm3
addsd  0x8(%r9,%rcx,8),%xmm3
movsd  %xmm3,0x8(%r9,%rcx,8)
mulsd  %xmm1,%xmm4
addsd  0x8(%rax,%rcx,8),%xmm4
movsd  %xmm4,0x8(%rax,%rcx,8)
add    $0x1,%rcx
movapd %xmm4,%xmm1
movapd %xmm3,%xmm2
cmp    %rcx,%r13
jne    1600 <spline+0x500>
movsd  (%rax,%r15,8),%xmm0
divsd  (%r9,%r15,8),%xmm0
movsd  %xmm0,(%rax,%r15,8)
cmp    $0x2,%edi
jl     16ad <spline+0x5ad>
lea    (%rax,%r11,8),%rcx
add    $0xfffffffffffffff0,%rcx
lea    (%r10,%r11,8),%rdx
add    $0xfffffffffffffff0,%rdx
lea    (%r9,%r11,8),%rsi
add    $0xfffffffffffffff0,%rsi
mov    %r14,%rbp
neg    %rbp
xor    %ebx,%ebx
nopl   0x0(%rax)
movsd  (%rdx,%rbx,8),%xmm0
mulsd  0x8(%rcx,%rbx,8),%xmm0
movsd  (%rcx,%rbx,8),%xmm1
subsd  %xmm0,%xmm1
divsd  (%rsi,%rbx,8),%xmm1
movsd  %xmm1,(%rcx,%rbx,8)
add    $0xffffffffffffffff,%rbx
cmp    %rbx,%rbp
jne    1680 <spline+0x580>
movsd  (%rax,%r15,8),%xmm0
movsd  (%r8,%r15,8),%xmm1
subsd  (%r8,%r12,8),%xmm1
movsd  (%r10,%r12,8),%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm0,%xmm0
addsd  (%rax,%r12,8),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r9,%r15,8)
cmp    $0x2,%edi
jl     18a5 <spline+0x7a5>
cmpl   $0x2,-0x4(%rsp)
jae    16f2 <spline+0x5f2>
xor    %ecx,%ecx
jmp    1837 <spline+0x737>
lea    (%r10,%r14,8),%rcx
cmp    %r9,%rcx
seta   -0x4(%rsp)
lea    (%r9,%r14,8),%rsi
cmp    %r10,%rsi
seta   -0x5(%rsp)
lea    (%rax,%r14,8),%rbp
add    $0x8,%rbp
cmp    %r9,%rbp
seta   %dl
cmp    %rax,%rsi
seta   -0x6(%rsp)
lea    (%r8,%r14,8),%rdi
add    $0x8,%rdi
cmp    %r9,%rdi
seta   %r11b
cmp    %r8,%rsi
seta   -0x7(%rsp)
cmp    %r10,%rbp
seta   %sil
cmp    %rax,%rcx
seta   -0x8(%rsp)
cmp    %r10,%rdi
seta   %r13b
cmp    %r8,%rcx
seta   -0x9(%rsp)
cmp    %rax,%rdi
seta   %dil
cmp    %r8,%rbp
seta   %bpl
xor    %ecx,%ecx
mov    -0x5(%rsp),%bl
test   %bl,-0x4(%rsp)
jne    1837 <spline+0x737>
and    -0x6(%rsp),%dl
jne    1837 <spline+0x737>
and    -0x7(%rsp),%r11b
jne    1837 <spline+0x737>
and    -0x8(%rsp),%sil
jne    1837 <spline+0x737>
and    -0x9(%rsp),%r13b
jne    1837 <spline+0x737>
and    %bpl,%dil
jne    1837 <spline+0x737>
mov    %r14d,%ecx
and    $0xfffffffe,%ecx
xor    %edx,%edx
movapd 0x869(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movupd (%r8,%rdx,8),%xmm1
movupd 0x8(%r8,%rdx,8),%xmm2
subpd  %xmm1,%xmm2
movupd (%r10,%rdx,8),%xmm1
divpd  %xmm1,%xmm2
movupd (%rax,%rdx,8),%xmm3
movupd 0x8(%rax,%rdx,8),%xmm4
addpd  %xmm3,%xmm3
addpd  %xmm4,%xmm3
mulpd  %xmm1,%xmm3
subpd  %xmm3,%xmm2
movupd %xmm2,(%r9,%rdx,8)
movupd (%rax,%rdx,8),%xmm1
movupd 0x8(%rax,%rdx,8),%xmm2
subpd  %xmm1,%xmm2
movupd (%r10,%rdx,8),%xmm1
divpd  %xmm1,%xmm2
movupd %xmm2,(%r10,%rdx,8)
movupd (%rax,%rdx,8),%xmm1
mulpd  %xmm0,%xmm1
movupd %xmm1,(%rax,%rdx,8)
add    $0x2,%rdx
cmp    %rdx,%rcx
jne    17c0 <spline+0x6c0>
cmp    %r14,%rcx
je     18a5 <spline+0x7a5>
movsd  0x7f1(%rip),%xmm0
nop
movsd  0x8(%r8,%rcx,8),%xmm1
subsd  (%r8,%rcx,8),%xmm1
movsd  (%r10,%rcx,8),%xmm2
divsd  %xmm2,%xmm1
movsd  (%rax,%rcx,8),%xmm3
addsd  %xmm3,%xmm3
addsd  0x8(%rax,%rcx,8),%xmm3
mulsd  %xmm2,%xmm3
subsd  %xmm3,%xmm1
movsd  %xmm1,(%r9,%rcx,8)
movsd  0x8(%rax,%rcx,8),%xmm1
subsd  (%rax,%rcx,8),%xmm1
divsd  (%r10,%rcx,8),%xmm1
movsd  %xmm1,(%r10,%rcx,8)
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%rax,%rcx,8)
lea    0x1(%rcx),%rdx
mov    %rdx,%rcx
cmp    %rdx,%r14
jne    1840 <spline+0x740>
movsd  (%rax,%r15,8),%xmm0
mulsd  0x77d(%rip),%xmm0
movsd  %xmm0,(%rax,%r15,8)
movsd  (%r10,%r12,8),%xmm0
movsd  %xmm0,(%r10,%r15,8)
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @spline(i32 %0, i32 %1, i32 %2, double %3, double %4, double* %5, double* %6, double* %7, double* %8, double* %9) {
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double
%15 = alloca double
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca double
%25 = alloca i32
store i32 %0, i32* %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store double %3, double* %14
store double %4, double* %15
store double* %5, double** %16
store double* %6, double** %17
store double* %7, double** %18
store double* %8, double** %19
store double* %9, double** %20
%26 = load i32, i32* %11
%27 = sub nsw i32 %26, 1
store i32 %27, i32* %21
%28 = load i32, i32* %11
%29 = icmp slt i32 %28, 2
br i1 %29, label %30, label %31
30: ; preds = %10
br label %694
31: ; preds = %10
store i32 1, i32* %25
store i32 1, i32* %23
br label %32
32: ; preds = %51, %31
%33 = load i32, i32* %23
%34 = load i32, i32* %11
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %54
36: ; preds = %32
%37 = load double*, double** %16
%38 = load i32, i32* %23
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, double* %37, i64 %39
%41 = load double, double* %40
%42 = load double*, double** %16
%43 = load i32, i32* %23
%44 = sub nsw i32 %43, 1
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %42, i64 %45
%47 = load double, double* %46
%48 = fcmp ole double %41, %47
br i1 %48, label %49, label %50
49: ; preds = %36
store i32 0, i32* %25
br label %50
50: ; preds = %49, %36
br label %51
51: ; preds = %50
%52 = load i32, i32* %23
%53 = add nsw i32 %52, 1
store i32 %53, i32* %23
br label %32
54: ; preds = %32
%55 = load i32, i32* %25
%56 = icmp ne i32 %55, 0
br i1 %56, label %58, label %57
57: ; preds = %54
br label %694
58: ; preds = %54
%59 = load i32, i32* %11
%60 = icmp sge i32 %59, 3
br i1 %60, label %61, label %662
61: ; preds = %58
%62 = load double*, double** %16
%63 = getelementptr inbounds double, double* %62, i64 1
%64 = load double, double* %63
%65 = load double*, double** %16
%66 = getelementptr inbounds double, double* %65, i64 0
%67 = load double, double* %66
%68 = fsub double %64, %67
%69 = load double*, double** %20
%70 = getelementptr inbounds double, double* %69, i64 0
store double %68, double* %70
%71 = load double*, double** %17
%72 = getelementptr inbounds double, double* %71, i64 1
%73 = load double, double* %72
%74 = load double*, double** %17
%75 = getelementptr inbounds double, double* %74, i64 0
%76 = load double, double* %75
%77 = fsub double %73, %76
%78 = load double*, double** %20
%79 = getelementptr inbounds double, double* %78, i64 0
%80 = load double, double* %79
%81 = fdiv double %77, %80
%82 = load double*, double** %19
%83 = getelementptr inbounds double, double* %82, i64 1
store double %81, double* %83
store i32 1, i32* %23
br label %84
84: ; preds = %161, %61
%85 = load i32, i32* %23
%86 = load i32, i32* %21
%87 = icmp slt i32 %85, %86
br i1 %87, label %88, label %164
88: ; preds = %84
%89 = load double*, double** %16
%90 = load i32, i32* %23
%91 = add nsw i32 %90, 1
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %89, i64 %92
%94 = load double, double* %93
%95 = load double*, double** %16
%96 = load i32, i32* %23
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, double* %95, i64 %97
%99 = load double, double* %98
%100 = fsub double %94, %99
%101 = load double*, double** %20
%102 = load i32, i32* %23
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds double, double* %101, i64 %103
store double %100, double* %104
%105 = load double*, double** %20
%106 = load i32, i32* %23
%107 = sub nsw i32 %106, 1
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, double* %105, i64 %108
%110 = load double, double* %109
%111 = load double*, double** %20
%112 = load i32, i32* %23
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, double* %111, i64 %113
%115 = load double, double* %114
%116 = fadd double %110, %115
%117 = fmul double 2.000000e+00, %116
%118 = load double*, double** %18
%119 = load i32, i32* %23
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %118, i64 %120
store double %117, double* %121
%122 = load double*, double** %17
%123 = load i32, i32* %23
%124 = add nsw i32 %123, 1
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, double* %122, i64 %125
%127 = load double, double* %126
%128 = load double*, double** %17
%129 = load i32, i32* %23
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double, double* %128, i64 %130
%132 = load double, double* %131
%133 = fsub double %127, %132
%134 = load double*, double** %20
%135 = load i32, i32* %23
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds double, double* %134, i64 %136
%138 = load double, double* %137
%139 = fdiv double %133, %138
%140 = load double*, double** %19
%141 = load i32, i32* %23
%142 = add nsw i32 %141, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double, double* %140, i64 %143
store double %139, double* %144
%145 = load double*, double** %19
%146 = load i32, i32* %23
%147 = add nsw i32 %146, 1
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %145, i64 %148
%150 = load double, double* %149
%151 = load double*, double** %19
%152 = load i32, i32* %23
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds double, double* %151, i64 %153
%155 = load double, double* %154
%156 = fsub double %150, %155
%157 = load double*, double** %19
%158 = load i32, i32* %23
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, double* %157, i64 %159
store double %156, double* %160
br label %161
161: ; preds = %88
%162 = load i32, i32* %23
%163 = add nsw i32 %162, 1
store i32 %163, i32* %23
br label %84
164: ; preds = %84
%165 = load double*, double** %20
%166 = getelementptr inbounds double, double* %165, i64 0
%167 = load double, double* %166
%168 = fneg double %167
%169 = load double*, double** %18
%170 = getelementptr inbounds double, double* %169, i64 0
store double %168, double* %170
%171 = load double*, double** %20
%172 = load i32, i32* %11
%173 = sub nsw i32 %172, 2
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds double, double* %171, i64 %174
%176 = load double, double* %175
%177 = fneg double %176
%178 = load double*, double** %18
%179 = load i32, i32* %21
%180 = sext i32 %179 to i64
%181 = getelementptr inbounds double, double* %178, i64 %180
store double %177, double* %181
%182 = load double*, double** %19
%183 = getelementptr inbounds double, double* %182, i64 0
store double 0.000000e+00, double* %183
%184 = load double*, double** %19
%185 = load i32, i32* %21
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, double* %184, i64 %186
store double 0.000000e+00, double* %187
%188 = load i32, i32* %11
%189 = icmp ne i32 %188, 3
br i1 %189, label %190, label %318
190: ; preds = %164
%191 = load double*, double** %19
%192 = getelementptr inbounds double, double* %191, i64 2
%193 = load double, double* %192
%194 = load double*, double** %16
%195 = getelementptr inbounds double, double* %194, i64 3
%196 = load double, double* %195
%197 = load double*, double** %16
%198 = getelementptr inbounds double, double* %197, i64 1
%199 = load double, double* %198
%200 = fsub double %196, %199
%201 = fdiv double %193, %200
%202 = load double*, double** %19
%203 = getelementptr inbounds double, double* %202, i64 1
%204 = load double, double* %203
%205 = load double*, double** %16
%206 = getelementptr inbounds double, double* %205, i64 2
%207 = load double, double* %206
%208 = load double*, double** %16
%209 = getelementptr inbounds double, double* %208, i64 0
%210 = load double, double* %209
%211 = fsub double %207, %210
%212 = fdiv double %204, %211
%213 = fsub double %201, %212
%214 = load double*, double** %19
%215 = getelementptr inbounds double, double* %214, i64 0
store double %213, double* %215
%216 = load double*, double** %19
%217 = load i32, i32* %11
%218 = sub nsw i32 %217, 2
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds double, double* %216, i64 %219
%221 = load double, double* %220
%222 = load double*, double** %16
%223 = load i32, i32* %21
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds double, double* %222, i64 %224
%226 = load double, double* %225
%227 = load double*, double** %16
%228 = load i32, i32* %11
%229 = sub nsw i32 %228, 3
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds double, double* %227, i64 %230
%232 = load double, double* %231
%233 = fsub double %226, %232
%234 = fdiv double %221, %233
%235 = load double*, double** %19
%236 = load i32, i32* %11
%237 = sub nsw i32 %236, 3
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds double, double* %235, i64 %238
%240 = load double, double* %239
%241 = load double*, double** %16
%242 = load i32, i32* %11
%243 = sub nsw i32 %242, 2
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds double, double* %241, i64 %244
%246 = load double, double* %245
%247 = load double*, double** %16
%248 = load i32, i32* %11
%249 = sub nsw i32 %248, 4
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds double, double* %247, i64 %250
%252 = load double, double* %251
%253 = fsub double %246, %252
%254 = fdiv double %240, %253
%255 = fsub double %234, %254
%256 = load double*, double** %19
%257 = load i32, i32* %21
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds double, double* %256, i64 %258
store double %255, double* %259
%260 = load double*, double** %19
%261 = getelementptr inbounds double, double* %260, i64 0
%262 = load double, double* %261
%263 = load double*, double** %20
%264 = getelementptr inbounds double, double* %263, i64 0
%265 = load double, double* %264
%266 = fmul double %262, %265
%267 = load double*, double** %20
%268 = getelementptr inbounds double, double* %267, i64 0
%269 = load double, double* %268
%270 = fmul double %266, %269
%271 = load double*, double** %16
%272 = getelementptr inbounds double, double* %271, i64 3
%273 = load double, double* %272
%274 = load double*, double** %16
%275 = getelementptr inbounds double, double* %274, i64 0
%276 = load double, double* %275
%277 = fsub double %273, %276
%278 = fdiv double %270, %277
%279 = load double*, double** %19
%280 = getelementptr inbounds double, double* %279, i64 0
store double %278, double* %280
%281 = load double*, double** %19
%282 = load i32, i32* %21
%283 = sext i32 %282 to i64
%284 = getelementptr inbounds double, double* %281, i64 %283
%285 = load double, double* %284
%286 = fneg double %285
%287 = load double*, double** %20
%288 = load i32, i32* %11
%289 = sub nsw i32 %288, 2
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds double, double* %287, i64 %290
%292 = load double, double* %291
%293 = fmul double %286, %292
%294 = load double*, double** %20
%295 = load i32, i32* %11
%296 = sub nsw i32 %295, 2
%297 = sext i32 %296 to i64
%298 = getelementptr inbounds double, double* %294, i64 %297
%299 = load double, double* %298
%300 = fmul double %293, %299
%301 = load double*, double** %16
%302 = load i32, i32* %21
%303 = sext i32 %302 to i64
%304 = getelementptr inbounds double, double* %301, i64 %303
%305 = load double, double* %304
%306 = load double*, double** %16
%307 = load i32, i32* %11
%308 = sub nsw i32 %307, 4
%309 = sext i32 %308 to i64
%310 = getelementptr inbounds double, double* %306, i64 %309
%311 = load double, double* %310
%312 = fsub double %305, %311
%313 = fdiv double %300, %312
%314 = load double*, double** %19
%315 = load i32, i32* %21
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds double, double* %314, i64 %316
store double %313, double* %317
br label %318
318: ; preds = %190, %164
%319 = load i32, i32* %12
%320 = icmp eq i32 %319, 1
br i1 %320, label %321, label %351
321: ; preds = %318
%322 = load double*, double** %16
%323 = getelementptr inbounds double, double* %322, i64 1
%324 = load double, double* %323
%325 = load double*, double** %16
%326 = getelementptr inbounds double, double* %325, i64 0
%327 = load double, double* %326
%328 = fsub double %324, %327
%329 = fmul double 2.000000e+00, %328
%330 = load double*, double** %18
%331 = getelementptr inbounds double, double* %330, i64 0
store double %329, double* %331
%332 = load double*, double** %17
%333 = getelementptr inbounds double, double* %332, i64 1
%334 = load double, double* %333
%335 = load double*, double** %17
%336 = getelementptr inbounds double, double* %335, i64 0
%337 = load double, double* %336
%338 = fsub double %334, %337
%339 = load double*, double** %16
%340 = getelementptr inbounds double, double* %339, i64 1
%341 = load double, double* %340
%342 = load double*, double** %16
%343 = getelementptr inbounds double, double* %342, i64 0
%344 = load double, double* %343
%345 = fsub double %341, %344
%346 = fdiv double %338, %345
%347 = load double, double* %14
%348 = fsub double %346, %347
%349 = load double*, double** %19
%350 = getelementptr inbounds double, double* %349, i64 0
store double %348, double* %350
br label %351
351: ; preds = %321, %318
%352 = load i32, i32* %13
%353 = icmp eq i32 %352, 1
br i1 %353, label %354, label %403
354: ; preds = %351
%355 = load double*, double** %16
%356 = load i32, i32* %21
%357 = sext i32 %356 to i64
%358 = getelementptr inbounds double, double* %355, i64 %357
%359 = load double, double* %358
%360 = load double*, double** %16
%361 = load i32, i32* %11
%362 = sub nsw i32 %361, 2
%363 = sext i32 %362 to i64
%364 = getelementptr inbounds double, double* %360, i64 %363
%365 = load double, double* %364
%366 = fsub double %359, %365
%367 = fmul double 2.000000e+00, %366
%368 = load double*, double** %18
%369 = load i32, i32* %21
%370 = sext i32 %369 to i64
%371 = getelementptr inbounds double, double* %368, i64 %370
store double %367, double* %371
%372 = load double, double* %15
%373 = load double*, double** %17
%374 = load i32, i32* %21
%375 = sext i32 %374 to i64
%376 = getelementptr inbounds double, double* %373, i64 %375
%377 = load double, double* %376
%378 = load double*, double** %17
%379 = load i32, i32* %11
%380 = sub nsw i32 %379, 2
%381 = sext i32 %380 to i64
%382 = getelementptr inbounds double, double* %378, i64 %381
%383 = load double, double* %382
%384 = fsub double %377, %383
%385 = load double*, double** %16
%386 = load i32, i32* %21
%387 = sext i32 %386 to i64
%388 = getelementptr inbounds double, double* %385, i64 %387
%389 = load double, double* %388
%390 = load double*, double** %16
%391 = load i32, i32* %11
%392 = sub nsw i32 %391, 2
%393 = sext i32 %392 to i64
%394 = getelementptr inbounds double, double* %390, i64 %393
%395 = load double, double* %394
%396 = fsub double %389, %395
%397 = fdiv double %384, %396
%398 = fsub double %372, %397
%399 = load double*, double** %19
%400 = load i32, i32* %21
%401 = sext i32 %400 to i64
%402 = getelementptr inbounds double, double* %399, i64 %401
store double %398, double* %402
br label %403
403: ; preds = %354, %351
store i32 1, i32* %23
br label %404
404: ; preds = %458, %403
%405 = load i32, i32* %23
%406 = load i32, i32* %11
%407 = icmp slt i32 %405, %406
br i1 %407, label %408, label %461
408: ; preds = %404
%409 = load double*, double** %20
%410 = load i32, i32* %23
%411 = sub nsw i32 %410, 1
%412 = sext i32 %411 to i64
%413 = getelementptr inbounds double, double* %409, i64 %412
%414 = load double, double* %413
%415 = load double*, double** %18
%416 = load i32, i32* %23
%417 = sub nsw i32 %416, 1
%418 = sext i32 %417 to i64
%419 = getelementptr inbounds double, double* %415, i64 %418
%420 = load double, double* %419
%421 = fdiv double %414, %420
store double %421, double* %24
%422 = load double*, double** %18
%423 = load i32, i32* %23
%424 = sext i32 %423 to i64
%425 = getelementptr inbounds double, double* %422, i64 %424
%426 = load double, double* %425
%427 = load double, double* %24
%428 = load double*, double** %20
%429 = load i32, i32* %23
%430 = sub nsw i32 %429, 1
%431 = sext i32 %430 to i64
%432 = getelementptr inbounds double, double* %428, i64 %431
%433 = load double, double* %432
%434 = fneg double %427
%435 = call double @llvm.fmuladd.f64(double %434, double %433, double %426)
%436 = load double*, double** %18
%437 = load i32, i32* %23
%438 = sext i32 %437 to i64
%439 = getelementptr inbounds double, double* %436, i64 %438
store double %435, double* %439
%440 = load double*, double** %19
%441 = load i32, i32* %23
%442 = sext i32 %441 to i64
%443 = getelementptr inbounds double, double* %440, i64 %442
%444 = load double, double* %443
%445 = load double, double* %24
%446 = load double*, double** %19
%447 = load i32, i32* %23
%448 = sub nsw i32 %447, 1
%449 = sext i32 %448 to i64
%450 = getelementptr inbounds double, double* %446, i64 %449
%451 = load double, double* %450
%452 = fneg double %445
%453 = call double @llvm.fmuladd.f64(double %452, double %451, double %444)
%454 = load double*, double** %19
%455 = load i32, i32* %23
%456 = sext i32 %455 to i64
%457 = getelementptr inbounds double, double* %454, i64 %456
store double %453, double* %457
br label %458
458: ; preds = %408
%459 = load i32, i32* %23
%460 = add nsw i32 %459, 1
store i32 %460, i32* %23
br label %404
461: ; preds = %404
%462 = load double*, double** %19
%463 = load i32, i32* %21
%464 = sext i32 %463 to i64
%465 = getelementptr inbounds double, double* %462, i64 %464
%466 = load double, double* %465
%467 = load double*, double** %18
%468 = load i32, i32* %21
%469 = sext i32 %468 to i64
%470 = getelementptr inbounds double, double* %467, i64 %469
%471 = load double, double* %470
%472 = fdiv double %466, %471
%473 = load double*, double** %19
%474 = load i32, i32* %21
%475 = sext i32 %474 to i64
%476 = getelementptr inbounds double, double* %473, i64 %475
store double %472, double* %476
store i32 0, i32* %22
br label %477
477: ; preds = %514, %461
%478 = load i32, i32* %22
%479 = load i32, i32* %21
%480 = icmp slt i32 %478, %479
br i1 %480, label %481, label %517
481: ; preds = %477
%482 = load i32, i32* %11
%483 = load i32, i32* %22
%484 = sub nsw i32 %482, %483
%485 = sub nsw i32 %484, 2
store i32 %485, i32* %23
%486 = load double*, double** %19
%487 = load i32, i32* %23
%488 = sext i32 %487 to i64
%489 = getelementptr inbounds double, double* %486, i64 %488
%490 = load double, double* %489
%491 = load double*, double** %20
%492 = load i32, i32* %23
%493 = sext i32 %492 to i64
%494 = getelementptr inbounds double, double* %491, i64 %493
%495 = load double, double* %494
%496 = load double*, double** %19
%497 = load i32, i32* %23
%498 = add nsw i32 %497, 1
%499 = sext i32 %498 to i64
%500 = getelementptr inbounds double, double* %496, i64 %499
%501 = load double, double* %500
%502 = fneg double %495
%503 = call double @llvm.fmuladd.f64(double %502, double %501, double %490)
%504 = load double*, double** %18
%505 = load i32, i32* %23
%506 = sext i32 %505 to i64
%507 = getelementptr inbounds double, double* %504, i64 %506
%508 = load double, double* %507
%509 = fdiv double %503, %508
%510 = load double*, double** %19
%511 = load i32, i32* %23
%512 = sext i32 %511 to i64
%513 = getelementptr inbounds double, double* %510, i64 %512
store double %509, double* %513
br label %514
514: ; preds = %481
%515 = load i32, i32* %22
%516 = add nsw i32 %515, 1
store i32 %516, i32* %22
br label %477
517: ; preds = %477
%518 = load double*, double** %17
%519 = load i32, i32* %21
%520 = sext i32 %519 to i64
%521 = getelementptr inbounds double, double* %518, i64 %520
%522 = load double, double* %521
%523 = load double*, double** %17
%524 = load i32, i32* %11
%525 = sub nsw i32 %524, 2
%526 = sext i32 %525 to i64
%527 = getelementptr inbounds double, double* %523, i64 %526
%528 = load double, double* %527
%529 = fsub double %522, %528
%530 = load double*, double** %20
%531 = load i32, i32* %11
%532 = sub nsw i32 %531, 2
%533 = sext i32 %532 to i64
%534 = getelementptr inbounds double, double* %530, i64 %533
%535 = load double, double* %534
%536 = fdiv double %529, %535
%537 = load double*, double** %20
%538 = load i32, i32* %11
%539 = sub nsw i32 %538, 2
%540 = sext i32 %539 to i64
%541 = getelementptr inbounds double, double* %537, i64 %540
%542 = load double, double* %541
%543 = load double*, double** %19
%544 = load i32, i32* %11
%545 = sub nsw i32 %544, 2
%546 = sext i32 %545 to i64
%547 = getelementptr inbounds double, double* %543, i64 %546
%548 = load double, double* %547
%549 = load double*, double** %19
%550 = load i32, i32* %21
%551 = sext i32 %550 to i64
%552 = getelementptr inbounds double, double* %549, i64 %551
%553 = load double, double* %552
%554 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %553, double %548)
%555 = call double @llvm.fmuladd.f64(double %542, double %554, double %536)
%556 = load double*, double** %18
%557 = load i32, i32* %21
%558 = sext i32 %557 to i64
%559 = getelementptr inbounds double, double* %556, i64 %558
store double %555, double* %559
store i32 0, i32* %23
br label %560
560: ; preds = %638, %517
%561 = load i32, i32* %23
%562 = load i32, i32* %21
%563 = icmp slt i32 %561, %562
br i1 %563, label %564, label %641
564: ; preds = %560
%565 = load double*, double** %17
%566 = load i32, i32* %23
%567 = add nsw i32 %566, 1
%568 = sext i32 %567 to i64
%569 = getelementptr inbounds double, double* %565, i64 %568
%570 = load double, double* %569
%571 = load double*, double** %17
%572 = load i32, i32* %23
%573 = sext i32 %572 to i64
%574 = getelementptr inbounds double, double* %571, i64 %573
%575 = load double, double* %574
%576 = fsub double %570, %575
%577 = load double*, double** %20
%578 = load i32, i32* %23
%579 = sext i32 %578 to i64
%580 = getelementptr inbounds double, double* %577, i64 %579
%581 = load double, double* %580
%582 = fdiv double %576, %581
%583 = load double*, double** %20
%584 = load i32, i32* %23
%585 = sext i32 %584 to i64
%586 = getelementptr inbounds double, double* %583, i64 %585
%587 = load double, double* %586
%588 = load double*, double** %19
%589 = load i32, i32* %23
%590 = add nsw i32 %589, 1
%591 = sext i32 %590 to i64
%592 = getelementptr inbounds double, double* %588, i64 %591
%593 = load double, double* %592
%594 = load double*, double** %19
%595 = load i32, i32* %23
%596 = sext i32 %595 to i64
%597 = getelementptr inbounds double, double* %594, i64 %596
%598 = load double, double* %597
%599 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %598, double %593)
%600 = fneg double %587
%601 = call double @llvm.fmuladd.f64(double %600, double %599, double %582)
%602 = load double*, double** %18
%603 = load i32, i32* %23
%604 = sext i32 %603 to i64
%605 = getelementptr inbounds double, double* %602, i64 %604
store double %601, double* %605
%606 = load double*, double** %19
%607 = load i32, i32* %23
%608 = add nsw i32 %607, 1
%609 = sext i32 %608 to i64
%610 = getelementptr inbounds double, double* %606, i64 %609
%611 = load double, double* %610
%612 = load double*, double** %19
%613 = load i32, i32* %23
%614 = sext i32 %613 to i64
%615 = getelementptr inbounds double, double* %612, i64 %614
%616 = load double, double* %615
%617 = fsub double %611, %616
%618 = load double*, double** %20
%619 = load i32, i32* %23
%620 = sext i32 %619 to i64
%621 = getelementptr inbounds double, double* %618, i64 %620
%622 = load double, double* %621
%623 = fdiv double %617, %622
%624 = load double*, double** %20
%625 = load i32, i32* %23
%626 = sext i32 %625 to i64
%627 = getelementptr inbounds double, double* %624, i64 %626
store double %623, double* %627
%628 = load double*, double** %19
%629 = load i32, i32* %23
%630 = sext i32 %629 to i64
%631 = getelementptr inbounds double, double* %628, i64 %630
%632 = load double, double* %631
%633 = fmul double 3.000000e+00, %632
%634 = load double*, double** %19
%635 = load i32, i32* %23
%636 = sext i32 %635 to i64
%637 = getelementptr inbounds double, double* %634, i64 %636
store double %633, double* %637
br label %638
638: ; preds = %564
%639 = load i32, i32* %23
%640 = add nsw i32 %639, 1
store i32 %640, i32* %23
br label %560
641: ; preds = %560
%642 = load double*, double** %19
%643 = load i32, i32* %21
%644 = sext i32 %643 to i64
%645 = getelementptr inbounds double, double* %642, i64 %644
%646 = load double, double* %645
%647 = fmul double 3.000000e+00, %646
%648 = load double*, double** %19
%649 = load i32, i32* %21
%650 = sext i32 %649 to i64
%651 = getelementptr inbounds double, double* %648, i64 %650
store double %647, double* %651
%652 = load double*, double** %20
%653 = load i32, i32* %11
%654 = sub nsw i32 %653, 2
%655 = sext i32 %654 to i64
%656 = getelementptr inbounds double, double* %652, i64 %655
%657 = load double, double* %656
%658 = load double*, double** %20
%659 = load i32, i32* %21
%660 = sext i32 %659 to i64
%661 = getelementptr inbounds double, double* %658, i64 %660
store double %657, double* %661
br label %693
662: ; preds = %58
%663 = load double*, double** %17
%664 = getelementptr inbounds double, double* %663, i64 1
%665 = load double, double* %664
%666 = load double*, double** %17
%667 = getelementptr inbounds double, double* %666, i64 0
%668 = load double, double* %667
%669 = fsub double %665, %668
%670 = load double*, double** %16
%671 = getelementptr inbounds double, double* %670, i64 1
%672 = load double, double* %671
%673 = load double*, double** %16
%674 = getelementptr inbounds double, double* %673, i64 0
%675 = load double, double* %674
%676 = fsub double %672, %675
%677 = fdiv double %669, %676
%678 = load double*, double** %18
%679 = getelementptr inbounds double, double* %678, i64 0
store double %677, double* %679
%680 = load double*, double** %19
%681 = getelementptr inbounds double, double* %680, i64 0
store double 0.000000e+00, double* %681
%682 = load double*, double** %20
%683 = getelementptr inbounds double, double* %682, i64 0
store double 0.000000e+00, double* %683
%684 = load double*, double** %18
%685 = getelementptr inbounds double, double* %684, i64 0
%686 = load double, double* %685
%687 = load double*, double** %18
%688 = getelementptr inbounds double, double* %687, i64 1
store double %686, double* %688
%689 = load double*, double** %19
%690 = getelementptr inbounds double, double* %689, i64 1
store double 0.000000e+00, double* %690
%691 = load double*, double** %20
%692 = getelementptr inbounds double, double* %691, i64 1
store double 0.000000e+00, double* %692
br label %693
693: ; preds = %662, %641
br label %694
694: ; preds = %693, %57, %30
ret i32 0
}

LLVM IR (-O2):
define i32 @spline(i32 %0, i32 %1, i32 %2, double %3, double %4, double* nocapture %5, double* nocapture %6, double* nocapture %7, double* %8, double* nocapture %9) {
%11 = add i32 %0, -1
%12 = icmp slt i32 %0, 2
br i1 %12, label %473, label %13
13: ; preds = %10
%14 = zext i32 %0 to i64
%15 = load double, double* %5
%16 = add nsw i64 %14, -1
%17 = icmp ult i64 %16, 4
br i1 %17, label %98, label %18
18: ; preds = %13
%19 = and i64 %16, -4
%20 = or i64 %19, 1
%21 = insertelement <2 x double> poison, double %15, i64 1
%22 = add nsw i64 %19, -4
%23 = lshr exact i64 %22, 2
%24 = add nuw nsw i64 %23, 1
%25 = and i64 %24, 1
%26 = icmp eq i64 %22, 0
br i1 %26, label %64, label %27
27: ; preds = %18
%28 = and i64 %24, 9223372036854775806
br label %29
29: ; preds = %29, %27
%30 = phi i64 [ 0, %27 ], [ %61, %29 ]
%31 = phi <2 x double> [ %21, %27 ], [ %52, %29 ]
%32 = phi <2 x i32> [ <i32 1, i32 1>, %27 ], [ %58, %29 ]
%33 = phi <2 x i32> [ <i32 1, i32 1>, %27 ], [ %60, %29 ]
%34 = phi i64 [ 0, %27 ], [ %62, %29 ]
%35 = or i64 %30, 1
%36 = getelementptr inbounds double, double* %5, i64 %35
%37 = bitcast double* %36 to <2 x double>*
%38 = load <2 x double>, <2 x double>* %37
%39 = getelementptr inbounds double, double* %36, i64 2
%40 = bitcast double* %39 to <2 x double>*
%41 = load <2 x double>, <2 x double>* %40
%42 = shufflevector <2 x double> %31, <2 x double> %38, <2 x i32> <i32 1, i32 2>
%43 = shufflevector <2 x double> %38, <2 x double> %41, <2 x i32> <i32 1, i32 2>
%44 = fcmp ugt <2 x double> %38, %42
%45 = fcmp ugt <2 x double> %41, %43
%46 = or i64 %30, 5
%47 = getelementptr inbounds double, double* %5, i64 %46
%48 = bitcast double* %47 to <2 x double>*
%49 = load <2 x double>, <2 x double>* %48
%50 = getelementptr inbounds double, double* %47, i64 2
%51 = bitcast double* %50 to <2 x double>*
%52 = load <2 x double>, <2 x double>* %51
%53 = shufflevector <2 x double> %41, <2 x double> %49, <2 x i32> <i32 1, i32 2>
%54 = shufflevector <2 x double> %49, <2 x double> %52, <2 x i32> <i32 1, i32 2>
%55 = fcmp ugt <2 x double> %49, %53
%56 = fcmp ugt <2 x double> %52, %54
%57 = select <2 x i1> %55, <2 x i1> %44, <2 x i1> zeroinitializer
%58 = select <2 x i1> %57, <2 x i32> %32, <2 x i32> zeroinitializer
%59 = select <2 x i1> %56, <2 x i1> %45, <2 x i1> zeroinitializer
%60 = select <2 x i1> %59, <2 x i32> %33, <2 x i32> zeroinitializer
%61 = add nuw i64 %30, 8
%62 = add i64 %34, 2
%63 = icmp eq i64 %62, %28
br i1 %63, label %64, label %29
64: ; preds = %29, %18
%65 = phi <2 x double> [ undef, %18 ], [ %52, %29 ]
%66 = phi <2 x i32> [ undef, %18 ], [ %58, %29 ]
%67 = phi <2 x i32> [ undef, %18 ], [ %60, %29 ]
%68 = phi i64 [ 0, %18 ], [ %61, %29 ]
%69 = phi <2 x double> [ %21, %18 ], [ %52, %29 ]
%70 = phi <2 x i32> [ <i32 1, i32 1>, %18 ], [ %58, %29 ]
%71 = phi <2 x i32> [ <i32 1, i32 1>, %18 ], [ %60, %29 ]
%72 = icmp eq i64 %25, 0
br i1 %72, label %87, label %73
73: ; preds = %64
%74 = or i64 %68, 1
%75 = getelementptr inbounds double, double* %5, i64 %74
%76 = bitcast double* %75 to <2 x double>*
%77 = load <2 x double>, <2 x double>* %76
%78 = getelementptr inbounds double, double* %75, i64 2
%79 = bitcast double* %78 to <2 x double>*
%80 = load <2 x double>, <2 x double>* %79
%81 = shufflevector <2 x double> %69, <2 x double> %77, <2 x i32> <i32 1, i32 2>
%82 = shufflevector <2 x double> %77, <2 x double> %80, <2 x i32> <i32 1, i32 2>
%83 = fcmp ugt <2 x double> %77, %81
%84 = fcmp ugt <2 x double> %80, %82
%85 = select <2 x i1> %83, <2 x i32> %70, <2 x i32> zeroinitializer
%86 = select <2 x i1> %84, <2 x i32> %71, <2 x i32> zeroinitializer
br label %87
87: ; preds = %64, %73
%88 = phi <2 x double> [ %65, %64 ], [ %80, %73 ]
%89 = phi <2 x i32> [ %66, %64 ], [ %85, %73 ]
%90 = phi <2 x i32> [ %67, %64 ], [ %86, %73 ]
%91 = icmp eq <2 x i32> %89, <i32 1, i32 1>
%92 = select <2 x i1> %91, <2 x i32> %90, <2 x i32> %89
%93 = bitcast <2 x i32> %92 to i64
%94 = icmp eq i64 %93, 4294967297
%95 = zext i1 %94 to i32
%96 = icmp eq i64 %16, %19
%97 = extractelement <2 x double> %88, i64 1
br i1 %96, label %112, label %98
98: ; preds = %13, %87
%99 = phi double [ %97, %87 ], [ %15, %13 ]
%100 = phi i64 [ %20, %87 ], [ 1, %13 ]
%101 = phi i32 [ %95, %87 ], [ 1, %13 ]
br label %102
102: ; preds = %98, %102
%103 = phi double [ %107, %102 ], [ %99, %98 ]
%104 = phi i64 [ %110, %102 ], [ %100, %98 ]
%105 = phi i32 [ %109, %102 ], [ %101, %98 ]
%106 = getelementptr inbounds double, double* %5, i64 %104
%107 = load double, double* %106
%108 = fcmp ugt double %107, %103
%109 = select i1 %108, i32 %105, i32 0
%110 = add nuw nsw i64 %104, 1
%111 = icmp eq i64 %110, %14
br i1 %111, label %112, label %102
112: ; preds = %102, %87
%113 = phi i32 [ %95, %87 ], [ %109, %102 ]
%114 = icmp eq i32 %113, 0
br i1 %114, label %473, label %115
115: ; preds = %112
%116 = icmp sgt i32 %0, 2
br i1 %116, label %117, label %456
117: ; preds = %115
%118 = getelementptr inbounds double, double* %5, i64 1
%119 = load double, double* %118
%120 = load double, double* %5
%121 = fsub double %119, %120
store double %121, double* %9
%122 = getelementptr inbounds double, double* %6, i64 1
%123 = load double, double* %122
%124 = load double, double* %6
%125 = fsub double %123, %124
%126 = fdiv double %125, %121
%127 = getelementptr inbounds double, double* %8, i64 1
store double %126, double* %127
%128 = zext i32 %11 to i64
br label %129
129: ; preds = %117, %129
%130 = phi i64 [ 1, %117 ], [ %131, %129 ]
%131 = add nuw nsw i64 %130, 1
%132 = getelementptr inbounds double, double* %5, i64 %131
%133 = load double, double* %132
%134 = getelementptr inbounds double, double* %5, i64 %130
%135 = load double, double* %134
%136 = fsub double %133, %135
%137 = getelementptr inbounds double, double* %9, i64 %130
store double %136, double* %137
%138 = add nsw i64 %130, -1
%139 = getelementptr inbounds double, double* %9, i64 %138
%140 = load double, double* %139
%141 = fadd double %136, %140
%142 = fmul double %141, 2.000000e+00
%143 = getelementptr inbounds double, double* %7, i64 %130
store double %142, double* %143
%144 = getelementptr inbounds double, double* %6, i64 %131
%145 = load double, double* %144
%146 = getelementptr inbounds double, double* %6, i64 %130
%147 = load double, double* %146
%148 = fsub double %145, %147
%149 = load double, double* %137
%150 = fdiv double %148, %149
%151 = getelementptr inbounds double, double* %8, i64 %131
store double %150, double* %151
%152 = getelementptr inbounds double, double* %8, i64 %130
%153 = load double, double* %152
%154 = fsub double %150, %153
store double %154, double* %152
%155 = icmp eq i64 %131, %128
br i1 %155, label %156, label %129
156: ; preds = %129
%157 = load double, double* %9
%158 = fneg double %157
store double %158, double* %7
%159 = add nsw i32 %0, -2
%160 = zext i32 %159 to i64
%161 = getelementptr inbounds double, double* %9, i64 %160
%162 = load double, double* %161
%163 = fneg double %162
%164 = sext i32 %11 to i64
%165 = getelementptr inbounds double, double* %7, i64 %164
store double %163, double* %165
store double 0.000000e+00, double* %8
%166 = getelementptr inbounds double, double* %8, i64 %164
store double 0.000000e+00, double* %166
%167 = icmp eq i32 %0, 3
br i1 %167, label %221, label %168
168: ; preds = %156
%169 = getelementptr inbounds double, double* %8, i64 2
%170 = load double, double* %169
%171 = getelementptr inbounds double, double* %5, i64 3
%172 = load double, double* %171
%173 = load double, double* %118
%174 = fsub double %172, %173
%175 = fdiv double %170, %174
%176 = load double, double* %127
%177 = getelementptr inbounds double, double* %5, i64 2
%178 = load double, double* %177
%179 = load double, double* %5
%180 = fsub double %178, %179
%181 = fdiv double %176, %180
%182 = fsub double %175, %181
store double %182, double* %8
%183 = getelementptr inbounds double, double* %8, i64 %160
%184 = load double, double* %183
%185 = getelementptr inbounds double, double* %5, i64 %164
%186 = load double, double* %185
%187 = add nsw i32 %0, -3
%188 = zext i32 %187 to i64
%189 = getelementptr inbounds double, double* %5, i64 %188
%190 = load double, double* %189
%191 = fsub double %186, %190
%192 = fdiv double %184, %191
%193 = getelementptr inbounds double, double* %8, i64 %188
%194 = load double, double* %193
%195 = getelementptr inbounds double, double* %5, i64 %160
%196 = load double, double* %195
%197 = add nsw i32 %0, -4
%198 = zext i32 %197 to i64
%199 = getelementptr inbounds double, double* %5, i64 %198
%200 = load double, double* %199
%201 = fsub double %196, %200
%202 = fdiv double %194, %201
%203 = fsub double %192, %202
store double %203, double* %166
%204 = load double, double* %8
%205 = load double, double* %9
%206 = fmul double %204, %205
%207 = fmul double %205, %206
%208 = load double, double* %171
%209 = load double, double* %5
%210 = fsub double %208, %209
%211 = fdiv double %207, %210
store double %211, double* %8
%212 = load double, double* %166
%213 = fneg double %212
%214 = load double, double* %161
%215 = fmul double %214, %213
%216 = fmul double %214, %215
%217 = load double, double* %185
%218 = load double, double* %199
%219 = fsub double %217, %218
%220 = fdiv double %216, %219
store double %220, double* %166
br label %221
221: ; preds = %168, %156
%222 = icmp eq i32 %1, 1
br i1 %222, label %223, label %236
223: ; preds = %221
%224 = load double, double* %118
%225 = load double, double* %5
%226 = fsub double %224, %225
%227 = fmul double %226, 2.000000e+00
store double %227, double* %7
%228 = load double, double* %122
%229 = load double, double* %6
%230 = fsub double %228, %229
%231 = load double, double* %118
%232 = load double, double* %5
%233 = fsub double %231, %232
%234 = fdiv double %230, %233
%235 = fsub double %234, %3
store double %235, double* %8
br label %236
236: ; preds = %223, %221
%237 = icmp eq i32 %2, 1
br i1 %237, label %238, label %255
238: ; preds = %236
%239 = getelementptr inbounds double, double* %5, i64 %164
%240 = load double, double* %239
%241 = getelementptr inbounds double, double* %5, i64 %160
%242 = load double, double* %241
%243 = fsub double %240, %242
%244 = fmul double %243, 2.000000e+00
store double %244, double* %165
%245 = getelementptr inbounds double, double* %6, i64 %164
%246 = load double, double* %245
%247 = getelementptr inbounds double, double* %6, i64 %160
%248 = load double, double* %247
%249 = fsub double %246, %248
%250 = load double, double* %239
%251 = load double, double* %241
%252 = fsub double %250, %251
%253 = fdiv double %249, %252
%254 = fsub double %4, %253
store double %254, double* %166
br label %255
255: ; preds = %238, %236
%256 = icmp sgt i32 %0, 1
br i1 %256, label %261, label %257
257: ; preds = %255
%258 = load double, double* %166
%259 = load double, double* %165
%260 = fdiv double %258, %259
store double %260, double* %166
br label %334
261: ; preds = %255
%262 = zext i32 %0 to i64
%263 = getelementptr double, double* %7, i64 %262
%264 = getelementptr double, double* %8, i64 %262
%265 = icmp ugt double* %264, %7
%266 = icmp ugt double* %263, %8
%267 = and i1 %265, %266
br i1 %267, label %268, label %287
268: ; preds = %261, %268
%269 = phi i64 [ %285, %268 ], [ 1, %261 ]
%270 = add nsw i64 %269, -1
%271 = getelementptr inbounds double, double* %9, i64 %270
%272 = load double, double* %271
%273 = getelementptr inbounds double, double* %7, i64 %270
%274 = load double, double* %273
%275 = getelementptr inbounds double, double* %7, i64 %269
%276 = load double, double* %275
%277 = fneg double %272
%278 = fdiv double %277, %274
%279 = tail call double @llvm.fmuladd.f64(double %278, double %272, double %276)
store double %279, double* %275
%280 = getelementptr inbounds double, double* %8, i64 %269
%281 = load double, double* %280
%282 = getelementptr inbounds double, double* %8, i64 %270
%283 = load double, double* %282
%284 = tail call double @llvm.fmuladd.f64(double %278, double %283, double %281)
store double %284, double* %280
%285 = add nuw nsw i64 %269, 1
%286 = icmp eq i64 %285, %262
br i1 %286, label %307, label %268
287: ; preds = %261
%288 = load double, double* %7
%289 = load double, double* %8
br label %290
290: ; preds = %287, %290
%291 = phi double [ %289, %287 ], [ %304, %290 ]
%292 = phi double [ %288, %287 ], [ %301, %290 ]
%293 = phi i64 [ 1, %287 ], [ %305, %290 ]
%294 = add nsw i64 %293, -1
%295 = getelementptr inbounds double, double* %9, i64 %294
%296 = load double, double* %295
%297 = getelementptr inbounds double, double* %7, i64 %293
%298 = load double, double* %297
%299 = fneg double %296
%300 = fdiv double %299, %292
%301 = tail call double @llvm.fmuladd.f64(double %300, double %296, double %298)
store double %301, double* %297
%302 = getelementptr inbounds double, double* %8, i64 %293
%303 = load double, double* %302
%304 = tail call double @llvm.fmuladd.f64(double %300, double %291, double %303)
store double %304, double* %302
%305 = add nuw nsw i64 %293, 1
%306 = icmp eq i64 %305, %262
br i1 %306, label %307, label %290
307: ; preds = %290, %268
%308 = load double, double* %166
%309 = load double, double* %165
%310 = fdiv double %308, %309
store double %310, double* %166
br i1 %256, label %311, label %334
311: ; preds = %307
%312 = zext i32 %0 to i64
%313 = zext i32 %11 to i64
br label %314
314: ; preds = %311, %314
%315 = phi i64 [ 0, %311 ], [ %330, %314 ]
%316 = sub nsw i64 %312, %315
%317 = add nsw i64 %316, -2
%318 = getelementptr inbounds double, double* %8, i64 %317
%319 = load double, double* %318
%320 = getelementptr inbounds double, double* %9, i64 %317
%321 = load double, double* %320
%322 = add nsw i64 %316, -1
%323 = getelementptr inbounds double, double* %8, i64 %322
%324 = load double, double* %323
%325 = fneg double %321
%326 = tail call double @llvm.fmuladd.f64(double %325, double %324, double %319)
%327 = getelementptr inbounds double, double* %7, i64 %317
%328 = load double, double* %327
%329 = fdiv double %326, %328
store double %329, double* %318
%330 = add nuw nsw i64 %315, 1
%331 = icmp eq i64 %330, %313
br i1 %331, label %332, label %314
332: ; preds = %314
%333 = load double, double* %166
br label %334
334: ; preds = %257, %332, %307
%335 = phi double [ %333, %332 ], [ %310, %307 ], [ %260, %257 ]
%336 = getelementptr inbounds double, double* %6, i64 %164
%337 = load double, double* %336
%338 = getelementptr inbounds double, double* %6, i64 %160
%339 = load double, double* %338
%340 = fsub double %337, %339
%341 = load double, double* %161
%342 = fdiv double %340, %341
%343 = getelementptr inbounds double, double* %8, i64 %160
%344 = load double, double* %343
%345 = tail call double @llvm.fmuladd.f64(double %335, double 2.000000e+00, double %344)
%346 = tail call double @llvm.fmuladd.f64(double %341, double %345, double %342)
store double %346, double* %165
br i1 %256, label %347, label %452
347: ; preds = %334
%348 = zext i32 %11 to i64
%349 = icmp ult i32 %11, 2
br i1 %349, label %423, label %350
350: ; preds = %347
%351 = getelementptr double, double* %7, i64 %128
%352 = getelementptr double, double* %9, i64 %128
%353 = add nuw nsw i64 %128, 1
%354 = getelementptr double, double* %8, i64 %353
%355 = getelementptr double, double* %6, i64 %353
%356 = icmp ugt double* %352, %7
%357 = icmp ugt double* %351, %9
%358 = and i1 %356, %357
%359 = icmp ugt double* %354, %7
%360 = icmp ugt double* %351, %8
%361 = and i1 %359, %360
%362 = or i1 %358, %361
%363 = icmp ugt double* %355, %7
%364 = icmp ugt double* %351, %6
%365 = and i1 %363, %364
%366 = or i1 %362, %365
%367 = icmp ugt double* %354, %9
%368 = icmp ugt double* %352, %8
%369 = and i1 %367, %368
%370 = or i1 %366, %369
%371 = icmp ugt double* %355, %9
%372 = icmp ugt double* %352, %6
%373 = and i1 %371, %372
%374 = or i1 %370, %373
%375 = icmp ugt double* %355, %8
%376 = icmp ugt double* %354, %6
%377 = and i1 %375, %376
%378 = or i1 %374, %377
br i1 %378, label %423, label %379
379: ; preds = %350
%380 = and i64 %128, 4294967294
br label %381
381: ; preds = %381, %379
%382 = phi i64 [ 0, %379 ], [ %419, %381 ]
%383 = or i64 %382, 1
%384 = getelementptr inbounds double, double* %6, i64 %383
%385 = bitcast double* %384 to <2 x double>*
%386 = load <2 x double>, <2 x double>* %385
%387 = getelementptr inbounds double, double* %6, i64 %382
%388 = bitcast double* %387 to <2 x double>*
%389 = load <2 x double>, <2 x double>* %388
%390 = fsub <2 x double> %386, %389
%391 = getelementptr inbounds double, double* %9, i64 %382
%392 = bitcast double* %391 to <2 x double>*
%393 = load <2 x double>, <2 x double>* %392
%394 = fdiv <2 x double> %390, %393
%395 = getelementptr inbounds double, double* %8, i64 %383
%396 = bitcast double* %395 to <2 x double>*
%397 = load <2 x double>, <2 x double>* %396
%398 = getelementptr inbounds double, double* %8, i64 %382
%399 = bitcast double* %398 to <2 x double>*
%400 = load <2 x double>, <2 x double>* %399
%401 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %400, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %397)
%402 = fneg <2 x double> %393
%403 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %402, <2 x double> %401, <2 x double> %394)
%404 = getelementptr inbounds double, double* %7, i64 %382
%405 = bitcast double* %404 to <2 x double>*
store <2 x double> %403, <2 x double>* %405
%406 = bitcast double* %395 to <2 x double>*
%407 = load <2 x double>, <2 x double>* %406
%408 = bitcast double* %398 to <2 x double>*
%409 = load <2 x double>, <2 x double>* %408
%410 = fsub <2 x double> %407, %409
%411 = bitcast double* %391 to <2 x double>*
%412 = load <2 x double>, <2 x double>* %411
%413 = fdiv <2 x double> %410, %412
%414 = bitcast double* %391 to <2 x double>*
store <2 x double> %413, <2 x double>* %414
%415 = bitcast double* %398 to <2 x double>*
%416 = load <2 x double>, <2 x double>* %415
%417 = fmul <2 x double> %416, <double 3.000000e+00, double 3.000000e+00>
%418 = bitcast double* %398 to <2 x double>*
store <2 x double> %417, <2 x double>* %418
%419 = add nuw i64 %382, 2
%420 = icmp eq i64 %419, %380
br i1 %420, label %421, label %381
421: ; preds = %381
%422 = icmp eq i64 %380, %128
br i1 %422, label %452, label %423
423: ; preds = %350, %347, %421
%424 = phi i64 [ 0, %350 ], [ 0, %347 ], [ %380, %421 ]
br label %425
425: ; preds = %423, %425
%426 = phi i64 [ %427, %425 ], [ %424, %423 ]
%427 = add nuw nsw i64 %426, 1
%428 = getelementptr inbounds double, double* %6, i64 %427
%429 = load double, double* %428
%430 = getelementptr inbounds double, double* %6, i64 %426
%431 = load double, double* %430
%432 = fsub double %429, %431
%433 = getelementptr inbounds double, double* %9, i64 %426
%434 = load double, double* %433
%435 = fdiv double %432, %434
%436 = getelementptr inbounds double, double* %8, i64 %427
%437 = load double, double* %436
%438 = getelementptr inbounds double, double* %8, i64 %426
%439 = load double, double* %438
%440 = tail call double @llvm.fmuladd.f64(double %439, double 2.000000e+00, double %437)
%441 = fneg double %434
%442 = tail call double @llvm.fmuladd.f64(double %441, double %440, double %435)
%443 = getelementptr inbounds double, double* %7, i64 %426
store double %442, double* %443
%444 = load double, double* %436
%445 = load double, double* %438
%446 = fsub double %444, %445
%447 = load double, double* %433
%448 = fdiv double %446, %447
store double %448, double* %433
%449 = load double, double* %438
%450 = fmul double %449, 3.000000e+00
store double %450, double* %438
%451 = icmp eq i64 %427, %348
br i1 %451, label %452, label %425
452: ; preds = %425, %421, %334
%453 = load double, double* %166
%454 = fmul double %453, 3.000000e+00
store double %454, double* %166
%455 = load double, double* %161
br label %469
456: ; preds = %115
%457 = getelementptr inbounds double, double* %6, i64 1
%458 = load double, double* %457
%459 = load double, double* %6
%460 = fsub double %458, %459
%461 = getelementptr inbounds double, double* %5, i64 1
%462 = load double, double* %461
%463 = load double, double* %5
%464 = fsub double %462, %463
%465 = fdiv double %460, %464
store double %465, double* %7
store double 0.000000e+00, double* %8
store double 0.000000e+00, double* %9
%466 = load double, double* %7
%467 = getelementptr inbounds double, double* %7, i64 1
store double %466, double* %467
%468 = getelementptr inbounds double, double* %8, i64 1
store double 0.000000e+00, double* %468
br label %469
469: ; preds = %456, %452
%470 = phi i64 [ %164, %452 ], [ 1, %456 ]
%471 = phi double [ %455, %452 ], [ 0.000000e+00, %456 ]
%472 = getelementptr inbounds double, double* %9, i64 %470
store double %471, double* %472
br label %473
473: ; preds = %469, %112, %10
ret i32 0
}