void Worley(double at[3], long max_order, double *F, double (*delta)[3],
            unsigned long *ID) {
  double x2, y2, z2, mx2, my2, mz2;
  double new_at[3];
  long int_at[3], i;
  for (i = 0; i < max_order; i++)
    F[i] = 999999.9;
  new_at[0] = 0.398150 * at[0];
  new_at[1] = 0.398150 * at[1];
  new_at[2] = 0.398150 * at[2];
  int_at[0] = ((new_at[0]) < 0 ? ((long)new_at[0] - 1) : ((long)new_at[0]));
  int_at[1] = ((new_at[1]) < 0 ? ((long)new_at[1] - 1) : ((long)new_at[1]));
  int_at[2] = ((new_at[2]) < 0 ? ((long)new_at[2] - 1) : ((long)new_at[2]));
  AddSamples(int_at[0], int_at[1], int_at[2], max_order, new_at, F, delta, ID);
  x2 = new_at[0] - int_at[0];
  y2 = new_at[1] - int_at[1];
  z2 = new_at[2] - int_at[2];
  mx2 = (1.0 - x2) * (1.0 - x2);
  my2 = (1.0 - y2) * (1.0 - y2);
  mz2 = (1.0 - z2) * (1.0 - z2);
  x2 *= x2;
  y2 *= y2;
  z2 *= z2;
  if (x2 < F[max_order - 1])
    AddSamples(int_at[0] - 1, int_at[1], int_at[2], max_order, new_at, F, delta,
               ID);
  if (y2 < F[max_order - 1])
    AddSamples(int_at[0], int_at[1] - 1, int_at[2], max_order, new_at, F, delta,
               ID);
  if (z2 < F[max_order - 1])
    AddSamples(int_at[0], int_at[1], int_at[2] - 1, max_order, new_at, F, delta,
               ID);
  if (mx2 < F[max_order - 1])
    AddSamples(int_at[0] + 1, int_at[1], int_at[2], max_order, new_at, F, delta,
               ID);
  if (my2 < F[max_order - 1])
    AddSamples(int_at[0], int_at[1] + 1, int_at[2], max_order, new_at, F, delta,
               ID);
  if (mz2 < F[max_order - 1])
    AddSamples(int_at[0], int_at[1], int_at[2] + 1, max_order, new_at, F, delta,
               ID);
  if (x2 + y2 < F[max_order - 1])
    AddSamples(int_at[0] - 1, int_at[1] - 1, int_at[2], max_order, new_at, F,
               delta, ID);
  if (x2 + z2 < F[max_order - 1])
    AddSamples(int_at[0] - 1, int_at[1], int_at[2] - 1, max_order, new_at, F,
               delta, ID);
  if (y2 + z2 < F[max_order - 1])
    AddSamples(int_at[0], int_at[1] - 1, int_at[2] - 1, max_order, new_at, F,
               delta, ID);
  if (mx2 + my2 < F[max_order - 1])
    AddSamples(int_at[0] + 1, int_at[1] + 1, int_at[2], max_order, new_at, F,
               delta, ID);
  if (mx2 + mz2 < F[max_order - 1])
    AddSamples(int_at[0] + 1, int_at[1], int_at[2] + 1, max_order, new_at, F,
               delta, ID);
  if (my2 + mz2 < F[max_order - 1])
    AddSamples(int_at[0], int_at[1] + 1, int_at[2] + 1, max_order, new_at, F,
               delta, ID);
  if (x2 + my2 < F[max_order - 1])
    AddSamples(int_at[0] - 1, int_at[1] + 1, int_at[2], max_order, new_at, F,
               delta, ID);
  if (x2 + mz2 < F[max_order - 1])
    AddSamples(int_at[0] - 1, int_at[1], int_at[2] + 1, max_order, new_at, F,
               delta, ID);
  if (y2 + mz2 < F[max_order - 1])
    AddSamples(int_at[0], int_at[1] - 1, int_at[2] + 1, max_order, new_at, F,
               delta, ID);
  if (mx2 + y2 < F[max_order - 1])
    AddSamples(int_at[0] + 1, int_at[1] - 1, int_at[2], max_order, new_at, F,
               delta, ID);
  if (mx2 + z2 < F[max_order - 1])
    AddSamples(int_at[0] + 1, int_at[1], int_at[2] - 1, max_order, new_at, F,
               delta, ID);
  if (my2 + z2 < F[max_order - 1])
    AddSamples(int_at[0], int_at[1] + 1, int_at[2] - 1, max_order, new_at, F,
               delta, ID);
  if (x2 + y2 + z2 < F[max_order - 1])
    AddSamples(int_at[0] - 1, int_at[1] - 1, int_at[2] - 1, max_order, new_at,
               F, delta, ID);
  if (x2 + y2 + mz2 < F[max_order - 1])
    AddSamples(int_at[0] - 1, int_at[1] - 1, int_at[2] + 1, max_order, new_at,
               F, delta, ID);
  if (x2 + my2 + z2 < F[max_order - 1])
    AddSamples(int_at[0] - 1, int_at[1] + 1, int_at[2] - 1, max_order, new_at,
               F, delta, ID);
  if (x2 + my2 + mz2 < F[max_order - 1])
    AddSamples(int_at[0] - 1, int_at[1] + 1, int_at[2] + 1, max_order, new_at,
               F, delta, ID);
  if (mx2 + y2 + z2 < F[max_order - 1])
    AddSamples(int_at[0] + 1, int_at[1] - 1, int_at[2] - 1, max_order, new_at,
               F, delta, ID);
  if (mx2 + y2 + mz2 < F[max_order - 1])
    AddSamples(int_at[0] + 1, int_at[1] - 1, int_at[2] + 1, max_order, new_at,
               F, delta, ID);
  if (mx2 + my2 + z2 < F[max_order - 1])
    AddSamples(int_at[0] + 1, int_at[1] + 1, int_at[2] - 1, max_order, new_at,
               F, delta, ID);
  if (mx2 + my2 + mz2 < F[max_order - 1])
    AddSamples(int_at[0] + 1, int_at[1] + 1, int_at[2] + 1, max_order, new_at,
               F, delta, ID);
  for (i = 0; i < max_order; i++) {
    F[i] = sqrt(F[i]) * (1.0 / 0.398150);
    delta[i][0] *= (1.0 / 0.398150);
    delta[i][1] *= (1.0 / 0.398150);
    delta[i][2] *= (1.0 / 0.398150);
  }
  return;
}


