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;
  }
  for (; k < kmax - 3; k += 4) {
    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    1956 <kernel_dtrtr_l_4_lib4+0x856>
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    1956 <kernel_dtrtr_l_4_lib4+0x856>
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    1956 <kernel_dtrtr_l_4_lib4+0x856>
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>
jmp    1606 <kernel_dtrtr_l_4_lib4+0x506>
mov    -0x24(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x3,%ecx
cmp    %ecx,%eax
jge    1769 <kernel_dtrtr_l_4_lib4+0x669>
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    1606 <kernel_dtrtr_l_4_lib4+0x506>
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jne    177a <kernel_dtrtr_l_4_lib4+0x67a>
jmp    1956 <kernel_dtrtr_l_4_lib4+0x856>
mov    -0x4(%rbp),%eax
sub    -0x24(%rbp),%eax
cmp    $0x1,%eax
jne    17d4 <kernel_dtrtr_l_4_lib4+0x6d4>
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    1951 <kernel_dtrtr_l_4_lib4+0x851>
mov    -0x4(%rbp),%eax
sub    -0x24(%rbp),%eax
cmp    $0x2,%eax
jne    1876 <kernel_dtrtr_l_4_lib4+0x776>
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    194c <kernel_dtrtr_l_4_lib4+0x84c>
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    1951 <kernel_dtrtr_l_4_lib4+0x851>
jmp    1956 <kernel_dtrtr_l_4_lib4+0x856>
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,%esi
mov    $0x10,%r9d
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     15e4 <kernel_dtrtr_l_4_lib4+0x4e4>
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,%esi
mov    $0x14,%r9d
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     15e4 <kernel_dtrtr_l_4_lib4+0x4e4>
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     15e4 <kernel_dtrtr_l_4_lib4+0x4e4>
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,%esi
mov    $0x18,%r9d
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,%esi
mov    $0xc,%r9d
cltq
lea    (%rdx,%rax,8),%rax
lea    (%r8,%r9,8),%rdx
lea    -0x3(%rdi),%r8d
cmp    %r8d,%esi
jge    14b1 <kernel_dtrtr_l_4_lib4+0x3b1>
shl    $0x2,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
nop
movsd  (%rax),%xmm0
movsd  %xmm0,(%rdx)
movsd  0x20(%rax),%xmm0
movsd  %xmm0,0x8(%rdx)
movsd  0x40(%rax),%xmm0
movsd  %xmm0,0x10(%rdx)
movsd  0x60(%rax),%xmm0
movsd  %xmm0,0x18(%rdx)
movsd  0x8(%rax),%xmm0
movsd  %xmm0,0x20(%rdx)
movsd  0x28(%rax),%xmm0
movsd  %xmm0,0x28(%rdx)
movsd  0x48(%rax),%xmm0
movsd  %xmm0,0x30(%rdx)
movsd  0x68(%rax),%xmm0
movsd  %xmm0,0x38(%rdx)
movsd  0x10(%rax),%xmm0
movsd  %xmm0,0x40(%rdx)
movsd  0x30(%rax),%xmm0
movsd  %xmm0,0x48(%rdx)
movsd  0x50(%rax),%xmm0
movsd  %xmm0,0x50(%rdx)
movsd  0x70(%rax),%xmm0
movsd  %xmm0,0x58(%rdx)
movsd  0x18(%rax),%xmm0
movsd  %xmm0,0x60(%rdx)
movsd  0x38(%rax),%xmm0
movsd  %xmm0,0x68(%rdx)
movsd  0x58(%rax),%xmm0
movsd  %xmm0,0x70(%rdx)
movsd  0x78(%rax),%xmm0
movsd  %xmm0,0x78(%rdx)
sub    $0xffffffffffffff80,%rdx
add    $0x4,%esi
add    %rcx,%rax
cmp    %r8d,%esi
jl     1400 <kernel_dtrtr_l_4_lib4+0x300>
cmp    %edi,%esi
je     15e4 <kernel_dtrtr_l_4_lib4+0x4e4>
sub    %esi,%edi
cmp    $0x2,%edi
je     14f7 <kernel_dtrtr_l_4_lib4+0x3f7>
cmp    $0x1,%edi
jne    154a <kernel_dtrtr_l_4_lib4+0x44a>
movsd  (%rax),%xmm0
movsd  %xmm0,(%rdx)
mov    $0x3,%r8d
mov    $0xc,%r9d
mov    $0x2,%ecx
mov    $0x8,%r10d
mov    $0x1,%esi
mov    $0x4,%edi
jmp    15c3 <kernel_dtrtr_l_4_lib4+0x4c3>
movsd  (%rax),%xmm0
movsd  %xmm0,(%rdx)
movsd  0x20(%rax),%xmm0
movsd  %xmm0,0x8(%rdx)
movsd  0x40(%rax),%xmm0
movsd  %xmm0,0x10(%rdx)
movsd  0x60(%rax),%xmm0
movsd  %xmm0,0x18(%rdx)
movsd  0x8(%rax),%xmm0
movsd  %xmm0,0x20(%rdx)
mov    $0x7,%r8d
mov    $0xd,%r9d
mov    $0x6,%ecx
mov    $0x9,%r10d
mov    $0x5,%edi
mov    $0x5,%esi
jmp    15c3 <kernel_dtrtr_l_4_lib4+0x4c3>
movsd  (%rax),%xmm0
movsd  %xmm0,(%rdx)
movsd  0x20(%rax),%xmm0
movsd  %xmm0,0x8(%rdx)
movsd  0x40(%rax),%xmm0
movsd  %xmm0,0x10(%rdx)
movsd  0x60(%rax),%xmm0
movsd  %xmm0,0x18(%rdx)
movsd  0x8(%rax),%xmm0
movsd  %xmm0,0x20(%rdx)
movsd  0x28(%rax),%xmm0
movsd  %xmm0,0x28(%rdx)
movsd  0x48(%rax),%xmm0
movsd  %xmm0,0x30(%rdx)
movsd  0x68(%rax),%xmm0
movsd  %xmm0,0x38(%rdx)
movsd  0x10(%rax),%xmm0
movsd  %xmm0,0x40(%rdx)
mov    $0xb,%r8d
mov    $0xe,%r9d
mov    $0xa,%r10d
mov    $0x9,%esi
mov    $0x6,%edi
mov    $0xa,%ecx
movsd  (%rax,%rdi,8),%xmm0
movsd  %xmm0,(%rdx,%rsi,8)
movsd  (%rax,%r10,8),%xmm0
movsd  %xmm0,(%rdx,%rcx,8)
movsd  (%rax,%r9,8),%xmm0
movsd  %xmm0,(%rdx,%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 %576
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 %576
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 %576
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
br label %340
340: ; preds = %433, %339
%341 = load i32, i32* %11
%342 = load i32, i32* %6
%343 = sub nsw i32 %342, 3
%344 = icmp slt i32 %341, %343
br i1 %344, label %345, label %436
345: ; preds = %340
%346 = load double*, double** %8
%347 = getelementptr inbounds double, double* %346, i64 0
%348 = load double, double* %347
%349 = load double*, double** %10
%350 = getelementptr inbounds double, double* %349, i64 0
store double %348, double* %350
%351 = load double*, double** %8
%352 = getelementptr inbounds double, double* %351, i64 4
%353 = load double, double* %352
%354 = load double*, double** %10
%355 = getelementptr inbounds double, double* %354, i64 1
store double %353, double* %355
%356 = load double*, double** %8
%357 = getelementptr inbounds double, double* %356, i64 8
%358 = load double, double* %357
%359 = load double*, double** %10
%360 = getelementptr inbounds double, double* %359, i64 2
store double %358, double* %360
%361 = load double*, double** %8
%362 = getelementptr inbounds double, double* %361, i64 12
%363 = load double, double* %362
%364 = load double*, double** %10
%365 = getelementptr inbounds double, double* %364, i64 3
store double %363, double* %365
%366 = load double*, double** %8
%367 = getelementptr inbounds double, double* %366, i64 1
%368 = load double, double* %367
%369 = load double*, double** %10
%370 = getelementptr inbounds double, double* %369, i64 4
store double %368, double* %370
%371 = load double*, double** %8
%372 = getelementptr inbounds double, double* %371, i64 5
%373 = load double, double* %372
%374 = load double*, double** %10
%375 = getelementptr inbounds double, double* %374, i64 5
store double %373, double* %375
%376 = load double*, double** %8
%377 = getelementptr inbounds double, double* %376, i64 9
%378 = load double, double* %377
%379 = load double*, double** %10
%380 = getelementptr inbounds double, double* %379, i64 6
store double %378, double* %380
%381 = load double*, double** %8
%382 = getelementptr inbounds double, double* %381, i64 13
%383 = load double, double* %382
%384 = load double*, double** %10
%385 = getelementptr inbounds double, double* %384, i64 7
store double %383, double* %385
%386 = load double*, double** %8
%387 = getelementptr inbounds double, double* %386, i64 2
%388 = load double, double* %387
%389 = load double*, double** %10
%390 = getelementptr inbounds double, double* %389, i64 8
store double %388, double* %390
%391 = load double*, double** %8
%392 = getelementptr inbounds double, double* %391, i64 6
%393 = load double, double* %392
%394 = load double*, double** %10
%395 = getelementptr inbounds double, double* %394, i64 9
store double %393, double* %395
%396 = load double*, double** %8
%397 = getelementptr inbounds double, double* %396, i64 10
%398 = load double, double* %397
%399 = load double*, double** %10
%400 = getelementptr inbounds double, double* %399, i64 10
store double %398, double* %400
%401 = load double*, double** %8
%402 = getelementptr inbounds double, double* %401, i64 14
%403 = load double, double* %402
%404 = load double*, double** %10
%405 = getelementptr inbounds double, double* %404, i64 11
store double %403, double* %405
%406 = load double*, double** %8
%407 = getelementptr inbounds double, double* %406, i64 3
%408 = load double, double* %407
%409 = load double*, double** %10
%410 = getelementptr inbounds double, double* %409, i64 12
store double %408, double* %410
%411 = load double*, double** %8
%412 = getelementptr inbounds double, double* %411, i64 7
%413 = load double, double* %412
%414 = load double*, double** %10
%415 = getelementptr inbounds double, double* %414, i64 13
store double %413, double* %415
%416 = load double*, double** %8
%417 = getelementptr inbounds double, double* %416, i64 11
%418 = load double, double* %417
%419 = load double*, double** %10
%420 = getelementptr inbounds double, double* %419, i64 14
store double %418, double* %420
%421 = load double*, double** %8
%422 = getelementptr inbounds double, double* %421, i64 15
%423 = load double, double* %422
%424 = load double*, double** %10
%425 = getelementptr inbounds double, double* %424, i64 15
store double %423, double* %425
%426 = load i32, i32* %9
%427 = mul nsw i32 4, %426
%428 = load double*, double** %8
%429 = sext i32 %427 to i64
%430 = getelementptr inbounds double, double* %428, i64 %429
store double* %430, double** %8
%431 = load double*, double** %10
%432 = getelementptr inbounds double, double* %431, i64 16
store double* %432, double** %10
br label %433
433: ; preds = %345
%434 = load i32, i32* %11
%435 = add nsw i32 %434, 4
store i32 %435, i32* %11
br label %340
436: ; preds = %340
%437 = load i32, i32* %11
%438 = load i32, i32* %6
%439 = icmp eq i32 %437, %438
br i1 %439, label %440, label %441
440: ; preds = %436
br label %576
441: ; preds = %436
%442 = load i32, i32* %6
%443 = load i32, i32* %11
%444 = sub nsw i32 %442, %443
%445 = icmp eq i32 %444, 1
br i1 %445, label %446, label %467
446: ; preds = %441
%447 = load double*, double** %8
%448 = getelementptr inbounds double, double* %447, i64 0
%449 = load double, double* %448
%450 = load double*, double** %10
%451 = getelementptr inbounds double, double* %450, i64 0
store double %449, double* %451
%452 = load double*, double** %8
%453 = getelementptr inbounds double, double* %452, i64 4
%454 = load double, double* %453
%455 = load double*, double** %10
%456 = getelementptr inbounds double, double* %455, i64 1
store double %454, double* %456
%457 = load double*, double** %8
%458 = getelementptr inbounds double, double* %457, i64 8
%459 = load double, double* %458
%460 = load double*, double** %10
%461 = getelementptr inbounds double, double* %460, i64 2
store double %459, double* %461
%462 = load double*, double** %8
%463 = getelementptr inbounds double, double* %462, i64 12
%464 = load double, double* %463
%465 = load double*, double** %10
%466 = getelementptr inbounds double, double* %465, i64 3
store double %464, double* %466
br label %575
467: ; preds = %441
%468 = load i32, i32* %6
%469 = load i32, i32* %11
%470 = sub nsw i32 %468, %469
%471 = icmp eq i32 %470, 2
br i1 %471, label %472, label %513
472: ; preds = %467
%473 = load double*, double** %8
%474 = getelementptr inbounds double, double* %473, i64 0
%475 = load double, double* %474
%476 = load double*, double** %10
%477 = getelementptr inbounds double, double* %476, i64 0
store double %475, double* %477
%478 = load double*, double** %8
%479 = getelementptr inbounds double, double* %478, i64 4
%480 = load double, double* %479
%481 = load double*, double** %10
%482 = getelementptr inbounds double, double* %481, i64 1
store double %480, double* %482
%483 = load double*, double** %8
%484 = getelementptr inbounds double, double* %483, i64 8
%485 = load double, double* %484
%486 = load double*, double** %10
%487 = getelementptr inbounds double, double* %486, i64 2
store double %485, double* %487
%488 = load double*, double** %8
%489 = getelementptr inbounds double, double* %488, i64 12
%490 = load double, double* %489
%491 = load double*, double** %10
%492 = getelementptr inbounds double, double* %491, i64 3
store double %490, double* %492
%493 = load double*, double** %8
%494 = getelementptr inbounds double, double* %493, i64 1
%495 = load double, double* %494
%496 = load double*, double** %10
%497 = getelementptr inbounds double, double* %496, i64 4
store double %495, double* %497
%498 = load double*, double** %8
%499 = getelementptr inbounds double, double* %498, i64 5
%500 = load double, double* %499
%501 = load double*, double** %10
%502 = getelementptr inbounds double, double* %501, i64 5
store double %500, double* %502
%503 = load double*, double** %8
%504 = getelementptr inbounds double, double* %503, i64 9
%505 = load double, double* %504
%506 = load double*, double** %10
%507 = getelementptr inbounds double, double* %506, i64 6
store double %505, double* %507
%508 = load double*, double** %8
%509 = getelementptr inbounds double, double* %508, i64 13
%510 = load double, double* %509
%511 = load double*, double** %10
%512 = getelementptr inbounds double, double* %511, i64 7
store double %510, double* %512
br label %574
513: ; preds = %467
%514 = load double*, double** %8
%515 = getelementptr inbounds double, double* %514, i64 0
%516 = load double, double* %515
%517 = load double*, double** %10
%518 = getelementptr inbounds double, double* %517, i64 0
store double %516, double* %518
%519 = load double*, double** %8
%520 = getelementptr inbounds double, double* %519, i64 4
%521 = load double, double* %520
%522 = load double*, double** %10
%523 = getelementptr inbounds double, double* %522, i64 1
store double %521, double* %523
%524 = load double*, double** %8
%525 = getelementptr inbounds double, double* %524, i64 8
%526 = load double, double* %525
%527 = load double*, double** %10
%528 = getelementptr inbounds double, double* %527, i64 2
store double %526, double* %528
%529 = load double*, double** %8
%530 = getelementptr inbounds double, double* %529, i64 12
%531 = load double, double* %530
%532 = load double*, double** %10
%533 = getelementptr inbounds double, double* %532, i64 3
store double %531, double* %533
%534 = load double*, double** %8
%535 = getelementptr inbounds double, double* %534, i64 1
%536 = load double, double* %535
%537 = load double*, double** %10
%538 = getelementptr inbounds double, double* %537, i64 4
store double %536, double* %538
%539 = load double*, double** %8
%540 = getelementptr inbounds double, double* %539, i64 5
%541 = load double, double* %540
%542 = load double*, double** %10
%543 = getelementptr inbounds double, double* %542, i64 5
store double %541, double* %543
%544 = load double*, double** %8
%545 = getelementptr inbounds double, double* %544, i64 9
%546 = load double, double* %545
%547 = load double*, double** %10
%548 = getelementptr inbounds double, double* %547, i64 6
store double %546, double* %548
%549 = load double*, double** %8
%550 = getelementptr inbounds double, double* %549, i64 13
%551 = load double, double* %550
%552 = load double*, double** %10
%553 = getelementptr inbounds double, double* %552, i64 7
store double %551, double* %553
%554 = load double*, double** %8
%555 = getelementptr inbounds double, double* %554, i64 2
%556 = load double, double* %555
%557 = load double*, double** %10
%558 = getelementptr inbounds double, double* %557, i64 8
store double %556, double* %558
%559 = load double*, double** %8
%560 = getelementptr inbounds double, double* %559, i64 6
%561 = load double, double* %560
%562 = load double*, double** %10
%563 = getelementptr inbounds double, double* %562, i64 9
store double %561, double* %563
%564 = load double*, double** %8
%565 = getelementptr inbounds double, double* %564, i64 10
%566 = load double, double* %565
%567 = load double*, double** %10
%568 = getelementptr inbounds double, double* %567, i64 10
store double %566, double* %568
%569 = load double*, double** %8
%570 = getelementptr inbounds double, double* %569, i64 14
%571 = load double, double* %570
%572 = load double*, double** %10
%573 = getelementptr inbounds double, double* %572, i64 11
store double %571, double* %573
br label %574
574: ; preds = %513, %472
br label %575
575: ; preds = %574, %446
br label %576
576: ; preds = %575, %440, %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 %293, 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 %293, 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 %293, 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 = add nsw i32 %0, -3
%170 = icmp slt i32 %165, %169
br i1 %170, label %171, label %228
171: ; preds = %161
%172 = shl nsw i32 %3, 2
%173 = sext i32 %172 to i64
br label %174
174: ; preds = %171, %174
%175 = phi double* [ %167, %171 ], [ %224, %174 ]
%176 = phi i32 [ %165, %171 ], [ %226, %174 ]
%177 = phi double* [ %168, %171 ], [ %225, %174 ]
%178 = load double, double* %175
store double %178, double* %177
%179 = getelementptr inbounds double, double* %175, i64 4
%180 = load double, double* %179
%181 = getelementptr inbounds double, double* %177, i64 1
store double %180, double* %181
%182 = getelementptr inbounds double, double* %175, i64 8
%183 = load double, double* %182
%184 = getelementptr inbounds double, double* %177, i64 2
store double %183, double* %184
%185 = getelementptr inbounds double, double* %175, i64 12
%186 = load double, double* %185
%187 = getelementptr inbounds double, double* %177, i64 3
store double %186, double* %187
%188 = getelementptr inbounds double, double* %175, i64 1
%189 = load double, double* %188
%190 = getelementptr inbounds double, double* %177, i64 4
store double %189, double* %190
%191 = getelementptr inbounds double, double* %175, i64 5
%192 = load double, double* %191
%193 = getelementptr inbounds double, double* %177, i64 5
store double %192, double* %193
%194 = getelementptr inbounds double, double* %175, i64 9
%195 = load double, double* %194
%196 = getelementptr inbounds double, double* %177, i64 6
store double %195, double* %196
%197 = getelementptr inbounds double, double* %175, i64 13
%198 = load double, double* %197
%199 = getelementptr inbounds double, double* %177, i64 7
store double %198, double* %199
%200 = getelementptr inbounds double, double* %175, i64 2
%201 = load double, double* %200
%202 = getelementptr inbounds double, double* %177, i64 8
store double %201, double* %202
%203 = getelementptr inbounds double, double* %175, i64 6
%204 = load double, double* %203
%205 = getelementptr inbounds double, double* %177, i64 9
store double %204, double* %205
%206 = getelementptr inbounds double, double* %175, i64 10
%207 = load double, double* %206
%208 = getelementptr inbounds double, double* %177, i64 10
store double %207, double* %208
%209 = getelementptr inbounds double, double* %175, i64 14
%210 = load double, double* %209
%211 = getelementptr inbounds double, double* %177, i64 11
store double %210, double* %211
%212 = getelementptr inbounds double, double* %175, i64 3
%213 = load double, double* %212
%214 = getelementptr inbounds double, double* %177, i64 12
store double %213, double* %214
%215 = getelementptr inbounds double, double* %175, i64 7
%216 = load double, double* %215
%217 = getelementptr inbounds double, double* %177, i64 13
store double %216, double* %217
%218 = getelementptr inbounds double, double* %175, i64 11
%219 = load double, double* %218
%220 = getelementptr inbounds double, double* %177, i64 14
store double %219, double* %220
%221 = getelementptr inbounds double, double* %175, i64 15
%222 = load double, double* %221
%223 = getelementptr inbounds double, double* %177, i64 15
store double %222, double* %223
%224 = getelementptr inbounds double, double* %175, i64 %173
%225 = getelementptr inbounds double, double* %177, i64 16
%226 = add nuw nsw i32 %176, 4
%227 = icmp slt i32 %226, %169
br i1 %227, label %174, label %228
228: ; preds = %174, %161
%229 = phi double* [ %168, %161 ], [ %225, %174 ]
%230 = phi i32 [ %165, %161 ], [ %226, %174 ]
%231 = phi double* [ %167, %161 ], [ %224, %174 ]
%232 = icmp eq i32 %230, %0
br i1 %232, label %293, label %233
233: ; preds = %228
%234 = sub nsw i32 %0, %230
switch i32 %234, label %251 [
i32 1, label %235
i32 2, label %237
]
235: ; preds = %233
%236 = load double, double* %231
store double %236, double* %229
br label %277
237: ; preds = %233
%238 = load double, double* %231
store double %238, double* %229
%239 = getelementptr inbounds double, double* %231, i64 4
%240 = load double, double* %239
%241 = getelementptr inbounds double, double* %229, i64 1
store double %240, double* %241
%242 = getelementptr inbounds double, double* %231, i64 8
%243 = load double, double* %242
%244 = getelementptr inbounds double, double* %229, i64 2
store double %243, double* %244
%245 = getelementptr inbounds double, double* %231, i64 12
%246 = load double, double* %245
%247 = getelementptr inbounds double, double* %229, i64 3
store double %246, double* %247
%248 = getelementptr inbounds double, double* %231, i64 1
%249 = load double, double* %248
%250 = getelementptr inbounds double, double* %229, i64 4
store double %249, double* %250
br label %277
251: ; preds = %233
%252 = load double, double* %231
store double %252, double* %229
%253 = getelementptr inbounds double, double* %231, i64 4
%254 = load double, double* %253
%255 = getelementptr inbounds double, double* %229, i64 1
store double %254, double* %255
%256 = getelementptr inbounds double, double* %231, i64 8
%257 = load double, double* %256
%258 = getelementptr inbounds double, double* %229, i64 2
store double %257, double* %258
%259 = getelementptr inbounds double, double* %231, i64 12
%260 = load double, double* %259
%261 = getelementptr inbounds double, double* %229, i64 3
store double %260, double* %261
%262 = getelementptr inbounds double, double* %231, i64 1
%263 = load double, double* %262
%264 = getelementptr inbounds double, double* %229, i64 4
store double %263, double* %264
%265 = getelementptr inbounds double, double* %231, i64 5
%266 = load double, double* %265
%267 = getelementptr inbounds double, double* %229, i64 5
store double %266, double* %267
%268 = getelementptr inbounds double, double* %231, i64 9
%269 = load double, double* %268
%270 = getelementptr inbounds double, double* %229, i64 6
store double %269, double* %270
%271 = getelementptr inbounds double, double* %231, i64 13
%272 = load double, double* %271
%273 = getelementptr inbounds double, double* %229, i64 7
store double %272, double* %273
%274 = getelementptr inbounds double, double* %231, i64 2
%275 = load double, double* %274
%276 = getelementptr inbounds double, double* %229, i64 8
store double %275, double* %276
br label %277
277: ; preds = %237, %251, %235
%278 = phi i64 [ 4, %235 ], [ 6, %251 ], [ 5, %237 ]
%279 = phi i64 [ 1, %235 ], [ 9, %251 ], [ 5, %237 ]
%280 = phi i64 [ 8, %235 ], [ 10, %251 ], [ 9, %237 ]
%281 = phi i64 [ 2, %235 ], [ 10, %251 ], [ 6, %237 ]
%282 = phi i64 [ 12, %235 ], [ 14, %251 ], [ 13, %237 ]
%283 = phi i64 [ 3, %235 ], [ 11, %251 ], [ 7, %237 ]
%284 = getelementptr inbounds double, double* %231, i64 %278
%285 = load double, double* %284
%286 = getelementptr inbounds double, double* %229, i64 %279
store double %285, double* %286
%287 = getelementptr inbounds double, double* %231, i64 %280
%288 = load double, double* %287
%289 = getelementptr inbounds double, double* %229, i64 %281
store double %288, double* %289
%290 = getelementptr inbounds double, double* %231, i64 %282
%291 = load double, double* %290
%292 = getelementptr inbounds double, double* %229, i64 %283
store double %291, double* %292
br label %293
293: ; preds = %277, %228, %115, %82, %36
ret void
}