#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/
InterpolatedThree3DZero(double *, double *, double *, double *, double *,
                        double *, double *, double *, double *, double *,
                        double *, double *, float *, float *, float *, long,
                        long, long, double, double, double, long);
extern void BatchInterpolatedThree3DZero(
    float *Bo1, float *Bo1gx, float *Bo1gy, float *Bo1gz, float *Bo2,
    float *Bo2gx, float *Bo2gy, float *Bo2gz, float *Bo3, float *Bo3gx,
    float *Bo3gy, float *Bo3gz, float *Bcoeff1, float *Bcoeff2, float *Bcoeff3,
    long Width, long Height, long Slice, double nx, double offx, double mx,
    double ny, double offy, double my, double nz, double offz, double mz,
    float *mask, long SplineDegree) {
  double x, y, z;
  double out1, gradx1, grady1, gradz1;
  double out2, gradx2, grady2, gradz2;
  double out3, gradx3, grady3, gradz3;
  long idx;
  long idcoordx, idcoordy, idcoordz;
  idx = 0;
  for (idcoordz = 0; idcoordz < nz; idcoordz++) {
    for (idcoordy = 0; idcoordy < ny; idcoordy++) {
      for (idcoordx = 0; idcoordx < nx; idcoordx++) {
        if (mask[idx] == 0) {
          Bo1[idx] = 0;
          Bo1gx[idx] = 0;
          Bo1gy[idx] = 0;
          Bo1gz[idx] = 0;
          Bo2[idx] = 0;
          Bo2gx[idx] = 0;
          Bo2gy[idx] = 0;
          Bo2gz[idx] = 0;
          Bo3[idx] = 0;
          Bo3gx[idx] = 0;
          Bo3gy[idx] = 0;
          Bo3gz[idx++] = 0;
        } else {
          x = (idcoordx - offx) / mx;
          y = (idcoordy - offy) / my;
          z = (idcoordz - offz) / mz;
          InterpolatedThree3DZero(&out1, &gradx1, &grady1, &gradz1, &out2,
                                  &gradx2, &grady2, &gradz2, &out3, &gradx3,
                                  &grady3, &gradz3, Bcoeff1, Bcoeff2, Bcoeff3,
                                  Width, Height, Slice, x, y, z, SplineDegree);
          Bo1[idx] = out1;
          Bo1gx[idx] = gradx1 / mx;
          Bo1gy[idx] = grady1 / my;
          Bo1gz[idx] = gradz1 / mz;
          Bo2[idx] = out2;
          Bo2gx[idx] = gradx2 / mx;
          Bo2gy[idx] = grady2 / my;
          Bo2gz[idx] = gradz2 / mz;
          Bo3[idx] = out3;
          Bo3gx[idx] = gradx3 / mx;
          Bo3gy[idx] = grady3 / my;
          Bo3gz[idx++] = gradz3 / mz;
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<BatchInterpolatedThree3DZero>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x198,%rsp
mov    0x80(%rbp),%rax
mov    0x78(%rbp),%rax
movsd  0x70(%rbp),%xmm8
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
mov    %r8,-0x50(%rbp)
mov    %r9,-0x58(%rbp)
movsd  %xmm0,-0x60(%rbp)
movsd  %xmm1,-0x68(%rbp)
movsd  %xmm2,-0x70(%rbp)
movsd  %xmm3,-0x78(%rbp)
movsd  %xmm4,-0x80(%rbp)
movsd  %xmm5,-0x88(%rbp)
ff
movsd  %xmm6,-0x90(%rbp)
ff
movsd  %xmm7,-0x98(%rbp)
ff
movq   $0x0,-0x118(%rbp)
movq   $0x0,-0x130(%rbp)
cvtsi2sdq -0x130(%rbp),%xmm1
ff ff
movsd  -0x90(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1693 <BatchInterpolatedThree3DZero+0x583>
movq   $0x0,-0x128(%rbp)
cvtsi2sdq -0x128(%rbp),%xmm1
ff ff
movsd  -0x78(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1677 <BatchInterpolatedThree3DZero+0x567>
movq   $0x0,-0x120(%rbp)
cvtsi2sdq -0x120(%rbp),%xmm1
ff ff
movsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    165b <BatchInterpolatedThree3DZero+0x54b>
mov    0x78(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    133e <BatchInterpolatedThree3DZero+0x22e>
jp     133e <BatchInterpolatedThree3DZero+0x22e>
mov    -0x30(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x38(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x40(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x48(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x50(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x58(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    0x10(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    0x18(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    0x20(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    0x28(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    0x30(%rbp),%rax
mov    -0x118(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    0x38(%rbp),%rax
mov    -0x118(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x118(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
jmp    163f <BatchInterpolatedThree3DZero+0x52f>
cvtsi2sdq -0x120(%rbp),%xmm0
ff ff
subsd  -0x68(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
cvtsi2sdq -0x128(%rbp),%xmm0
ff ff
subsd  -0x80(%rbp),%xmm0
divsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
cvtsi2sdq -0x130(%rbp),%xmm0
ff ff
subsd  -0x98(%rbp),%xmm0
ff
divsd  0x70(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    0x40(%rbp),%r12
mov    0x48(%rbp),%r15
mov    0x50(%rbp),%r14
mov    0x58(%rbp),%rbx
mov    0x60(%rbp),%r11
mov    0x68(%rbp),%r10
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0xa8(%rbp),%xmm1
ff
movsd  -0xb0(%rbp),%xmm2
ff
mov    0x80(%rbp),%rax
mov    %rax,-0x138(%rbp)
lea    -0xb8(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
lea    -0xc8(%rbp),%rdx
lea    -0xd0(%rbp),%rcx
lea    -0xd8(%rbp),%r8
lea    -0xe0(%rbp),%r9
lea    -0xe8(%rbp),%rax
lea    -0xf0(%rbp),%r13
mov    %r13,-0x158(%rbp)
lea    -0xf8(%rbp),%r13
mov    %r13,-0x150(%rbp)
lea    -0x100(%rbp),%r13
mov    %r13,-0x148(%rbp)
lea    -0x108(%rbp),%r13
mov    %r13,-0x140(%rbp)
lea    -0x110(%rbp),%r13
mov    %rax,(%rsp)
mov    -0x158(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x150(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x148(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0x140(%rbp),%rax
mov    %rax,0x20(%rsp)
mov    -0x138(%rbp),%rax
mov    %r13,0x28(%rsp)
mov    %r12,0x30(%rsp)
mov    %r15,0x38(%rsp)
mov    %r14,0x40(%rsp)
mov    %rbx,0x48(%rsp)
mov    %r11,0x50(%rsp)
mov    %r10,0x58(%rsp)
mov    %rax,0x60(%rsp)
call   1030 <InterpolatedThree3DZero@plt>
movsd  -0xb8(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
mov    -0x30(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0xc0(%rbp),%xmm0
ff
divsd  -0x70(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x38(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0xc8(%rbp),%xmm0
ff
divsd  -0x88(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
mov    -0x40(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0xd0(%rbp),%xmm0
ff
divsd  0x70(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x48(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0xd8(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
mov    -0x50(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0xe0(%rbp),%xmm0
ff
divsd  -0x70(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x58(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0xe8(%rbp),%xmm0
ff
divsd  -0x88(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
mov    0x10(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0xf0(%rbp),%xmm0
ff
divsd  0x70(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0x18(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0xf8(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
mov    0x20(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0x100(%rbp),%xmm0
ff
divsd  -0x70(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0x28(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0x108(%rbp),%xmm0
ff
divsd  -0x88(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
mov    0x30(%rbp),%rax
mov    -0x118(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
movsd  -0x110(%rbp),%xmm0
ff
divsd  0x70(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0x38(%rbp),%rax
mov    -0x118(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x118(%rbp)
movss  %xmm0,(%rax,%rcx,4)
jmp    1644 <BatchInterpolatedThree3DZero+0x534>
mov    -0x120(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x120(%rbp)
jmp    120d <BatchInterpolatedThree3DZero+0xfd>
jmp    1660 <BatchInterpolatedThree3DZero+0x550>
mov    -0x128(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x128(%rbp)
jmp    11ea <BatchInterpolatedThree3DZero+0xda>
jmp    167c <BatchInterpolatedThree3DZero+0x56c>
mov    -0x130(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x130(%rbp)
jmp    11c4 <BatchInterpolatedThree3DZero+0xb4>
add    $0x198,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<BatchInterpolatedThree3DZero>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
movsd  %xmm7,0x18(%rsp)
movsd  %xmm5,0x8(%rsp)
movsd  %xmm4,0x60(%rsp)
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x80(%rsp)
mov    %r9,0x58(%rsp)
mov    %r8,0x50(%rsp)
mov    %rcx,0x48(%rsp)
mov    %rdx,0x40(%rsp)
mov    %rsi,0x38(%rsp)
mov    %rdi,0x30(%rsp)
xorpd  %xmm1,%xmm1
movsd  %xmm6,0x20(%rsp)
ucomisd %xmm1,%xmm6
jbe    161f <BatchInterpolatedThree3DZero+0x50f>
movapd %xmm0,%xmm4
xor    %eax,%eax
mov    %rax,(%rsp)
xorps  %xmm5,%xmm5
xorpd  %xmm2,%xmm2
xor    %edx,%edx
movsd  %xmm3,0x28(%rsp)
movsd  %xmm0,0x78(%rsp)
jmp    11cb <BatchInterpolatedThree3DZero+0xbb>
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%rsp),%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,(%rsp)
xorps  %xmm6,%xmm6
cvtsi2sd %rcx,%xmm6
movsd  0x20(%rsp),%xmm0
movapd %xmm6,%xmm2
ucomisd %xmm6,%xmm0
jbe    161f <BatchInterpolatedThree3DZero+0x50f>
ucomisd %xmm1,%xmm3
jbe    11a0 <BatchInterpolatedThree3DZero+0x90>
subsd  0x18(%rsp),%xmm2
divsd  0x1d0(%rsp),%xmm2
movsd  %xmm2,0x88(%rsp)
xorpd  %xmm0,%xmm0
xor    %eax,%eax
jmp    1234 <BatchInterpolatedThree3DZero+0x124>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x70(%rsp),%rdx
add    %r13,%rdx
add    $0xffffffffffffffff,%rdx
movsd  0x28(%rsp),%xmm3
xorps  %xmm1,%xmm1
mov    0x68(%rsp),%rax
add    $0x1,%rax
xorps  %xmm2,%xmm2
cvtsi2sd %rax,%xmm2
movapd %xmm2,%xmm0
ucomisd %xmm2,%xmm3
jbe    11a0 <BatchInterpolatedThree3DZero+0x90>
ucomisd %xmm1,%xmm4
jbe    121a <BatchInterpolatedThree3DZero+0x10a>
mov    %rax,0x68(%rsp)
subsd  0x60(%rsp),%xmm0
divsd  0x8(%rsp),%xmm0
movsd  %xmm0,0xd0(%rsp)
mov    0x180(%rsp),%rax
lea    (%rax,%rdx,4),%rcx
mov    0x188(%rsp),%rax
lea    (%rax,%rdx,4),%rsi
mov    0x190(%rsp),%rax
lea    (%rax,%rdx,4),%rdi
mov    0x198(%rsp),%rax
lea    (%rax,%rdx,4),%rbp
mov    0x1d8(%rsp),%rax
lea    (%rax,%rdx,4),%r8
mov    0x30(%rsp),%rax
lea    (%rax,%rdx,4),%r9
mov    0x38(%rsp),%rax
lea    (%rax,%rdx,4),%r10
mov    0x40(%rsp),%rax
lea    (%rax,%rdx,4),%r11
mov    0x48(%rsp),%rax
lea    (%rax,%rdx,4),%r12
mov    0x50(%rsp),%rax
lea    (%rax,%rdx,4),%r14
mov    0x58(%rsp),%rax
lea    (%rax,%rdx,4),%rbx
mov    0x170(%rsp),%rax
lea    (%rax,%rdx,4),%r15
mov    0x178(%rsp),%rax
mov    %rdx,0x70(%rsp)
lea    (%rax,%rdx,4),%rax
xorpd  %xmm0,%xmm0
mov    $0x1,%r13d
mov    %rdi,0xc8(%rsp)
mov    %rsi,0xc0(%rsp)
mov    %rcx,0xb8(%rsp)
mov    %rbp,0xb0(%rsp)
mov    %r14,0xa8(%rsp)
mov    %rbx,0xa0(%rsp)
mov    %r8,0x98(%rsp)
mov    %r9,0x90(%rsp)
jmp    15ad <BatchInterpolatedThree3DZero+0x49d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
subsd  0x80(%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
sub    $0x8,%rsp
lea    0x138(%rsp),%rdi
lea    0x130(%rsp),%rsi
lea    0x128(%rsp),%rdx
lea    0x120(%rsp),%rcx
lea    0x118(%rsp),%r8
lea    0x110(%rsp),%r9
movsd  0xd8(%rsp),%xmm1
movsd  0x90(%rsp),%xmm2
push   0x1e8(%rsp)
push   0x1d8(%rsp)
push   0x1d8(%rsp)
push   0x1d8(%rsp)
push   0x1d8(%rsp)
push   0x1d8(%rsp)
push   0x1d8(%rsp)
mov    %rax,%r14
lea    0x118(%rsp),%rax
push   %rax
lea    0x128(%rsp),%rax
push   %rax
lea    0x138(%rsp),%rax
push   %rax
lea    0x148(%rsp),%rax
push   %rax
lea    0x158(%rsp),%rax
push   %rax
lea    0x168(%rsp),%rax
push   %rax
mov    %r15,%rbp
mov    %r10,%r15
mov    %r11,%rbx
call   1030 <InterpolatedThree3DZero@plt>
mov    %r14,%rax
mov    %rbx,%r11
mov    %r15,%r10
mov    %rbp,%r15
mov    0x100(%rsp),%r9
mov    0x110(%rsp),%rbx
mov    0x118(%rsp),%r14
mov    0x108(%rsp),%r8
mov    0x120(%rsp),%rbp
mov    0x138(%rsp),%rdi
mov    0x130(%rsp),%rsi
mov    0x128(%rsp),%rcx
movsd  0xe8(%rsp),%xmm4
add    $0x70,%rsp
movsd  0x130(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%r9,%r13,4)
movsd  0x128(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%r10,%r13,4)
movsd  0x120(%rsp),%xmm0
movsd  0x8(%rsp),%xmm3
divsd  %xmm3,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%r11,%r13,4)
movsd  0x118(%rsp),%xmm0
movsd  0x1d0(%rsp),%xmm5
divsd  %xmm5,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%r12,%r13,4)
movsd  0x110(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%r14,%r13,4)
movsd  0x108(%rsp),%xmm0
divsd  %xmm1,%xmm0
movapd %xmm1,%xmm2
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%rbx,%r13,4)
movsd  0x100(%rsp),%xmm0
divsd  %xmm3,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%r15,%r13,4)
movsd  0xf8(%rsp),%xmm0
divsd  %xmm5,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%rax,%r13,4)
movsd  0xf0(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movsd  0xe8(%rsp),%xmm1
divsd  %xmm2,%xmm1
cvtsd2ss %xmm1,%xmm1
movsd  0xe0(%rsp),%xmm2
divsd  %xmm3,%xmm2
cvtsd2ss %xmm2,%xmm2
movsd  0xd8(%rsp),%xmm3
divsd  %xmm5,%xmm3
xorpd  %xmm5,%xmm5
cvtsd2ss %xmm3,%xmm3
movss  %xmm0,-0x4(%rcx,%r13,4)
movss  %xmm1,-0x4(%rsi,%r13,4)
movss  %xmm2,-0x4(%rdi,%r13,4)
xorps  %xmm0,%xmm0
cvtsi2sd %r13,%xmm0
movss  %xmm3,-0x4(%rbp,%r13,4)
add    $0x1,%r13
ucomisd %xmm0,%xmm4
jbe    1200 <BatchInterpolatedThree3DZero+0xf0>
movss  -0x4(%r8,%r13,4),%xmm1
ucomiss %xmm5,%xmm1
jne    1340 <BatchInterpolatedThree3DZero+0x230>
jp     1340 <BatchInterpolatedThree3DZero+0x230>
movl   $0x0,-0x4(%r9,%r13,4)
movl   $0x0,-0x4(%r10,%r13,4)
movl   $0x0,-0x4(%r11,%r13,4)
movl   $0x0,-0x4(%r12,%r13,4)
movl   $0x0,-0x4(%r14,%r13,4)
movl   $0x0,-0x4(%rbx,%r13,4)
movl   $0x0,-0x4(%r15,%r13,4)
movl   $0x0,-0x4(%rax,%r13,4)
xorpd  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorpd  %xmm2,%xmm2
xorpd  %xmm3,%xmm3
jmp    157b <BatchInterpolatedThree3DZero+0x46b>
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @BatchInterpolatedThree3DZero(float* nocapture writeonly %0, float* nocapture writeonly %1, float* nocapture writeonly %2, float* nocapture writeonly %3, float* nocapture writeonly %4, float* nocapture writeonly %5, float* nocapture writeonly %6, float* nocapture writeonly %7, float* nocapture writeonly %8, float* nocapture writeonly %9, float* nocapture writeonly %10, float* nocapture writeonly %11, float* %12, float* %13, float* %14, i64 %15, i64 %16, i64 %17, double %18, double %19, double %20, double %21, double %22, double %23, double %24, double %25, double %26, float* nocapture %27, i64 %28) {
%30 = alloca double
%31 = alloca double
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca double
%39 = alloca double
%40 = alloca double
%41 = alloca double
%42 = bitcast double* %30 to i8*
%43 = bitcast double* %31 to i8*
%44 = bitcast double* %32 to i8*
%45 = bitcast double* %33 to i8*
%46 = bitcast double* %34 to i8*
%47 = bitcast double* %35 to i8*
%48 = bitcast double* %36 to i8*
%49 = bitcast double* %37 to i8*
%50 = bitcast double* %38 to i8*
%51 = bitcast double* %39 to i8*
%52 = bitcast double* %40 to i8*
%53 = bitcast double* %41 to i8*
%54 = fcmp ogt double %24, 0.000000e+00
br i1 %54, label %55, label %156
55: ; preds = %29
%56 = fcmp ogt double %21, 0.000000e+00
%57 = fcmp ogt double %18, 0.000000e+00
br label %58
58: ; preds = %55, %151
%59 = phi double [ 0.000000e+00, %55 ], [ %154, %151 ]
%60 = phi i64 [ 0, %55 ], [ %153, %151 ]
%61 = phi i64 [ 0, %55 ], [ %152, %151 ]
br i1 %56, label %62, label %151
62: ; preds = %58
%63 = fsub double %59, %25
%64 = fdiv double %63, %26
br label %65
65: ; preds = %62, %146
%66 = phi double [ 0.000000e+00, %62 ], [ %149, %146 ]
%67 = phi i64 [ 0, %62 ], [ %148, %146 ]
%68 = phi i64 [ %61, %62 ], [ %147, %146 ]
br i1 %57, label %69, label %146
69: ; preds = %65
%70 = fsub double %66, %22
%71 = fdiv double %70, %23
br label %72
72: ; preds = %69, %133
%73 = phi double [ 0.000000e+00, %69 ], [ %144, %133 ]
%74 = phi i64 [ 0, %69 ], [ %143, %133 ]
%75 = phi i64 [ %68, %69 ], [ %142, %133 ]
%76 = getelementptr inbounds float, float* %27, i64 %75
%77 = load float, float* %76
%78 = fcmp oeq float %77, 0.000000e+00
br i1 %78, label %79, label %88
79: ; preds = %72
%80 = getelementptr inbounds float, float* %0, i64 %75
store float 0.000000e+00, float* %80
%81 = getelementptr inbounds float, float* %1, i64 %75
store float 0.000000e+00, float* %81
%82 = getelementptr inbounds float, float* %2, i64 %75
store float 0.000000e+00, float* %82
%83 = getelementptr inbounds float, float* %3, i64 %75
store float 0.000000e+00, float* %83
%84 = getelementptr inbounds float, float* %4, i64 %75
store float 0.000000e+00, float* %84
%85 = getelementptr inbounds float, float* %5, i64 %75
store float 0.000000e+00, float* %85
%86 = getelementptr inbounds float, float* %6, i64 %75
store float 0.000000e+00, float* %86
%87 = getelementptr inbounds float, float* %7, i64 %75
store float 0.000000e+00, float* %87
br label %133
88: ; preds = %72
%89 = fsub double %73, %19
%90 = fdiv double %89, %20
%91 = call i32 @InterpolatedThree3DZero(double* %30, double* %31, double* %32, double* %33, double* %34, double* %35, double* %36, double* %37, double* %38, double* %39, double* %40, double* %41, float* %12, float* %13, float* %14, i64 %15, i64 %16, i64 %17, double %90, double %71, double %64, i64 %28)
%92 = load double, double* %30
%93 = fptrunc double %92 to float
%94 = getelementptr inbounds float, float* %0, i64 %75
store float %93, float* %94
%95 = load double, double* %31
%96 = fdiv double %95, %20
%97 = fptrunc double %96 to float
%98 = getelementptr inbounds float, float* %1, i64 %75
store float %97, float* %98
%99 = load double, double* %32
%100 = fdiv double %99, %23
%101 = fptrunc double %100 to float
%102 = getelementptr inbounds float, float* %2, i64 %75
store float %101, float* %102
%103 = load double, double* %33
%104 = fdiv double %103, %26
%105 = fptrunc double %104 to float
%106 = getelementptr inbounds float, float* %3, i64 %75
store float %105, float* %106
%107 = load double, double* %34
%108 = fptrunc double %107 to float
%109 = getelementptr inbounds float, float* %4, i64 %75
store float %108, float* %109
%110 = load double, double* %35
%111 = fdiv double %110, %20
%112 = fptrunc double %111 to float
%113 = getelementptr inbounds float, float* %5, i64 %75
store float %112, float* %113
%114 = load double, double* %36
%115 = fdiv double %114, %23
%116 = fptrunc double %115 to float
%117 = getelementptr inbounds float, float* %6, i64 %75
store float %116, float* %117
%118 = load double, double* %37
%119 = fdiv double %118, %26
%120 = fptrunc double %119 to float
%121 = getelementptr inbounds float, float* %7, i64 %75
store float %120, float* %121
%122 = load double, double* %38
%123 = fptrunc double %122 to float
%124 = load double, double* %39
%125 = fdiv double %124, %20
%126 = fptrunc double %125 to float
%127 = load double, double* %40
%128 = fdiv double %127, %23
%129 = fptrunc double %128 to float
%130 = load double, double* %41
%131 = fdiv double %130, %26
%132 = fptrunc double %131 to float
br label %133
133: ; preds = %79, %88
%134 = phi float [ 0.000000e+00, %79 ], [ %123, %88 ]
%135 = phi float [ 0.000000e+00, %79 ], [ %126, %88 ]
%136 = phi float [ 0.000000e+00, %79 ], [ %129, %88 ]
%137 = phi float [ 0.000000e+00, %79 ], [ %132, %88 ]
%138 = getelementptr inbounds float, float* %8, i64 %75
store float %134, float* %138
%139 = getelementptr inbounds float, float* %9, i64 %75
store float %135, float* %139
%140 = getelementptr inbounds float, float* %10, i64 %75
store float %136, float* %140
%141 = getelementptr inbounds float, float* %11, i64 %75
store float %137, float* %141
%142 = add nsw i64 %75, 1
%143 = add nuw nsw i64 %74, 1
%144 = sitofp i64 %143 to double
%145 = fcmp olt double %144, %18
br i1 %145, label %72, label %146
146: ; preds = %133, %65
%147 = phi i64 [ %68, %65 ], [ %142, %133 ]
%148 = add nuw nsw i64 %67, 1
%149 = sitofp i64 %148 to double
%150 = fcmp olt double %149, %21
br i1 %150, label %65, label %151
151: ; preds = %146, %58
%152 = phi i64 [ %61, %58 ], [ %147, %146 ]
%153 = add nuw nsw i64 %60, 1
%154 = sitofp i64 %153 to double
%155 = fcmp olt double %154, %24
br i1 %155, label %58, label %156
156: ; preds = %151, %29
ret void
}