void mul_mdmd_md_l1_arb_all(const int M, const int K, const int N,
                            const double *const A, const double *const B,
                            double *const C, const int Astride,
                            const int Bstride, const int Cstride) {
  const double *a0, *b0;
  double *c0;
  const double *ap0_0, *ap0_1;
  const double *bp0;
  double *cp0;
  const int A_sbs_stride = Astride * 2;
  const int C_sbs_stride = Cstride * 2;
  const int k_marg_el = K & 1;
  const int k_norm = K - k_marg_el;
  const int m_marg_el = M & 1;
  const int m_norm = M - m_marg_el;
  const int n_marg_el = N & 1;
  const int n_norm = N - n_marg_el;
  double *const c0_endp = C + m_norm * Cstride;
  register double c00, c01, c10, c11;
  for (c0 = C, a0 = A; c0 != c0_endp; c0 += C_sbs_stride, a0 += A_sbs_stride) {
    const double *const ap0_endp = a0 + k_norm;
    double *const cp0_endp = c0 + n_norm;
    for (b0 = B, cp0 = c0; cp0 != cp0_endp; b0 += 2, cp0 += 2) {
      ap0_0 = a0;
      ap0_1 = ap0_0 + Astride;
      bp0 = b0;
      {
        double *_cp = cp0;
        c00 = _cp[0];
        c01 = _cp[1];
        _cp += Cstride;
        c10 = _cp[0];
        c11 = _cp[1];
      };
      for (; ap0_0 != ap0_endp; ap0_0 += 2, ap0_1 += 2) {
        {
          register double _b0, _b1;
          register double _a0, _a1;
          _b0 = bp0[0];
          _b1 = bp0[1];
          bp0 += Bstride;
          _a0 = ap0_0[0];
          c00 += _a0 * _b0;
          c01 += _a0 * _b1;
          _a1 = ap0_1[0];
          c10 += _a1 * _b0;
          c11 += _a1 * _b1;
          _b0 = bp0[0];
          _b1 = bp0[1];
          bp0 += Bstride;
          _a0 = ap0_0[1];
          c00 += _a0 * _b0;
          c01 += _a0 * _b1;
          _a1 = ap0_1[1];
          c10 += _a1 * _b0;
          c11 += _a1 * _b1;
        };
      }
      if (k_marg_el & 0x1) {
        {
          register double _b0, _b1;
          register double _a0, _a1;
          _b0 = bp0[0];
          _b1 = bp0[1];
          bp0 += Bstride;
          _a0 = ap0_0[0];
          c00 += _a0 * _b0;
          c01 += _a0 * _b1;
          _a1 = ap0_1[0];
          c10 += _a1 * _b0;
          c11 += _a1 * _b1;
        };
      }
      {
        double *_cp = cp0;
        _cp[0] = c00;
        _cp[1] = c01;
        _cp += Cstride;
        _cp[0] = c10;
        _cp[1] = c11;
      };
    }
  }
  for (c0 = C, a0 = A; c0 != c0_endp; c0 += C_sbs_stride, a0 += A_sbs_stride) {
    const double *const ap0_endp = a0 + k_norm;
    b0 = B + n_norm;
    cp0 = c0 + n_norm;
    if (n_marg_el & 0x1) {
      ap0_0 = a0;
      ap0_1 = ap0_0 + Astride;
      bp0 = b0;
      {
        double *_cp = cp0;
        c00 = _cp[0];
        _cp += Cstride;
        c10 = _cp[0];
      };
      for (; ap0_0 != ap0_endp; ap0_0 += 2, ap0_1 += 2) {
        {
          register double _b0;
          register double _a0, _a1;
          _b0 = bp0[0];
          bp0 += Bstride;
          _a0 = ap0_0[0];
          c00 += _a0 * _b0;
          _a1 = ap0_1[0];
          c10 += _a1 * _b0;
          _b0 = bp0[0];
          bp0 += Bstride;
          _a0 = ap0_0[1];
          c00 += _a0 * _b0;
          _a1 = ap0_1[1];
          c10 += _a1 * _b0;
        };
      }
      if (k_marg_el & 0x1) {
        {
          register double _b0;
          register double _a0, _a1;
          _b0 = bp0[0];
          bp0 += Bstride;
          _a0 = ap0_0[0];
          c00 += _a0 * _b0;
          _a1 = ap0_1[0];
          c10 += _a1 * _b0;
        };
      }
      {
        double *_cp = cp0;
        _cp[0] = c00;
        _cp += Cstride;
        _cp[0] = c10;
      };
    }
  }
  if (m_marg_el & 0x1) {
    const double *const ap0_endp = a0 + k_norm;
    double *const cp0_endp = c0 + n_norm;
    for (b0 = B, cp0 = c0; cp0 != cp0_endp; b0 += 2, cp0 += 2) {
      ap0_0 = a0;
      bp0 = b0;
      {
        double *_cp = cp0;
        c00 = _cp[0];
        c01 = _cp[1];
      };
      for (; ap0_0 != ap0_endp; ap0_0 += 2) {
        {
          register double _b0, _b1;
          register double _a0;
          _b0 = bp0[0];
          _b1 = bp0[1];
          bp0 += Bstride;
          _a0 = ap0_0[0];
          c00 += _a0 * _b0;
          c01 += _a0 * _b1;
          _b0 = bp0[0];
          _b1 = bp0[1];
          bp0 += Bstride;
          _a0 = ap0_0[1];
          c00 += _a0 * _b0;
          c01 += _a0 * _b1;
        };
      }
      if (k_marg_el & 0x1) {
        {
          register double _b0, _b1;
          register double _a0;
          _b0 = bp0[0];
          _b1 = bp0[1];
          bp0 += Bstride;
          _a0 = ap0_0[0];
          c00 += _a0 * _b0;
          c01 += _a0 * _b1;
        };
      }
      {
        double *_cp = cp0;
        _cp[0] = c00;
        _cp[1] = c01;
      };
    }
    if (n_marg_el & 0x1) {
      ap0_0 = a0;
      bp0 = b0;
      {
        double *_cp = cp0;
        c00 = _cp[0];
      };
      for (; ap0_0 != ap0_endp; ap0_0 += 2) {
        {
          register double _b0;
          register double _a0;
          _b0 = bp0[0];
          bp0 += Bstride;
          _a0 = ap0_0[0];
          c00 += _a0 * _b0;
          _b0 = bp0[0];
          bp0 += Bstride;
          _a0 = ap0_0[1];
          c00 += _a0 * _b0;
        };
      }
      if (k_marg_el & 0x1) {
        {
          register double _b0;
          register double _a0;
          _b0 = bp0[0];
          bp0 += Bstride;
          _a0 = ap0_0[0];
          c00 += _a0 * _b0;
        };
      }
      {
        double *_cp = cp0;
        _cp[0] = c00;
      };
    }
  }
}


