#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 */
size_t Blocal_index(int, int, int, int, int, int, int, int, int, int const,
                    int const, int const, int const);
size_t index_2d(int, int const, int const);
size_t index_3d(int, int, int, int const, int const);
void make_dibaryon_hex_correlator(
    double *C_re, double *C_im, const double *B1_Blocal_re,
    const double *B1_Blocal_im, const double *B2_Blocal_re,
    const double *B2_Blocal_im, const int *perms, const int *sigs,
    const double overall_weight, const int *snk_color_weights,
    const int *snk_spin_weights, const double *snk_weights,
    const double *hex_snk_psi_re, const double *hex_snk_psi_im, const int Nc,
    const int Ns, const int Vsrc, const int Vsnk, const int Nt, const int Nw,
    const int Nq, const int Nsrc, const int NsnkHex, const int Nperms) {
  int iC1, iS1, jC1, jS1, kC1, kS1, iC2, iS2, jC2, jS2, kC2, kS2, x, t, wnum,
      nperm, b, n, m;
  int Nb = 2;
  int Nw2 = Nw * Nw;
  double term_re, term_im;
  int snk_1_nq[Nb];
  int snk_2_nq[Nb];
  int snk_3_nq[Nb];
  int snk_1_b[Nb];
  int snk_2_b[Nb];
  int snk_3_b[Nb];
  int snk_1[Nb];
  int snk_2[Nb];
  int snk_3[Nb];
  for (nperm = 0; nperm < Nperms; nperm++) {
    for (b = 0; b < Nb; b++) {
      snk_1[b] = perms[index_2d(nperm, Nq * b + 0, 2 * Nq)] - 1;
      snk_2[b] = perms[index_2d(nperm, Nq * b + 1, 2 * Nq)] - 1;
      snk_3[b] = perms[index_2d(nperm, Nq * b + 2, 2 * Nq)] - 1;
      snk_1_b[b] = (snk_1[b] - snk_1[b] % Nq) / Nq;
      snk_2_b[b] = (snk_2[b] - snk_2[b] % Nq) / Nq;
      snk_3_b[b] = (snk_3[b] - snk_3[b] % Nq) / Nq;
      snk_1_nq[b] = snk_1[b] % Nq;
      snk_2_nq[b] = snk_2[b] % Nq;
      snk_3_nq[b] = snk_3[b] % Nq;
    }
    for (wnum = 0; wnum < Nw2; wnum++) {
      iC1 = snk_color_weights[index_3d(snk_1_b[0], wnum, snk_1_nq[0], Nw2, Nq)];
      iS1 = snk_spin_weights[index_3d(snk_1_b[0], wnum, snk_1_nq[0], Nw2, Nq)];
      jC1 = snk_color_weights[index_3d(snk_2_b[0], wnum, snk_2_nq[0], Nw2, Nq)];
      jS1 = snk_spin_weights[index_3d(snk_2_b[0], wnum, snk_2_nq[0], Nw2, Nq)];
      kC1 = snk_color_weights[index_3d(snk_3_b[0], wnum, snk_3_nq[0], Nw2, Nq)];
      kS1 = snk_spin_weights[index_3d(snk_3_b[0], wnum, snk_3_nq[0], Nw2, Nq)];
      iC2 = snk_color_weights[index_3d(snk_1_b[1], wnum, snk_1_nq[1], Nw2, Nq)];
      iS2 = snk_spin_weights[index_3d(snk_1_b[1], wnum, snk_1_nq[1], Nw2, Nq)];
      jC2 = snk_color_weights[index_3d(snk_2_b[1], wnum, snk_2_nq[1], Nw2, Nq)];
      jS2 = snk_spin_weights[index_3d(snk_2_b[1], wnum, snk_2_nq[1], Nw2, Nq)];
      kC2 = snk_color_weights[index_3d(snk_3_b[1], wnum, snk_3_nq[1], Nw2, Nq)];
      kS2 = snk_spin_weights[index_3d(snk_3_b[1], wnum, snk_3_nq[1], Nw2, Nq)];
      for (t = 0; t < Nt; t++) {
        for (x = 0; x < Vsnk; x++) {
          for (m = 0; m < Nsrc; m++) {
            term_re =
                sigs[nperm] * overall_weight * snk_weights[wnum] *
                (B1_Blocal_re[Blocal_index(t, iC1, iS1, kC1, kS1, x, jC1, jS1,
                                           m, Nc, Ns, Vsnk, Nsrc)] *
                     B2_Blocal_re[Blocal_index(t, iC2, iS2, kC2, kS2, x, jC2,
                                               jS2, m, Nc, Ns, Vsnk, Nsrc)] -
                 B1_Blocal_im[Blocal_index(t, iC1, iS1, kC1, kS1, x, jC1, jS1,
                                           m, Nc, Ns, Vsnk, Nsrc)] *
                     B2_Blocal_im[Blocal_index(t, iC2, iS2, kC2, kS2, x, jC2,
                                               jS2, m, Nc, Ns, Vsnk, Nsrc)]);
            term_im =
                sigs[nperm] * overall_weight * snk_weights[wnum] *
                (B1_Blocal_re[Blocal_index(t, iC1, iS1, kC1, kS1, x, jC1, jS1,
                                           m, Nc, Ns, Vsnk, Nsrc)] *
                     B2_Blocal_im[Blocal_index(t, iC2, iS2, kC2, kS2, x, jC2,
                                               jS2, m, Nc, Ns, Vsnk, Nsrc)] +
                 B1_Blocal_im[Blocal_index(t, iC1, iS1, kC1, kS1, x, jC1, jS1,
                                           m, Nc, Ns, Vsnk, Nsrc)] *
                     B2_Blocal_re[Blocal_index(t, iC2, iS2, kC2, kS2, x, jC2,
                                               jS2, m, Nc, Ns, Vsnk, Nsrc)]);
            for (n = 0; n < NsnkHex; n++) {
              C_re[index_3d(m, n, t, NsnkHex, Nt)] +=
                  hex_snk_psi_re[index_2d(x, n, NsnkHex)] * term_re -
                  hex_snk_psi_im[index_2d(x, n, NsnkHex)] * term_im;
              C_im[index_3d(m, n, t, NsnkHex, Nt)] +=
                  hex_snk_psi_re[index_2d(x, n, NsnkHex)] * term_im +
                  hex_snk_psi_im[index_2d(x, n, NsnkHex)] * term_re;
            }
          }
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<make_dibaryon_hex_correlator>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x2a0,%rsp
mov    0x90(%rbp),%eax
mov    0x88(%rbp),%eax
mov    0x80(%rbp),%eax
mov    0x78(%rbp),%eax
mov    0x70(%rbp),%eax
mov    0x68(%rbp),%eax
mov    0x60(%rbp),%eax
mov    0x58(%rbp),%eax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%eax
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,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
mov    %r8,-0x48(%rbp)
mov    %r9,-0x50(%rbp)
movsd  %xmm0,-0x58(%rbp)
movl   $0x2,-0xa8(%rbp)
mov    0x70(%rbp),%eax
imul   %eax,%eax
mov    %eax,-0xac(%rbp)
mov    -0xa8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0xc8(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x158(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xd0(%rbp)
mov    -0xa8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x150(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xd8(%rbp)
mov    -0xa8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x148(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xe0(%rbp)
mov    -0xa8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x140(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xe8(%rbp)
mov    -0xa8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x138(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xf0(%rbp)
mov    -0xa8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x130(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xf8(%rbp)
mov    -0xa8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x128(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x100(%rbp)
mov    -0xa8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x120(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x108(%rbp)
mov    -0xa8(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x118(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x110(%rbp)
movl   $0x0,-0x98(%rbp)
mov    -0x98(%rbp),%eax
cmp    0x90(%rbp),%eax
jge    20f4 <make_dibaryon_hex_correlator+0xfc4>
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
cmp    -0xa8(%rbp),%eax
jge    159f <make_dibaryon_hex_correlator+0x46f>
mov    0x10(%rbp),%rax
mov    %rax,-0x180(%rbp)
mov    -0x98(%rbp),%edi
mov    0x78(%rbp),%esi
imul   -0x9c(%rbp),%esi
add    $0x0,%esi
mov    0x78(%rbp),%edx
shl    $0x1,%edx
call   1050 <index_2d@plt>
mov    -0x180(%rbp),%rcx
mov    %rax,%rdx
mov    -0x128(%rbp),%rax
mov    (%rcx,%rdx,4),%edx
sub    $0x1,%edx
movslq -0x9c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x10(%rbp),%rax
mov    %rax,-0x178(%rbp)
mov    -0x98(%rbp),%edi
mov    0x78(%rbp),%esi
imul   -0x9c(%rbp),%esi
add    $0x1,%esi
mov    0x78(%rbp),%edx
shl    $0x1,%edx
call   1050 <index_2d@plt>
mov    -0x178(%rbp),%rcx
mov    %rax,%rdx
mov    -0x120(%rbp),%rax
mov    (%rcx,%rdx,4),%edx
sub    $0x1,%edx
movslq -0x9c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x10(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    -0x98(%rbp),%edi
mov    0x78(%rbp),%esi
imul   -0x9c(%rbp),%esi
add    $0x2,%esi
mov    0x78(%rbp),%edx
shl    $0x1,%edx
call   1050 <index_2d@plt>
mov    -0x170(%rbp),%rsi
mov    -0x150(%rbp),%rcx
mov    -0x118(%rbp),%rdx
mov    %rax,%rdi
mov    -0x128(%rbp),%rax
mov    (%rsi,%rdi,4),%edi
sub    $0x1,%edi
movslq -0x9c(%rbp),%rsi
mov    %edi,(%rdx,%rsi,4)
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,4),%edx
mov    %edx,-0x164(%rbp)
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,4),%eax
cltd
idivl  0x78(%rbp)
mov    -0x164(%rbp),%eax
sub    %edx,%eax
cltd
idivl  0x78(%rbp)
mov    -0x140(%rbp),%rdx
mov    %eax,%edi
mov    -0x120(%rbp),%rax
movslq -0x9c(%rbp),%rsi
mov    %edi,(%rdx,%rsi,4)
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,4),%edx
mov    %edx,-0x160(%rbp)
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,4),%eax
cltd
idivl  0x78(%rbp)
mov    -0x160(%rbp),%eax
sub    %edx,%eax
cltd
idivl  0x78(%rbp)
mov    -0x138(%rbp),%rdx
mov    %eax,%edi
mov    -0x118(%rbp),%rax
movslq -0x9c(%rbp),%rsi
mov    %edi,(%rdx,%rsi,4)
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,4),%edx
mov    %edx,-0x15c(%rbp)
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,4),%eax
cltd
idivl  0x78(%rbp)
mov    -0x15c(%rbp),%eax
sub    %edx,%eax
cltd
idivl  0x78(%rbp)
mov    -0x130(%rbp),%rdx
mov    %eax,%edi
mov    -0x128(%rbp),%rax
movslq -0x9c(%rbp),%rsi
mov    %edi,(%rdx,%rsi,4)
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,4),%eax
cltd
idivl  0x78(%rbp)
mov    -0x120(%rbp),%rax
mov    %edx,%edi
mov    -0x158(%rbp),%rdx
movslq -0x9c(%rbp),%rsi
mov    %edi,(%rdx,%rsi,4)
movslq -0x9c(%rbp),%rdx
mov    (%rax,%rdx,4),%eax
cltd
idivl  0x78(%rbp)
mov    -0x118(%rbp),%rax
mov    %edx,%esi
movslq -0x9c(%rbp),%rdx
mov    %esi,(%rcx,%rdx,4)
movslq -0x9c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cltd
idivl  0x78(%rbp)
mov    -0x148(%rbp),%rax
movslq -0x9c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    1359 <make_dibaryon_hex_correlator+0x229>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0xac(%rbp),%eax
jge    20db <make_dibaryon_hex_correlator+0xfab>
mov    -0x158(%rbp),%rax
mov    -0x140(%rbp),%rcx
mov    0x20(%rbp),%rdx
mov    %rdx,-0x1e0(%rbp)
mov    (%rcx),%edi
mov    -0x94(%rbp),%esi
mov    (%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x1e0(%rbp),%rdx
mov    -0x140(%rbp),%rcx
mov    %rax,%rsi
mov    -0x158(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x5c(%rbp)
mov    0x28(%rbp),%rdx
mov    %rdx,-0x1d8(%rbp)
mov    (%rcx),%edi
mov    -0x94(%rbp),%esi
mov    (%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x1d8(%rbp),%rdx
mov    -0x138(%rbp),%rcx
mov    %rax,%rsi
mov    -0x150(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x60(%rbp)
mov    0x20(%rbp),%rdx
mov    %rdx,-0x1d0(%rbp)
mov    (%rcx),%edi
mov    -0x94(%rbp),%esi
mov    (%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x1d0(%rbp),%rdx
mov    -0x138(%rbp),%rcx
mov    %rax,%rsi
mov    -0x150(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x64(%rbp)
mov    0x28(%rbp),%rdx
mov    %rdx,-0x1c8(%rbp)
mov    (%rcx),%edi
mov    -0x94(%rbp),%esi
mov    (%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x1c8(%rbp),%rdx
mov    -0x130(%rbp),%rcx
mov    %rax,%rsi
mov    -0x148(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x68(%rbp)
mov    0x20(%rbp),%rdx
mov    %rdx,-0x1c0(%rbp)
mov    (%rcx),%edi
mov    -0x94(%rbp),%esi
mov    (%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x1c0(%rbp),%rdx
mov    -0x130(%rbp),%rcx
mov    %rax,%rsi
mov    -0x148(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x6c(%rbp)
mov    0x28(%rbp),%rdx
mov    %rdx,-0x1b8(%rbp)
mov    (%rcx),%edi
mov    -0x94(%rbp),%esi
mov    (%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x1b8(%rbp),%rdx
mov    -0x140(%rbp),%rcx
mov    %rax,%rsi
mov    -0x158(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x70(%rbp)
mov    0x20(%rbp),%rdx
mov    %rdx,-0x1b0(%rbp)
mov    0x4(%rcx),%edi
mov    -0x94(%rbp),%esi
mov    0x4(%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x1b0(%rbp),%rdx
mov    -0x140(%rbp),%rcx
mov    %rax,%rsi
mov    -0x158(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x74(%rbp)
mov    0x28(%rbp),%rdx
mov    %rdx,-0x1a8(%rbp)
mov    0x4(%rcx),%edi
mov    -0x94(%rbp),%esi
mov    0x4(%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x1a8(%rbp),%rdx
mov    -0x138(%rbp),%rcx
mov    %rax,%rsi
mov    -0x150(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x78(%rbp)
mov    0x20(%rbp),%rdx
mov    %rdx,-0x1a0(%rbp)
mov    0x4(%rcx),%edi
mov    -0x94(%rbp),%esi
mov    0x4(%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x1a0(%rbp),%rdx
mov    -0x138(%rbp),%rcx
mov    %rax,%rsi
mov    -0x150(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x7c(%rbp)
mov    0x28(%rbp),%rdx
mov    %rdx,-0x198(%rbp)
mov    0x4(%rcx),%edi
mov    -0x94(%rbp),%esi
mov    0x4(%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x198(%rbp),%rdx
mov    -0x130(%rbp),%rcx
mov    %rax,%rsi
mov    -0x148(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x80(%rbp)
mov    0x20(%rbp),%rdx
mov    %rdx,-0x190(%rbp)
mov    0x4(%rcx),%edi
mov    -0x94(%rbp),%esi
mov    0x4(%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    -0x190(%rbp),%rdx
mov    -0x130(%rbp),%rcx
mov    %rax,%rsi
mov    -0x148(%rbp),%rax
mov    (%rdx,%rsi,4),%edx
mov    %edx,-0x84(%rbp)
mov    0x28(%rbp),%rdx
mov    %rdx,-0x188(%rbp)
mov    0x4(%rcx),%edi
mov    -0x94(%rbp),%esi
mov    0x4(%rax),%edx
mov    -0xac(%rbp),%ecx
mov    0x78(%rbp),%r8d
call   1030 <index_3d@plt>
mov    %rax,%rcx
mov    -0x188(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x88(%rbp)
movl   $0x0,-0x90(%rbp)
mov    -0x90(%rbp),%eax
cmp    0x68(%rbp),%eax
jge    20c2 <make_dibaryon_hex_correlator+0xf92>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    0x60(%rbp),%eax
jge    20a9 <make_dibaryon_hex_correlator+0xf79>
movl   $0x0,-0xa4(%rbp)
mov    -0xa4(%rbp),%eax
cmp    0x80(%rbp),%eax
jge    2090 <make_dibaryon_hex_correlator+0xf60>
mov    0x18(%rbp),%rax
movslq -0x98(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    0x30(%rbp),%rax
movslq -0x94(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x230(%rbp)
ff
mov    -0x38(%rbp),%rax
mov    %rax,-0x260(%rbp)
mov    -0x90(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    -0x60(%rbp),%edx
mov    -0x6c(%rbp),%ecx
mov    -0x70(%rbp),%r8d
mov    -0x8c(%rbp),%r9d
mov    -0x64(%rbp),%r12d
mov    -0x68(%rbp),%r15d
mov    -0xa4(%rbp),%r14d
mov    0x48(%rbp),%ebx
mov    0x50(%rbp),%r11d
mov    0x60(%rbp),%r10d
mov    0x80(%rbp),%eax
sub    $0x40,%rsp
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    %rax,%rcx
mov    -0x260(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x240(%rbp)
ff
mov    -0x48(%rbp),%rax
mov    %rax,-0x258(%rbp)
mov    -0x90(%rbp),%edi
mov    -0x74(%rbp),%esi
mov    -0x78(%rbp),%edx
mov    -0x84(%rbp),%ecx
mov    -0x88(%rbp),%r8d
mov    -0x8c(%rbp),%r9d
mov    -0x7c(%rbp),%r12d
mov    -0x80(%rbp),%r15d
mov    -0xa4(%rbp),%r14d
mov    0x48(%rbp),%ebx
mov    0x50(%rbp),%r11d
mov    0x60(%rbp),%r10d
mov    0x80(%rbp),%eax
sub    $0x40,%rsp
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    %rax,%rcx
mov    -0x258(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x238(%rbp)
ff
mov    -0x40(%rbp),%rax
mov    %rax,-0x250(%rbp)
mov    -0x90(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    -0x60(%rbp),%edx
mov    -0x6c(%rbp),%ecx
mov    -0x70(%rbp),%r8d
mov    -0x8c(%rbp),%r9d
mov    -0x64(%rbp),%r12d
mov    -0x68(%rbp),%r15d
mov    -0xa4(%rbp),%r14d
mov    0x48(%rbp),%ebx
mov    0x50(%rbp),%r11d
mov    0x60(%rbp),%r10d
mov    0x80(%rbp),%eax
sub    $0x40,%rsp
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    %rax,%rcx
mov    -0x250(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x248(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x228(%rbp)
mov    -0x90(%rbp),%edi
mov    -0x74(%rbp),%esi
mov    -0x78(%rbp),%edx
mov    -0x84(%rbp),%ecx
mov    -0x88(%rbp),%r8d
mov    -0x8c(%rbp),%r9d
mov    -0x7c(%rbp),%r12d
mov    -0x80(%rbp),%r15d
mov    -0xa4(%rbp),%r14d
mov    0x48(%rbp),%ebx
mov    0x50(%rbp),%r11d
mov    0x60(%rbp),%r10d
mov    0x80(%rbp),%eax
sub    $0x40,%rsp
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1040 <Blocal_index@plt>
movsd  -0x248(%rbp),%xmm2
ff
movsd  -0x240(%rbp),%xmm1
ff
movsd  -0x238(%rbp),%xmm3
ff
movsd  -0x230(%rbp),%xmm0
ff
add    $0x40,%rsp
mov    %rax,%rcx
mov    -0x228(%rbp),%rax
mulsd  (%rax,%rcx,8),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    0x18(%rbp),%rax
movslq -0x98(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    0x30(%rbp),%rax
movslq -0x94(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x1f0(%rbp)
ff
mov    -0x38(%rbp),%rax
mov    %rax,-0x220(%rbp)
mov    -0x90(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    -0x60(%rbp),%edx
mov    -0x6c(%rbp),%ecx
mov    -0x70(%rbp),%r8d
mov    -0x8c(%rbp),%r9d
mov    -0x64(%rbp),%r12d
mov    -0x68(%rbp),%r15d
mov    -0xa4(%rbp),%r14d
mov    0x48(%rbp),%ebx
mov    0x50(%rbp),%r11d
mov    0x60(%rbp),%r10d
mov    0x80(%rbp),%eax
sub    $0x40,%rsp
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    %rax,%rcx
mov    -0x220(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x200(%rbp)
ff
mov    -0x50(%rbp),%rax
mov    %rax,-0x218(%rbp)
mov    -0x90(%rbp),%edi
mov    -0x74(%rbp),%esi
mov    -0x78(%rbp),%edx
mov    -0x84(%rbp),%ecx
mov    -0x88(%rbp),%r8d
mov    -0x8c(%rbp),%r9d
mov    -0x7c(%rbp),%r12d
mov    -0x80(%rbp),%r15d
mov    -0xa4(%rbp),%r14d
mov    0x48(%rbp),%ebx
mov    0x50(%rbp),%r11d
mov    0x60(%rbp),%r10d
mov    0x80(%rbp),%eax
sub    $0x40,%rsp
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    %rax,%rcx
mov    -0x218(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x1f8(%rbp)
ff
mov    -0x40(%rbp),%rax
mov    %rax,-0x210(%rbp)
mov    -0x90(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    -0x60(%rbp),%edx
mov    -0x6c(%rbp),%ecx
mov    -0x70(%rbp),%r8d
mov    -0x8c(%rbp),%r9d
mov    -0x64(%rbp),%r12d
mov    -0x68(%rbp),%r15d
mov    -0xa4(%rbp),%r14d
mov    0x48(%rbp),%ebx
mov    0x50(%rbp),%r11d
mov    0x60(%rbp),%r10d
mov    0x80(%rbp),%eax
sub    $0x40,%rsp
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    %rax,%rcx
mov    -0x210(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x208(%rbp)
ff
mov    -0x48(%rbp),%rax
mov    %rax,-0x1e8(%rbp)
mov    -0x90(%rbp),%edi
mov    -0x74(%rbp),%esi
mov    -0x78(%rbp),%edx
mov    -0x84(%rbp),%ecx
mov    -0x88(%rbp),%r8d
mov    -0x8c(%rbp),%r9d
mov    -0x7c(%rbp),%r12d
mov    -0x80(%rbp),%r15d
mov    -0xa4(%rbp),%r14d
mov    0x48(%rbp),%ebx
mov    0x50(%rbp),%r11d
mov    0x60(%rbp),%r10d
mov    0x80(%rbp),%eax
sub    $0x40,%rsp
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1040 <Blocal_index@plt>
movsd  -0x208(%rbp),%xmm2
ff
movsd  -0x200(%rbp),%xmm1
ff
movsd  -0x1f8(%rbp),%xmm3
ff
movsd  -0x1f0(%rbp),%xmm0
ff
add    $0x40,%rsp
mov    %rax,%rcx
mov    -0x1e8(%rbp),%rax
mulsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movl   $0x0,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
cmp    0x88(%rbp),%eax
jge    2077 <make_dibaryon_hex_correlator+0xf47>
mov    0x38(%rbp),%rax
mov    %rax,-0x2c0(%rbp)
mov    -0x8c(%rbp),%edi
mov    -0xa0(%rbp),%esi
mov    0x88(%rbp),%edx
call   1050 <index_2d@plt>
mov    %rax,%rcx
mov    -0x2c0(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x2b8(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x2b0(%rbp)
ff
mov    0x40(%rbp),%rax
mov    %rax,-0x2a8(%rbp)
mov    -0x8c(%rbp),%edi
mov    -0xa0(%rbp),%esi
mov    0x88(%rbp),%edx
call   1050 <index_2d@plt>
movsd  -0x2b8(%rbp),%xmm0
ff
movsd  -0x2b0(%rbp),%xmm2
ff
mov    %rax,%rcx
mov    -0x2a8(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm1
mulsd  -0xc0(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x2a0(%rbp)
ff
mov    -0x28(%rbp),%rax
mov    %rax,-0x298(%rbp)
mov    -0xa4(%rbp),%edi
mov    -0xa0(%rbp),%esi
mov    -0x90(%rbp),%edx
mov    0x88(%rbp),%ecx
mov    0x68(%rbp),%r8d
call   1030 <index_3d@plt>
movsd  -0x2a0(%rbp),%xmm0
ff
mov    %rax,%rcx
mov    -0x298(%rbp),%rax
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x38(%rbp),%rax
mov    %rax,-0x290(%rbp)
mov    -0x8c(%rbp),%edi
mov    -0xa0(%rbp),%esi
mov    0x88(%rbp),%edx
call   1050 <index_2d@plt>
mov    %rax,%rcx
mov    -0x290(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x288(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0x280(%rbp)
ff
mov    0x40(%rbp),%rax
mov    %rax,-0x278(%rbp)
mov    -0x8c(%rbp),%edi
mov    -0xa0(%rbp),%esi
mov    0x88(%rbp),%edx
call   1050 <index_2d@plt>
movsd  -0x288(%rbp),%xmm0
ff
movsd  -0x280(%rbp),%xmm2
ff
mov    %rax,%rcx
mov    -0x278(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm1
mulsd  -0xb8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x270(%rbp)
ff
mov    -0x30(%rbp),%rax
mov    %rax,-0x268(%rbp)
mov    -0xa4(%rbp),%edi
mov    -0xa0(%rbp),%esi
mov    -0x90(%rbp),%edx
mov    0x88(%rbp),%ecx
mov    0x68(%rbp),%r8d
call   1030 <index_3d@plt>
movsd  -0x270(%rbp),%xmm0
ff
mov    %rax,%rcx
mov    -0x268(%rbp),%rax
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    1e66 <make_dibaryon_hex_correlator+0xd36>
jmp    207c <make_dibaryon_hex_correlator+0xf4c>
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    1921 <make_dibaryon_hex_correlator+0x7f1>
jmp    2095 <make_dibaryon_hex_correlator+0xf65>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1908 <make_dibaryon_hex_correlator+0x7d8>
jmp    20ae <make_dibaryon_hex_correlator+0xf7e>
mov    -0x90(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x90(%rbp)
jmp    18ef <make_dibaryon_hex_correlator+0x7bf>
jmp    20c7 <make_dibaryon_hex_correlator+0xf97>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    15a9 <make_dibaryon_hex_correlator+0x479>
jmp    20e0 <make_dibaryon_hex_correlator+0xfb0>
mov    -0x98(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x98(%rbp)
jmp    133d <make_dibaryon_hex_correlator+0x20d>
mov    -0xc8(%rbp),%rax
mov    %rax,%rsp
lea    -0x20(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_dibaryon_hex_correlator>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
movsd  %xmm0,0xf0(%rsp)
mov    %r9,0xe8(%rsp)
mov    %r8,0xd0(%rsp)
mov    %rcx,0xe0(%rsp)
mov    %rdx,0xd8(%rsp)
mov    %rsi,0x120(%rsp)
mov    %rdi,0x118(%rsp)
mov    0x1e0(%rsp),%eax
test   %eax,%eax
jle    1b02 <make_dibaryon_hex_correlator+0x9d2>
mov    0x1c8(%rsp),%ecx
mov    0x1b8(%rsp),%r13d
mov    0x1c0(%rsp),%edx
imul   %edx,%edx
mov    %eax,%eax
mov    %rax,0xf8(%rsp)
lea    (%rcx,%rcx,1),%eax
mov    %eax,0x9c(%rsp)
lea    0x1(%rcx),%eax
mov    %eax,0x98(%rsp)
lea    0x2(%rcx),%eax
mov    %eax,0x94(%rsp)
mov    %edx,0x3c(%rsp)
mov    %edx,%eax
mov    %rax,0x100(%rsp)
xor    %ebp,%ebp
jmp    11f7 <make_dibaryon_hex_correlator+0xc7>
nopl   0x0(%rax)
mov    0x40(%rsp),%rbp
add    $0x1,%rbp
cmp    0xf8(%rsp),%rbp
je     1b02 <make_dibaryon_hex_correlator+0x9d2>
mov    %ebp,%edi
xor    %esi,%esi
mov    0x9c(%rsp),%r14d
mov    %r14d,%edx
mov    %rbp,0x40(%rsp)
call   1050 <index_2d@plt>
mov    0x160(%rsp),%r12
mov    (%r12,%rax,4),%r15d
add    $0xffffffff,%r15d
mov    %ebp,%edi
mov    $0x1,%esi
mov    %r14d,%edx
call   1050 <index_2d@plt>
mov    (%r12,%rax,4),%ebx
add    $0xffffffff,%ebx
mov    %ebp,%edi
mov    $0x2,%esi
mov    %r14d,%edx
mov    %r14d,%ebp
call   1050 <index_2d@plt>
mov    (%r12,%rax,4),%ecx
mov    %r15d,%eax
cltd
mov    0x1c8(%rsp),%r14d
idiv   %r14d
mov    %edx,0xcc(%rsp)
mov    %eax,0xc8(%rsp)
mov    %ebx,%eax
cltd
idiv   %r14d
mov    %eax,0xc4(%rsp)
mov    %edx,0xc0(%rsp)
add    $0xffffffff,%ecx
mov    %ecx,%eax
cltd
idiv   %r14d
mov    %edx,0xbc(%rsp)
mov    %eax,0xb8(%rsp)
mov    0x40(%rsp),%rbx
mov    %ebx,%edi
mov    %r14d,%esi
mov    %ebp,%edx
call   1050 <index_2d@plt>
mov    (%r12,%rax,4),%r15d
add    $0xffffffff,%r15d
mov    %ebx,%edi
mov    %rbx,%r12
mov    0x98(%rsp),%esi
mov    %ebp,%edx
call   1050 <index_2d@plt>
mov    0x160(%rsp),%rcx
mov    (%rcx,%rax,4),%ebx
add    $0xffffffff,%ebx
mov    %r12d,%edi
mov    0x94(%rsp),%esi
mov    %ebp,%edx
call   1050 <index_2d@plt>
mov    0x160(%rsp),%rcx
mov    (%rcx,%rax,4),%ecx
mov    %r15d,%eax
cltd
idiv   %r14d
mov    %edx,0xb4(%rsp)
mov    %eax,0xb0(%rsp)
mov    %ebx,%eax
cltd
idiv   %r14d
mov    %eax,0xac(%rsp)
mov    %edx,0xa8(%rsp)
add    $0xffffffff,%ecx
mov    %ecx,%eax
cltd
idiv   %r14d
mov    %edx,0xa4(%rsp)
mov    %eax,0xa0(%rsp)
cmpl   $0x0,0x3c(%rsp)
je     11e0 <make_dibaryon_hex_correlator+0xb0>
xor    %esi,%esi
jmp    1357 <make_dibaryon_hex_correlator+0x227>
nopl   0x0(%rax)
mov    0x78(%rsp),%rsi
add    $0x1,%rsi
cmp    0x100(%rsp),%rsi
je     11e0 <make_dibaryon_hex_correlator+0xb0>
mov    0xc8(%rsp),%ebp
mov    %ebp,%edi
mov    0xcc(%rsp),%r14d
mov    %r14d,%edx
mov    0x3c(%rsp),%r12d
mov    %r12d,%ecx
mov    0x1c8(%rsp),%ebx
mov    %rbx,%r8
mov    %rsi,%rbx
call   1030 <index_3d@plt>
mov    0x170(%rsp),%r15
mov    (%r15,%rax,4),%eax
mov    %eax,0x30(%rsp)
mov    %ebp,%edi
mov    %ebx,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    0x1c8(%rsp),%r8d
call   1030 <index_3d@plt>
mov    0x178(%rsp),%r14
mov    (%r14,%rax,4),%eax
mov    %eax,0x2c(%rsp)
mov    0xc4(%rsp),%r15d
mov    %r15d,%edi
mov    %ebx,%esi
mov    0xc0(%rsp),%r14d
mov    %r14d,%edx
mov    %r12d,%ecx
mov    0x1c8(%rsp),%ebp
mov    %ebp,%r8d
call   1030 <index_3d@plt>
mov    0x170(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %rax,0x60(%rsp)
mov    %r15d,%edi
mov    %ebx,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
call   1030 <index_3d@plt>
mov    0x178(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %rax,0x58(%rsp)
mov    0xb8(%rsp),%r14d
mov    %r14d,%edi
mov    %ebx,%esi
mov    0xbc(%rsp),%r15d
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
call   1030 <index_3d@plt>
mov    0x170(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x28(%rsp)
mov    %r14d,%edi
mov    %ebx,%esi
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
call   1030 <index_3d@plt>
mov    0x178(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x24(%rsp)
mov    0xb0(%rsp),%r14d
mov    %r14d,%edi
mov    %ebx,%esi
mov    0xb4(%rsp),%r15d
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
call   1030 <index_3d@plt>
mov    0x170(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x38(%rsp)
mov    %r14d,%edi
mov    %ebx,%esi
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
call   1030 <index_3d@plt>
mov    0x178(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x20(%rsp)
mov    0xac(%rsp),%r15d
mov    %r15d,%edi
mov    %ebx,%esi
mov    0xa8(%rsp),%r14d
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
call   1030 <index_3d@plt>
mov    0x170(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %rax,0x50(%rsp)
mov    %r15d,%edi
mov    %ebx,%esi
mov    %r14d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
call   1030 <index_3d@plt>
mov    0x178(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %rax,0x48(%rsp)
mov    0xa0(%rsp),%r14d
mov    %r14d,%edi
mov    %ebx,%esi
mov    0xa4(%rsp),%r15d
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
call   1030 <index_3d@plt>
mov    0x170(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x34(%rsp)
mov    %r14d,%edi
mov    %rbx,0x78(%rsp)
mov    %ebx,%esi
mov    %r15d,%edx
mov    %r12d,%ecx
mov    %ebp,%r8d
call   1030 <index_3d@plt>
test   %r13d,%r13d
mov    0x1d0(%rsp),%ebp
jle    1340 <make_dibaryon_hex_correlator+0x210>
mov    0x178(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x1c(%rsp)
xor    %eax,%eax
jmp    15a8 <make_dibaryon_hex_correlator+0x478>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0xc(%rsp),%eax
add    $0x1,%eax
mov    0x1b8(%rsp),%r13d
cmp    %r13d,%eax
je     1340 <make_dibaryon_hex_correlator+0x210>
mov    %eax,0xc(%rsp)
mov    0x1b0(%rsp),%eax
test   %eax,%eax
jle    1590 <make_dibaryon_hex_correlator+0x460>
xor    %r13d,%r13d
jmp    15d0 <make_dibaryon_hex_correlator+0x4a0>
nopl   0x0(%rax)
add    $0x1,%r13d
mov    0x1b0(%rsp),%eax
cmp    %eax,%r13d
je     1590 <make_dibaryon_hex_correlator+0x460>
test   %ebp,%ebp
jle    15c0 <make_dibaryon_hex_correlator+0x490>
xor    %ebx,%ebx
jmp    15f3 <make_dibaryon_hex_correlator+0x4c3>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r14d
mov    0x1d0(%rsp),%ebp
cmp    %ebp,%r14d
mov    %r14,%rbx
je     15c0 <make_dibaryon_hex_correlator+0x490>
mov    0x168(%rsp),%rax
mov    0x40(%rsp),%rcx
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax,%rcx,4),%xmm0
mulsd  0xf0(%rsp),%xmm0
mov    0x180(%rsp),%rax
mov    0x78(%rsp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x70(%rsp)
sub    $0x8,%rsp
mov    0x14(%rsp),%edi
mov    0x38(%rsp),%esi
mov    0x34(%rsp),%edx
mov    0x30(%rsp),%ecx
mov    0x2c(%rsp),%r8d
mov    %r13d,%r9d
push   %rbp
mov    0x1c0(%rsp),%r14d
push   %r14
mov    0x1b8(%rsp),%r15d
push   %r15
mov    0x1b8(%rsp),%r12d
push   %r12
push   %rbx
mov    0x88(%rsp),%r15
push   %r15
mov    0x98(%rsp),%r14
push   %r14
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xd8(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x10(%rsp)
sub    $0x8,%rsp
mov    0x14(%rsp),%r14d
mov    %r14d,%edi
mov    0x40(%rsp),%esi
mov    0x28(%rsp),%edx
mov    0x3c(%rsp),%ecx
mov    0x24(%rsp),%r8d
mov    %r13d,%r9d
push   %rbp
mov    0x1c0(%rsp),%eax
push   %rax
mov    0x1b8(%rsp),%r15d
push   %r15
push   %r12
push   %rbx
mov    0x78(%rsp),%rax
push   %rax
mov    0x88(%rsp),%rax
push   %rax
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xd0(%rsp),%rcx
movsd  0x10(%rsp),%xmm0
mulsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x10(%rsp)
sub    $0x8,%rsp
mov    %r14d,%edi
mov    0x38(%rsp),%esi
mov    0x34(%rsp),%edx
mov    0x30(%rsp),%ecx
mov    0x2c(%rsp),%r8d
mov    %r13d,%r9d
push   %rbp
mov    0x1c0(%rsp),%eax
push   %rax
push   %r15
push   %r12
mov    %rbx,0x138(%rsp)
push   %rbx
push   0x88(%rsp)
push   0x98(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xe0(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x88(%rsp)
sub    $0x8,%rsp
mov    %r14d,%edi
mov    0x40(%rsp),%r14d
mov    %r14d,%esi
mov    0x28(%rsp),%edx
mov    0x3c(%rsp),%r15d
mov    %r15d,%ecx
mov    0x24(%rsp),%r8d
mov    %r13d,%r9d
push   %rbp
mov    0x1c0(%rsp),%eax
push   %rax
mov    0x1b8(%rsp),%eax
push   %rax
push   %r12
push   %rbx
push   0x78(%rsp)
push   0x88(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xe8(%rsp),%rcx
movsd  0x88(%rsp),%xmm0
mulsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x88(%rsp)
mov    0x168(%rsp),%rax
mov    0x40(%rsp),%rcx
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax,%rcx,4),%xmm0
mulsd  0xf0(%rsp),%xmm0
mov    0x180(%rsp),%rax
mov    0x78(%rsp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x68(%rsp)
sub    $0x8,%rsp
mov    0x14(%rsp),%r12d
mov    %r12d,%edi
mov    0x38(%rsp),%esi
mov    0x34(%rsp),%edx
mov    0x30(%rsp),%ecx
mov    0x2c(%rsp),%r8d
mov    %r13d,%r9d
push   %rbp
mov    0x1c0(%rsp),%ebx
push   %rbx
mov    0x1b8(%rsp),%eax
push   %rax
mov    0x1b8(%rsp),%eax
push   %rax
mov    0x138(%rsp),%rbx
push   %rbx
push   0x88(%rsp)
push   0x98(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xd8(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x80(%rsp)
sub    $0x8,%rsp
mov    %r12d,%edi
mov    %r14d,%esi
mov    0x28(%rsp),%edx
mov    %r15d,%ecx
mov    0x24(%rsp),%r8d
mov    %r13d,%r9d
push   %rbp
mov    %rbp,%r12
mov    0x1c0(%rsp),%eax
push   %rax
mov    0x1b8(%rsp),%r14d
push   %r14
mov    0x1b8(%rsp),%r15d
push   %r15
mov    %rbx,%rbp
push   %rbx
push   0x78(%rsp)
push   0x88(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xe8(%rsp),%rcx
movsd  0x80(%rsp),%xmm0
mulsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x80(%rsp)
sub    $0x8,%rsp
mov    0x14(%rsp),%ebx
mov    %ebx,%edi
mov    0x38(%rsp),%esi
mov    0x34(%rsp),%edx
mov    0x30(%rsp),%ecx
mov    0x2c(%rsp),%r8d
mov    %r13d,%r9d
push   %r12
mov    0x1c0(%rsp),%eax
push   %rax
push   %r14
push   %r15
push   %rbp
mov    %rbp,%r14
push   0x88(%rsp)
push   0x98(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xe0(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x108(%rsp)
sub    $0x8,%rsp
mov    %ebx,%edi
mov    0x40(%rsp),%esi
mov    0x28(%rsp),%edx
mov    0x3c(%rsp),%ecx
mov    0x24(%rsp),%r8d
mov    %r13d,%r9d
push   %r12
mov    0x1c0(%rsp),%eax
push   %rax
mov    0x1b8(%rsp),%eax
push   %rax
push   %r15
push   %rbp
push   0x78(%rsp)
push   0x88(%rsp)
call   1040 <Blocal_index@plt>
add    $0x40,%rsp
mov    0x1d8(%rsp),%r12d
test   %r12d,%r12d
mov    0x1b8(%rsp),%r15d
mov    0x190(%rsp),%rbp
jle    15e0 <make_dibaryon_hex_correlator+0x4b0>
movsd  0x10(%rsp),%xmm1
subsd  0x88(%rsp),%xmm1
mov    0xd0(%rsp),%rcx
movsd  0x108(%rsp),%xmm2
mulsd  (%rcx,%rax,8),%xmm2
movsd  0x70(%rsp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x70(%rsp)
movsd  0x80(%rsp),%xmm1
addsd  %xmm2,%xmm1
movsd  0x68(%rsp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x68(%rsp)
xor    %ebx,%ebx
xchg   %ax,%ax
mov    %r13d,%edi
mov    %ebx,%esi
mov    %r12d,%edx
call   1050 <index_2d@plt>
mov    0x188(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
mulsd  0x70(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
mov    %r13d,%edi
mov    %ebx,%esi
mov    %r12d,%edx
call   1050 <index_2d@plt>
movsd  0x0(%rbp,%rax,8),%xmm0
mulsd  0x68(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    %r14d,%edi
mov    %ebx,%esi
mov    0xc(%rsp),%ebp
mov    %ebp,%edx
mov    %r12d,%ecx
mov    %r15d,%r8d
call   1030 <index_3d@plt>
mov    0x118(%rsp),%rcx
movsd  0x10(%rsp),%xmm0
addsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,(%rcx,%rax,8)
mov    %r13d,%edi
mov    %ebx,%esi
mov    %r12d,%edx
call   1050 <index_2d@plt>
mov    0x188(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
mulsd  0x68(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
mov    %r13d,%edi
mov    %ebx,%esi
mov    %r12d,%edx
call   1050 <index_2d@plt>
mov    0x190(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
mulsd  0x70(%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
mov    %r14d,%edi
mov    %ebx,%esi
mov    %ebp,%edx
mov    0x190(%rsp),%rbp
mov    %r12d,%ecx
mov    %r15d,%r8d
call   1030 <index_3d@plt>
mov    0x120(%rsp),%rdx
movsd  0x10(%rsp),%xmm0
addsd  (%rdx,%rax,8),%xmm0
movsd  %xmm0,(%rdx,%rax,8)
add    $0x1,%ebx
cmp    %ebx,%r12d
jne    19f0 <make_dibaryon_hex_correlator+0x8c0>
jmp    15e0 <make_dibaryon_hex_correlator+0x4b0>
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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