void kernel_dgema_2_lib4(int kmax, int kna, double *A, int sda, double *C,
                         int sdc) {
  const int bs = 4;
  int k;
  if (kna == 0) {
    k = 0;
    for (; k < kmax - 3; k += 4) {
      C[0 + bs * 0] = A[0 + bs * 0];
      C[1 + bs * 0] = A[1 + bs * 0];
      C[2 + bs * 0] = A[2 + bs * 0];
      C[3 + bs * 0] = A[3 + bs * 0];
      C[0 + bs * 1] = A[0 + bs * 1];
      C[1 + bs * 1] = A[1 + bs * 1];
      C[2 + bs * 1] = A[2 + bs * 1];
      C[3 + bs * 1] = A[3 + bs * 1];
      A += bs * sda;
      C += bs * sdc;
    }
    for (; k < kmax; k++) {
      C[0 + bs * 0] = A[0 + bs * 0];
      C[0 + bs * 1] = A[0 + bs * 1];
      A += 1;
      C += 1;
    }
    return;
  } else if (kna == 1) {
    k = 0;
    for (; k < kmax - 3; k += 4) {
      C[3 + bs * 0] = A[0 + bs * 0];
      C[3 + bs * 1] = A[0 + bs * 1];
      C += bs * sdc;
      C[0 + bs * 0] = A[1 + bs * 0];
      C[1 + bs * 0] = A[2 + bs * 0];
      C[2 + bs * 0] = A[3 + bs * 0];
      C[0 + bs * 1] = A[1 + bs * 1];
      C[1 + bs * 1] = A[2 + bs * 1];
      C[2 + bs * 1] = A[3 + bs * 1];
      A += bs * sda;
    }
    if (k >= kmax) {
      return;
    }
    C[3 + bs * 0] = A[0 + bs * 0];
    C[3 + bs * 1] = A[0 + bs * 1];
    k++;
    if (k == kmax) {
      return;
    }
    C += bs * sdc;
    C[0 + bs * 0] = A[1 + bs * 0];
    C[0 + bs * 1] = A[1 + bs * 1];
    k++;
    if (k == kmax) {
      return;
    }
    C[1 + bs * 0] = A[2 + bs * 0];
    C[1 + bs * 1] = A[2 + bs * 1];
    return;
  } else if (kna == 2) {
    k = 0;
    for (; k < kmax - 3; k += 4) {
      C[2 + bs * 0] = A[0 + bs * 0];
      C[3 + bs * 0] = A[1 + bs * 0];
      C[2 + bs * 1] = A[0 + bs * 1];
      C[3 + bs * 1] = A[1 + bs * 1];
      C += bs * sdc;
      C[0 + bs * 0] = A[2 + bs * 0];
      C[1 + bs * 0] = A[3 + bs * 0];
      C[0 + bs * 1] = A[2 + bs * 1];
      C[1 + bs * 1] = A[3 + bs * 1];
      A += bs * sda;
    }
    if (k >= kmax) {
      return;
    }
    C[2 + bs * 0] = A[0 + bs * 0];
    C[2 + bs * 1] = A[0 + bs * 1];
    k++;
    if (k == kmax) {
      return;
    }
    C[3 + bs * 0] = A[1 + bs * 0];
    C[3 + bs * 1] = A[1 + bs * 1];
    k++;
    if (k == kmax) {
      return;
    }
    C += bs * sdc;
    C[0 + bs * 0] = A[3 + bs * 0];
    C[0 + bs * 1] = A[3 + bs * 1];
    return;
  } else {
    k = 0;
    for (; k < kmax - 3; k += 4) {
      C[1 + bs * 0] = A[0 + bs * 0];
      C[2 + bs * 0] = A[1 + bs * 0];
      C[3 + bs * 0] = A[2 + bs * 0];
      C[1 + bs * 1] = A[0 + bs * 1];
      C[2 + bs * 1] = A[1 + bs * 1];
      C[3 + bs * 1] = A[2 + bs * 1];
      C += bs * sdc;
      C[0 + bs * 0] = A[3 + bs * 0];
      C[0 + bs * 1] = A[3 + bs * 1];
      A += bs * sda;
    }
    if (k >= kmax) {
      return;
    }
    C[1 + bs * 0] = A[0 + bs * 0];
    C[1 + bs * 1] = A[0 + bs * 1];
    k++;
    if (k == kmax) {
      return;
    }
    C[2 + bs * 0] = A[1 + bs * 0];
    C[2 + bs * 1] = A[1 + bs * 1];
    k++;
    if (k == kmax) {
      return;
    }
    C[3 + bs * 0] = A[2 + bs * 0];
    C[3 + bs * 1] = A[2 + bs * 1];
    return;
  }
}


