#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*/ _inner_ddot2_sse3(double *, double *, double const *,
                                     double const *, double const *, double,
                                     int);
int /*<<< orphan*/ _inner_ddot4_2_sse3(double *, double *, double *, double *,
                                       double const *, double const *,
                                       double const *, double const *,
                                       double const *, double const *, double,
                                       int);
int /*<<< orphan*/ _inner_ddot4_sse3(double *, double *, double *, double *,
                                     double const *, double const *,
                                     double const *, double const *,
                                     double const *, double, int);
int /*<<< orphan*/ _inner_ddot_sse(double *, double const *, double const *,
                                   double, int);
void _dblock_ddot_sse(double *Cc, const double *Aroot, const double *Bc,
                      double alpha, int ldC, int ldA, int ldB, int nSL, int nRE,
                      int nVP) {
  register int i, j;
  register double *c0, *c1, *c2, *c3;
  register const double *Br0, *Br1, *Br2, *Br3;
  const double *Ac;
  double *Cx = Cc;
  const double *Bx = Bc;
  for (j = 0; j < nSL - 3; j += 4) {
    Ac = Aroot;
    Br0 = Bc;
    Br1 = Br0 + ldB;
    Br2 = Br1 + ldB;
    Br3 = Br2 + ldB;
    c0 = Cc;
    c1 = c0 + ldC;
    c2 = c1 + ldC;
    c3 = c2 + ldC;
    for (i = 0; i < nRE - 1; i += 2) {
      _inner_ddot4_2_sse3(c0, c1, c2, c3, Ac, Ac + ldA, Br0, Br1, Br2, Br3,
                          alpha, nVP);
      Ac += (ldA << 1);
      c0 += 2;
      c1 += 2;
      c2 += 2;
      c3 += 2;
    }
    if (i < nRE) {
      _inner_ddot4_sse3(c0, c1, c2, c3, Ac, Br0, Br1, Br2, Br3, alpha, nVP);
      Ac += ldA;
      c0++;
      c1++;
      c2++;
      c3++;
    }
    Cc += (ldC << 2);
    Bc += (ldB << 2);
  }
  if (j == nSL) {
    return;
  }
  if (j < nSL - 1) {
    Ac = Aroot;
    Br0 = Bc;
    Br1 = Br0 + ldB;
    c0 = Cc;
    c1 = c0 + ldC;
    for (i = 0; i < nRE; i++) {
      _inner_ddot2_sse3(c0, c1, Ac, Br0, Br1, alpha, nVP);
      Ac += ldA;
      c0++;
      c1++;
    }
    Cc += (ldC << 1);
    Bc += (ldB << 1);
    j += 2;
  }
  if (j < nSL) {
    Ac = Aroot;
    Br0 = Bc;
    c0 = Cc;
    for (i = 0; i < nRE; i++) {
      _inner_ddot_sse(c0, Ac, Br0, alpha, nVP);
      Ac += ldA;
      c0++;
    }
    j++;
  }
}