x86 assembly (clang, -O0):
<Worley>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movq   $0x0,-0x98(%rbp)
mov    -0x98(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    118a <Worley+0x6a>
mov    -0x18(%rbp),%rax
mov    -0x98(%rbp),%rcx
movsd  0xeaa(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x98(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x98(%rbp)
jmp    114a <Worley+0x2a>
mov    -0x8(%rbp),%rax
movsd  0xe6a(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x8(%rbp),%rax
movsd  0xe55(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x8(%rbp),%rax
movsd  0xe3f(%rip),%xmm0
mulsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x70(%rbp),%xmm0
jbe    11ef <Worley+0xcf>
cvttsd2si -0x70(%rbp),%rax
sub    $0x1,%rax
mov    %rax,-0xa0(%rbp)
jmp    11fc <Worley+0xdc>
cvttsd2si -0x70(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0xa0(%rbp),%rax
mov    %rax,-0x90(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    122e <Worley+0x10e>
cvttsd2si -0x68(%rbp),%rax
sub    $0x1,%rax
mov    %rax,-0xa8(%rbp)
jmp    123b <Worley+0x11b>
cvttsd2si -0x68(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rax
mov    %rax,-0x88(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    126d <Worley+0x14d>
cvttsd2si -0x60(%rbp),%rax
sub    $0x1,%rax
mov    %rax,-0xb0(%rbp)
jmp    127a <Worley+0x15a>
cvttsd2si -0x60(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0xb0(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x80(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x70(%rbp),%xmm0
cvtsi2sdq -0x90(%rbp),%xmm1
ff ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x68(%rbp),%xmm0
cvtsi2sdq -0x88(%rbp),%xmm1
ff ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x60(%rbp),%xmm0
cvtsi2sdq -0x80(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xd03(%rip),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  0xcf6(%rip),%xmm1
subsd  -0x30(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xce0(%rip),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  0xcd3(%rip),%xmm1
subsd  -0x38(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xcbd(%rip),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  0xcb0(%rip),%xmm1
subsd  -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x40(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x30(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    13ed <Worley+0x2cd>
mov    -0x90(%rbp),%rdi
sub    $0x1,%rdi
mov    -0x88(%rbp),%rsi
mov    -0x80(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x38(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1447 <Worley+0x327>
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%rsi
sub    $0x1,%rsi
mov    -0x80(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x40(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    14a1 <Worley+0x381>
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x80(%rbp),%rdx
sub    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x48(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    14fb <Worley+0x3db>
mov    -0x90(%rbp),%rdi
add    $0x1,%rdi
mov    -0x88(%rbp),%rsi
mov    -0x80(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x50(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1555 <Worley+0x435>
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%rsi
add    $0x1,%rsi
mov    -0x80(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x58(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    15af <Worley+0x48f>
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%rsi
mov    -0x80(%rbp),%rdx
add    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x30(%rbp),%xmm1
addsd  -0x38(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1612 <Worley+0x4f2>
mov    -0x90(%rbp),%rdi
sub    $0x1,%rdi
mov    -0x88(%rbp),%rsi
sub    $0x1,%rsi
mov    -0x80(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x30(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1675 <Worley+0x555>
mov    -0x90(%rbp),%rdi
sub    $0x1,%rdi
mov    -0x88(%rbp),%rsi
mov    -0x80(%rbp),%rdx
sub    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x38(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    16d8 <Worley+0x5b8>
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%rsi
sub    $0x1,%rsi
mov    -0x80(%rbp),%rdx
sub    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x48(%rbp),%xmm1
addsd  -0x50(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    173b <Worley+0x61b>
mov    -0x90(%rbp),%rdi
add    $0x1,%rdi
mov    -0x88(%rbp),%rsi
add    $0x1,%rsi
mov    -0x80(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x48(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    179e <Worley+0x67e>
mov    -0x90(%rbp),%rdi
add    $0x1,%rdi
mov    -0x88(%rbp),%rsi
mov    -0x80(%rbp),%rdx
add    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x50(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1801 <Worley+0x6e1>
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%rsi
add    $0x1,%rsi
mov    -0x80(%rbp),%rdx
add    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x30(%rbp),%xmm1
addsd  -0x50(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1864 <Worley+0x744>
mov    -0x90(%rbp),%rdi
sub    $0x1,%rdi
mov    -0x88(%rbp),%rsi
add    $0x1,%rsi
mov    -0x80(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x30(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    18c7 <Worley+0x7a7>
mov    -0x90(%rbp),%rdi
sub    $0x1,%rdi
mov    -0x88(%rbp),%rsi
mov    -0x80(%rbp),%rdx
add    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x38(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    192a <Worley+0x80a>
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%rsi
sub    $0x1,%rsi
mov    -0x80(%rbp),%rdx
add    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x48(%rbp),%xmm1
addsd  -0x38(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    198d <Worley+0x86d>
mov    -0x90(%rbp),%rdi
add    $0x1,%rdi
mov    -0x88(%rbp),%rsi
sub    $0x1,%rsi
mov    -0x80(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x48(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    19f0 <Worley+0x8d0>
mov    -0x90(%rbp),%rdi
add    $0x1,%rdi
mov    -0x88(%rbp),%rsi
mov    -0x80(%rbp),%rdx
sub    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x50(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1a53 <Worley+0x933>
mov    -0x90(%rbp),%rdi
mov    -0x88(%rbp),%rsi
add    $0x1,%rsi
mov    -0x80(%rbp),%rdx
sub    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x30(%rbp),%xmm1
addsd  -0x38(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1abf <Worley+0x99f>
mov    -0x90(%rbp),%rdi
sub    $0x1,%rdi
mov    -0x88(%rbp),%rsi
sub    $0x1,%rsi
mov    -0x80(%rbp),%rdx
sub    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x30(%rbp),%xmm1
addsd  -0x38(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1b2b <Worley+0xa0b>
mov    -0x90(%rbp),%rdi
sub    $0x1,%rdi
mov    -0x88(%rbp),%rsi
sub    $0x1,%rsi
mov    -0x80(%rbp),%rdx
add    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x30(%rbp),%xmm1
addsd  -0x50(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1b97 <Worley+0xa77>
mov    -0x90(%rbp),%rdi
sub    $0x1,%rdi
mov    -0x88(%rbp),%rsi
add    $0x1,%rsi
mov    -0x80(%rbp),%rdx
sub    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x30(%rbp),%xmm1
addsd  -0x50(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1c03 <Worley+0xae3>
mov    -0x90(%rbp),%rdi
sub    $0x1,%rdi
mov    -0x88(%rbp),%rsi
add    $0x1,%rsi
mov    -0x80(%rbp),%rdx
add    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x48(%rbp),%xmm1
addsd  -0x38(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1c6f <Worley+0xb4f>
mov    -0x90(%rbp),%rdi
add    $0x1,%rdi
mov    -0x88(%rbp),%rsi
sub    $0x1,%rsi
mov    -0x80(%rbp),%rdx
sub    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x48(%rbp),%xmm1
addsd  -0x38(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1cdb <Worley+0xbbb>
mov    -0x90(%rbp),%rdi
add    $0x1,%rdi
mov    -0x88(%rbp),%rsi
sub    $0x1,%rsi
mov    -0x80(%rbp),%rdx
add    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x48(%rbp),%xmm1
addsd  -0x50(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1d47 <Worley+0xc27>
mov    -0x90(%rbp),%rdi
add    $0x1,%rdi
mov    -0x88(%rbp),%rsi
add    $0x1,%rsi
mov    -0x80(%rbp),%rdx
sub    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movsd  -0x48(%rbp),%xmm1
addsd  -0x50(%rbp),%xmm1
addsd  -0x58(%rbp),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    $0x1,%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1db3 <Worley+0xc93>
mov    -0x90(%rbp),%rdi
add    $0x1,%rdi
mov    -0x88(%rbp),%rsi
add    $0x1,%rsi
mov    -0x80(%rbp),%rdx
add    $0x1,%rdx
mov    -0x10(%rbp),%rcx
lea    -0x70(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x20(%rbp),%r10
mov    -0x28(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <AddSamples@plt>
movq   $0x0,-0x98(%rbp)
mov    -0x98(%rbp),%rax
cmp    -0x10(%rbp),%rax
jge    1e78 <Worley+0xd58>
mov    -0x18(%rbp),%rax
mov    -0x98(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <sqrt@plt>
movsd  0x224(%rip),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
mov    -0x98(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
imul   $0x18,-0x98(%rbp),%rcx
18
add    %rcx,%rax
movsd  0x1f9(%rip),%xmm0
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
imul   $0x18,-0x98(%rbp),%rcx
18
add    %rcx,%rax
movsd  0x1da(%rip),%xmm0
mulsd  0x8(%rax),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rax
imul   $0x18,-0x98(%rbp),%rcx
18
add    %rcx,%rax
movsd  0x1b9(%rip),%xmm0
mulsd  0x10(%rax),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x98(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x98(%rbp)
jmp    1dbe <Worley+0xc9e>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Worley>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r8,(%rsp)
mov    %rcx,%rbx
mov    %rdx,%r14
mov    %rsi,%r15
test   %rsi,%rsi
jle    126d <Worley+0x14d>
cmp    $0x4,%r15
jae    1151 <Worley+0x31>
xor    %eax,%eax
jmp    1247 <Worley+0x127>
mov    %r15,%rax
and    $0xfffffffffffffffc,%rax
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x7,%ecx
cmp    $0x1c,%rsi
jae    1179 <Worley+0x59>
xor    %esi,%esi
jmp    1215 <Worley+0xf5>
and    $0xfffffffffffffff8,%rdx
xor    %esi,%esi
movaps 0xe7a(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
movups %xmm0,(%r14,%rsi,8)
movups %xmm0,0x10(%r14,%rsi,8)
movups %xmm0,0x20(%r14,%rsi,8)
movups %xmm0,0x30(%r14,%rsi,8)
movups %xmm0,0x40(%r14,%rsi,8)
movups %xmm0,0x50(%r14,%rsi,8)
movups %xmm0,0x60(%r14,%rsi,8)
movups %xmm0,0x70(%r14,%rsi,8)
movups %xmm0,0x80(%r14,%rsi,8)
movups %xmm0,0x90(%r14,%rsi,8)
movups %xmm0,0xa0(%r14,%rsi,8)
movups %xmm0,0xb0(%r14,%rsi,8)
movups %xmm0,0xc0(%r14,%rsi,8)
movups %xmm0,0xd0(%r14,%rsi,8)
movups %xmm0,0xe0(%r14,%rsi,8)
movups %xmm0,0xf0(%r14,%rsi,8)
add    $0x20,%rsi
add    $0xfffffffffffffff8,%rdx
jne    1190 <Worley+0x70>
test   %rcx,%rcx
je     1242 <Worley+0x122>
lea    (%r14,%rsi,8),%rdx
add    $0x10,%rdx
shl    $0x5,%rcx
xor    %esi,%esi
movaps 0xdd1(%rip),%xmm0
nop
movups %xmm0,-0x10(%rdx,%rsi,1)
movups %xmm0,(%rdx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rcx
jne    1230 <Worley+0x110>
cmp    %r15,%rax
je     126d <Worley+0x14d>
movabs $0x412e847fcccccccd,%rcx
84 2e 41
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rcx,(%r14,%rax,8)
add    $0x1,%rax
cmp    %rax,%r15
jne    1260 <Worley+0x140>
movupd (%rdi),%xmm0
mulpd  0xd97(%rip),%xmm0
movapd %xmm0,0x30(%rsp)
movsd  0x10(%rdi),%xmm1
mulsd  0xda4(%rip),%xmm1
xorpd  %xmm2,%xmm2
xor    %eax,%eax
ucomisd %xmm0,%xmm2
seta   %al
cvttsd2si %xmm0,%r13
sub    %rax,%r13
unpckhpd %xmm0,%xmm0
xor    %eax,%eax
ucomisd %xmm0,%xmm2
seta   %al
cvttsd2si %xmm0,%rbp
sub    %rax,%rbp
xor    %eax,%eax
ucomisd %xmm1,%xmm2
seta   %al
movsd  %xmm1,0x40(%rsp)
cvttsd2si %xmm1,%r12
sub    %rax,%r12
lea    0x30(%rsp),%r8
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
add    $0x10,%rsp
xorps  %xmm0,%xmm0
cvtsi2sd %r13,%xmm0
movsd  0x30(%rsp),%xmm7
subsd  %xmm0,%xmm7
xorps  %xmm0,%xmm0
cvtsi2sd %rbp,%xmm0
movsd  0x38(%rsp),%xmm5
subsd  %xmm0,%xmm5
xorps  %xmm0,%xmm0
cvtsi2sd %r12,%xmm0
movsd  0x40(%rsp),%xmm4
subsd  %xmm0,%xmm4
movsd  0xd0a(%rip),%xmm1
movapd %xmm7,%xmm3
mulsd  %xmm7,%xmm3
movapd %xmm5,%xmm2
mulsd  %xmm5,%xmm2
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  %xmm3,0x58(%rsp)
ucomisd %xmm3,%xmm0
movsd  %xmm2,0x8(%rsp)
movsd  %xmm4,0x18(%rsp)
movsd  %xmm5,0x10(%rsp)
jbe    13b4 <Worley+0x294>
lea    -0x1(%r13),%rdi
lea    0x30(%rsp),%r8
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
movsd  %xmm7,0x38(%rsp)
call   1030 <AddSamples@plt>
movsd  0x38(%rsp),%xmm7
movsd  0x20(%rsp),%xmm5
movsd  0x28(%rsp),%xmm4
movsd  0x18(%rsp),%xmm2
movsd  0xc8f(%rip),%xmm1
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movapd %xmm1,%xmm6
subsd  %xmm7,%xmm6
movapd %xmm4,%xmm7
mulsd  %xmm4,%xmm7
ucomisd %xmm2,%xmm0
movsd  %xmm7,0x28(%rsp)
jbe    1427 <Worley+0x307>
lea    -0x1(%rbp),%rsi
lea    0x30(%rsp),%r8
mov    %r13,%rdi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
movsd  %xmm6,0x58(%rsp)
call   1030 <AddSamples@plt>
movsd  0x38(%rsp),%xmm7
movsd  0x58(%rsp),%xmm6
movsd  0x20(%rsp),%xmm5
movsd  0x28(%rsp),%xmm4
movsd  0x18(%rsp),%xmm2
movsd  0xc1c(%rip),%xmm1
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movapd %xmm1,%xmm3
subsd  %xmm5,%xmm3
mulsd  %xmm6,%xmm6
ucomisd %xmm7,%xmm0
movsd  %xmm6,0x48(%rsp)
jbe    1491 <Worley+0x371>
lea    -0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
movsd  %xmm3,0x60(%rsp)
call   1030 <AddSamples@plt>
movsd  0x58(%rsp),%xmm6
movsd  0x28(%rsp),%xmm4
movsd  0x60(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
movsd  0xbb2(%rip),%xmm1
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
subsd  %xmm4,%xmm1
mulsd  %xmm3,%xmm3
ucomisd %xmm6,%xmm0
movsd  %xmm3,0x50(%rsp)
jbe    14e8 <Worley+0x3c8>
lea    0x1(%r13),%rdi
lea    0x30(%rsp),%r8
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
movsd  %xmm1,0x28(%rsp)
call   1030 <AddSamples@plt>
movsd  0x60(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
movsd  0x28(%rsp),%xmm1
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
mulsd  %xmm1,%xmm1
ucomisd %xmm3,%xmm0
movsd  %xmm1,0x18(%rsp)
jbe    152f <Worley+0x40f>
lea    0x1(%rbp),%rsi
lea    0x30(%rsp),%r8
mov    %r13,%rdi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x18(%rsp),%xmm2
movsd  0x28(%rsp),%xmm1
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1567 <Worley+0x447>
lea    0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x58(%rsp),%xmm1
movapd %xmm1,%xmm5
addsd  %xmm2,%xmm5
ucomisd %xmm5,%xmm0
movsd  %xmm5,0x20(%rsp)
jbe    15bf <Worley+0x49f>
lea    -0x1(%r13),%rdi
lea    -0x1(%rbp),%rsi
lea    0x30(%rsp),%r8
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x30(%rsp),%xmm5
movsd  0x68(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x28(%rsp),%xmm3
addsd  %xmm3,%xmm1
ucomisd %xmm1,%xmm0
jbe    160e <Worley+0x4ee>
lea    -0x1(%r13),%rdi
lea    -0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %rbp,%rsi
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x38(%rsp),%xmm3
movsd  0x30(%rsp),%xmm5
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movapd %xmm2,%xmm1
addsd  %xmm3,%xmm1
ucomisd %xmm1,%xmm0
jbe    1655 <Worley+0x535>
lea    -0x1(%rbp),%rsi
lea    -0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r13,%rdi
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x30(%rsp),%xmm5
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x48(%rsp),%xmm1
movapd %xmm1,%xmm3
addsd  0x50(%rsp),%xmm3
ucomisd %xmm3,%xmm0
movsd  %xmm3,0x10(%rsp)
jbe    16b5 <Worley+0x595>
lea    0x1(%r13),%rdi
lea    0x1(%rbp),%rsi
lea    0x30(%rsp),%r8
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x30(%rsp),%xmm5
movsd  0x58(%rsp),%xmm1
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x18(%rsp),%xmm4
addsd  %xmm4,%xmm1
ucomisd %xmm1,%xmm0
jbe    170a <Worley+0x5ea>
lea    0x1(%r13),%rdi
lea    0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %rbp,%rsi
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x28(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x50(%rsp),%xmm6
movapd %xmm6,%xmm1
addsd  %xmm4,%xmm1
ucomisd %xmm1,%xmm0
jbe    1763 <Worley+0x643>
lea    0x1(%rbp),%rsi
lea    0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r13,%rdi
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x60(%rsp),%xmm6
movsd  0x30(%rsp),%xmm5
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x58(%rsp),%xmm1
movapd %xmm1,%xmm4
addsd  %xmm6,%xmm4
movsd  %xmm4,0x60(%rsp)
ucomisd %xmm4,%xmm0
jbe    17c1 <Worley+0x6a1>
lea    -0x1(%r13),%rdi
lea    0x1(%rbp),%rsi
lea    0x30(%rsp),%r8
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x30(%rsp),%xmm5
movsd  0x68(%rsp),%xmm1
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x18(%rsp),%xmm4
addsd  %xmm4,%xmm1
ucomisd %xmm1,%xmm0
jbe    1816 <Worley+0x6f6>
lea    -0x1(%r13),%rdi
lea    0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %rbp,%rsi
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x28(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movapd %xmm2,%xmm1
addsd  %xmm4,%xmm1
ucomisd %xmm1,%xmm0
jbe    1863 <Worley+0x743>
lea    -0x1(%rbp),%rsi
lea    0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r13,%rdi
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x30(%rsp),%xmm5
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x48(%rsp),%xmm4
addsd  %xmm4,%xmm2
ucomisd %xmm2,%xmm0
movsd  %xmm2,0x8(%rsp)
jbe    18bd <Worley+0x79d>
lea    0x1(%r13),%rdi
lea    -0x1(%rbp),%rsi
lea    0x30(%rsp),%r8
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x58(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x28(%rsp),%xmm1
addsd  %xmm1,%xmm4
ucomisd %xmm4,%xmm0
jbe    1912 <Worley+0x7f2>
lea    0x1(%r13),%rdi
lea    -0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %rbp,%rsi
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x30(%rsp),%xmm5
movsd  0x20(%rsp),%xmm3
movsd  0x38(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x50(%rsp),%xmm4
addsd  %xmm1,%xmm4
ucomisd %xmm4,%xmm0
movapd %xmm1,%xmm4
jbe    196b <Worley+0x84b>
lea    0x1(%rbp),%rsi
lea    -0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r13,%rdi
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x38(%rsp),%xmm4
movsd  0x30(%rsp),%xmm5
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movapd %xmm5,%xmm1
addsd  %xmm4,%xmm1
ucomisd %xmm1,%xmm0
jbe    19b9 <Worley+0x899>
lea    -0x1(%r13),%rdi
lea    -0x1(%rbp),%rsi
lea    -0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x30(%rsp),%xmm5
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
addsd  0x18(%rsp),%xmm5
ucomisd %xmm5,%xmm0
jbe    19ff <Worley+0x8df>
lea    -0x1(%r13),%rdi
lea    -0x1(%rbp),%rsi
lea    0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x28(%rsp),%xmm1
movsd  0x60(%rsp),%xmm4
addsd  %xmm4,%xmm1
ucomisd %xmm1,%xmm0
jbe    1a55 <Worley+0x935>
lea    -0x1(%r13),%rdi
lea    0x1(%rbp),%rsi
lea    -0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x70(%rsp),%xmm4
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
addsd  0x18(%rsp),%xmm4
ucomisd %xmm4,%xmm0
jbe    1a9b <Worley+0x97b>
lea    -0x1(%r13),%rdi
lea    0x1(%rbp),%rsi
lea    0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movapd %xmm2,%xmm1
addsd  0x28(%rsp),%xmm1
ucomisd %xmm1,%xmm0
jbe    1ae5 <Worley+0x9c5>
lea    0x1(%r13),%rdi
lea    -0x1(%rbp),%rsi
lea    -0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x20(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x18(%rsp),%xmm1
addsd  %xmm1,%xmm2
ucomisd %xmm2,%xmm0
jbe    1b2f <Worley+0xa0f>
lea    0x1(%r13),%rdi
lea    -0x1(%rbp),%rsi
lea    0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x20(%rsp),%xmm3
movsd  0x28(%rsp),%xmm1
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
movsd  0x28(%rsp),%xmm2
addsd  %xmm3,%xmm2
ucomisd %xmm2,%xmm0
jbe    1b79 <Worley+0xa59>
lea    0x1(%r13),%rdi
lea    0x1(%rbp),%rsi
lea    -0x1(%r12),%rdx
lea    0x30(%rsp),%r8
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
movsd  0x20(%rsp),%xmm3
movsd  0x28(%rsp),%xmm1
add    $0x10,%rsp
movsd  -0x8(%r14,%r15,8),%xmm0
addsd  %xmm1,%xmm3
ucomisd %xmm3,%xmm0
jbe    1bb2 <Worley+0xa92>
add    $0x1,%r13
add    $0x1,%rbp
add    $0x1,%r12
lea    0x30(%rsp),%r8
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r9
xor    %eax,%eax
push   (%rsp)
push   %rbx
call   1030 <AddSamples@plt>
add    $0x10,%rsp
test   %r15,%r15
jle    1c3c <Worley+0xb1c>
add    $0x10,%rbx
xor    %ebp,%ebp
xorpd  %xmm1,%xmm1
movsd  0x473(%rip),%xmm2
movapd 0x44b(%rip),%xmm3
jmp    1c2a <Worley+0xb0a>
nopw   0x0(%rax,%rax,1)
call   1040 <sqrt@plt>
movapd 0x433(%rip),%xmm3
movsd  0x44b(%rip),%xmm2
xorpd  %xmm1,%xmm1
mulsd  %xmm2,%xmm0
movsd  %xmm0,(%r14,%rbp,8)
movupd -0x10(%rbx),%xmm0
mulpd  %xmm3,%xmm0
movupd %xmm0,-0x10(%rbx)
movsd  (%rbx),%xmm0
mulsd  %xmm2,%xmm0
movsd  %xmm0,(%rbx)
add    $0x1,%rbp
add    $0x18,%rbx
cmp    %rbp,%r15
je     1c3c <Worley+0xb1c>
movsd  (%r14,%rbp,8),%xmm0
ucomisd %xmm1,%xmm0
jb     1be0 <Worley+0xac0>
sqrtsd %xmm0,%xmm0
jmp    1bf9 <Worley+0xad9>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @Worley(double* nocapture %0, i64 %1, double* %2, [3 x double]* %3, i64* %4) {
%6 = alloca [3 x double]
%7 = bitcast [3 x double]* %6 to i8*
%8 = icmp sgt i64 %1, 0
br i1 %8, label %9, label %87
9: ; preds = %5
%10 = icmp ult i64 %1, 4
br i1 %10, label %80, label %11
11: ; preds = %9
%12 = and i64 %1, -4
%13 = add i64 %12, -4
%14 = lshr exact i64 %13, 2
%15 = add nuw nsw i64 %14, 1
%16 = and i64 %15, 7
%17 = icmp ult i64 %13, 28
br i1 %17, label %65, label %18
18: ; preds = %11
%19 = and i64 %15, 9223372036854775800
br label %20
20: ; preds = %20, %18
%21 = phi i64 [ 0, %18 ], [ %62, %20 ]
%22 = phi i64 [ 0, %18 ], [ %63, %20 ]
%23 = getelementptr inbounds double, double* %2, i64 %21
%24 = bitcast double* %23 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %24
%25 = getelementptr inbounds double, double* %23, i64 2
%26 = bitcast double* %25 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %26
%27 = or i64 %21, 4
%28 = getelementptr inbounds double, double* %2, i64 %27
%29 = bitcast double* %28 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %29
%30 = getelementptr inbounds double, double* %28, i64 2
%31 = bitcast double* %30 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %31
%32 = or i64 %21, 8
%33 = getelementptr inbounds double, double* %2, i64 %32
%34 = bitcast double* %33 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %34
%35 = getelementptr inbounds double, double* %33, i64 2
%36 = bitcast double* %35 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %36
%37 = or i64 %21, 12
%38 = getelementptr inbounds double, double* %2, i64 %37
%39 = bitcast double* %38 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %39
%40 = getelementptr inbounds double, double* %38, i64 2
%41 = bitcast double* %40 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %41
%42 = or i64 %21, 16
%43 = getelementptr inbounds double, double* %2, i64 %42
%44 = bitcast double* %43 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %44
%45 = getelementptr inbounds double, double* %43, i64 2
%46 = bitcast double* %45 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %46
%47 = or i64 %21, 20
%48 = getelementptr inbounds double, double* %2, i64 %47
%49 = bitcast double* %48 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %49
%50 = getelementptr inbounds double, double* %48, i64 2
%51 = bitcast double* %50 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %51
%52 = or i64 %21, 24
%53 = getelementptr inbounds double, double* %2, i64 %52
%54 = bitcast double* %53 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %54
%55 = getelementptr inbounds double, double* %53, i64 2
%56 = bitcast double* %55 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %56
%57 = or i64 %21, 28
%58 = getelementptr inbounds double, double* %2, i64 %57
%59 = bitcast double* %58 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %59
%60 = getelementptr inbounds double, double* %58, i64 2
%61 = bitcast double* %60 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %61
%62 = add nuw i64 %21, 32
%63 = add i64 %22, 8
%64 = icmp eq i64 %63, %19
br i1 %64, label %65, label %20
65: ; preds = %20, %11
%66 = phi i64 [ 0, %11 ], [ %62, %20 ]
%67 = icmp eq i64 %16, 0
br i1 %67, label %78, label %68
68: ; preds = %65, %68
%69 = phi i64 [ %75, %68 ], [ %66, %65 ]
%70 = phi i64 [ %76, %68 ], [ 0, %65 ]
%71 = getelementptr inbounds double, double* %2, i64 %69
%72 = bitcast double* %71 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %72
%73 = getelementptr inbounds double, double* %71, i64 2
%74 = bitcast double* %73 to <2 x double>*
store <2 x double> <double 0x412E847FCCCCCCCD, double 0x412E847FCCCCCCCD>, <2 x double>* %74
%75 = add nuw i64 %69, 4
%76 = add i64 %70, 1
%77 = icmp eq i64 %76, %16
br i1 %77, label %78, label %68
78: ; preds = %68, %65
%79 = icmp eq i64 %12, %1
br i1 %79, label %87, label %80
80: ; preds = %9, %78
%81 = phi i64 [ 0, %9 ], [ %12, %78 ]
br label %82
82: ; preds = %80, %82
%83 = phi i64 [ %85, %82 ], [ %81, %80 ]
%84 = getelementptr inbounds double, double* %2, i64 %83
store double 0x412E847FCCCCCCCD, double* %84
%85 = add nuw nsw i64 %83, 1
%86 = icmp eq i64 %85, %1
br i1 %86, label %87, label %82
87: ; preds = %82, %78, %5
%88 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
%89 = bitcast double* %0 to <2 x double>*
%90 = load <2 x double>, <2 x double>* %89
%91 = fmul <2 x double> %90, <double 3.981500e-01, double 3.981500e-01>
%92 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 1
%93 = bitcast [3 x double]* %6 to <2 x double>*
store <2 x double> %91, <2 x double>* %93
%94 = getelementptr inbounds double, double* %0, i64 2
%95 = load double, double* %94
%96 = fmul double %95, 3.981500e-01
%97 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 2
store double %96, double* %97
%98 = extractelement <2 x double> %91, i64 0
%99 = fcmp olt double %98, 0.000000e+00
%100 = fptosi double %98 to i64
%101 = sext i1 %99 to i64
%102 = add nsw i64 %101, %100
%103 = extractelement <2 x double> %91, i64 1
%104 = fcmp olt double %103, 0.000000e+00
%105 = fptosi double %103 to i64
%106 = sext i1 %104 to i64
%107 = add nsw i64 %106, %105
%108 = fcmp olt double %96, 0.000000e+00
%109 = fptosi double %96 to i64
%110 = sext i1 %108 to i64
%111 = add nsw i64 %110, %109
%112 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %102, i64 %107, i64 %111, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%113 = load double, double* %88
%114 = sitofp i64 %102 to double
%115 = fsub double %113, %114
%116 = load double, double* %92
%117 = sitofp i64 %107 to double
%118 = fsub double %116, %117
%119 = load double, double* %97
%120 = sitofp i64 %111 to double
%121 = fsub double %119, %120
%122 = fsub double 1.000000e+00, %115
%123 = fmul double %122, %122
%124 = fsub double 1.000000e+00, %118
%125 = fmul double %124, %124
%126 = fsub double 1.000000e+00, %121
%127 = fmul double %126, %126
%128 = fmul double %115, %115
%129 = fmul double %118, %118
%130 = fmul double %121, %121
%131 = add nsw i64 %1, -1
%132 = getelementptr inbounds double, double* %2, i64 %131
%133 = load double, double* %132
%134 = fcmp olt double %128, %133
br i1 %134, label %135, label %139
135: ; preds = %87
%136 = add nsw i64 %102, -1
%137 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %136, i64 %107, i64 %111, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%138 = load double, double* %132
br label %139
139: ; preds = %135, %87
%140 = phi double [ %138, %135 ], [ %133, %87 ]
%141 = fcmp olt double %129, %140
br i1 %141, label %142, label %146
142: ; preds = %139
%143 = add nsw i64 %107, -1
%144 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %102, i64 %143, i64 %111, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%145 = load double, double* %132
br label %146
146: ; preds = %142, %139
%147 = phi double [ %145, %142 ], [ %140, %139 ]
%148 = fcmp olt double %130, %147
br i1 %148, label %149, label %153
149: ; preds = %146
%150 = add nsw i64 %111, -1
%151 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %102, i64 %107, i64 %150, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%152 = load double, double* %132
br label %153
153: ; preds = %149, %146
%154 = phi double [ %152, %149 ], [ %147, %146 ]
%155 = fcmp olt double %123, %154
br i1 %155, label %156, label %160
156: ; preds = %153
%157 = add nsw i64 %102, 1
%158 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %157, i64 %107, i64 %111, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%159 = load double, double* %132
br label %160
160: ; preds = %156, %153
%161 = phi double [ %159, %156 ], [ %154, %153 ]
%162 = fcmp olt double %125, %161
br i1 %162, label %163, label %167
163: ; preds = %160
%164 = add nsw i64 %107, 1
%165 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %102, i64 %164, i64 %111, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%166 = load double, double* %132
br label %167
167: ; preds = %163, %160
%168 = phi double [ %166, %163 ], [ %161, %160 ]
%169 = fcmp olt double %127, %168
br i1 %169, label %170, label %174
170: ; preds = %167
%171 = add nsw i64 %111, 1
%172 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %102, i64 %107, i64 %171, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%173 = load double, double* %132
br label %174
174: ; preds = %170, %167
%175 = phi double [ %173, %170 ], [ %168, %167 ]
%176 = fadd double %128, %129
%177 = fcmp olt double %176, %175
br i1 %177, label %178, label %183
178: ; preds = %174
%179 = add nsw i64 %102, -1
%180 = add nsw i64 %107, -1
%181 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %179, i64 %180, i64 %111, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%182 = load double, double* %132
br label %183
183: ; preds = %178, %174
%184 = phi double [ %182, %178 ], [ %175, %174 ]
%185 = fadd double %128, %130
%186 = fcmp olt double %185, %184
br i1 %186, label %187, label %192
187: ; preds = %183
%188 = add nsw i64 %102, -1
%189 = add nsw i64 %111, -1
%190 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %188, i64 %107, i64 %189, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%191 = load double, double* %132
br label %192
192: ; preds = %187, %183
%193 = phi double [ %191, %187 ], [ %184, %183 ]
%194 = fadd double %129, %130
%195 = fcmp olt double %194, %193
br i1 %195, label %196, label %201
196: ; preds = %192
%197 = add nsw i64 %107, -1
%198 = add nsw i64 %111, -1
%199 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %102, i64 %197, i64 %198, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%200 = load double, double* %132
br label %201
201: ; preds = %196, %192
%202 = phi double [ %200, %196 ], [ %193, %192 ]
%203 = fadd double %123, %125
%204 = fcmp olt double %203, %202
br i1 %204, label %205, label %210
205: ; preds = %201
%206 = add nsw i64 %102, 1
%207 = add nsw i64 %107, 1
%208 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %206, i64 %207, i64 %111, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%209 = load double, double* %132
br label %210
210: ; preds = %205, %201
%211 = phi double [ %209, %205 ], [ %202, %201 ]
%212 = fadd double %123, %127
%213 = fcmp olt double %212, %211
br i1 %213, label %214, label %219
214: ; preds = %210
%215 = add nsw i64 %102, 1
%216 = add nsw i64 %111, 1
%217 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %215, i64 %107, i64 %216, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%218 = load double, double* %132
br label %219
219: ; preds = %214, %210
%220 = phi double [ %218, %214 ], [ %211, %210 ]
%221 = fadd double %125, %127
%222 = fcmp olt double %221, %220
br i1 %222, label %223, label %228
223: ; preds = %219
%224 = add nsw i64 %107, 1
%225 = add nsw i64 %111, 1
%226 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %102, i64 %224, i64 %225, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%227 = load double, double* %132
br label %228
228: ; preds = %223, %219
%229 = phi double [ %227, %223 ], [ %220, %219 ]
%230 = fadd double %128, %125
%231 = fcmp olt double %230, %229
br i1 %231, label %232, label %237
232: ; preds = %228
%233 = add nsw i64 %102, -1
%234 = add nsw i64 %107, 1
%235 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %233, i64 %234, i64 %111, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%236 = load double, double* %132
br label %237
237: ; preds = %232, %228
%238 = phi double [ %236, %232 ], [ %229, %228 ]
%239 = fadd double %128, %127
%240 = fcmp olt double %239, %238
br i1 %240, label %241, label %246
241: ; preds = %237
%242 = add nsw i64 %102, -1
%243 = add nsw i64 %111, 1
%244 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %242, i64 %107, i64 %243, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%245 = load double, double* %132
br label %246
246: ; preds = %241, %237
%247 = phi double [ %245, %241 ], [ %238, %237 ]
%248 = fadd double %129, %127
%249 = fcmp olt double %248, %247
br i1 %249, label %250, label %255
250: ; preds = %246
%251 = add nsw i64 %107, -1
%252 = add nsw i64 %111, 1
%253 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %102, i64 %251, i64 %252, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%254 = load double, double* %132
br label %255
255: ; preds = %250, %246
%256 = phi double [ %254, %250 ], [ %247, %246 ]
%257 = fadd double %123, %129
%258 = fcmp olt double %257, %256
br i1 %258, label %259, label %264
259: ; preds = %255
%260 = add nsw i64 %102, 1
%261 = add nsw i64 %107, -1
%262 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %260, i64 %261, i64 %111, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%263 = load double, double* %132
br label %264
264: ; preds = %259, %255
%265 = phi double [ %263, %259 ], [ %256, %255 ]
%266 = fadd double %123, %130
%267 = fcmp olt double %266, %265
br i1 %267, label %268, label %273
268: ; preds = %264
%269 = add nsw i64 %102, 1
%270 = add nsw i64 %111, -1
%271 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %269, i64 %107, i64 %270, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%272 = load double, double* %132
br label %273
273: ; preds = %268, %264
%274 = phi double [ %272, %268 ], [ %265, %264 ]
%275 = fadd double %125, %130
%276 = fcmp olt double %275, %274
br i1 %276, label %277, label %282
277: ; preds = %273
%278 = add nsw i64 %107, 1
%279 = add nsw i64 %111, -1
%280 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %102, i64 %278, i64 %279, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%281 = load double, double* %132
br label %282
282: ; preds = %277, %273
%283 = phi double [ %281, %277 ], [ %274, %273 ]
%284 = fadd double %176, %130
%285 = fcmp olt double %284, %283
br i1 %285, label %286, label %292
286: ; preds = %282
%287 = add nsw i64 %102, -1
%288 = add nsw i64 %107, -1
%289 = add nsw i64 %111, -1
%290 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %287, i64 %288, i64 %289, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%291 = load double, double* %132
br label %292
292: ; preds = %286, %282
%293 = phi double [ %291, %286 ], [ %283, %282 ]
%294 = fadd double %176, %127
%295 = fcmp olt double %294, %293
br i1 %295, label %296, label %302
296: ; preds = %292
%297 = add nsw i64 %102, -1
%298 = add nsw i64 %107, -1
%299 = add nsw i64 %111, 1
%300 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %297, i64 %298, i64 %299, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%301 = load double, double* %132
br label %302
302: ; preds = %296, %292
%303 = phi double [ %301, %296 ], [ %293, %292 ]
%304 = fadd double %130, %230
%305 = fcmp olt double %304, %303
br i1 %305, label %306, label %312
306: ; preds = %302
%307 = add nsw i64 %102, -1
%308 = add nsw i64 %107, 1
%309 = add nsw i64 %111, -1
%310 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %307, i64 %308, i64 %309, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%311 = load double, double* %132
br label %312
312: ; preds = %306, %302
%313 = phi double [ %311, %306 ], [ %303, %302 ]
%314 = fadd double %230, %127
%315 = fcmp olt double %314, %313
br i1 %315, label %316, label %322
316: ; preds = %312
%317 = add nsw i64 %102, -1
%318 = add nsw i64 %107, 1
%319 = add nsw i64 %111, 1
%320 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %317, i64 %318, i64 %319, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%321 = load double, double* %132
br label %322
322: ; preds = %316, %312
%323 = phi double [ %321, %316 ], [ %313, %312 ]
%324 = fadd double %257, %130
%325 = fcmp olt double %324, %323
br i1 %325, label %326, label %332
326: ; preds = %322
%327 = add nsw i64 %102, 1
%328 = add nsw i64 %107, -1
%329 = add nsw i64 %111, -1
%330 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %327, i64 %328, i64 %329, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%331 = load double, double* %132
br label %332
332: ; preds = %326, %322
%333 = phi double [ %331, %326 ], [ %323, %322 ]
%334 = fadd double %257, %127
%335 = fcmp olt double %334, %333
br i1 %335, label %336, label %342
336: ; preds = %332
%337 = add nsw i64 %102, 1
%338 = add nsw i64 %107, -1
%339 = add nsw i64 %111, 1
%340 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %337, i64 %338, i64 %339, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%341 = load double, double* %132
br label %342
342: ; preds = %336, %332
%343 = phi double [ %341, %336 ], [ %333, %332 ]
%344 = fadd double %130, %203
%345 = fcmp olt double %344, %343
br i1 %345, label %346, label %352
346: ; preds = %342
%347 = add nsw i64 %102, 1
%348 = add nsw i64 %107, 1
%349 = add nsw i64 %111, -1
%350 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %347, i64 %348, i64 %349, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
%351 = load double, double* %132
br label %352
352: ; preds = %346, %342
%353 = phi double [ %351, %346 ], [ %343, %342 ]
%354 = fadd double %203, %127
%355 = fcmp olt double %354, %353
br i1 %355, label %356, label %361
356: ; preds = %352
%357 = add nsw i64 %102, 1
%358 = add nsw i64 %107, 1
%359 = add nsw i64 %111, 1
%360 = call i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...) bitcast (i32 (...)* @AddSamples to i32 (i64, i64, i64, i64, double*, double*, [3 x double]*, i64*, ...)*)(i64 %357, i64 %358, i64 %359, i64 %1, double* %88, double* %2, [3 x double]* %3, i64* %4)
br label %361
361: ; preds = %356, %352
br i1 %8, label %362, label %378
362: ; preds = %361, %362
%363 = phi i64 [ %376, %362 ], [ 0, %361 ]
%364 = getelementptr inbounds double, double* %2, i64 %363
%365 = load double, double* %364
%366 = call double @sqrt(double %365)
%367 = fmul double %366, 0x400417CA3F5539E6
store double %367, double* %364
%368 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 %363, i64 0
%369 = bitcast double* %368 to <2 x double>*
%370 = load <2 x double>, <2 x double>* %369
%371 = fmul <2 x double> %370, <double 0x400417CA3F5539E6, double 0x400417CA3F5539E6>
%372 = bitcast double* %368 to <2 x double>*
store <2 x double> %371, <2 x double>* %372
%373 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 %363, i64 2
%374 = load double, double* %373
%375 = fmul double %374, 0x400417CA3F5539E6
store double %375, double* %373
%376 = add nuw nsw i64 %363, 1
%377 = icmp eq i64 %376, %1
br i1 %377, label %378, label %362
378: ; preds = %362, %361
ret void
}