#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*/
InterpolatedThree3DMirr(double *, double *, double *, double *, double *,
                        double *, double *, double *, double *, double *,
                        double *, double *, float *, float *, float *, long,
                        long, long, double, double, double, long);
extern void BatchInterpolatedThree3DMirr(
    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,
    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++) {
        x = (idcoordx - offx) / mx;
        y = (idcoordy - offy) / my;
        z = (idcoordz - offz) / mz;
        InterpolatedThree3DMirr(&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):
<BatchInterpolatedThree3DMirr>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x198,%rsp
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    156b <BatchInterpolatedThree3DMirr+0x45b>
movq   $0x0,-0x128(%rbp)
cvtsi2sdq -0x128(%rbp),%xmm1
ff ff
movsd  -0x78(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    154f <BatchInterpolatedThree3DMirr+0x43f>
movq   $0x0,-0x120(%rbp)
cvtsi2sdq -0x120(%rbp),%xmm1
ff ff
movsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1533 <BatchInterpolatedThree3DMirr+0x423>
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    0x78(%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 <InterpolatedThree3DMirr@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)
mov    -0x120(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x120(%rbp)
jmp    1206 <BatchInterpolatedThree3DMirr+0xf6>
jmp    1538 <BatchInterpolatedThree3DMirr+0x428>
mov    -0x128(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x128(%rbp)
jmp    11e3 <BatchInterpolatedThree3DMirr+0xd3>
jmp    1554 <BatchInterpolatedThree3DMirr+0x444>
mov    -0x130(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x130(%rbp)
jmp    11bd <BatchInterpolatedThree3DMirr+0xad>
add    $0x198,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<BatchInterpolatedThree3DMirr>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x158,%rsp
movsd  %xmm7,0x10(%rsp)
movsd  %xmm4,0x58(%rsp)
mov    %r9,0x50(%rsp)
mov    %r8,0x48(%rsp)
mov    %rcx,0x40(%rsp)
mov    %rdx,0x38(%rsp)
mov    %rsi,0x30(%rsp)
mov    %rdi,0x28(%rsp)
xorpd  %xmm8,%xmm8
movsd  %xmm6,0x18(%rsp)
ucomisd %xmm8,%xmm6
jbe    15e4 <BatchInterpolatedThree3DMirr+0x4d4>
movapd %xmm0,%xmm9
mov    0x1f8(%rsp),%rbx
movsd  0x1f0(%rsp),%xmm6
mov    0x1e8(%rsp),%rbp
mov    0x1e0(%rsp),%r10
mov    0x1d8(%rsp),%r11
mov    0x1d0(%rsp),%r12
mov    0x1c8(%rsp),%r14
mov    0x1c0(%rsp),%r13
xor    %eax,%eax
mov    %rax,(%rsp)
xorpd  %xmm7,%xmm7
lea    0x8(%rsp),%rcx
xor    %esi,%esi
movsd  %xmm5,0x88(%rsp)
movsd  %xmm3,0x20(%rsp)
movsd  %xmm2,0x80(%rsp)
movsd  %xmm1,0x78(%rsp)
movsd  %xmm0,0x70(%rsp)
jmp    1207 <BatchInterpolatedThree3DMirr+0xf7>
xchg   %ax,%ax
mov    (%rsp),%rdx
add    $0x1,%rdx
mov    %rdx,%rax
mov    %rdx,(%rsp)
xorps  %xmm7,%xmm7
cvtsi2sd %rdx,%xmm7
movsd  0x18(%rsp),%xmm0
ucomisd %xmm7,%xmm0
jbe    15e4 <BatchInterpolatedThree3DMirr+0x4d4>
ucomisd %xmm8,%xmm3
jbe    11e0 <BatchInterpolatedThree3DMirr+0xd0>
subsd  0x10(%rsp),%xmm7
divsd  %xmm6,%xmm7
xorpd  %xmm4,%xmm4
xor    %eax,%eax
movsd  %xmm7,0x90(%rsp)
jmp    1242 <BatchInterpolatedThree3DMirr+0x132>
nopl   0x0(%rax)
add    $0x1,%rax
xorps  %xmm4,%xmm4
cvtsi2sd %rax,%xmm4
ucomisd %xmm4,%xmm3
jbe    11e0 <BatchInterpolatedThree3DMirr+0xd0>
ucomisd %xmm8,%xmm9
jbe    1230 <BatchInterpolatedThree3DMirr+0x120>
mov    %rax,0x60(%rsp)
subsd  0x58(%rsp),%xmm4
divsd  %xmm5,%xmm4
mov    0x28(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xf0(%rsp)
mov    0x30(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xe8(%rsp)
mov    0x38(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xe0(%rsp)
mov    0x40(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xd8(%rsp)
mov    0x48(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xd0(%rsp)
mov    0x50(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xc8(%rsp)
mov    0x190(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xc0(%rsp)
mov    0x198(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xb8(%rsp)
mov    0x1a0(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xb0(%rsp)
mov    0x1a8(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xa8(%rsp)
mov    0x1b0(%rsp),%rax
lea    (%rax,%rsi,4),%rax
mov    %rax,0xa0(%rsp)
mov    0x1b8(%rsp),%rax
mov    %rsi,0x68(%rsp)
lea    (%rax,%rsi,4),%rax
mov    %rax,0x98(%rsp)
xorpd  %xmm0,%xmm0
mov    $0x1,%r15d
movsd  %xmm4,0xf8(%rsp)
xchg   %ax,%ax
subsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
sub    $0x8,%rsp
lea    0x158(%rsp),%rdi
lea    0x150(%rsp),%rsi
lea    0x148(%rsp),%rdx
lea    0x140(%rsp),%r8
lea    0x138(%rsp),%r9
movapd %xmm4,%xmm1
movapd %xmm7,%xmm2
push   %rbx
push   %rbp
push   %r10
push   %r11
push   %r12
push   %r14
push   %r13
lea    0x140(%rsp),%rax
push   %rax
lea    0x150(%rsp),%rax
push   %rax
lea    0x160(%rsp),%rax
push   %rax
lea    0x170(%rsp),%rax
push   %rax
lea    0x180(%rsp),%rax
push   %rax
lea    0x190(%rsp),%rax
push   %rax
mov    %r10,%r13
mov    %r12,%r14
mov    %r11,%r12
call   1030 <InterpolatedThree3DMirr@plt>
movsd  0x168(%rsp),%xmm4
movsd  0x100(%rsp),%xmm7
lea    0x78(%rsp),%rcx
mov    %r12,%r11
mov    %r14,%r12
mov    0x238(%rsp),%r14
mov    %r13,%r10
mov    0x230(%rsp),%r13
movsd  0x260(%rsp),%xmm6
movsd  0xe0(%rsp),%xmm9
movsd  0xf0(%rsp),%xmm2
movsd  0xf8(%rsp),%xmm5
add    $0x70,%rsp
movsd  0x150(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xf0(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x148(%rsp),%xmm0
divsd  %xmm2,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xe8(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x140(%rsp),%xmm0
divsd  %xmm5,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xe0(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x8(%rsp),%xmm0
divsd  %xmm6,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xd8(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x138(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xd0(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x130(%rsp),%xmm0
divsd  %xmm2,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xc8(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x128(%rsp),%xmm0
divsd  %xmm5,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xc0(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x120(%rsp),%xmm0
divsd  %xmm6,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xb8(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x118(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xb0(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x110(%rsp),%xmm0
divsd  %xmm2,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xa8(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x108(%rsp),%xmm0
divsd  %xmm5,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    0xa0(%rsp),%rax
movss  %xmm0,-0x4(%rax,%r15,4)
movsd  0x100(%rsp),%xmm0
divsd  %xmm6,%xmm0
cvtsd2ss %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsi2sd %r15,%xmm0
mov    0x98(%rsp),%rax
movss  %xmm1,-0x4(%rax,%r15,4)
movsd  0x78(%rsp),%xmm1
add    $0x1,%r15
ucomisd %xmm0,%xmm9
ja     1350 <BatchInterpolatedThree3DMirr+0x240>
mov    0x68(%rsp),%rsi
add    %r15,%rsi
add    $0xffffffffffffffff,%rsi
movsd  0x20(%rsp),%xmm3
xorpd  %xmm8,%xmm8
mov    0x60(%rsp),%rax
jmp    1230 <BatchInterpolatedThree3DMirr+0x120>
add    $0x158,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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