x86 assembly (clang, -O0):
<_dblock_ddot_sse>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0xc0,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
movsd  %xmm0,-0x30(%rbp)
mov    %ecx,-0x34(%rbp)
mov    %r8d,-0x38(%rbp)
mov    %r9d,-0x3c(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0xa0(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    0x10(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    13e3 <_dblock_ddot_sse+0x2a3>
mov    -0x20(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
movslq -0x3c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rax
movslq -0x3c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x80(%rbp)
mov    -0x80(%rbp),%rax
movslq -0x3c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movslq -0x34(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
movslq -0x34(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
movslq -0x34(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    0x18(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1305 <_dblock_ddot_sse+0x1c5>
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x60(%rbp),%rdx
mov    -0x68(%rbp),%rcx
mov    -0x90(%rbp),%r8
mov    -0x90(%rbp),%r9
movslq -0x38(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r9
mov    -0x70(%rbp),%r14
mov    -0x78(%rbp),%rbx
mov    -0x80(%rbp),%r11
mov    -0x88(%rbp),%r10
movsd  -0x30(%rbp),%xmm0
mov    0x20(%rbp),%eax
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %eax,0x20(%rsp)
call   1050 <_inner_ddot4_2_sse3@plt>
mov    -0x38(%rbp),%ecx
shl    $0x1,%ecx
mov    -0x90(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x90(%rbp)
mov    -0x50(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x60(%rbp)
mov    -0x68(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x68(%rbp)
mov    -0x40(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x40(%rbp)
jmp    1238 <_dblock_ddot_sse+0xf8>
mov    -0x40(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    13a5 <_dblock_ddot_sse+0x265>
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x60(%rbp),%rdx
mov    -0x68(%rbp),%rcx
mov    -0x90(%rbp),%r8
mov    -0x70(%rbp),%r9
mov    -0x78(%rbp),%rbx
mov    -0x80(%rbp),%r11
mov    -0x88(%rbp),%r10
movsd  -0x30(%rbp),%xmm0
mov    0x20(%rbp),%eax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %eax,0x18(%rsp)
call   1040 <_inner_ddot4_sse3@plt>
mov    -0x38(%rbp),%ecx
mov    -0x90(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x90(%rbp)
mov    -0x50(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x58(%rbp)
mov    -0x60(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x60(%rbp)
mov    -0x68(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x68(%rbp)
mov    -0x34(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x3c(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x44(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x44(%rbp)
jmp    1190 <_dblock_ddot_sse+0x50>
mov    -0x44(%rbp),%eax
cmp    0x10(%rbp),%eax
jne    13f4 <_dblock_ddot_sse+0x2b4>
jmp    158c <_dblock_ddot_sse+0x44c>
mov    -0x44(%rbp),%eax
mov    0x10(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    14f8 <_dblock_ddot_sse+0x3b8>
mov    -0x20(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
movslq -0x3c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
movslq -0x34(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    14bf <_dblock_ddot_sse+0x37f>
mov    -0x50(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    -0x90(%rbp),%rdx
mov    -0x70(%rbp),%rcx
mov    -0x78(%rbp),%r8
movsd  -0x30(%rbp),%xmm0
mov    0x20(%rbp),%r9d
call   1060 <_inner_ddot2_sse3@plt>
mov    -0x38(%rbp),%ecx
mov    -0x90(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x90(%rbp)
mov    -0x50(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x50(%rbp)
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x58(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    144d <_dblock_ddot_sse+0x30d>
mov    -0x34(%rbp),%ecx
shl    $0x1,%ecx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x3c(%rbp),%ecx
shl    $0x1,%ecx
mov    -0x28(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    -0x44(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    158c <_dblock_ddot_sse+0x44c>
mov    -0x20(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    0x18(%rbp),%eax
jge    1583 <_dblock_ddot_sse+0x443>
mov    -0x50(%rbp),%rdi
mov    -0x90(%rbp),%rsi
mov    -0x70(%rbp),%rdx
movsd  -0x30(%rbp),%xmm0
mov    0x20(%rbp),%ecx
call   1030 <_inner_ddot_sse@plt>
mov    -0x38(%rbp),%ecx
mov    -0x90(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x90(%rbp)
mov    -0x50(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x50(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1526 <_dblock_ddot_sse+0x3e6>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
add    $0xc0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<_dblock_ddot_sse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
movsd  %xmm0,0x20(%rsp)
mov    %rdx,%rbp
mov    %rsi,%r14
mov    %rdi,%r15
mov    0xd8(%rsp),%edi
mov    0xd0(%rsp),%eax
xor    %r10d,%r10d
cmp    $0x4,%eax
mov    %rsi,0x38(%rsp)
mov    %r8d,0x14(%rsp)
mov    %r9d,0x10(%rsp)
mov    %ecx,0xc(%rsp)
jl     13a5 <_dblock_ddot_sse+0x265>
add    $0xfffffffd,%eax
mov    %eax,0x40(%rsp)
movslq %r9d,%rdx
movslq %ecx,%rcx
lea    -0x1(%rdi),%eax
mov    %eax,0x44(%rsp)
movslq %r8d,%r8
lea    (%r8,%r8,1),%eax
movslq %eax,%rsi
lea    0x0(,%rcx,4),%eax
cltq
mov    %rax,0x78(%rsp)
mov    %rdx,0x80(%rsp)
lea    0x0(,%rdx,4),%eax
cltq
mov    %rax,0x70(%rsp)
shl    $0x3,%rsi
mov    %rsi,0x90(%rsp)
shl    $0x3,%r8
lea    0x0(,%rcx,8),%r9
lea    (%r9,%r9,2),%r11
mov    %rcx,0x68(%rsp)
mov    %rcx,%rbx
shl    $0x4,%rbx
xor    %r10d,%r10d
mov    %r8,0x60(%rsp)
mov    %r9,0x58(%rsp)
mov    %r11,0x50(%rsp)
mov    %rbx,0x48(%rsp)
jmp    123c <_dblock_ddot_sse+0xfc>
mov    0x18(%rsp),%r15
mov    0x78(%rsp),%rax
lea    (%r15,%rax,8),%r15
mov    0x70(%rsp),%rax
lea    0x0(%rbp,%rax,8),%rbp
add    $0x4,%r10d
cmp    0x40(%rsp),%r10d
mov    0x38(%rsp),%r14
jge    13a5 <_dblock_ddot_sse+0x265>
mov    0x80(%rsp),%rax
lea    0x0(,%rax,8),%r13
add    %rbp,%r13
lea    0x0(,%rax,8),%rcx
add    %r13,%rcx
lea    (%rcx,%rax,8),%rax
cmp    $0x2,%edi
mov    %r15,0x18(%rsp)
mov    %r13,0x30(%rsp)
mov    %rcx,0x88(%rsp)
mov    %rax,0x28(%rsp)
jl     1330 <_dblock_ddot_sse+0x1f0>
mov    %r10d,0x8(%rsp)
xor    %r12d,%r12d
mov    %rcx,%r13
nopl   0x0(%rax)
lea    (%r15,%r11,1),%rcx
lea    (%r15,%rbx,1),%rdx
lea    (%r15,%r9,1),%rsi
lea    (%r14,%r8,1),%r9
sub    $0x8,%rsp
mov    %r15,%rdi
mov    %r14,%r8
movsd  0x28(%rsp),%xmm0
mov    0xe8(%rsp),%eax
push   %rax
push   0x38(%rsp)
push   %r13
push   0x50(%rsp)
push   %rbp
call   1050 <_inner_ddot4_2_sse3@plt>
mov    0x78(%rsp),%rbx
mov    0x80(%rsp),%r11
mov    0x88(%rsp),%r9
mov    0x90(%rsp),%r8
add    $0x30,%rsp
add    $0x10,%r15
add    $0x2,%r12d
add    0x90(%rsp),%r14
cmp    0x44(%rsp),%r12d
jl     1290 <_dblock_ddot_sse+0x150>
lea    (%r15,%r11,1),%rcx
lea    (%r15,%rbx,1),%rdx
lea    (%r15,%r9,1),%rsi
mov    0xd8(%rsp),%edi
mov    0x8(%rsp),%r10d
cmp    %edi,%r12d
jge    1210 <_dblock_ddot_sse+0xd0>
jmp    134d <_dblock_ddot_sse+0x20d>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x68(%rsp),%rax
lea    (%r15,%rax,8),%rsi
lea    (%rsi,%rax,8),%rdx
lea    (%rdx,%rax,8),%rcx
xor    %r12d,%r12d
cmp    %edi,%r12d
jge    1210 <_dblock_ddot_sse+0xd0>
mov    %r15,%rdi
mov    %r14,%r8
mov    %rbp,%r9
movsd  0x20(%rsp),%xmm0
mov    0xe0(%rsp),%eax
push   %rax
push   0x30(%rsp)
push   0x98(%rsp)
push   0x48(%rsp)
mov    %r10d,%r14d
call   1040 <_inner_ddot4_sse3@plt>
mov    0x68(%rsp),%rbx
mov    0x70(%rsp),%r11
mov    0x78(%rsp),%r9
mov    0x80(%rsp),%r8
mov    %r14d,%r10d
mov    0xf8(%rsp),%edi
add    $0x20,%rsp
jmp    1210 <_dblock_ddot_sse+0xd0>
mov    0xd0(%rsp),%ecx
cmp    %ecx,%r10d
mov    0xe0(%rsp),%r12d
je     14c9 <_dblock_ddot_sse+0x389>
lea    -0x1(%rcx),%eax
cmp    %eax,%r10d
jge    1488 <_dblock_ddot_sse+0x348>
mov    %r10d,0x8(%rsp)
mov    %r15,0x18(%rsp)
test   %edi,%edi
jle    144e <_dblock_ddot_sse+0x30e>
movslq 0x10(%rsp),%rax
lea    0x0(,%rax,8),%rax
add    %rbp,%rax
mov    %rax,0x30(%rsp)
movslq 0xc(%rsp),%r13
movslq 0x14(%rsp),%rax
shl    $0x3,%rax
mov    %rax,0x28(%rsp)
shl    $0x3,%r13
mov    0xd8(%rsp),%eax
mov    %eax,%ebx
mov    0x38(%rsp),%r15
mov    0x18(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
lea    (%r14,%r13,1),%rsi
mov    %r14,%rdi
mov    %r15,%rdx
mov    %rbp,%rcx
mov    0x30(%rsp),%r8
movsd  0x20(%rsp),%xmm0
mov    %r12d,%r9d
call   1060 <_inner_ddot2_sse3@plt>
add    $0x8,%r14
add    0x28(%rsp),%r15
add    $0xffffffff,%ebx
jne    1420 <_dblock_ddot_sse+0x2e0>
mov    0xc(%rsp),%eax
add    %eax,%eax
cltq
mov    0x18(%rsp),%r15
lea    (%r15,%rax,8),%r15
mov    0x10(%rsp),%eax
add    %eax,%eax
cltq
lea    0x0(%rbp,%rax,8),%rbp
mov    0x8(%rsp),%r10d
or     $0x2,%r10d
mov    0x38(%rsp),%r14
mov    0xd8(%rsp),%edi
mov    0xd0(%rsp),%ecx
cmp    %ecx,%r10d
jge    14c9 <_dblock_ddot_sse+0x389>
test   %edi,%edi
jle    14c9 <_dblock_ddot_sse+0x389>
movslq 0x14(%rsp),%r13
shl    $0x3,%r13
nopw   0x0(%rax,%rax,1)
mov    %rdi,%rbx
mov    %r15,%rdi
mov    %r14,%rsi
mov    %rbp,%rdx
movsd  0x20(%rsp),%xmm0
mov    %r12d,%ecx
call   1030 <_inner_ddot_sse@plt>
mov    %rbx,%rdi
add    $0x8,%r15
add    %r13,%r14
add    $0xffffffff,%edi
jne    14a0 <_dblock_ddot_sse+0x360>
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @_dblock_ddot_sse(double* %0, double* %1, double* %2, double %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9) {
%11 = add nsw i32 %7, -3
%12 = icmp sgt i32 %7, 3
br i1 %12, label %13, label %66
13: ; preds = %10
%14 = sext i32 %6 to i64
%15 = sext i32 %4 to i64
%16 = add nsw i32 %8, -1
%17 = icmp sgt i32 %8, 1
%18 = sext i32 %5 to i64
%19 = shl i32 %5, 1
%20 = sext i32 %19 to i64
%21 = shl i32 %4, 2
%22 = sext i32 %21 to i64
%23 = shl i32 %6, 2
%24 = sext i32 %23 to i64
br label %25
25: ; preds = %13, %61
%26 = phi double* [ %0, %13 ], [ %62, %61 ]
%27 = phi double* [ %2, %13 ], [ %63, %61 ]
%28 = phi i32 [ 0, %13 ], [ %64, %61 ]
%29 = getelementptr inbounds double, double* %27, i64 %14
%30 = getelementptr inbounds double, double* %29, i64 %14
%31 = getelementptr inbounds double, double* %30, i64 %14
%32 = getelementptr inbounds double, double* %26, i64 %15
%33 = getelementptr inbounds double, double* %32, i64 %15
%34 = getelementptr inbounds double, double* %33, i64 %15
br i1 %17, label %35, label %51
35: ; preds = %25, %35
%36 = phi double* [ %44, %35 ], [ %1, %25 ]
%37 = phi i32 [ %49, %35 ], [ 0, %25 ]
%38 = phi double* [ %48, %35 ], [ %34, %25 ]
%39 = phi double* [ %47, %35 ], [ %33, %25 ]
%40 = phi double* [ %46, %35 ], [ %32, %25 ]
%41 = phi double* [ %45, %35 ], [ %26, %25 ]
%42 = getelementptr inbounds double, double* %36, i64 %18
%43 = tail call i32 @_inner_ddot4_2_sse3(double* %41, double* %40, double* %39, double* %38, double* %36, double* %42, double* %27, double* %29, double* %30, double* %31, double %3, i32 %9)
%44 = getelementptr inbounds double, double* %36, i64 %20
%45 = getelementptr inbounds double, double* %41, i64 2
%46 = getelementptr inbounds double, double* %40, i64 2
%47 = getelementptr inbounds double, double* %39, i64 2
%48 = getelementptr inbounds double, double* %38, i64 2
%49 = add nuw nsw i32 %37, 2
%50 = icmp slt i32 %49, %16
br i1 %50, label %35, label %51
51: ; preds = %35, %25
%52 = phi double* [ %26, %25 ], [ %45, %35 ]
%53 = phi double* [ %32, %25 ], [ %46, %35 ]
%54 = phi double* [ %33, %25 ], [ %47, %35 ]
%55 = phi double* [ %34, %25 ], [ %48, %35 ]
%56 = phi i32 [ 0, %25 ], [ %49, %35 ]
%57 = phi double* [ %1, %25 ], [ %44, %35 ]
%58 = icmp slt i32 %56, %8
br i1 %58, label %59, label %61
59: ; preds = %51
%60 = tail call i32 @_inner_ddot4_sse3(double* %52, double* %53, double* %54, double* %55, double* %57, double* %27, double* %29, double* %30, double* %31, double %3, i32 %9)
br label %61
61: ; preds = %59, %51
%62 = getelementptr inbounds double, double* %26, i64 %22
%63 = getelementptr inbounds double, double* %27, i64 %24
%64 = add nuw nsw i32 %28, 4
%65 = icmp slt i32 %64, %11
br i1 %65, label %25, label %66
66: ; preds = %61, %10
%67 = phi i32 [ 0, %10 ], [ %64, %61 ]
%68 = phi double* [ %2, %10 ], [ %63, %61 ]
%69 = phi double* [ %0, %10 ], [ %62, %61 ]
%70 = icmp eq i32 %67, %7
br i1 %70, label %119, label %71
71: ; preds = %66
%72 = add nsw i32 %7, -1
%73 = icmp slt i32 %67, %72
br i1 %73, label %74, label %101
74: ; preds = %71
%75 = sext i32 %6 to i64
%76 = getelementptr inbounds double, double* %68, i64 %75
%77 = icmp sgt i32 %8, 0
br i1 %77, label %78, label %93
78: ; preds = %74
%79 = sext i32 %4 to i64
%80 = getelementptr inbounds double, double* %69, i64 %79
%81 = sext i32 %5 to i64
br label %82
82: ; preds = %78, %82
%83 = phi double* [ %1, %78 ], [ %88, %82 ]
%84 = phi i32 [ 0, %78 ], [ %91, %82 ]
%85 = phi double* [ %80, %78 ], [ %90, %82 ]
%86 = phi double* [ %69, %78 ], [ %89, %82 ]
%87 = tail call i32 @_inner_ddot2_sse3(double* %86, double* %85, double* %83, double* %68, double* %76, double %3, i32 %9)
%88 = getelementptr inbounds double, double* %83, i64 %81
%89 = getelementptr inbounds double, double* %86, i64 1
%90 = getelementptr inbounds double, double* %85, i64 1
%91 = add nuw nsw i32 %84, 1
%92 = icmp eq i32 %91, %8
br i1 %92, label %93, label %82
93: ; preds = %82, %74
%94 = shl i32 %4, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds double, double* %69, i64 %95
%97 = shl i32 %6, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %68, i64 %98
%100 = or i32 %67, 2
br label %101
101: ; preds = %93, %71
%102 = phi i32 [ %100, %93 ], [ %67, %71 ]
%103 = phi double* [ %99, %93 ], [ %68, %71 ]
%104 = phi double* [ %96, %93 ], [ %69, %71 ]
%105 = icmp slt i32 %102, %7
%106 = icmp sgt i32 %8, 0
%107 = and i1 %105, %106
br i1 %107, label %108, label %119
108: ; preds = %101
%109 = sext i32 %5 to i64
br label %110
110: ; preds = %108, %110
%111 = phi double* [ %1, %108 ], [ %115, %110 ]
%112 = phi i32 [ 0, %108 ], [ %117, %110 ]
%113 = phi double* [ %104, %108 ], [ %116, %110 ]
%114 = tail call i32 @_inner_ddot_sse(double* %113, double* %111, double* %103, double %3, i32 %9)
%115 = getelementptr inbounds double, double* %111, i64 %109
%116 = getelementptr inbounds double, double* %113, i64 1
%117 = add nuw nsw i32 %112, 1
%118 = icmp eq i32 %117, %8
br i1 %118, label %119, label %110
119: ; preds = %110, %101, %66
ret void
}