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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ mul_mdmd_md_l1(double const *, double const *, double *,
                                  int const, int const, int const);
int /*<<< orphan*/ mul_mdmd_md_l1_arb_all(int const, int const, int const,
                                          double const *, double const *,
                                          double *const, int const, int const,
                                          int const);
int /*<<< orphan*/ mul_mdmd_md_l1_arb_k(int const, double const *,
                                        double const *, double *, int const,
                                        int const, int const);
void mul_mdmd_md(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) {
  int m2, k2, n2;
  const double *a2, *b2;
  double *c2;
  const double *ap2, *bp2;
  double *cp2;
  {
    double *cprb, *cpre, *cp, *cpe;
    cpre = C + M * Cstride;
    for (cprb = C; cprb != cpre; cprb += Cstride) {
      cpe = cprb + N;
      for (cp = cprb; cp != cpe; cp++) {
        *cp = 0.0;
      }
    }
  }
  if (M < 9 && K < 9 && N < 9) {
    mul_mdmd_md_l1_arb_all(M, K, N, A, B, C, Astride, Bstride, Cstride);
    return;
  }
  for (m2 = 0; m2 <= M - 8; m2 += 8) {
    c2 = C + m2 * Cstride;
    a2 = A + m2 * Astride;
    for (n2 = 0, b2 = B, cp2 = c2; n2 <= N - 8; n2 += 8, b2 += 8, cp2 += 8) {
      for (k2 = 0, bp2 = b2, ap2 = a2; k2 <= K - 8;
           k2 += 8, bp2 += 8 * Bstride, ap2 += 8) {
        mul_mdmd_md_l1(ap2, bp2, cp2, Astride, Bstride, Cstride);
      }
      if (k2 < K) {
        mul_mdmd_md_l1_arb_k(K - k2, ap2, bp2, cp2, Astride, Bstride, Cstride);
      }
    }
    if (n2 < N) {
      for (k2 = 0, bp2 = b2, ap2 = a2; k2 <= K - 8;
           k2 += 8, bp2 += 8 * Bstride, ap2 += 8) {
        mul_mdmd_md_l1_arb_all(8, 8, N - n2, ap2, bp2, cp2, Astride, Bstride,
                               Cstride);
      }
      if (k2 < K) {
        mul_mdmd_md_l1_arb_all(8, K - k2, N - n2, ap2, bp2, cp2, Astride,
                               Bstride, Cstride);
      }
    }
  }
  if (m2 < M) {
    c2 = C + m2 * Cstride;
    a2 = A + m2 * Astride;
    for (n2 = 0, b2 = B, cp2 = c2; n2 <= N - 8; n2 += 8, b2 += 8, cp2 += 8) {
      for (k2 = 0, bp2 = b2, ap2 = a2; k2 <= K - 8;
           k2 += 8, bp2 += 8 * Bstride, ap2 += 8) {
        mul_mdmd_md_l1_arb_all(M - m2, 8, 8, ap2, bp2, cp2, Astride, Bstride,
                               Cstride);
      }
      if (k2 < K) {
        mul_mdmd_md_l1_arb_all(M - m2, K - k2, 8, ap2, bp2, cp2, Astride,
                               Bstride, Cstride);
      }
    }
    if (n2 < N) {
      for (k2 = 0, bp2 = b2, ap2 = a2; k2 <= K - 8;
           k2 += 8, bp2 += 8 * Bstride, ap2 += 8) {
        mul_mdmd_md_l1_arb_all(M - m2, 8, N - n2, ap2, bp2, cp2, Astride,
                               Bstride, Cstride);
      }
      if (k2 < K) {
        mul_mdmd_md_l1_arb_all(M - m2, K - k2, N - n2, ap2, bp2, cp2, Astride,
                               Bstride, Cstride);
      }
    }
  }
}