x86 assembly (clang, -O0):
<mul_mdmd_md_l1_arb_all>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    0x10(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x64(%rbp)
mov    0x20(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x68(%rbp)
mov    -0x8(%rbp),%eax
and    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x6c(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x4(%rbp),%eax
and    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x4(%rbp),%eax
sub    -0x74(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0xc(%rbp),%eax
and    $0x1,%eax
mov    %eax,-0x7c(%rbp)
mov    -0xc(%rbp),%eax
sub    -0x7c(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x78(%rbp),%ecx
imul   0x20(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x88(%rbp),%rax
je     1678 <mul_mdmd_md_l1_arb_all+0x578>
mov    -0x30(%rbp),%rax
movslq -0x70(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xb0(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x80(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xb8(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
cmp    -0xb8(%rbp),%rax
je     1644 <mul_mdmd_md_l1_arb_all+0x544>
mov    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
movslq 0x10(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    -0xc0(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0xc0(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    0x20(%rbp),%ecx
mov    -0xc0(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xc0(%rbp)
mov    -0xc0(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0xc0(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x48(%rbp),%rax
cmp    -0xb0(%rbp),%rax
je     14ae <mul_mdmd_md_l1_arb_all+0x3ae>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  -0xd0(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm2
ff
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
movsd  -0xd0(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  -0xd0(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
movsd  -0xc8(%rbp),%xmm2
ff
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
movsd  -0xd0(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x48(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x50(%rbp)
jmp    1292 <mul_mdmd_md_l1_arb_all+0x192>
mov    -0x6c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     15b3 <mul_mdmd_md_l1_arb_all+0x4b3>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0xf8(%rbp),%xmm0
ff
movsd  -0xf0(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm2
ff
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
movsd  -0xf0(%rbp),%xmm2
ff
movsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x60(%rbp),%rax
mov    %rax,-0x108(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x108(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x98(%rbp),%xmm0
ff
mov    -0x108(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    0x20(%rbp),%ecx
mov    -0x108(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x108(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x108(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x108(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x38(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x38(%rbp)
mov    -0x60(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x60(%rbp)
jmp    11ea <mul_mdmd_md_l1_arb_all+0xea>
jmp    1649 <mul_mdmd_md_l1_arb_all+0x549>
mov    -0x68(%rbp),%ecx
mov    -0x40(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x64(%rbp),%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
jmp    119d <mul_mdmd_md_l1_arb_all+0x9d>
mov    -0x28(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x88(%rbp),%rax
je     19d1 <mul_mdmd_md_l1_arb_all+0x8d1>
mov    -0x30(%rbp),%rax
movslq -0x70(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x110(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x80(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x80(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x7c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     199d <mul_mdmd_md_l1_arb_all+0x89d>
mov    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
movslq 0x10(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    -0x118(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    0x20(%rbp),%ecx
mov    -0x118(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x118(%rbp)
mov    -0x118(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x48(%rbp),%rax
cmp    -0x110(%rbp),%rax
je     18ad <mul_mdmd_md_l1_arb_all+0x7ad>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x128(%rbp),%xmm0
ff
movsd  -0x120(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x130(%rbp),%xmm0
ff
movsd  -0x120(%rbp),%xmm2
ff
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x128(%rbp),%xmm0
ff
movsd  -0x120(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x130(%rbp),%xmm0
ff
movsd  -0x120(%rbp),%xmm2
ff
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x48(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x50(%rbp)
jmp    1753 <mul_mdmd_md_l1_arb_all+0x653>
mov    -0x6c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1951 <mul_mdmd_md_l1_arb_all+0x851>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x140(%rbp),%xmm0
ff
movsd  -0x138(%rbp),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x50(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x148(%rbp),%xmm0
ff
movsd  -0x138(%rbp),%xmm2
ff
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x60(%rbp),%rax
mov    %rax,-0x150(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x150(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x20(%rbp),%ecx
mov    -0x150(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x150(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x150(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    19a2 <mul_mdmd_md_l1_arb_all+0x8a2>
mov    -0x68(%rbp),%ecx
mov    -0x40(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x64(%rbp),%ecx
mov    -0x30(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
jmp    1688 <mul_mdmd_md_l1_arb_all+0x588>
mov    -0x74(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1e5b <mul_mdmd_md_l1_arb_all+0xd5b>
mov    -0x30(%rbp),%rax
movslq -0x70(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x158(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x80(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x160(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
cmp    -0x160(%rbp),%rax
je     1cb2 <mul_mdmd_md_l1_arb_all+0xbb2>
mov    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x168(%rbp)
mov    -0x168(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x168(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x48(%rbp),%rax
cmp    -0x158(%rbp),%rax
je     1bbe <mul_mdmd_md_l1_arb_all+0xabe>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x178(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x180(%rbp),%xmm0
ff
movsd  -0x170(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x180(%rbp),%xmm0
ff
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x178(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x180(%rbp),%xmm0
ff
movsd  -0x170(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x180(%rbp),%xmm0
ff
movsd  -0x178(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x48(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x48(%rbp)
jmp    1a6f <mul_mdmd_md_l1_arb_all+0x96f>
mov    -0x6c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1c63 <mul_mdmd_md_l1_arb_all+0xb63>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x188(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x190(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x198(%rbp)
ff
movsd  -0x198(%rbp),%xmm0
ff
movsd  -0x188(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x198(%rbp),%xmm0
ff
movsd  -0x190(%rbp),%xmm2
ff
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x60(%rbp),%rax
mov    %rax,-0x1a0(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x1a0(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x98(%rbp),%xmm0
ff
mov    -0x1a0(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x38(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x38(%rbp)
mov    -0x60(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x60(%rbp)
jmp    1a1c <mul_mdmd_md_l1_arb_all+0x91c>
mov    -0x7c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1e56 <mul_mdmd_md_l1_arb_all+0xd56>
mov    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x1a8(%rbp)
mov    -0x1a8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x48(%rbp),%rax
cmp    -0x158(%rbp),%rax
je     1dcc <mul_mdmd_md_l1_arb_all+0xccc>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x1b0(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x1b8(%rbp)
ff
movsd  -0x1b8(%rbp),%xmm0
ff
movsd  -0x1b0(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x1b0(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x1b8(%rbp)
ff
movsd  -0x1b8(%rbp),%xmm0
ff
movsd  -0x1b0(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x48(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x48(%rbp)
jmp    1cef <mul_mdmd_md_l1_arb_all+0xbef>
mov    -0x6c(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1e38 <mul_mdmd_md_l1_arb_all+0xd38>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x1c0(%rbp)
ff
mov    0x18(%rbp),%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x1c8(%rbp)
ff
movsd  -0x1c8(%rbp),%xmm0
ff
movsd  -0x1c0(%rbp),%xmm2
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x60(%rbp),%rax
mov    %rax,-0x1d0(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x1d0(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    1e5b <mul_mdmd_md_l1_arb_all+0xd5b>
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mul_mdmd_md_l1_arb_all>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    0x48(%rsp),%eax
mov    0x40(%rsp),%r10d
mov    %esi,-0x60(%rsp)
and    $0xfffffffe,%esi
mov    %edi,%ebx
and    $0xfffffffe,%ebx
mov    %edx,%ebp
and    $0xfffffffe,%ebp
imul   %eax,%ebx
mov    %esi,-0x64(%rsp)
movslq %esi,%r13
mov    %ebp,-0x54(%rsp)
movslq %ebp,%rsi
mov    %rsi,-0x50(%rsp)
test   %ebx,%ebx
je     1468 <mul_mdmd_md_l1_arb_all+0x368>
mov    %edi,-0x5c(%rsp)
mov    %edx,-0x58(%rsp)
mov    %r8,-0x40(%rsp)
mov    0x38(%rsp),%esi
mov    %ebx,-0x24(%rsp)
movslq %ebx,%rdx
lea    (%r9,%rdx,8),%rdx
mov    %rdx,-0x30(%rsp)
movslq %esi,%rdx
add    %esi,%esi
movslq %eax,%rbx
add    %eax,%eax
movslq %r10d,%r11
cltq
mov    %rax,-0x8(%rsp)
movslq %esi,%rax
mov    %r13,-0x48(%rsp)
lea    0x0(,%r13,8),%rdi
shl    $0x3,%rax
mov    %rax,-0x10(%rsp)
mov    %rdx,-0x38(%rsp)
lea    (%rcx,%rdx,8),%r14
mov    %r11,%rbp
shl    $0x4,%rbp
mov    %rcx,-0x20(%rsp)
mov    %r9,-0x18(%rsp)
mov    %r9,%r13
jmp    11d0 <mul_mdmd_md_l1_arb_all+0xd0>
nop
mov    -0x8(%rsp),%rax
lea    0x0(%r13,%rax,8),%r13
mov    -0x10(%rsp),%rax
add    %rax,%rcx
add    %rax,%r14
cmp    -0x30(%rsp),%r13
je     1320 <mul_mdmd_md_l1_arb_all+0x220>
cmpl   $0x0,-0x54(%rsp)
je     11b0 <mul_mdmd_md_l1_arb_all+0xb0>
mov    -0x48(%rsp),%rax
lea    (%rcx,%rax,8),%rdx
mov    -0x50(%rsp),%rax
lea    0x0(,%rax,8),%r10
add    %r13,%r10
mov    -0x38(%rsp),%rax
lea    (%rcx,%rax,8),%r15
mov    -0x40(%rsp),%rax
mov    %r13,%r9
jmp    1228 <mul_mdmd_md_l1_arb_all+0x128>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd %xmm1,(%r9)
movupd %xmm0,(%r9,%rbx,8)
add    $0x10,%rax
add    $0x10,%r9
cmp    %r10,%r9
je     11b0 <mul_mdmd_md_l1_arb_all+0xb0>
movupd (%r9),%xmm1
movupd (%r9,%rbx,8),%xmm0
cmpl   $0x0,-0x64(%rsp)
je     12e0 <mul_mdmd_md_l1_arb_all+0x1e0>
mov    %rax,%r8
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd (%r8),%xmm6
movsd  (%rcx,%r12,1),%xmm3
movsd  0x8(%rcx,%r12,1),%xmm2
unpcklpd %xmm3,%xmm3
mulpd  %xmm6,%xmm3
addpd  %xmm1,%xmm3
movsd  (%r14,%r12,1),%xmm5
movsd  0x8(%r14,%r12,1),%xmm4
unpcklpd %xmm5,%xmm5
mulpd  %xmm6,%xmm5
addpd  %xmm0,%xmm5
movupd (%r8,%r11,8),%xmm0
unpcklpd %xmm2,%xmm2
mulpd  %xmm0,%xmm2
movapd %xmm2,%xmm1
addpd  %xmm3,%xmm1
unpcklpd %xmm4,%xmm4
mulpd  %xmm0,%xmm4
movapd %xmm4,%xmm0
addpd  %xmm5,%xmm0
add    $0x10,%r12
add    %rbp,%r8
cmp    %r12,%rdi
jne    1250 <mul_mdmd_md_l1_arb_all+0x150>
addpd  %xmm5,%xmm4
addpd  %xmm3,%xmm2
add    %r14,%r12
mov    %rdx,%rsi
movapd %xmm4,%xmm0
movapd %xmm2,%xmm1
testb  $0x1,-0x60(%rsp)
je     1210 <mul_mdmd_md_l1_arb_all+0x110>
jmp    12f4 <mul_mdmd_md_l1_arb_all+0x1f4>
nopl   0x0(%rax)
mov    %rax,%r8
mov    %r15,%r12
mov    %rcx,%rsi
testb  $0x1,-0x60(%rsp)
je     1210 <mul_mdmd_md_l1_arb_all+0x110>
movupd (%r8),%xmm2
movsd  (%rsi),%xmm3
unpcklpd %xmm3,%xmm3
mulpd  %xmm2,%xmm3
addpd  %xmm3,%xmm1
movsd  (%r12),%xmm3
unpcklpd %xmm3,%xmm3
mulpd  %xmm2,%xmm3
addpd  %xmm3,%xmm0
jmp    1210 <mul_mdmd_md_l1_arb_all+0x110>
cmpl   $0x0,-0x24(%rsp)
je     15b6 <mul_mdmd_md_l1_arb_all+0x4b6>
mov    -0x40(%rsp),%r8
mov    -0x50(%rsp),%rax
lea    (%r8,%rax,8),%r14
mov    -0x20(%rsp),%rcx
mov    -0x38(%rsp),%rax
lea    (%rcx,%rax,8),%r15
mov    -0x18(%rsp),%r12
mov    -0x58(%rsp),%edx
mov    -0x48(%rsp),%r13
jmp    138a <mul_mdmd_md_l1_arb_all+0x28a>
nopw   0x0(%rax,%rax,1)
movhpd %xmm0,(%r9)
movlpd %xmm0,(%r9,%rbx,8)
mov    -0x8(%rsp),%rax
lea    (%r12,%rax,8),%r12
mov    -0x10(%rsp),%rax
add    %rax,%rcx
add    %rax,%r15
cmp    -0x30(%rsp),%r12
je     145a <mul_mdmd_md_l1_arb_all+0x35a>
test   $0x1,%dl
je     136b <mul_mdmd_md_l1_arb_all+0x26b>
mov    -0x50(%rsp),%rax
lea    (%r12,%rax,8),%r9
movsd  (%r9,%rbx,8),%xmm0
movhpd (%r9),%xmm0
cmpl   $0x0,-0x64(%rsp)
je     1422 <mul_mdmd_md_l1_arb_all+0x322>
lea    (%rcx,%r13,8),%r10
mov    %r14,%rax
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%r15,%rsi,1),%xmm2
movsd  0x8(%r15,%rsi,1),%xmm3
movhpd (%rcx,%rsi,1),%xmm2
movsd  (%rax),%xmm1
unpcklpd %xmm1,%xmm1
mulpd  %xmm2,%xmm1
movhpd 0x8(%rcx,%rsi,1),%xmm3
addpd  %xmm0,%xmm1
movsd  (%rax,%r11,8),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm3,%xmm2
movapd %xmm2,%xmm0
addpd  %xmm1,%xmm0
add    $0x10,%rsi
add    %rbp,%rax
cmp    %rsi,%rdi
jne    13c0 <mul_mdmd_md_l1_arb_all+0x2c0>
addpd  %xmm1,%xmm2
add    %r15,%rsi
movapd %xmm2,%xmm0
testb  $0x1,-0x60(%rsp)
je     1360 <mul_mdmd_md_l1_arb_all+0x260>
jmp    143c <mul_mdmd_md_l1_arb_all+0x33c>
mov    -0x38(%rsp),%rax
lea    (%rcx,%rax,8),%rsi
mov    %r14,%rax
mov    %rcx,%r10
testb  $0x1,-0x60(%rsp)
je     1360 <mul_mdmd_md_l1_arb_all+0x260>
movsd  (%rsi),%xmm1
movhpd (%r10),%xmm1
movsd  (%rax),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm1,%xmm2
addpd  %xmm2,%xmm0
jmp    1360 <mul_mdmd_md_l1_arb_all+0x260>
mov    -0x30(%rsp),%r9
mov    0x40(%rsp),%r10d
mov    -0x5c(%rsp),%edi
test   $0x1,%dil
je     15e1 <mul_mdmd_md_l1_arb_all+0x4e1>
lea    (%rcx,%r13,8),%rbx
cmpl   $0x0,-0x54(%rsp)
je     154d <mul_mdmd_md_l1_arb_all+0x44d>
mov    -0x50(%rsp),%rax
lea    (%r9,%rax,8),%r11
movslq %r10d,%rbp
mov    %rbp,%rdi
shl    $0x4,%rdi
jmp    14b6 <mul_mdmd_md_l1_arb_all+0x3b6>
cs nopw 0x0(%rax,%rax,1)
movupd %xmm0,(%r9)
add    $0x10,%r8
add    $0x10,%r9
cmp    %r11,%r9
je     154a <mul_mdmd_md_l1_arb_all+0x44a>
movupd (%r9),%xmm0
cmpl   $0x0,-0x64(%rsp)
je     1520 <mul_mdmd_md_l1_arb_all+0x420>
mov    %r8,%rax
mov    %rcx,%rsi
nopl   0x0(%rax,%rax,1)
movupd (%rax),%xmm3
movsd  (%rsi),%xmm2
movsd  0x8(%rsi),%xmm1
unpcklpd %xmm2,%xmm2
mulpd  %xmm3,%xmm2
addpd  %xmm0,%xmm2
movupd (%rax,%rbp,8),%xmm0
unpcklpd %xmm1,%xmm1
mulpd  %xmm0,%xmm1
movapd %xmm1,%xmm0
addpd  %xmm2,%xmm0
add    %rdi,%rax
add    $0x10,%rsi
cmp    %rbx,%rsi
jne    14d0 <mul_mdmd_md_l1_arb_all+0x3d0>
addpd  %xmm2,%xmm1
mov    %rbx,%rsi
movapd %xmm1,%xmm0
testb  $0x1,-0x60(%rsp)
je     14a0 <mul_mdmd_md_l1_arb_all+0x3a0>
jmp    1531 <mul_mdmd_md_l1_arb_all+0x431>
xchg   %ax,%ax
mov    %r8,%rax
mov    %rcx,%rsi
testb  $0x1,-0x60(%rsp)
je     14a0 <mul_mdmd_md_l1_arb_all+0x3a0>
movupd (%rax),%xmm1
movsd  (%rsi),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm1,%xmm2
addpd  %xmm2,%xmm0
jmp    14a0 <mul_mdmd_md_l1_arb_all+0x3a0>
mov    %r11,%r9
test   $0x1,%dl
je     15e1 <mul_mdmd_md_l1_arb_all+0x4e1>
movsd  (%r9),%xmm0
cmpl   $0x0,-0x64(%rsp)
je     159b <mul_mdmd_md_l1_arb_all+0x49b>
movslq %r10d,%rax
mov    %rax,%rdx
shl    $0x4,%rdx
nopl   0x0(%rax)
movsd  (%rcx),%xmm1
mulsd  (%r8),%xmm1
addsd  %xmm0,%xmm1
movsd  0x8(%rcx),%xmm0
mulsd  (%r8,%rax,8),%xmm0
addsd  %xmm1,%xmm0
add    %rdx,%r8
add    $0x10,%rcx
cmp    %rbx,%rcx
jne    1570 <mul_mdmd_md_l1_arb_all+0x470>
mov    %rbx,%rcx
testb  $0x1,-0x60(%rsp)
je     15af <mul_mdmd_md_l1_arb_all+0x4af>
movsd  (%rcx),%xmm1
mulsd  (%r8),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r9)
jmp    15e1 <mul_mdmd_md_l1_arb_all+0x4e1>
mov    -0x18(%rsp),%r9
mov    -0x40(%rsp),%r8
mov    -0x20(%rsp),%rcx
mov    0x40(%rsp),%r10d
mov    -0x58(%rsp),%edx
mov    -0x5c(%rsp),%edi
mov    -0x48(%rsp),%r13
test   $0x1,%dil
jne    1472 <mul_mdmd_md_l1_arb_all+0x372>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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