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


x86 assembly (clang, -O0):
<kernel_dtrtr_l_4_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)
movl   $0x4,-0x28(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1213 <kernel_dtrtr_l_4_lib4+0x113>
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,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x68(%rax)
mov    -0x10(%rbp),%rax
movsd  0x58(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x70(%rax)
mov    -0x10(%rbp),%rax
movsd  0x78(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x78(%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    -0x20(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x24(%rbp)
jmp    1601 <kernel_dtrtr_l_4_lib4+0x501>
cmpl   $0x1,-0x8(%rbp)
jne    138b <kernel_dtrtr_l_4_lib4+0x28b>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
shl    $0x2,%ecx
add    $0x1,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
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,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%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  0x48(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x10(%rbp),%rax
movsd  0x70(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x58(%rax)
cmpl   $0x4,-0x4(%rbp)
jne    130f <kernel_dtrtr_l_4_lib4+0x20f>
jmp    1995 <kernel_dtrtr_l_4_lib4+0x895>
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x68(%rax)
mov    -0x10(%rbp),%rax
movsd  0x58(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x70(%rax)
mov    -0x10(%rbp),%rax
movsd  0x78(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x78(%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    -0x20(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x24(%rbp)
jmp    15fc <kernel_dtrtr_l_4_lib4+0x4fc>
cmpl   $0x2,-0x8(%rbp)
jne    155a <kernel_dtrtr_l_4_lib4+0x45a>
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,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
shl    $0x2,%ecx
add    $0x2,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x40,%rax
mov    %rax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
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,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%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  0x48(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
movsd  0x68(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
cmpl   $0x4,-0x4(%rbp)
jne    1487 <kernel_dtrtr_l_4_lib4+0x387>
jmp    1995 <kernel_dtrtr_l_4_lib4+0x895>
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x10(%rbp),%rax
movsd  0x70(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x58(%rax)
cmpl   $0x5,-0x4(%rbp)
jne    14de <kernel_dtrtr_l_4_lib4+0x3de>
jmp    1995 <kernel_dtrtr_l_4_lib4+0x895>
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x68(%rax)
mov    -0x10(%rbp),%rax
movsd  0x58(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x70(%rax)
mov    -0x10(%rbp),%rax
movsd  0x78(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x78(%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    -0x20(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x24(%rbp)
jmp    15f7 <kernel_dtrtr_l_4_lib4+0x4f7>
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,0x20(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x40(%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,0x48(%rax)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
shl    $0x2,%ecx
add    $0x3,%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
add    $0x60,%rax
mov    %rax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x24(%rbp)
jmp    15fc <kernel_dtrtr_l_4_lib4+0x4fc>
jmp    1601 <kernel_dtrtr_l_4_lib4+0x501>
mov    -0x10(%rbp),%rax
prefetcht0 (%rax)
mov    -0x10(%rbp),%rax
add    $0x40,%rax
prefetcht0 (%rax)
mov    -0x24(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    17a8 <kernel_dtrtr_l_4_lib4+0x6a8>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
prefetcht0 (%rax)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
add    $0x40,%rax
prefetcht0 (%rax)
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,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x60(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%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  0x48(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
movsd  0x68(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x10(%rbp),%rax
movsd  0x70(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x58(%rax)
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x60(%rax)
mov    -0x10(%rbp),%rax
movsd  0x38(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x68(%rax)
mov    -0x10(%rbp),%rax
movsd  0x58(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x70(%rax)
mov    -0x10(%rbp),%rax
movsd  0x78(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x78(%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    -0x20(%rbp),%rax
add    $0x80,%rax
mov    %rax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x24(%rbp)
jmp    1613 <kernel_dtrtr_l_4_lib4+0x513>
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jne    17b9 <kernel_dtrtr_l_4_lib4+0x6b9>
jmp    1995 <kernel_dtrtr_l_4_lib4+0x895>
mov    -0x4(%rbp),%eax
sub    -0x24(%rbp),%eax
cmp    $0x1,%eax
jne    1813 <kernel_dtrtr_l_4_lib4+0x713>
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,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x60(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
jmp    1990 <kernel_dtrtr_l_4_lib4+0x890>
mov    -0x4(%rbp),%eax
sub    -0x24(%rbp),%eax
cmp    $0x2,%eax
jne    18b5 <kernel_dtrtr_l_4_lib4+0x7b5>
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,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x60(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%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  0x48(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
movsd  0x68(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
jmp    198b <kernel_dtrtr_l_4_lib4+0x88b>
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,0x8(%rax)
mov    -0x10(%rbp),%rax
movsd  0x40(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x10(%rbp),%rax
movsd  0x60(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x10(%rbp),%rax
movsd  0x8(%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  0x48(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x30(%rax)
mov    -0x10(%rbp),%rax
movsd  0x68(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x38(%rax)
mov    -0x10(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x40(%rax)
mov    -0x10(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x48(%rax)
mov    -0x10(%rbp),%rax
movsd  0x50(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x50(%rax)
mov    -0x10(%rbp),%rax
movsd  0x70(%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x58(%rax)
jmp    1990 <kernel_dtrtr_l_4_lib4+0x890>
jmp    1995 <kernel_dtrtr_l_4_lib4+0x895>
pop    %rbp
ret

x86 assembly (clang, -O2):
<kernel_dtrtr_l_4_lib4>:
cmp    $0x2,%esi
je     1277 <kernel_dtrtr_l_4_lib4+0x177>
cmp    $0x1,%esi
je     119d <kernel_dtrtr_l_4_lib4+0x9d>
test   %esi,%esi
jne    138c <kernel_dtrtr_l_4_lib4+0x28c>
movsd  (%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x20(%r8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x28(%r8)
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x40(%r8)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x48(%r8)
movsd  0x50(%rdx),%xmm0
movsd  %xmm0,0x50(%r8)
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,0x60(%r8)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x68(%r8)
movsd  0x58(%rdx),%xmm0
movsd  %xmm0,0x70(%r8)
movsd  0x78(%rdx),%xmm0
movsd  %xmm0,0x78(%r8)
lea    0x0(,%rcx,4),%eax
mov    $0x4,%r9d
mov    $0x10,%esi
jmp    13de <kernel_dtrtr_l_4_lib4+0x2de>
movsd  (%rdx),%xmm0
movsd  %xmm0,(%r8)
lea    -0x3(,%rcx,4),%eax
movslq %eax,%rsi
movsd  (%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x20(%r8)
movsd  0x20(%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x28(%r8)
movsd  0x8(%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x40(%r8)
movsd  0x28(%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x48(%r8)
movsd  0x48(%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x50(%r8)
movsd  0x10(%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x60(%r8)
movsd  0x30(%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x68(%r8)
movsd  0x50(%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x70(%r8)
movsd  0x70(%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x78(%r8)
cmp    $0x4,%edi
je     1610 <kernel_dtrtr_l_4_lib4+0x510>
lea    0x0(,%rcx,4),%eax
lea    (%rdx,%rsi,8),%rdx
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,0x80(%r8)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0x88(%r8)
movsd  0x58(%rdx),%xmm0
movsd  %xmm0,0x90(%r8)
movsd  0x78(%rdx),%xmm0
movsd  %xmm0,0x98(%r8)
mov    $0x5,%r9d
mov    $0x14,%esi
jmp    13de <kernel_dtrtr_l_4_lib4+0x2de>
movsd  (%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x20(%r8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x28(%r8)
lea    -0x2(,%rcx,4),%eax
cltq
movsd  (%rdx,%rax,8),%xmm0
movsd  %xmm0,0x40(%r8)
movsd  0x20(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x48(%r8)
movsd  0x40(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x50(%r8)
movsd  0x8(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x60(%r8)
movsd  0x28(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x68(%r8)
movsd  0x48(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x70(%r8)
movsd  0x68(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x78(%r8)
cmp    $0x4,%edi
je     1610 <kernel_dtrtr_l_4_lib4+0x510>
lea    (%rdx,%rax,8),%rdx
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x80(%r8)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x88(%r8)
movsd  0x50(%rdx),%xmm0
movsd  %xmm0,0x90(%r8)
movsd  0x70(%rdx),%xmm0
movsd  %xmm0,0x98(%r8)
cmp    $0x5,%edi
je     1610 <kernel_dtrtr_l_4_lib4+0x510>
lea    0x0(,%rcx,4),%eax
movsd  0x18(%rdx),%xmm0
movsd  %xmm0,0xa0(%r8)
movsd  0x38(%rdx),%xmm0
movsd  %xmm0,0xa8(%r8)
movsd  0x58(%rdx),%xmm0
movsd  %xmm0,0xb0(%r8)
movsd  0x78(%rdx),%xmm0
movsd  %xmm0,0xb8(%r8)
mov    $0x6,%r9d
mov    $0x18,%esi
jmp    13de <kernel_dtrtr_l_4_lib4+0x2de>
movsd  (%rdx),%xmm0
movsd  %xmm0,(%r8)
movsd  0x8(%rdx),%xmm0
movsd  %xmm0,0x20(%r8)
movsd  0x10(%rdx),%xmm0
movsd  %xmm0,0x40(%r8)
movsd  0x28(%rdx),%xmm0
movsd  %xmm0,0x28(%r8)
movsd  0x30(%rdx),%xmm0
movsd  %xmm0,0x48(%r8)
movsd  0x50(%rdx),%xmm0
movsd  %xmm0,0x50(%r8)
lea    -0x1(,%rcx,4),%eax
mov    $0x3,%r9d
mov    $0xc,%esi
movslq %eax,%r10
lea    (%rdx,%r10,8),%rax
lea    (%r8,%rsi,8),%rsi
prefetcht0 (%rdx,%r10,8)
prefetcht0 0x40(%rdx,%r10,8)
lea    -0x3(%rdi),%r8d
cmp    %r8d,%r9d
jge    14db <kernel_dtrtr_l_4_lib4+0x3db>
shl    $0x2,%ecx
movslq %ecx,%rcx
lea    0x40(,%rcx,8),%rdx
shl    $0x3,%rcx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
prefetcht0 -0x40(%rax,%rdx,1)
prefetcht0 (%rax,%rdx,1)
movsd  (%rax),%xmm0
movsd  %xmm0,(%rsi)
movsd  0x20(%rax),%xmm0
movsd  %xmm0,0x8(%rsi)
movsd  0x40(%rax),%xmm0
movsd  %xmm0,0x10(%rsi)
movsd  0x60(%rax),%xmm0
movsd  %xmm0,0x18(%rsi)
movsd  0x8(%rax),%xmm0
movsd  %xmm0,0x20(%rsi)
movsd  0x28(%rax),%xmm0
movsd  %xmm0,0x28(%rsi)
movsd  0x48(%rax),%xmm0
movsd  %xmm0,0x30(%rsi)
movsd  0x68(%rax),%xmm0
movsd  %xmm0,0x38(%rsi)
movsd  0x10(%rax),%xmm0
movsd  %xmm0,0x40(%rsi)
movsd  0x30(%rax),%xmm0
movsd  %xmm0,0x48(%rsi)
movsd  0x50(%rax),%xmm0
movsd  %xmm0,0x50(%rsi)
movsd  0x70(%rax),%xmm0
movsd  %xmm0,0x58(%rsi)
movsd  0x18(%rax),%xmm0
movsd  %xmm0,0x60(%rsi)
movsd  0x38(%rax),%xmm0
movsd  %xmm0,0x68(%rsi)
movsd  0x58(%rax),%xmm0
movsd  %xmm0,0x70(%rsi)
movsd  0x78(%rax),%xmm0
movsd  %xmm0,0x78(%rsi)
sub    $0xffffffffffffff80,%rsi
add    $0x4,%r9d
add    %rcx,%rax
cmp    %r8d,%r9d
jl     1420 <kernel_dtrtr_l_4_lib4+0x320>
cmp    %edi,%r9d
je     1610 <kernel_dtrtr_l_4_lib4+0x510>
sub    %r9d,%edi
cmp    $0x2,%edi
je     1523 <kernel_dtrtr_l_4_lib4+0x423>
cmp    $0x1,%edi
jne    1576 <kernel_dtrtr_l_4_lib4+0x476>
movsd  (%rax),%xmm0
movsd  %xmm0,(%rsi)
mov    $0x3,%r8d
mov    $0xc,%r9d
mov    $0x2,%ecx
mov    $0x8,%r10d
mov    $0x1,%edx
mov    $0x4,%edi
jmp    15ef <kernel_dtrtr_l_4_lib4+0x4ef>
movsd  (%rax),%xmm0
movsd  %xmm0,(%rsi)
movsd  0x20(%rax),%xmm0
movsd  %xmm0,0x8(%rsi)
movsd  0x40(%rax),%xmm0
movsd  %xmm0,0x10(%rsi)
movsd  0x60(%rax),%xmm0
movsd  %xmm0,0x18(%rsi)
movsd  0x8(%rax),%xmm0
movsd  %xmm0,0x20(%rsi)
mov    $0x7,%r8d
mov    $0xd,%r9d
mov    $0x6,%ecx
mov    $0x9,%r10d
mov    $0x5,%edi
mov    $0x5,%edx
jmp    15ef <kernel_dtrtr_l_4_lib4+0x4ef>
movsd  (%rax),%xmm0
movsd  %xmm0,(%rsi)
movsd  0x20(%rax),%xmm0
movsd  %xmm0,0x8(%rsi)
movsd  0x40(%rax),%xmm0
movsd  %xmm0,0x10(%rsi)
movsd  0x60(%rax),%xmm0
movsd  %xmm0,0x18(%rsi)
movsd  0x8(%rax),%xmm0
movsd  %xmm0,0x20(%rsi)
movsd  0x28(%rax),%xmm0
movsd  %xmm0,0x28(%rsi)
movsd  0x48(%rax),%xmm0
movsd  %xmm0,0x30(%rsi)
movsd  0x68(%rax),%xmm0
movsd  %xmm0,0x38(%rsi)
movsd  0x10(%rax),%xmm0
movsd  %xmm0,0x40(%rsi)
mov    $0xb,%r8d
mov    $0xe,%r9d
mov    $0xa,%r10d
mov    $0x9,%edx
mov    $0x6,%edi
mov    $0xa,%ecx
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,(%rsi,%rdx,8)
movsd  (%rax,%r10,8),%xmm0
movsd  %xmm0,(%rsi,%rcx,8)
movsd  (%rax,%r9,8),%xmm0
movsd  %xmm0,(%rsi,%r8,8)
ret

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

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