x86 assembly (clang, -O0):
<kernel_dgema_2_lib4>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
movl   $0x4,-0x28(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    126c <kernel_dgema_2_lib4+0x16c>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    120e <kernel_dgema_2_lib4+0x10e>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x24(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x2c(%rbp)
jmp    1131 <kernel_dgema_2_lib4+0x31>
jmp    1213 <kernel_dgema_2_lib4+0x113>
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1267 <kernel_dgema_2_lib4+0x167>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1213 <kernel_dgema_2_lib4+0x113>
jmp    1774 <kernel_dgema_2_lib4+0x674>
cmpl   $0x1,-0x8(%rbp)
jne    1426 <kernel_dgema_2_lib4+0x326>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    135a <kernel_dgema_2_lib4+0x25a>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x24(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x2c(%rbp)
jmp    127d <kernel_dgema_2_lib4+0x17d>
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jl     136b <kernel_dgema_2_lib4+0x26b>
jmp    1774 <kernel_dgema_2_lib4+0x674>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jne    13a8 <kernel_dgema_2_lib4+0x2a8>
jmp    1774 <kernel_dgema_2_lib4+0x674>
mov    -0x24(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jne    13fd <kernel_dgema_2_lib4+0x2fd>
jmp    1774 <kernel_dgema_2_lib4+0x674>
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
jmp    1774 <kernel_dgema_2_lib4+0x674>
cmpl   $0x2,-0x8(%rbp)
jne    15e0 <kernel_dgema_2_lib4+0x4e0>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    1514 <kernel_dgema_2_lib4+0x414>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x24(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x2c(%rbp)
jmp    1437 <kernel_dgema_2_lib4+0x337>
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jl     1525 <kernel_dgema_2_lib4+0x425>
jmp    1774 <kernel_dgema_2_lib4+0x674>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jne    1562 <kernel_dgema_2_lib4+0x462>
jmp    1774 <kernel_dgema_2_lib4+0x674>
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jne    15a0 <kernel_dgema_2_lib4+0x4a0>
jmp    1774 <kernel_dgema_2_lib4+0x674>
mov    -0x24(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
jmp    1774 <kernel_dgema_2_lib4+0x674>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    16c4 <kernel_dgema_2_lib4+0x5c4>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x24(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x20(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x2c(%rbp)
jmp    15e7 <kernel_dgema_2_lib4+0x4e7>
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jl     16d5 <kernel_dgema_2_lib4+0x5d5>
jmp    1774 <kernel_dgema_2_lib4+0x674>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jne    1712 <kernel_dgema_2_lib4+0x612>
jmp    1774 <kernel_dgema_2_lib4+0x674>
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jne    1750 <kernel_dgema_2_lib4+0x650>
jmp    1774 <kernel_dgema_2_lib4+0x674>
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dgema_2_lib4>:
push   %rbx
test   %esi,%esi
je     1228 <kernel_dgema_2_lib4+0x128>
xor    %eax,%eax
cmp    $0x1,%esi
je     1320 <kernel_dgema_2_lib4+0x220>
cmp    $0x2,%esi
jne    142c <kernel_dgema_2_lib4+0x32c>
cmp    $0x4,%edi
jl     11bd <kernel_dgema_2_lib4+0xbd>
lea    -0x3(%rdi),%r10d
lea    0x0(,%r9,4),%eax
movslq %eax,%rsi
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
shl    $0x3,%rsi
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rdx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x20(%rdx),%xmm0
movsd  %xmm0,0x30(%r8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x38(%r8)
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,(%r8,%rsi,1)
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,0x8(%r8,%rsi,1)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x20(%r8,%rsi,1)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x28(%r8,%rsi,1)
add    %rsi,%r8
add    $0x4,%eax
add    %rcx,%rdx
cmp    %r10d,%eax
jl     1150 <kernel_dgema_2_lib4+0x50>
mov    %edi,%eax
and    $0xfffffffc,%eax
cmp    %edi,%eax
jge    169e <kernel_dgema_2_lib4+0x59e>
movsd  (%rdx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  0x20(%rdx),%xmm0
movsd  %xmm0,0x30(%r8)
mov    %eax,%ecx
or     $0x1,%ecx
cmp    %edi,%ecx
je     169e <kernel_dgema_2_lib4+0x59e>
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x38(%r8)
or     $0x2,%eax
cmp    %edi,%eax
je     169e <kernel_dgema_2_lib4+0x59e>
shl    $0x2,%r9d
movslq %r9d,%rax
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,(%r8,%rax,8)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x20(%r8,%rax,8)
pop    %rbx
ret
xor    %r10d,%r10d
cmp    $0x4,%edi
jl     12bb <kernel_dgema_2_lib4+0x1bb>
lea    -0x3(%rdi),%r10d
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x2,%r9d
movslq %r9d,%rsi
shl    $0x3,%rcx
shl    $0x3,%rsi
xor    %eax,%eax
nop
movsd  (%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x20(%rdx),%xmm0
movsd  %xmm0,0x20(%r8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x28(%r8)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x30(%r8)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x38(%r8)
add    $0x4,%eax
add    %rcx,%rdx
add    %rsi,%r8
cmp    %r10d,%eax
jl     1250 <kernel_dgema_2_lib4+0x150>
mov    %edi,%r10d
and    $0xfffffffc,%r10d
cmp    %edi,%r10d
jge    169e <kernel_dgema_2_lib4+0x59e>
mov    %r10d,%r11d
not    %r11d
add    %edi,%r11d
je     15df <kernel_dgema_2_lib4+0x4df>
lea    (%rdx,%r11,8),%rax
add    $0x28,%rax
cmp    %rax,%r8
jae    12f1 <kernel_dgema_2_lib4+0x1f1>
lea    (%r8,%r11,8),%rax
add    $0x28,%rax
cmp    %rax,%rdx
jb     15df <kernel_dgema_2_lib4+0x4df>
add    $0x1,%r11
mov    %r11,%r9
and    $0xfffffffffffffffe,%r9
lea    -0x2(%r9),%rcx
mov    %rcx,%rsi
shr    %rsi
add    $0x1,%rsi
mov    %esi,%eax
and    $0x3,%eax
cmp    $0x6,%rcx
jae    151e <kernel_dgema_2_lib4+0x41e>
xor    %ecx,%ecx
jmp    1590 <kernel_dgema_2_lib4+0x490>
cmp    $0x4,%edi
jl     13bf <kernel_dgema_2_lib4+0x2bf>
lea    -0x3(%rdi),%r10d
lea    0x0(,%r9,4),%eax
movslq %eax,%rsi
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
shl    $0x3,%rsi
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
movsd  (%rdx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x20(%rdx),%xmm0
movsd  %xmm0,0x38(%r8)
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,(%r8,%rsi,1)
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x8(%r8,%rsi,1)
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,0x10(%r8,%rsi,1)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x20(%r8,%rsi,1)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x28(%r8,%rsi,1)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x30(%r8,%rsi,1)
add    %rsi,%r8
add    $0x4,%eax
add    %rcx,%rdx
cmp    %r10d,%eax
jl     1350 <kernel_dgema_2_lib4+0x250>
mov    %edi,%eax
and    $0xfffffffc,%eax
cmp    %edi,%eax
jge    169e <kernel_dgema_2_lib4+0x59e>
movsd  (%rdx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x20(%rdx),%xmm0
movsd  %xmm0,0x38(%r8)
mov    %eax,%ecx
or     $0x1,%ecx
cmp    %edi,%ecx
je     169e <kernel_dgema_2_lib4+0x59e>
shl    $0x2,%r9d
movslq %r9d,%rcx
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,(%r8,%rcx,8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x20(%r8,%rcx,8)
or     $0x2,%eax
cmp    %edi,%eax
je     169e <kernel_dgema_2_lib4+0x59e>
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x8(%r8,%rcx,8)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x28(%r8,%rcx,8)
pop    %rbx
ret
cmp    $0x4,%edi
jl     14bb <kernel_dgema_2_lib4+0x3bb>
lea    -0x3(%rdi),%r10d
shl    $0x2,%r9d
movslq %r9d,%rsi
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
shl    $0x3,%rsi
xor    %eax,%eax
movsd  (%rdx),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x20(%rdx),%xmm0
movsd  %xmm0,0x28(%r8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x30(%r8)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x38(%r8)
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,(%r8,%rsi,1)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x20(%r8,%rsi,1)
add    %rsi,%r8
add    $0x4,%eax
add    %rcx,%rdx
cmp    %r10d,%eax
jl     1450 <kernel_dgema_2_lib4+0x350>
mov    %edi,%eax
and    $0xfffffffc,%eax
cmp    %edi,%eax
jge    169e <kernel_dgema_2_lib4+0x59e>
movsd  (%rdx),%xmm0
movsd  %xmm0,0x8(%r8)
movsd  0x20(%rdx),%xmm0
movsd  %xmm0,0x28(%r8)
mov    %eax,%ecx
or     $0x1,%ecx
cmp    %edi,%ecx
je     169e <kernel_dgema_2_lib4+0x59e>
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x10(%r8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x30(%r8)
or     $0x2,%eax
cmp    %edi,%eax
je     169e <kernel_dgema_2_lib4+0x59e>
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x18(%r8)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x38(%r8)
pop    %rbx
ret
and    $0xfffffffffffffffc,%rsi
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups (%rdx,%rcx,8),%xmm0
movups %xmm0,(%r8,%rcx,8)
movups 0x20(%rdx,%rcx,8),%xmm0
movups %xmm0,0x20(%r8,%rcx,8)
movups 0x10(%rdx,%rcx,8),%xmm0
movups %xmm0,0x10(%r8,%rcx,8)
movups 0x30(%rdx,%rcx,8),%xmm0
movups %xmm0,0x30(%r8,%rcx,8)
movups 0x20(%rdx,%rcx,8),%xmm0
movups %xmm0,0x20(%r8,%rcx,8)
movups 0x40(%rdx,%rcx,8),%xmm0
movups %xmm0,0x40(%r8,%rcx,8)
movups 0x30(%rdx,%rcx,8),%xmm0
movups %xmm0,0x30(%r8,%rcx,8)
movups 0x50(%rdx,%rcx,8),%xmm0
movups %xmm0,0x50(%r8,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffc,%rsi
jne    1530 <kernel_dgema_2_lib4+0x430>
test   %rax,%rax
je     15cb <kernel_dgema_2_lib4+0x4cb>
lea    (%r8,%rcx,8),%rsi
add    $0x20,%rsi
lea    (%rdx,%rcx,8),%rcx
add    $0x20,%rcx
shl    $0x4,%rax
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movups -0x20(%rcx,%rbx,1),%xmm0
movups %xmm0,-0x20(%rsi,%rbx,1)
movups (%rcx,%rbx,1),%xmm0
movups %xmm0,(%rsi,%rbx,1)
add    $0x10,%rbx
cmp    %rbx,%rax
jne    15b0 <kernel_dgema_2_lib4+0x4b0>
cmp    %r9,%r11
je     169e <kernel_dgema_2_lib4+0x59e>
add    %r9d,%r10d
lea    (%rdx,%r9,8),%rdx
lea    (%r8,%r9,8),%r8
mov    %edi,%eax
sub    %r10d,%eax
mov    %r10d,%ecx
not    %ecx
add    %edi,%ecx
and    $0x3,%eax
je     1626 <kernel_dgema_2_lib4+0x526>
neg    %eax
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  0x20(%rdx),%xmm0
movsd  %xmm0,0x20(%r8)
add    $0x8,%rdx
add    $0x8,%r8
add    $0xffffffff,%esi
cmp    %esi,%eax
jne    1600 <kernel_dgema_2_lib4+0x500>
sub    %esi,%r10d
cmp    $0x3,%ecx
jb     169e <kernel_dgema_2_lib4+0x59e>
sub    %r10d,%edi
xor    %eax,%eax
movsd  (%rdx,%rax,8),%xmm0
movsd  %xmm0,(%r8,%rax,8)
movsd  0x20(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x20(%r8,%rax,8)
movsd  0x8(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x8(%r8,%rax,8)
movsd  0x28(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x28(%r8,%rax,8)
movsd  0x10(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x10(%r8,%rax,8)
movsd  0x30(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x30(%r8,%rax,8)
movsd  0x18(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x18(%r8,%rax,8)
movsd  0x38(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x38(%r8,%rax,8)
add    $0x4,%rax
cmp    %eax,%edi
jne    1630 <kernel_dgema_2_lib4+0x530>
pop    %rbx
ret

LLVM IR (-O0):
define void @kernel_dgema_2_lib4(i32 %0, i32 %1, double* %2, i32 %3, double* %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca double*
%10 = alloca i32
%11 = alloca double*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store double* %2, double** %9
store i32 %3, i32* %10
store double* %4, double** %11
store i32 %5, i32* %12
store i32 4, i32* %13
%15 = load i32, i32* %8
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %101
17: ; preds = %6
store i32 0, i32* %14
br label %18
18: ; preds = %74, %17
%19 = load i32, i32* %14
%20 = load i32, i32* %7
%21 = sub nsw i32 %20, 3
%22 = icmp slt i32 %19, %21
br i1 %22, label %23, label %77
23: ; preds = %18
%24 = load double*, double** %9
%25 = getelementptr inbounds double, double* %24, i64 0
%26 = load double, double* %25
%27 = load double*, double** %11
%28 = getelementptr inbounds double, double* %27, i64 0
store double %26, double* %28
%29 = load double*, double** %9
%30 = getelementptr inbounds double, double* %29, i64 1
%31 = load double, double* %30
%32 = load double*, double** %11
%33 = getelementptr inbounds double, double* %32, i64 1
store double %31, double* %33
%34 = load double*, double** %9
%35 = getelementptr inbounds double, double* %34, i64 2
%36 = load double, double* %35
%37 = load double*, double** %11
%38 = getelementptr inbounds double, double* %37, i64 2
store double %36, double* %38
%39 = load double*, double** %9
%40 = getelementptr inbounds double, double* %39, i64 3
%41 = load double, double* %40
%42 = load double*, double** %11
%43 = getelementptr inbounds double, double* %42, i64 3
store double %41, double* %43
%44 = load double*, double** %9
%45 = getelementptr inbounds double, double* %44, i64 4
%46 = load double, double* %45
%47 = load double*, double** %11
%48 = getelementptr inbounds double, double* %47, i64 4
store double %46, double* %48
%49 = load double*, double** %9
%50 = getelementptr inbounds double, double* %49, i64 5
%51 = load double, double* %50
%52 = load double*, double** %11
%53 = getelementptr inbounds double, double* %52, i64 5
store double %51, double* %53
%54 = load double*, double** %9
%55 = getelementptr inbounds double, double* %54, i64 6
%56 = load double, double* %55
%57 = load double*, double** %11
%58 = getelementptr inbounds double, double* %57, i64 6
store double %56, double* %58
%59 = load double*, double** %9
%60 = getelementptr inbounds double, double* %59, i64 7
%61 = load double, double* %60
%62 = load double*, double** %11
%63 = getelementptr inbounds double, double* %62, i64 7
store double %61, double* %63
%64 = load i32, i32* %10
%65 = mul nsw i32 4, %64
%66 = load double*, double** %9
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds double, double* %66, i64 %67
store double* %68, double** %9
%69 = load i32, i32* %12
%70 = mul nsw i32 4, %69
%71 = load double*, double** %11
%72 = sext i32 %70 to i64
%73 = getelementptr inbounds double, double* %71, i64 %72
store double* %73, double** %11
br label %74
74: ; preds = %23
%75 = load i32, i32* %14
%76 = add nsw i32 %75, 4
store i32 %76, i32* %14
br label %18
77: ; preds = %18
br label %78
78: ; preds = %97, %77
%79 = load i32, i32* %14
%80 = load i32, i32* %7
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %100
82: ; preds = %78
%83 = load double*, double** %9
%84 = getelementptr inbounds double, double* %83, i64 0
%85 = load double, double* %84
%86 = load double*, double** %11
%87 = getelementptr inbounds double, double* %86, i64 0
store double %85, double* %87
%88 = load double*, double** %9
%89 = getelementptr inbounds double, double* %88, i64 4
%90 = load double, double* %89
%91 = load double*, double** %11
%92 = getelementptr inbounds double, double* %91, i64 4
store double %90, double* %92
%93 = load double*, double** %9
%94 = getelementptr inbounds double, double* %93, i64 1
store double* %94, double** %9
%95 = load double*, double** %11
%96 = getelementptr inbounds double, double* %95, i64 1
store double* %96, double** %11
br label %97
97: ; preds = %82
%98 = load i32, i32* %14
%99 = add nsw i32 %98, 1
store i32 %99, i32* %14
br label %78
100: ; preds = %78
br label %447
101: ; preds = %6
%102 = load i32, i32* %8
%103 = icmp eq i32 %102, 1
br i1 %103, label %104, label %219
104: ; preds = %101
store i32 0, i32* %14
br label %105
105: ; preds = %161, %104
%106 = load i32, i32* %14
%107 = load i32, i32* %7
%108 = sub nsw i32 %107, 3
%109 = icmp slt i32 %106, %108
br i1 %109, label %110, label %164
110: ; preds = %105
%111 = load double*, double** %9
%112 = getelementptr inbounds double, double* %111, i64 0
%113 = load double, double* %112
%114 = load double*, double** %11
%115 = getelementptr inbounds double, double* %114, i64 3
store double %113, double* %115
%116 = load double*, double** %9
%117 = getelementptr inbounds double, double* %116, i64 4
%118 = load double, double* %117
%119 = load double*, double** %11
%120 = getelementptr inbounds double, double* %119, i64 7
store double %118, double* %120
%121 = load i32, i32* %12
%122 = mul nsw i32 4, %121
%123 = load double*, double** %11
%124 = sext i32 %122 to i64
%125 = getelementptr inbounds double, double* %123, i64 %124
store double* %125, double** %11
%126 = load double*, double** %9
%127 = getelementptr inbounds double, double* %126, i64 1
%128 = load double, double* %127
%129 = load double*, double** %11
%130 = getelementptr inbounds double, double* %129, i64 0
store double %128, double* %130
%131 = load double*, double** %9
%132 = getelementptr inbounds double, double* %131, i64 2
%133 = load double, double* %132
%134 = load double*, double** %11
%135 = getelementptr inbounds double, double* %134, i64 1
store double %133, double* %135
%136 = load double*, double** %9
%137 = getelementptr inbounds double, double* %136, i64 3
%138 = load double, double* %137
%139 = load double*, double** %11
%140 = getelementptr inbounds double, double* %139, i64 2
store double %138, double* %140
%141 = load double*, double** %9
%142 = getelementptr inbounds double, double* %141, i64 5
%143 = load double, double* %142
%144 = load double*, double** %11
%145 = getelementptr inbounds double, double* %144, i64 4
store double %143, double* %145
%146 = load double*, double** %9
%147 = getelementptr inbounds double, double* %146, i64 6
%148 = load double, double* %147
%149 = load double*, double** %11
%150 = getelementptr inbounds double, double* %149, i64 5
store double %148, double* %150
%151 = load double*, double** %9
%152 = getelementptr inbounds double, double* %151, i64 7
%153 = load double, double* %152
%154 = load double*, double** %11
%155 = getelementptr inbounds double, double* %154, i64 6
store double %153, double* %155
%156 = load i32, i32* %10
%157 = mul nsw i32 4, %156
%158 = load double*, double** %9
%159 = sext i32 %157 to i64
%160 = getelementptr inbounds double, double* %158, i64 %159
store double* %160, double** %9
br label %161
161: ; preds = %110
%162 = load i32, i32* %14
%163 = add nsw i32 %162, 4
store i32 %163, i32* %14
br label %105
164: ; preds = %105
%165 = load i32, i32* %14
%166 = load i32, i32* %7
%167 = icmp sge i32 %165, %166
br i1 %167, label %168, label %169
168: ; preds = %164
br label %447
169: ; preds = %164
%170 = load double*, double** %9
%171 = getelementptr inbounds double, double* %170, i64 0
%172 = load double, double* %171
%173 = load double*, double** %11
%174 = getelementptr inbounds double, double* %173, i64 3
store double %172, double* %174
%175 = load double*, double** %9
%176 = getelementptr inbounds double, double* %175, i64 4
%177 = load double, double* %176
%178 = load double*, double** %11
%179 = getelementptr inbounds double, double* %178, i64 7
store double %177, double* %179
%180 = load i32, i32* %14
%181 = add nsw i32 %180, 1
store i32 %181, i32* %14
%182 = load i32, i32* %14
%183 = load i32, i32* %7
%184 = icmp eq i32 %182, %183
br i1 %184, label %185, label %186
185: ; preds = %169
br label %447
186: ; preds = %169
%187 = load i32, i32* %12
%188 = mul nsw i32 4, %187
%189 = load double*, double** %11
%190 = sext i32 %188 to i64
%191 = getelementptr inbounds double, double* %189, i64 %190
store double* %191, double** %11
%192 = load double*, double** %9
%193 = getelementptr inbounds double, double* %192, i64 1
%194 = load double, double* %193
%195 = load double*, double** %11
%196 = getelementptr inbounds double, double* %195, i64 0
store double %194, double* %196
%197 = load double*, double** %9
%198 = getelementptr inbounds double, double* %197, i64 5
%199 = load double, double* %198
%200 = load double*, double** %11
%201 = getelementptr inbounds double, double* %200, i64 4
store double %199, double* %201
%202 = load i32, i32* %14
%203 = add nsw i32 %202, 1
store i32 %203, i32* %14
%204 = load i32, i32* %14
%205 = load i32, i32* %7
%206 = icmp eq i32 %204, %205
br i1 %206, label %207, label %208
207: ; preds = %186
br label %447
208: ; preds = %186
%209 = load double*, double** %9
%210 = getelementptr inbounds double, double* %209, i64 2
%211 = load double, double* %210
%212 = load double*, double** %11
%213 = getelementptr inbounds double, double* %212, i64 1
store double %211, double* %213
%214 = load double*, double** %9
%215 = getelementptr inbounds double, double* %214, i64 6
%216 = load double, double* %215
%217 = load double*, double** %11
%218 = getelementptr inbounds double, double* %217, i64 5
store double %216, double* %218
br label %447
219: ; preds = %101
%220 = load i32, i32* %8
%221 = icmp eq i32 %220, 2
br i1 %221, label %222, label %337
222: ; preds = %219
store i32 0, i32* %14
br label %223
223: ; preds = %279, %222
%224 = load i32, i32* %14
%225 = load i32, i32* %7
%226 = sub nsw i32 %225, 3
%227 = icmp slt i32 %224, %226
br i1 %227, label %228, label %282
228: ; preds = %223
%229 = load double*, double** %9
%230 = getelementptr inbounds double, double* %229, i64 0
%231 = load double, double* %230
%232 = load double*, double** %11
%233 = getelementptr inbounds double, double* %232, i64 2
store double %231, double* %233
%234 = load double*, double** %9
%235 = getelementptr inbounds double, double* %234, i64 1
%236 = load double, double* %235
%237 = load double*, double** %11
%238 = getelementptr inbounds double, double* %237, i64 3
store double %236, double* %238
%239 = load double*, double** %9
%240 = getelementptr inbounds double, double* %239, i64 4
%241 = load double, double* %240
%242 = load double*, double** %11
%243 = getelementptr inbounds double, double* %242, i64 6
store double %241, double* %243
%244 = load double*, double** %9
%245 = getelementptr inbounds double, double* %244, i64 5
%246 = load double, double* %245
%247 = load double*, double** %11
%248 = getelementptr inbounds double, double* %247, i64 7
store double %246, double* %248
%249 = load i32, i32* %12
%250 = mul nsw i32 4, %249
%251 = load double*, double** %11
%252 = sext i32 %250 to i64
%253 = getelementptr inbounds double, double* %251, i64 %252
store double* %253, double** %11
%254 = load double*, double** %9
%255 = getelementptr inbounds double, double* %254, i64 2
%256 = load double, double* %255
%257 = load double*, double** %11
%258 = getelementptr inbounds double, double* %257, i64 0
store double %256, double* %258
%259 = load double*, double** %9
%260 = getelementptr inbounds double, double* %259, i64 3
%261 = load double, double* %260
%262 = load double*, double** %11
%263 = getelementptr inbounds double, double* %262, i64 1
store double %261, double* %263
%264 = load double*, double** %9
%265 = getelementptr inbounds double, double* %264, i64 6
%266 = load double, double* %265
%267 = load double*, double** %11
%268 = getelementptr inbounds double, double* %267, i64 4
store double %266, double* %268
%269 = load double*, double** %9
%270 = getelementptr inbounds double, double* %269, i64 7
%271 = load double, double* %270
%272 = load double*, double** %11
%273 = getelementptr inbounds double, double* %272, i64 5
store double %271, double* %273
%274 = load i32, i32* %10
%275 = mul nsw i32 4, %274
%276 = load double*, double** %9
%277 = sext i32 %275 to i64
%278 = getelementptr inbounds double, double* %276, i64 %277
store double* %278, double** %9
br label %279
279: ; preds = %228
%280 = load i32, i32* %14
%281 = add nsw i32 %280, 4
store i32 %281, i32* %14
br label %223
282: ; preds = %223
%283 = load i32, i32* %14
%284 = load i32, i32* %7
%285 = icmp sge i32 %283, %284
br i1 %285, label %286, label %287
286: ; preds = %282
br label %447
287: ; preds = %282
%288 = load double*, double** %9
%289 = getelementptr inbounds double, double* %288, i64 0
%290 = load double, double* %289
%291 = load double*, double** %11
%292 = getelementptr inbounds double, double* %291, i64 2
store double %290, double* %292
%293 = load double*, double** %9
%294 = getelementptr inbounds double, double* %293, i64 4
%295 = load double, double* %294
%296 = load double*, double** %11
%297 = getelementptr inbounds double, double* %296, i64 6
store double %295, double* %297
%298 = load i32, i32* %14
%299 = add nsw i32 %298, 1
store i32 %299, i32* %14
%300 = load i32, i32* %14
%301 = load i32, i32* %7
%302 = icmp eq i32 %300, %301
br i1 %302, label %303, label %304
303: ; preds = %287
br label %447
304: ; preds = %287
%305 = load double*, double** %9
%306 = getelementptr inbounds double, double* %305, i64 1
%307 = load double, double* %306
%308 = load double*, double** %11
%309 = getelementptr inbounds double, double* %308, i64 3
store double %307, double* %309
%310 = load double*, double** %9
%311 = getelementptr inbounds double, double* %310, i64 5
%312 = load double, double* %311
%313 = load double*, double** %11
%314 = getelementptr inbounds double, double* %313, i64 7
store double %312, double* %314
%315 = load i32, i32* %14
%316 = add nsw i32 %315, 1
store i32 %316, i32* %14
%317 = load i32, i32* %14
%318 = load i32, i32* %7
%319 = icmp eq i32 %317, %318
br i1 %319, label %320, label %321
320: ; preds = %304
br label %447
321: ; preds = %304
%322 = load i32, i32* %12
%323 = mul nsw i32 4, %322
%324 = load double*, double** %11
%325 = sext i32 %323 to i64
%326 = getelementptr inbounds double, double* %324, i64 %325
store double* %326, double** %11
%327 = load double*, double** %9
%328 = getelementptr inbounds double, double* %327, i64 3
%329 = load double, double* %328
%330 = load double*, double** %11
%331 = getelementptr inbounds double, double* %330, i64 0
store double %329, double* %331
%332 = load double*, double** %9
%333 = getelementptr inbounds double, double* %332, i64 7
%334 = load double, double* %333
%335 = load double*, double** %11
%336 = getelementptr inbounds double, double* %335, i64 4
store double %334, double* %336
br label %447
337: ; preds = %219
store i32 0, i32* %14
br label %338
338: ; preds = %394, %337
%339 = load i32, i32* %14
%340 = load i32, i32* %7
%341 = sub nsw i32 %340, 3
%342 = icmp slt i32 %339, %341
br i1 %342, label %343, label %397
343: ; preds = %338
%344 = load double*, double** %9
%345 = getelementptr inbounds double, double* %344, i64 0
%346 = load double, double* %345
%347 = load double*, double** %11
%348 = getelementptr inbounds double, double* %347, i64 1
store double %346, double* %348
%349 = load double*, double** %9
%350 = getelementptr inbounds double, double* %349, i64 1
%351 = load double, double* %350
%352 = load double*, double** %11
%353 = getelementptr inbounds double, double* %352, i64 2
store double %351, double* %353
%354 = load double*, double** %9
%355 = getelementptr inbounds double, double* %354, i64 2
%356 = load double, double* %355
%357 = load double*, double** %11
%358 = getelementptr inbounds double, double* %357, i64 3
store double %356, double* %358
%359 = load double*, double** %9
%360 = getelementptr inbounds double, double* %359, i64 4
%361 = load double, double* %360
%362 = load double*, double** %11
%363 = getelementptr inbounds double, double* %362, i64 5
store double %361, double* %363
%364 = load double*, double** %9
%365 = getelementptr inbounds double, double* %364, i64 5
%366 = load double, double* %365
%367 = load double*, double** %11
%368 = getelementptr inbounds double, double* %367, i64 6
store double %366, double* %368
%369 = load double*, double** %9
%370 = getelementptr inbounds double, double* %369, i64 6
%371 = load double, double* %370
%372 = load double*, double** %11
%373 = getelementptr inbounds double, double* %372, i64 7
store double %371, double* %373
%374 = load i32, i32* %12
%375 = mul nsw i32 4, %374
%376 = load double*, double** %11
%377 = sext i32 %375 to i64
%378 = getelementptr inbounds double, double* %376, i64 %377
store double* %378, double** %11
%379 = load double*, double** %9
%380 = getelementptr inbounds double, double* %379, i64 3
%381 = load double, double* %380
%382 = load double*, double** %11
%383 = getelementptr inbounds double, double* %382, i64 0
store double %381, double* %383
%384 = load double*, double** %9
%385 = getelementptr inbounds double, double* %384, i64 7
%386 = load double, double* %385
%387 = load double*, double** %11
%388 = getelementptr inbounds double, double* %387, i64 4
store double %386, double* %388
%389 = load i32, i32* %10
%390 = mul nsw i32 4, %389
%391 = load double*, double** %9
%392 = sext i32 %390 to i64
%393 = getelementptr inbounds double, double* %391, i64 %392
store double* %393, double** %9
br label %394
394: ; preds = %343
%395 = load i32, i32* %14
%396 = add nsw i32 %395, 4
store i32 %396, i32* %14
br label %338
397: ; preds = %338
%398 = load i32, i32* %14
%399 = load i32, i32* %7
%400 = icmp sge i32 %398, %399
br i1 %400, label %401, label %402
401: ; preds = %397
br label %447
402: ; preds = %397
%403 = load double*, double** %9
%404 = getelementptr inbounds double, double* %403, i64 0
%405 = load double, double* %404
%406 = load double*, double** %11
%407 = getelementptr inbounds double, double* %406, i64 1
store double %405, double* %407
%408 = load double*, double** %9
%409 = getelementptr inbounds double, double* %408, i64 4
%410 = load double, double* %409
%411 = load double*, double** %11
%412 = getelementptr inbounds double, double* %411, i64 5
store double %410, double* %412
%413 = load i32, i32* %14
%414 = add nsw i32 %413, 1
store i32 %414, i32* %14
%415 = load i32, i32* %14
%416 = load i32, i32* %7
%417 = icmp eq i32 %415, %416
br i1 %417, label %418, label %419
418: ; preds = %402
br label %447
419: ; preds = %402
%420 = load double*, double** %9
%421 = getelementptr inbounds double, double* %420, i64 1
%422 = load double, double* %421
%423 = load double*, double** %11
%424 = getelementptr inbounds double, double* %423, i64 2
store double %422, double* %424
%425 = load double*, double** %9
%426 = getelementptr inbounds double, double* %425, i64 5
%427 = load double, double* %426
%428 = load double*, double** %11
%429 = getelementptr inbounds double, double* %428, i64 6
store double %427, double* %429
%430 = load i32, i32* %14
%431 = add nsw i32 %430, 1
store i32 %431, i32* %14
%432 = load i32, i32* %14
%433 = load i32, i32* %7
%434 = icmp eq i32 %432, %433
br i1 %434, label %435, label %436
435: ; preds = %419
br label %447
436: ; preds = %419
%437 = load double*, double** %9
%438 = getelementptr inbounds double, double* %437, i64 2
%439 = load double, double* %438
%440 = load double*, double** %11
%441 = getelementptr inbounds double, double* %440, i64 3
store double %439, double* %441
%442 = load double*, double** %9
%443 = getelementptr inbounds double, double* %442, i64 6
%444 = load double, double* %443
%445 = load double*, double** %11
%446 = getelementptr inbounds double, double* %445, i64 7
store double %444, double* %446
br label %447
447: ; preds = %436, %435, %418, %401, %321, %320, %303, %286, %208, %207, %185, %168, %100
ret void
}

LLVM IR (-O2):
define void @kernel_dgema_2_lib4(i32 %0, i32 %1, double* nocapture %2, i32 %3, double* nocapture writeonly %4, i32 %5) {
switch i32 %1, label %31 [
i32 0, label %23
i32 1, label %15
i32 2, label %7
]
7: ; preds = %6
%8 = add nsw i32 %0, -3
%9 = icmp sgt i32 %0, 3
br i1 %9, label %10, label %328
10: ; preds = %7
%11 = shl nsw i32 %5, 2
%12 = sext i32 %11 to i64
%13 = shl nsw i32 %3, 2
%14 = sext i32 %13 to i64
br label %296
15: ; preds = %6
%16 = add nsw i32 %0, -3
%17 = icmp sgt i32 %0, 3
br i1 %17, label %18, label %265
18: ; preds = %15
%19 = shl nsw i32 %5, 2
%20 = sext i32 %19 to i64
%21 = shl nsw i32 %3, 2
%22 = sext i32 %21 to i64
br label %233
23: ; preds = %6
%24 = add nsw i32 %0, -3
%25 = icmp sgt i32 %0, 3
br i1 %25, label %26, label %41
26: ; preds = %23
%27 = shl nsw i32 %3, 2
%28 = sext i32 %27 to i64
%29 = shl nsw i32 %5, 2
%30 = sext i32 %29 to i64
br label %173
31: ; preds = %6
%32 = add nsw i32 %0, -3
%33 = icmp sgt i32 %0, 3
br i1 %33, label %34, label %391
34: ; preds = %31
%35 = shl nsw i32 %5, 2
%36 = sext i32 %35 to i64
%37 = shl nsw i32 %3, 2
%38 = sext i32 %37 to i64
br label %359
39: ; preds = %173
%40 = and i32 %0, -4
br label %41
41: ; preds = %39, %23
%42 = phi double* [ %4, %23 ], [ %200, %39 ]
%43 = phi double* [ %2, %23 ], [ %199, %39 ]
%44 = phi i32 [ 0, %23 ], [ %40, %39 ]
%45 = icmp slt i32 %44, %0
br i1 %45, label %46, label %420
46: ; preds = %41
%47 = xor i32 %44, -1
%48 = add i32 %47, %0
%49 = zext i32 %48 to i64
%50 = add nuw nsw i64 %49, 1
%51 = icmp eq i32 %48, 0
br i1 %51, label %145, label %52
52: ; preds = %46
%53 = xor i32 %44, -1
%54 = add i32 %53, %0
%55 = zext i32 %54 to i64
%56 = add nuw nsw i64 %55, 5
%57 = getelementptr double, double* %42, i64 %56
%58 = getelementptr double, double* %43, i64 %56
%59 = icmp ult double* %42, %58
%60 = icmp ult double* %43, %57
%61 = and i1 %59, %60
br i1 %61, label %145, label %62
62: ; preds = %52
%63 = and i64 %50, 8589934590
%64 = trunc i64 %63 to i32
%65 = add i32 %44, %64
%66 = getelementptr double, double* %43, i64 %63
%67 = getelementptr double, double* %42, i64 %63
%68 = add nsw i64 %63, -2
%69 = lshr exact i64 %68, 1
%70 = add nuw i64 %69, 1
%71 = and i64 %70, 3
%72 = icmp ult i64 %68, 6
br i1 %72, label %124, label %73
73: ; preds = %62
%74 = and i64 %70, -4
br label %75
75: ; preds = %75, %73
%76 = phi i64 [ 0, %73 ], [ %121, %75 ]
%77 = phi i64 [ 0, %73 ], [ %122, %75 ]
%78 = getelementptr double, double* %43, i64 %76
%79 = getelementptr double, double* %42, i64 %76
%80 = bitcast double* %78 to <2 x double>*
%81 = load <2 x double>, <2 x double>* %80
%82 = bitcast double* %79 to <2 x double>*
store <2 x double> %81, <2 x double>* %82
%83 = getelementptr inbounds double, double* %78, i64 4
%84 = bitcast double* %83 to <2 x double>*
%85 = load <2 x double>, <2 x double>* %84
%86 = getelementptr inbounds double, double* %79, i64 4
%87 = bitcast double* %86 to <2 x double>*
store <2 x double> %85, <2 x double>* %87
%88 = or i64 %76, 2
%89 = getelementptr double, double* %43, i64 %88
%90 = getelementptr double, double* %42, i64 %88
%91 = bitcast double* %89 to <2 x double>*
%92 = load <2 x double>, <2 x double>* %91
%93 = bitcast double* %90 to <2 x double>*
store <2 x double> %92, <2 x double>* %93
%94 = getelementptr inbounds double, double* %89, i64 4
%95 = bitcast double* %94 to <2 x double>*
%96 = load <2 x double>, <2 x double>* %95
%97 = getelementptr inbounds double, double* %90, i64 4
%98 = bitcast double* %97 to <2 x double>*
store <2 x double> %96, <2 x double>* %98
%99 = or i64 %76, 4
%100 = getelementptr double, double* %43, i64 %99
%101 = getelementptr double, double* %42, i64 %99
%102 = bitcast double* %100 to <2 x double>*
%103 = load <2 x double>, <2 x double>* %102
%104 = bitcast double* %101 to <2 x double>*
store <2 x double> %103, <2 x double>* %104
%105 = getelementptr inbounds double, double* %100, i64 4
%106 = bitcast double* %105 to <2 x double>*
%107 = load <2 x double>, <2 x double>* %106
%108 = getelementptr inbounds double, double* %101, i64 4
%109 = bitcast double* %108 to <2 x double>*
store <2 x double> %107, <2 x double>* %109
%110 = or i64 %76, 6
%111 = getelementptr double, double* %43, i64 %110
%112 = getelementptr double, double* %42, i64 %110
%113 = bitcast double* %111 to <2 x double>*
%114 = load <2 x double>, <2 x double>* %113
%115 = bitcast double* %112 to <2 x double>*
store <2 x double> %114, <2 x double>* %115
%116 = getelementptr inbounds double, double* %111, i64 4
%117 = bitcast double* %116 to <2 x double>*
%118 = load <2 x double>, <2 x double>* %117
%119 = getelementptr inbounds double, double* %112, i64 4
%120 = bitcast double* %119 to <2 x double>*
store <2 x double> %118, <2 x double>* %120
%121 = add nuw i64 %76, 8
%122 = add i64 %77, 4
%123 = icmp eq i64 %122, %74
br i1 %123, label %124, label %75
124: ; preds = %75, %62
%125 = phi i64 [ 0, %62 ], [ %121, %75 ]
%126 = icmp eq i64 %71, 0
br i1 %126, label %143, label %127
127: ; preds = %124, %127
%128 = phi i64 [ %140, %127 ], [ %125, %124 ]
%129 = phi i64 [ %141, %127 ], [ 0, %124 ]
%130 = getelementptr double, double* %43, i64 %128
%131 = getelementptr double, double* %42, i64 %128
%132 = bitcast double* %130 to <2 x double>*
%133 = load <2 x double>, <2 x double>* %132
%134 = bitcast double* %131 to <2 x double>*
store <2 x double> %133, <2 x double>* %134
%135 = getelementptr inbounds double, double* %130, i64 4
%136 = bitcast double* %135 to <2 x double>*
%137 = load <2 x double>, <2 x double>* %136
%138 = getelementptr inbounds double, double* %131, i64 4
%139 = bitcast double* %138 to <2 x double>*
store <2 x double> %137, <2 x double>* %139
%140 = add nuw i64 %128, 2
%141 = add i64 %129, 1
%142 = icmp eq i64 %141, %71
br i1 %142, label %143, label %127
143: ; preds = %127, %124
%144 = icmp eq i64 %50, %63
br i1 %144, label %420, label %145
145: ; preds = %52, %46, %143
%146 = phi i32 [ %44, %52 ], [ %44, %46 ], [ %65, %143 ]
%147 = phi double* [ %43, %52 ], [ %43, %46 ], [ %66, %143 ]
%148 = phi double* [ %42, %52 ], [ %42, %46 ], [ %67, %143 ]
%149 = sub i32 %0, %146
%150 = xor i32 %146, -1
%151 = add i32 %150, %0
%152 = and i32 %149, 3
%153 = icmp eq i32 %152, 0
br i1 %153, label %168, label %154
154: ; preds = %145, %154
%155 = phi i32 [ %165, %154 ], [ %146, %145 ]
%156 = phi double* [ %163, %154 ], [ %147, %145 ]
%157 = phi double* [ %164, %154 ], [ %148, %145 ]
%158 = phi i32 [ %166, %154 ], [ 0, %145 ]
%159 = load double, double* %156
store double %159, double* %157
%160 = getelementptr inbounds double, double* %156, i64 4
%161 = load double, double* %160
%162 = getelementptr inbounds double, double* %157, i64 4
store double %161, double* %162
%163 = getelementptr inbounds double, double* %156, i64 1
%164 = getelementptr inbounds double, double* %157, i64 1
%165 = add nuw nsw i32 %155, 1
%166 = add i32 %158, 1
%167 = icmp eq i32 %166, %152
br i1 %167, label %168, label %154
168: ; preds = %154, %145
%169 = phi i32 [ %146, %145 ], [ %165, %154 ]
%170 = phi double* [ %147, %145 ], [ %163, %154 ]
%171 = phi double* [ %148, %145 ], [ %164, %154 ]
%172 = icmp ult i32 %151, 3
br i1 %172, label %420, label %203
173: ; preds = %26, %173
%174 = phi i32 [ 0, %26 ], [ %201, %173 ]
%175 = phi double* [ %2, %26 ], [ %199, %173 ]
%176 = phi double* [ %4, %26 ], [ %200, %173 ]
%177 = load double, double* %175
store double %177, double* %176
%178 = getelementptr inbounds double, double* %175, i64 1
%179 = load double, double* %178
%180 = getelementptr inbounds double, double* %176, i64 1
store double %179, double* %180
%181 = getelementptr inbounds double, double* %175, i64 2
%182 = load double, double* %181
%183 = getelementptr inbounds double, double* %176, i64 2
store double %182, double* %183
%184 = getelementptr inbounds double, double* %175, i64 3
%185 = load double, double* %184
%186 = getelementptr inbounds double, double* %176, i64 3
store double %185, double* %186
%187 = getelementptr inbounds double, double* %175, i64 4
%188 = load double, double* %187
%189 = getelementptr inbounds double, double* %176, i64 4
store double %188, double* %189
%190 = getelementptr inbounds double, double* %175, i64 5
%191 = load double, double* %190
%192 = getelementptr inbounds double, double* %176, i64 5
store double %191, double* %192
%193 = getelementptr inbounds double, double* %175, i64 6
%194 = load double, double* %193
%195 = getelementptr inbounds double, double* %176, i64 6
store double %194, double* %195
%196 = getelementptr inbounds double, double* %175, i64 7
%197 = load double, double* %196
%198 = getelementptr inbounds double, double* %176, i64 7
store double %197, double* %198
%199 = getelementptr inbounds double, double* %175, i64 %28
%200 = getelementptr inbounds double, double* %176, i64 %30
%201 = add nuw nsw i32 %174, 4
%202 = icmp slt i32 %201, %24
br i1 %202, label %173, label %39
203: ; preds = %168, %203
%204 = phi i32 [ %231, %203 ], [ %169, %168 ]
%205 = phi double* [ %229, %203 ], [ %170, %168 ]
%206 = phi double* [ %230, %203 ], [ %171, %168 ]
%207 = load double, double* %205
store double %207, double* %206
%208 = getelementptr inbounds double, double* %205, i64 4
%209 = load double, double* %208
%210 = getelementptr inbounds double, double* %206, i64 4
store double %209, double* %210
%211 = getelementptr inbounds double, double* %205, i64 1
%212 = getelementptr inbounds double, double* %206, i64 1
%213 = load double, double* %211
store double %213, double* %212
%214 = getelementptr inbounds double, double* %205, i64 5
%215 = load double, double* %214
%216 = getelementptr inbounds double, double* %206, i64 5
store double %215, double* %216
%217 = getelementptr inbounds double, double* %205, i64 2
%218 = getelementptr inbounds double, double* %206, i64 2
%219 = load double, double* %217
store double %219, double* %218
%220 = getelementptr inbounds double, double* %205, i64 6
%221 = load double, double* %220
%222 = getelementptr inbounds double, double* %206, i64 6
store double %221, double* %222
%223 = getelementptr inbounds double, double* %205, i64 3
%224 = getelementptr inbounds double, double* %206, i64 3
%225 = load double, double* %223
store double %225, double* %224
%226 = getelementptr inbounds double, double* %205, i64 7
%227 = load double, double* %226
%228 = getelementptr inbounds double, double* %206, i64 7
store double %227, double* %228
%229 = getelementptr inbounds double, double* %205, i64 4
%230 = getelementptr inbounds double, double* %206, i64 4
%231 = add nuw nsw i32 %204, 4
%232 = icmp eq i32 %231, %0
br i1 %232, label %420, label %203
233: ; preds = %18, %233
%234 = phi i32 [ 0, %18 ], [ %261, %233 ]
%235 = phi double* [ %2, %18 ], [ %260, %233 ]
%236 = phi double* [ %4, %18 ], [ %242, %233 ]
%237 = load double, double* %235
%238 = getelementptr inbounds double, double* %236, i64 3
store double %237, double* %238
%239 = getelementptr inbounds double, double* %235, i64 4
%240 = load double, double* %239
%241 = getelementptr inbounds double, double* %236, i64 7
store double %240, double* %241
%242 = getelementptr inbounds double, double* %236, i64 %20
%243 = getelementptr inbounds double, double* %235, i64 1
%244 = load double, double* %243
store double %244, double* %242
%245 = getelementptr inbounds double, double* %235, i64 2
%246 = load double, double* %245
%247 = getelementptr inbounds double, double* %242, i64 1
store double %246, double* %247
%248 = getelementptr inbounds double, double* %235, i64 3
%249 = load double, double* %248
%250 = getelementptr inbounds double, double* %242, i64 2
store double %249, double* %250
%251 = getelementptr inbounds double, double* %235, i64 5
%252 = load double, double* %251
%253 = getelementptr inbounds double, double* %242, i64 4
store double %252, double* %253
%254 = getelementptr inbounds double, double* %235, i64 6
%255 = load double, double* %254
%256 = getelementptr inbounds double, double* %242, i64 5
store double %255, double* %256
%257 = getelementptr inbounds double, double* %235, i64 7
%258 = load double, double* %257
%259 = getelementptr inbounds double, double* %242, i64 6
store double %258, double* %259
%260 = getelementptr inbounds double, double* %235, i64 %22
%261 = add nuw nsw i32 %234, 4
%262 = icmp slt i32 %261, %16
br i1 %262, label %233, label %263
263: ; preds = %233
%264 = and i32 %0, -4
br label %265
265: ; preds = %263, %15
%266 = phi double* [ %4, %15 ], [ %242, %263 ]
%267 = phi double* [ %2, %15 ], [ %260, %263 ]
%268 = phi i32 [ 0, %15 ], [ %264, %263 ]
%269 = icmp slt i32 %268, %0
br i1 %269, label %270, label %420
270: ; preds = %265
%271 = load double, double* %267
%272 = getelementptr inbounds double, double* %266, i64 3
store double %271, double* %272
%273 = getelementptr inbounds double, double* %267, i64 4
%274 = load double, double* %273
%275 = getelementptr inbounds double, double* %266, i64 7
store double %274, double* %275
%276 = or i32 %268, 1
%277 = icmp eq i32 %276, %0
br i1 %277, label %420, label %278
278: ; preds = %270
%279 = shl nsw i32 %5, 2
%280 = sext i32 %279 to i64
%281 = getelementptr inbounds double, double* %266, i64 %280
%282 = getelementptr inbounds double, double* %267, i64 1
%283 = load double, double* %282
store double %283, double* %281
%284 = getelementptr inbounds double, double* %267, i64 5
%285 = load double, double* %284
%286 = getelementptr inbounds double, double* %281, i64 4
store double %285, double* %286
%287 = or i32 %268, 2
%288 = icmp eq i32 %287, %0
br i1 %288, label %420, label %289
289: ; preds = %278
%290 = getelementptr inbounds double, double* %267, i64 2
%291 = load double, double* %290
%292 = getelementptr inbounds double, double* %281, i64 1
store double %291, double* %292
%293 = getelementptr inbounds double, double* %267, i64 6
%294 = load double, double* %293
%295 = getelementptr inbounds double, double* %281, i64 5
store double %294, double* %295
br label %420
296: ; preds = %10, %296
%297 = phi i32 [ 0, %10 ], [ %324, %296 ]
%298 = phi double* [ %2, %10 ], [ %323, %296 ]
%299 = phi double* [ %4, %10 ], [ %311, %296 ]
%300 = load double, double* %298
%301 = getelementptr inbounds double, double* %299, i64 2
store double %300, double* %301
%302 = getelementptr inbounds double, double* %298, i64 1
%303 = load double, double* %302
%304 = getelementptr inbounds double, double* %299, i64 3
store double %303, double* %304
%305 = getelementptr inbounds double, double* %298, i64 4
%306 = load double, double* %305
%307 = getelementptr inbounds double, double* %299, i64 6
store double %306, double* %307
%308 = getelementptr inbounds double, double* %298, i64 5
%309 = load double, double* %308
%310 = getelementptr inbounds double, double* %299, i64 7
store double %309, double* %310
%311 = getelementptr inbounds double, double* %299, i64 %12
%312 = getelementptr inbounds double, double* %298, i64 2
%313 = load double, double* %312
store double %313, double* %311
%314 = getelementptr inbounds double, double* %298, i64 3
%315 = load double, double* %314
%316 = getelementptr inbounds double, double* %311, i64 1
store double %315, double* %316
%317 = getelementptr inbounds double, double* %298, i64 6
%318 = load double, double* %317
%319 = getelementptr inbounds double, double* %311, i64 4
store double %318, double* %319
%320 = getelementptr inbounds double, double* %298, i64 7
%321 = load double, double* %320
%322 = getelementptr inbounds double, double* %311, i64 5
store double %321, double* %322
%323 = getelementptr inbounds double, double* %298, i64 %14
%324 = add nuw nsw i32 %297, 4
%325 = icmp slt i32 %324, %8
br i1 %325, label %296, label %326
326: ; preds = %296
%327 = and i32 %0, -4
br label %328
328: ; preds = %326, %7
%329 = phi double* [ %4, %7 ], [ %311, %326 ]
%330 = phi double* [ %2, %7 ], [ %323, %326 ]
%331 = phi i32 [ 0, %7 ], [ %327, %326 ]
%332 = icmp slt i32 %331, %0
br i1 %332, label %333, label %420
333: ; preds = %328
%334 = load double, double* %330
%335 = getelementptr inbounds double, double* %329, i64 2
store double %334, double* %335
%336 = getelementptr inbounds double, double* %330, i64 4
%337 = load double, double* %336
%338 = getelementptr inbounds double, double* %329, i64 6
store double %337, double* %338
%339 = or i32 %331, 1
%340 = icmp eq i32 %339, %0
br i1 %340, label %420, label %341
341: ; preds = %333
%342 = getelementptr inbounds double, double* %330, i64 1
%343 = load double, double* %342
%344 = getelementptr inbounds double, double* %329, i64 3
store double %343, double* %344
%345 = getelementptr inbounds double, double* %330, i64 5
%346 = load double, double* %345
%347 = getelementptr inbounds double, double* %329, i64 7
store double %346, double* %347
%348 = or i32 %331, 2
%349 = icmp eq i32 %348, %0
br i1 %349, label %420, label %350
350: ; preds = %341
%351 = shl nsw i32 %5, 2
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds double, double* %329, i64 %352
%354 = getelementptr inbounds double, double* %330, i64 3
%355 = load double, double* %354
store double %355, double* %353
%356 = getelementptr inbounds double, double* %330, i64 7
%357 = load double, double* %356
%358 = getelementptr inbounds double, double* %353, i64 4
store double %357, double* %358
br label %420
359: ; preds = %34, %359
%360 = phi i32 [ 0, %34 ], [ %387, %359 ]
%361 = phi double* [ %2, %34 ], [ %386, %359 ]
%362 = phi double* [ %4, %34 ], [ %380, %359 ]
%363 = load double, double* %361
%364 = getelementptr inbounds double, double* %362, i64 1
store double %363, double* %364
%365 = getelementptr inbounds double, double* %361, i64 1
%366 = load double, double* %365
%367 = getelementptr inbounds double, double* %362, i64 2
store double %366, double* %367
%368 = getelementptr inbounds double, double* %361, i64 2
%369 = load double, double* %368
%370 = getelementptr inbounds double, double* %362, i64 3
store double %369, double* %370
%371 = getelementptr inbounds double, double* %361, i64 4
%372 = load double, double* %371
%373 = getelementptr inbounds double, double* %362, i64 5
store double %372, double* %373
%374 = getelementptr inbounds double, double* %361, i64 5
%375 = load double, double* %374
%376 = getelementptr inbounds double, double* %362, i64 6
store double %375, double* %376
%377 = getelementptr inbounds double, double* %361, i64 6
%378 = load double, double* %377
%379 = getelementptr inbounds double, double* %362, i64 7
store double %378, double* %379
%380 = getelementptr inbounds double, double* %362, i64 %36
%381 = getelementptr inbounds double, double* %361, i64 3
%382 = load double, double* %381
store double %382, double* %380
%383 = getelementptr inbounds double, double* %361, i64 7
%384 = load double, double* %383
%385 = getelementptr inbounds double, double* %380, i64 4
store double %384, double* %385
%386 = getelementptr inbounds double, double* %361, i64 %38
%387 = add nuw nsw i32 %360, 4
%388 = icmp slt i32 %387, %32
br i1 %388, label %359, label %389
389: ; preds = %359
%390 = and i32 %0, -4
br label %391
391: ; preds = %389, %31
%392 = phi double* [ %4, %31 ], [ %380, %389 ]
%393 = phi double* [ %2, %31 ], [ %386, %389 ]
%394 = phi i32 [ 0, %31 ], [ %390, %389 ]
%395 = icmp slt i32 %394, %0
br i1 %395, label %396, label %420
396: ; preds = %391
%397 = load double, double* %393
%398 = getelementptr inbounds double, double* %392, i64 1
store double %397, double* %398
%399 = getelementptr inbounds double, double* %393, i64 4
%400 = load double, double* %399
%401 = getelementptr inbounds double, double* %392, i64 5
store double %400, double* %401
%402 = or i32 %394, 1
%403 = icmp eq i32 %402, %0
br i1 %403, label %420, label %404
404: ; preds = %396
%405 = getelementptr inbounds double, double* %393, i64 1
%406 = load double, double* %405
%407 = getelementptr inbounds double, double* %392, i64 2
store double %406, double* %407
%408 = getelementptr inbounds double, double* %393, i64 5
%409 = load double, double* %408
%410 = getelementptr inbounds double, double* %392, i64 6
store double %409, double* %410
%411 = or i32 %394, 2
%412 = icmp eq i32 %411, %0
br i1 %412, label %420, label %413
413: ; preds = %404
%414 = getelementptr inbounds double, double* %393, i64 2
%415 = load double, double* %414
%416 = getelementptr inbounds double, double* %392, i64 3
store double %415, double* %416
%417 = getelementptr inbounds double, double* %393, i64 6
%418 = load double, double* %417
%419 = getelementptr inbounds double, double* %392, i64 7
store double %418, double* %419
br label %420
420: ; preds = %168, %203, %143, %41, %404, %396, %391, %341, %333, %328, %278, %270, %265, %413, %350, %289
ret void
}