x86 assembly (clang, -O0):
<mul_mdmd_md>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%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    -0x28(%rbp),%rax
mov    -0x4(%rbp),%ecx
imul   0x20(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
cmp    -0x78(%rbp),%rax
je     11f2 <mul_mdmd_md+0xc2>
mov    -0x70(%rbp),%rax
movslq -0xc(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
cmp    -0x88(%rbp),%rax
je     11d3 <mul_mdmd_md+0xa3>
mov    -0x80(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x80(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x80(%rbp)
jmp    11a6 <mul_mdmd_md+0x76>
jmp    11d8 <mul_mdmd_md+0xa8>
mov    0x20(%rbp),%ecx
mov    -0x70(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
jmp    117a <mul_mdmd_md+0x4a>
cmpl   $0x9,-0x4(%rbp)
jge    1247 <mul_mdmd_md+0x117>
cmpl   $0x9,-0x8(%rbp)
jge    1247 <mul_mdmd_md+0x117>
cmpl   $0x9,-0xc(%rbp)
jge    1247 <mul_mdmd_md+0x117>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    0x10(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <mul_mdmd_md_l1_arb_all@plt>
jmp    16dd <mul_mdmd_md+0x5ad>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x8,%ecx
cmp    %ecx,%eax
jg     1485 <mul_mdmd_md+0x355>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   0x20(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   0x10(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x34(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x8,%ecx
cmp    %ecx,%eax
jg     138b <mul_mdmd_md+0x25b>
movl   $0x0,-0x30(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x8,%ecx
cmp    %ecx,%eax
jg     132f <mul_mdmd_md+0x1ff>
mov    -0x58(%rbp),%rdi
mov    -0x60(%rbp),%rsi
mov    -0x68(%rbp),%rdx
mov    0x10(%rbp),%ecx
mov    0x18(%rbp),%r8d
mov    0x20(%rbp),%r9d
call   1030 <mul_mdmd_md_l1@plt>
mov    -0x30(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    0x18(%rbp),%ecx
shl    $0x3,%ecx
mov    -0x60(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x58(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x58(%rbp)
jmp    12d0 <mul_mdmd_md+0x1a0>
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1360 <mul_mdmd_md+0x230>
mov    -0x8(%rbp),%edi
sub    -0x30(%rbp),%edi
mov    -0x58(%rbp),%rsi
mov    -0x60(%rbp),%rdx
mov    -0x68(%rbp),%rcx
mov    0x10(%rbp),%r8d
mov    0x18(%rbp),%r9d
mov    0x20(%rbp),%eax
mov    %eax,(%rsp)
call   1040 <mul_mdmd_md_l1_arb_k@plt>
jmp    1365 <mul_mdmd_md+0x235>
mov    -0x34(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x34(%rbp)
mov    -0x48(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x48(%rbp)
mov    -0x68(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x68(%rbp)
jmp    12a8 <mul_mdmd_md+0x178>
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1472 <mul_mdmd_md+0x342>
movl   $0x0,-0x30(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x8,%ecx
cmp    %ecx,%eax
jg     1427 <mul_mdmd_md+0x2f7>
mov    -0xc(%rbp),%edx
sub    -0x34(%rbp),%edx
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%r8
mov    -0x68(%rbp),%r9
mov    0x10(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    $0x8,%esi
mov    %esi,%edi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <mul_mdmd_md_l1_arb_all@plt>
mov    -0x30(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    0x18(%rbp),%ecx
shl    $0x3,%ecx
mov    -0x60(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x58(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x58(%rbp)
jmp    13ae <mul_mdmd_md+0x27e>
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    146d <mul_mdmd_md+0x33d>
mov    -0x8(%rbp),%esi
sub    -0x30(%rbp),%esi
mov    -0xc(%rbp),%edx
sub    -0x34(%rbp),%edx
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%r8
mov    -0x68(%rbp),%r9
mov    0x10(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    $0x8,%edi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <mul_mdmd_md_l1_arb_all@plt>
jmp    1472 <mul_mdmd_md+0x342>
jmp    1477 <mul_mdmd_md+0x347>
mov    -0x2c(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x2c(%rbp)
jmp    124e <mul_mdmd_md+0x11e>
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    16dd <mul_mdmd_md+0x5ad>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   0x20(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
imul   0x10(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x34(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x8,%ecx
cmp    %ecx,%eax
jg     15ec <mul_mdmd_md+0x4bc>
movl   $0x0,-0x30(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x8,%ecx
cmp    %ecx,%eax
jg     157b <mul_mdmd_md+0x44b>
mov    -0x4(%rbp),%edi
sub    -0x2c(%rbp),%edi
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%r8
mov    -0x68(%rbp),%r9
mov    0x10(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    $0x8,%edx
mov    %edx,%esi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <mul_mdmd_md_l1_arb_all@plt>
mov    -0x30(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    0x18(%rbp),%ecx
shl    $0x3,%ecx
mov    -0x60(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x58(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x58(%rbp)
jmp    1502 <mul_mdmd_md+0x3d2>
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    15c1 <mul_mdmd_md+0x491>
mov    -0x4(%rbp),%edi
sub    -0x2c(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0x30(%rbp),%esi
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%r8
mov    -0x68(%rbp),%r9
mov    0x10(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    $0x8,%edx
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <mul_mdmd_md_l1_arb_all@plt>
jmp    15c6 <mul_mdmd_md+0x496>
mov    -0x34(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x34(%rbp)
mov    -0x48(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x48(%rbp)
mov    -0x68(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x68(%rbp)
jmp    14da <mul_mdmd_md+0x3aa>
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    16d8 <mul_mdmd_md+0x5a8>
movl   $0x0,-0x30(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x30(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x8,%ecx
cmp    %ecx,%eax
jg     168c <mul_mdmd_md+0x55c>
mov    -0x4(%rbp),%edi
sub    -0x2c(%rbp),%edi
mov    -0xc(%rbp),%edx
sub    -0x34(%rbp),%edx
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%r8
mov    -0x68(%rbp),%r9
mov    0x10(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    $0x8,%esi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <mul_mdmd_md_l1_arb_all@plt>
mov    -0x30(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0x30(%rbp)
mov    0x18(%rbp),%ecx
shl    $0x3,%ecx
mov    -0x60(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x58(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x58(%rbp)
jmp    160f <mul_mdmd_md+0x4df>
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    16d3 <mul_mdmd_md+0x5a3>
mov    -0x4(%rbp),%edi
sub    -0x2c(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0x30(%rbp),%esi
mov    -0xc(%rbp),%edx
sub    -0x34(%rbp),%edx
mov    -0x58(%rbp),%rcx
mov    -0x60(%rbp),%r8
mov    -0x68(%rbp),%r9
mov    0x10(%rbp),%r11d
mov    0x18(%rbp),%r10d
mov    0x20(%rbp),%eax
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1050 <mul_mdmd_md_l1_arb_all@plt>
jmp    16d8 <mul_mdmd_md+0x5a8>
jmp    16dd <mul_mdmd_md+0x5ad>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mul_mdmd_md>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %r9,0x70(%rsp)
mov    %r8,%r12
mov    %rcx,0x80(%rsp)
mov    %edx,%r13d
mov    %rsi,0x20(%rsp)
mov    0xf0(%rsp),%ecx
mov    0xe8(%rsp),%eax
mov    %rax,0x18(%rsp)
mov    0xe0(%rsp),%eax
mov    %rax,0x28(%rsp)
mov    %rcx,0x10(%rsp)
mov    %ecx,%eax
mov    %rdi,0x60(%rsp)
imul   %edi,%eax
test   %eax,%eax
je     11e2 <mul_mdmd_md+0xa2>
movslq %eax,%r15
movslq %r13d,%r14
movslq 0x10(%rsp),%rbx
shl    $0x3,%r14
shl    $0x3,%rbx
shl    $0x3,%r15
xor    %ebp,%ebp
jmp    11c8 <mul_mdmd_md+0x88>
cs nopw 0x0(%rax,%rax,1)
add    %rbx,%rbp
cmp    %rbp,%r15
je     11e2 <mul_mdmd_md+0xa2>
test   %r13d,%r13d
je     11c0 <mul_mdmd_md+0x80>
mov    0x70(%rsp),%rax
lea    (%rax,%rbp,1),%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1030 <memset@plt>
jmp    11c0 <mul_mdmd_md+0x80>
mov    0x60(%rsp),%rdi
cmp    $0x8,%edi
mov    0x20(%rsp),%rsi
jg     1230 <mul_mdmd_md+0xf0>
cmp    $0x8,%esi
jg     1230 <mul_mdmd_md+0xf0>
cmp    $0x9,%r13d
jge    1230 <mul_mdmd_md+0xf0>
sub    $0x8,%rsp
mov    %r13d,%edx
mov    0x88(%rsp),%rcx
mov    %r12,%r8
mov    0x78(%rsp),%r9
push   0x18(%rsp)
push   0x28(%rsp)
push   0x40(%rsp)
call   1060 <mul_mdmd_md_l1_arb_all@plt>
add    $0xc8,%rsp
jmp    15f9 <mul_mdmd_md+0x4b9>
xor    %edx,%edx
cmp    $0x8,%edi
mov    %r13,0x40(%rsp)
mov    0x28(%rsp),%r14
mov    0x18(%rsp),%rbx
jl     14cb <mul_mdmd_md+0x38b>
mov    %r12,0x38(%rsp)
lea    -0x8(%rdi),%eax
mov    %rax,0xa0(%rsp)
lea    -0x8(%r13),%eax
mov    %eax,0x8c(%rsp)
lea    -0x8(%rsi),%eax
mov    %eax,0xc(%rsp)
lea    0x0(,%rbx,8),%eax
cltq
mov    0x10(%rsp),%r12
movslq %r12d,%rcx
mov    %rcx,0x98(%rsp)
movslq %r14d,%rcx
mov    %rcx,0x90(%rsp)
shl    $0x3,%rax
mov    %rax,0x58(%rsp)
xor    %edx,%edx
jmp    12bc <mul_mdmd_md+0x17c>
nopl   (%rax)
mov    0x68(%rsp),%rdx
add    $0x8,%rdx
cmp    0xa0(%rsp),%rdx
mov    0x40(%rsp),%r13
jg     14c1 <mul_mdmd_md+0x381>
mov    %rdx,%rax
imul   0x98(%rsp),%rax
mov    %rdx,%rcx
imul   0x90(%rsp),%rcx
mov    0x70(%rsp),%rdi
lea    (%rdi,%rax,8),%r11
mov    0x80(%rsp),%rax
lea    (%rax,%rcx,8),%r15
cmp    $0x8,%r13d
mov    %rdx,0x68(%rsp)
jge    13d0 <mul_mdmd_md+0x290>
xor    %edx,%edx
mov    0x38(%rsp),%r8
cmp    0x40(%rsp),%edx
mov    0x28(%rsp),%r14
mov    0x18(%rsp),%rbx
jge    12a0 <mul_mdmd_md+0x160>
xor    %r13d,%r13d
cmp    $0x8,%esi
mov    %edx,0x48(%rsp)
jl     1380 <mul_mdmd_md+0x240>
mov    0x40(%rsp),%rax
sub    %edx,%eax
mov    %eax,0x30(%rsp)
xor    %r13d,%r13d
nopl   0x0(%rax)
sub    $0x8,%rsp
mov    $0x8,%edi
mov    $0x8,%esi
mov    0x38(%rsp),%edx
mov    %r15,%rbp
mov    %r15,%rcx
mov    %r8,%r15
mov    %r11,%r12
mov    %r11,%r9
push   0x18(%rsp)
push   %rbx
push   %r14
call   1060 <mul_mdmd_md_l1_arb_all@plt>
mov    0x2c(%rsp),%edi
mov    %r15,%r8
mov    %rbp,%r15
mov    %r12,%r11
add    $0x20,%rsp
add    $0x8,%r13d
add    $0x40,%r15
add    0x58(%rsp),%r8
cmp    %edi,%r13d
jle    1330 <mul_mdmd_md+0x1f0>
mov    0x20(%rsp),%rsi
cmp    %esi,%r13d
mov    0x48(%rsp),%edi
mov    0x10(%rsp),%r12
jge    12a0 <mul_mdmd_md+0x160>
sub    %r13d,%esi
mov    0x40(%rsp),%rax
mov    %eax,%edx
sub    %edi,%edx
sub    $0x8,%rsp
mov    $0x8,%edi
mov    %r15,%rcx
mov    %r11,%r9
push   %r12
push   %rbx
push   %r14
call   1060 <mul_mdmd_md_l1_arb_all@plt>
mov    0x40(%rsp),%rsi
add    $0x20,%rsp
jmp    12a0 <mul_mdmd_md+0x160>
nopw   0x0(%rax,%rax,1)
xor    %edx,%edx
mov    0x38(%rsp),%r8
mov    %r15,0x78(%rsp)
jmp    1406 <mul_mdmd_md+0x2c6>
xchg   %ax,%ax
mov    0x48(%rsp),%edx
add    $0x8,%edx
mov    0x50(%rsp),%r8
add    $0x40,%r8
add    $0x40,%r11
cmp    0x8c(%rsp),%edx
mov    0x78(%rsp),%r15
jg     12ff <mul_mdmd_md+0x1bf>
mov    %edx,0x48(%rsp)
mov    %r8,0x50(%rsp)
mov    %r8,%r13
mov    $0x0,%r14d
cmp    $0x8,%esi
mov    0x28(%rsp),%rbp
mov    %r12,%rbx
mov    0x18(%rsp),%r12
jl     1474 <mul_mdmd_md+0x334>
xor    %r14d,%r14d
mov    0x50(%rsp),%r13
mov    0x78(%rsp),%r15
mov    %r11,0x30(%rsp)
nopl   0x0(%rax)
mov    %r15,%rdi
mov    %r13,%rsi
mov    %r11,%rdx
mov    %ebp,%ecx
mov    %r12d,%r8d
mov    %ebx,%r9d
call   1040 <mul_mdmd_md_l1@plt>
mov    0x58(%rsp),%rcx
mov    0xc(%rsp),%eax
mov    0x30(%rsp),%r11
add    $0x8,%r14d
add    $0x40,%r15
add    %rcx,%r13
cmp    %eax,%r14d
jle    1440 <mul_mdmd_md+0x300>
mov    0x20(%rsp),%rsi
cmp    %esi,%r14d
mov    %rbx,%r12
jge    13e0 <mul_mdmd_md+0x2a0>
mov    0x20(%rsp),%rax
mov    %eax,%edi
sub    %r14d,%edi
sub    $0x8,%rsp
mov    %r15,%rsi
mov    %r13,%rdx
mov    %r11,%rcx
mov    0x30(%rsp),%r8
mov    %r11,%rbp
mov    0x20(%rsp),%r9
push   %r12
call   1050 <mul_mdmd_md_l1_arb_k@plt>
mov    %rbp,%r11
mov    0x30(%rsp),%rsi
add    $0x10,%rsp
jmp    13e0 <mul_mdmd_md+0x2a0>
mov    0x38(%rsp),%r12
mov    0x60(%rsp),%rdi
cmp    %edi,%edx
jge    15f2 <mul_mdmd_md+0x4b2>
mov    %edx,%eax
imul   0x10(%rsp),%eax
cltq
mov    0x70(%rsp),%rcx
lea    (%rcx,%rax,8),%r9
mov    %edx,%eax
imul   %r14d,%eax
cltq
mov    0x80(%rsp),%rcx
lea    (%rcx,%rax,8),%rbp
xor    %eax,%eax
cmp    $0x8,%r13d
mov    %rdx,0x68(%rsp)
jge    1604 <mul_mdmd_md+0x4c4>
mov    0x40(%rsp),%rdi
cmp    %edi,%eax
mov    0x18(%rsp),%rdx
mov    0x68(%rsp),%r8
jge    15f2 <mul_mdmd_md+0x4b2>
mov    %r12,%rbx
xor    %r12d,%r12d
cmp    $0x8,%esi
mov    %eax,0x50(%rsp)
jl     15b2 <mul_mdmd_md+0x472>
lea    -0x8(%rsi),%ecx
mov    %ecx,0xc(%rsp)
mov    0x60(%rsp),%rcx
sub    %r8d,%ecx
mov    %ecx,0x58(%rsp)
mov    %edi,%ecx
sub    %eax,%ecx
mov    %ecx,0x30(%rsp)
lea    0x0(,%rdx,8),%eax
movslq %eax,%r13
shl    $0x3,%r13
xor    %r12d,%r12d
mov    0x10(%rsp),%r15
cs nopw 0x0(%rax,%rax,1)
nop
sub    $0x8,%rsp
mov    0x60(%rsp),%edi
mov    $0x8,%esi
mov    0x38(%rsp),%edx
mov    %rbp,%rcx
mov    %rbx,%r8
mov    %r9,%r14
push   %r15
push   0x28(%rsp)
push   0x40(%rsp)
call   1060 <mul_mdmd_md_l1_arb_all@plt>
mov    %r14,%r9
add    $0x20,%rsp
add    $0x8,%r12d
add    $0x40,%rbp
add    %r13,%rbx
cmp    0xc(%rsp),%r12d
jle    1570 <mul_mdmd_md+0x430>
mov    0x20(%rsp),%rsi
cmp    %esi,%r12d
mov    0x40(%rsp),%rdx
mov    0x60(%rsp),%rdi
mov    0x68(%rsp),%rax
mov    0x50(%rsp),%ecx
jge    15f2 <mul_mdmd_md+0x4b2>
sub    %eax,%edi
sub    %r12d,%esi
sub    %ecx,%edx
mov    %rbp,%rcx
mov    %rbx,%r8
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <mul_mdmd_md_l1_arb_all@plt>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    -0x8(%r13),%eax
mov    %eax,0x78(%rsp)
lea    -0x8(%rsi),%eax
mov    %eax,0x58(%rsp)
mov    %edi,%eax
sub    %edx,%eax
mov    %eax,0xc(%rsp)
lea    0x0(,%rbx,8),%eax
cltq
shl    $0x3,%rax
mov    %rax,0x30(%rsp)
xor    %eax,%eax
mov    %rbp,0x48(%rsp)
jmp    1663 <mul_mdmd_md+0x523>
cs nopw 0x0(%rax,%rax,1)
mov    0x50(%rsp),%eax
add    $0x8,%eax
mov    0x38(%rsp),%r12
add    $0x40,%r12
add    $0x40,%r9
cmp    0x78(%rsp),%eax
mov    0x48(%rsp),%rbp
jg     150a <mul_mdmd_md+0x3ca>
mov    %eax,0x50(%rsp)
mov    %rbp,%r14
mov    %r12,0x38(%rsp)
mov    %r12,%rbx
mov    $0x0,%r12d
cmp    $0x8,%esi
mov    0x28(%rsp),%r10
mov    0x18(%rsp),%r11
mov    0x10(%rsp),%rax
jl     16f1 <mul_mdmd_md+0x5b1>
xor    %r12d,%r12d
mov    0x38(%rsp),%rbx
mov    0x48(%rsp),%r14
nopl   0x0(%rax)
sub    $0x8,%rsp
mov    0x14(%rsp),%edi
mov    $0x8,%esi
mov    $0x8,%edx
mov    %r14,%rcx
mov    %rbx,%r8
mov    %r9,%rbp
push   %rax
push   %r11
push   %r10
mov    %r10,%r15
mov    %r11,%r13
call   1060 <mul_mdmd_md_l1_arb_all@plt>
mov    0x30(%rsp),%rax
mov    %r13,%r11
mov    %r15,%r10
mov    %rbp,%r9
add    $0x20,%rsp
add    $0x8,%r12d
add    $0x40,%r14
add    0x30(%rsp),%rbx
cmp    0x58(%rsp),%r12d
jle    16a0 <mul_mdmd_md+0x560>
mov    0x20(%rsp),%rsi
cmp    %esi,%r12d
jge    1640 <mul_mdmd_md+0x500>
sub    %r12d,%esi
sub    $0x8,%rsp
mov    0x14(%rsp),%edi
mov    $0x8,%edx
mov    %r14,%rcx
mov    %rbx,%r8
mov    %r9,%rbx
push   0x18(%rsp)
push   0x28(%rsp)
push   0x40(%rsp)
call   1060 <mul_mdmd_md_l1_arb_all@plt>
mov    %rbx,%r9
mov    0x40(%rsp),%rsi
add    $0x20,%rsp
jmp    1640 <mul_mdmd_md+0x500>

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

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